Page 1 of 1

USB mouse or keyboard stop working after unplugging, plugging back in.

Posted: Wed Nov 15, 2023 6:23 am
by nilsonmorales

You have problems with your mouse or keyboard?

What happens if you unplug the mouse or keyboard and plug it back in, does it stop working?
It happened to me in devuanpup and apparently the same thing happens in other recent versions of puppy
does it happen to you?

Fossapup OK
Devuanpup FAIL


Re: Do you have problems with your mouse or keyboard? *Yes I have*

Posted: Wed Nov 15, 2023 6:33 am
by pp4mnklinux

Hi Nilson:

As you know, I have a lot of them with my trust mouse (viewtopic.php?t=8699) . I tried all the suggestions other puppy users had made to me.- NO ONE WORKS.

I am not a codder, so I tried changing each line at etc/X11/xorg.config and in the end.... NO SOLUTION so I used my trust mouse without lateral buttons... sniff...sniff...

n.b.- It is not an important problem, I can browse the internet, but I am dissapointed because I work slowly (with xenial it didn't happen).

Now my configuration file is this.

Code: Select all

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

    Option "IgnoreABI" "true"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

    Option "DontVTSwitch" "true"

# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

    Option "RandR" "on"

# With this, Xorg wont talk to HAL to add evdev devices and youll be back
# with the old Xorg behavior (pre-7.4)...

    Option "AutoAddDevices" "true"

# For no-Hal, kirk also suggests this...

#    Option "AllowMouseOpenFail" "true"

# Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...

    Option "DontZap" "false"

EndSection


Section "ServerLayout"
#	InputDevice "Synaptics Mouse" "AlwaysCore" #serverlayoutsynaptics
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0	
	#InputDevice "Mouse0" "CorePointer"
	#InputDevice "Keyboard0" "CoreKeyboard"
EndSection


Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/local"
	FontPath     "/usr/share/fonts/TTF"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/misc"
	FontPath     "/usr/share/fonts/truetype"
	FontPath     "/usr/share/fonts/opentype"
	FontPath     "/usr/share/fonts/woff"
	FontPath     "/usr/share/fonts/CID"
	FontPath     "/usr/share/fonts/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/75dpi"
	FontPath     "/usr/share/fonts/100dpi"
	FontPath     "/usr/share/fonts/cyrillic"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/X11/fonts/misc"
	FontPath     "/usr/share/fonts/X11/TTF"
	FontPath     "/usr/share/fonts/X11/OTF"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "/usr/share/X11/fonts"
	FontPath     "/usr/local/share/fonts"
	FontPath     "/usr/local/share/X11/fonts"
EndSection


Section "Module"
# Load "synaptics" #loadsynaptics
	Load  "glx"
EndSection

Section "InputClass"
	Identifier "Keyboard Defaults"
	MatchIsKeyboard "yes"
	Option      "XkbModel" "pc104" #xkbmodel0
	Option      "XkbLayout" "es" #xkeymap0
	#Option      "XkbVariant" "" #xkbvariant0
	Option      "XkbOptions" "terminate:ctrl_alt_bksp" #xkboptions0
EndSection



Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option      "Protocol" "IMPS/2" #mouse0protocol
	Option      "Device" "/dev/mouse"
	Option      "Emulate5Buttons"
	Option      "Emulate5Timeout" "50"
	Option      "ZAxisMapping" "4 5" #scrollwheel
	Option      "ZAxisMapping" "8 9" #lateralbuttons
EndSection




Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    35-81
	VertRefresh  59-76
	#UseModes     "Modes0" #monitor0usemodes
#	Option      "PreferredMode" "1024x768" #monitor0prefmode
EndSection


Section "Modes"
	Identifier "Modes0"
	#modes0modeline0
EndSection


Section "Device"
	Identifier  "Card0"
	Driver      "intel" #card0driver
	BusID       "0:2:0" #card0busid
EndSection


Section "Screen"
	Identifier "Screen0"
#	Device     "Card0"
	Monitor    "Monitor0"
#	DefaultDepth 24
	#Option         "metamodes" "1280x800_60 +0+0" #METAMODES_0
	Subsection "Display"
		Depth       24 #screen0depth
#		Modes       "1024x768" #screen0modes
	EndSubsection
EndSection

AS ALWAYS... any suggestions are WELCOME ;)

N.B.- I tried changing the wireless protocol, I include new buttons, I tested...... but I made some errors, for sure.


Re: You have problems with your mouse or keyboard?

Posted: Wed Nov 15, 2023 7:11 am
by nilsonmorales

I understand you but the problem I describe is a little simpler.
any usb mouse or keyboard, if it is disconnected it stops working until you restart x again


Re: You have problems with your mouse or keyboard?

Posted: Wed Nov 15, 2023 3:22 pm
by bigpup

First in Puppy Event Manager make sure hotplug support is activated.

If it is not.

After activating it, because this is a change that has to get into the Puppy save.

Probably need to reboot updating the save, so this is now always active when you boot.
.

Screenshot(2).jpg
Screenshot(2).jpg (39.04 KiB) Viewed 255 times

Re: USB mouse or keyboard stop working after unplugging, plugging back in.

Posted: Thu Nov 16, 2023 6:57 am
by nilsonmorales

thank you for correct me, bigpup: error happen in live mode, later post the dmesg errors, been busy this days