You are not logged in.
Hey ho, since some weeks i got a problem with my Keyboard and Mouse.
They will be randomly disconnected from the kernel.
I looked at this post: https://bbs.archlinux.org/viewtopic.php?id=251845
and also at this Wiki Article: https://wiki.archlinux.org/title/Power_ … utosuspend
Nothing helps. The only way to get both run again ist to Poweroff and restart the computer via powerbutton.
In first step i create a new file: /etc/udev/rules.d/50-usb_power_save.rules and add the follow line:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="9205", ATTR{power/autosuspend}="-1"Restart the computer.... some hours later... from one to another second.... mouse stops working, also keyboard stops working.
Second step:
i add/modify the follow line of the /etc/default/grub file:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"Then execute the update-grub command.
After Reboot i check the autosuspend value with:
cat /sys/module/usbcore/parameters/autosuspendThe result is wierd...
2And the problem is still present...
Dose anyone has some other ideas?
Oh and PS:...
This problem is just since some weeks.... the installation itself is.... boar... around 5 Years running without any issues.....
Greetings Gala
Offline
It's always weird when something that used to work suddenly stops working - but a good place to start is to investigate any changes you have done to the system.
About the Grub setting...
"usbcore.autosuspend=-1" will disable autosuspending, but can and usually is overridden by userspace powermanagement daemons (TLP, laptopmode tools, …) at runtime, so be weary of that and consult the documentation of any tool you use on how to disable it there.
...it seems that's what has happened; something has overridden that setting.
The tools he's refering to have wiki pages: TLP and Laptop Mode Tools, in case you are using those. There are other tools too. It's probably a good idea to just check through the relevant configuration.
I noted that your /etc/udev/rules.d/50-usb_power_save.rules...
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="9205", ATTR{power/autosuspend}="-1"...looks exactly like the wiki example - and in case you just copied it, it might be worth noting that the idVendor and idProduct is supposed to be copied from
$ lsusbThe command will output lines containing a string "ID xxxx:yyyy", where the idVendor is "xxxx" and the idProduct is "yyyy".
If your IDs are different than the wiki example, it may help replacing them with the proper values ![]()
Offline
Thank you for your answer ![]()
Okay... maybe i should read correctly
my fail.. ^^
first of all... befor i restarted the computer last time i execute the update-grub command again.....
after reboot i execute cat /sys/module/usbcore/parameters/autosuspend again...
... now it shows -1 .... so exactly what i'm expecting for.
Anyway i do the lsusb command:
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 003: ID 145f:011a Trust Optical Mouse
Bus 007 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubso i take mouse and keyboard and modify my 50-usb_power_saves.rules to this:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="145f", ATTR{idProduct}=="011a", ATTR{power/autosuspend}="-1"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c31c", ATTR{power/autosuspend}="-1"Now i hope it fixes my problems...
It's always weird when something that used to work suddenly stops working - but a good place to start is to investigate any changes you have done to the system.
Thats the point... i changed nothing. I can't remember at whitch time it starts to happend. But i think it was any kind of update some weeks ago.
It is the Computer of my whife... the only thing she do with this computer is:
Shopping (on one specific store... the big A ...) look some Youtube Videos, and play some Spidersolitair (KPartience).
The system is also a minimal Desktop installation with XFCE4 WindowManager...
Not sure.... i think it was any kind of Kernel Update....
But for the time: Thank you ![]()
Greetings Gala
Offline
Then execute the update-grub command.
There's no "update-grub", what's the output of
cat /proc/cmdline?
Offline
There's no "update-grub",
Well, update-grub is a AUR package... its a Wrapper for grub-mkconfig: https://aur.archlinux.org/packages/update-grub
what's the output of
cat /proc/cmdline
Output:
BOOT_IMAGE=/vmlinuz-linux root=UUID=d30db83e-0d90-46be-af1c-0c63c22add87 rw rootflags=subvol=@ quiet usbcore.autosuspend=-1Offline
Ah, ok - well, then it's altered by the userspace and the same userspace tool might also control the individual devices.
If you use anything like TLK or LMT (or powertop autotune or whatnot) you'll have to configure the timeout there, otherwise the userspace will very most likely strike afterwards and overwrite your kernel/udev config.
Offline
Okay.... now it happend again.... it works for some days but at this moment my whife told me... mouse and keyboard dosnt response....
And yes, its only mouse and keybord, not the whole system. I can login with ssh into the system....
So i doublecheck all again:
lsusb
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 005: ID 145f:011a Trust Optical Mouse
Bus 007 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubKeyboard: idVendor => 046d; idProduct => c31c
Mouse: idVendor => 145f; idProduct => 011a
cat /etc/udev/rules.d/50-usb_power_save.rules
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="145f, ATTR{idProduct}=="011a", ATTR{power/autosuspend}="-1"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c31c", ATTR{power/autosuspend}="-1"Udev Rule looks fine
cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-linux root=UUID=d30db83e-0d90-46be-af1c-0c63c22add87 rw rootflags=subvol=@ quiet usbcore.autosuspend=-1Bootflag looks fine
pacman -Qe
acpid 2.0.33-1
alsa-tools 1.2.5-1
alsa-utils 1.2.6-1
arc-gtk-theme 20220405-1
arc-icon-theme 20161122-3
auracle-git r366.8739929-4
aurman 2.20.1-2
autoconf 2.71-1
automake 1.16.5-1
avahi 0.8+22+gfd482a7-3
bash 5.1.016-1
bash-completion 2.11-2
binutils 2.38-4
bison 3.8.2-3
btrfs-progs 5.16.2-1
bzip2 1.0.8-4
chromium 100.0.4896.127-2
coreutils 9.1-1
cower 18-1
cronie 1.6.0-2
cryptsetup 2.4.3-2
cups 1:2.4.1-1
device-mapper 2.03.15-1
dhcpcd 9.4.1-1
diffutils 3.8-1
discord 0.0.17-1
dosfstools 4.2-2
e2fsprogs 1.46.5-3
efibootmgr 17-2
exo 4.16.3-1
fakeroot 1.28-1
file 5.41-1
filesystem 2021.12.07-1
filezilla 3.59.0-1
findutils 4.9.0-1
firefox 99.0.1-1
firefox-i18n-de 99.0.1-1
firestorm-bin 6.5.3.65658-1
flex 2.6.4-3
garcon 4.16.1-1
gawk 5.1.1-1
gcc 11.2.0-4
gcc-libs 11.2.0-4
gcc7 7.5.0-3
gettext 0.21-2
git 2.36.0-1
glibc 2.35-3
gobject-introspection 1.72.0-1
grep 3.7-1
groff 1.22.4-7
grub 2:2.06-5
grub-btrfs 4.11-2
gtk-xfce-engine 2.10.1-2
gzip 1.12-1
htop 3.1.2-1
hunspell-de 20161207-7
inetutils 2.2-1
iproute2 5.17.0-2
iputils 20211215-1
jfsutils 1.1.15-8
keepassx2 2.0.3-2
leafpad 0.8.18.1-9
less 1:590-1
libc++experimental 13.0.1-1
libpamac-aur 11.3.0-0
libreoffice-fresh 7.3.2-2
libreoffice-fresh-de 7.3.2-1
libtool 2.4.7-1
licenses 20220125-1
lightdm 1:1.30.0-4
lightdm-gtk-greeter 1:2.0.8-2
linux 5.17.4.arch1-1
linux-headers 5.17.4.arch1-1
logrotate 3.19.0-1
lvm2 2.03.15-1
m4 1.4.19-1
make 4.3-3
man-db 2.10.2-1
man-pages 5.13-1
mdadm 4.2-2
mousepad 0.5.9-1
mpv 1:0.34.1-4
mtools 1:4.0.39-1
nano 6.2-1
neofetch 7.1.0-2
netctl 1.28-1
network-manager-applet 1.26.0-1
networkmanager 1.36.4-1
nm-connection-editor 1.26.0-1
noto-fonts 20201226-2
numlockx 1.2-5
obs-studio 27.2.3-1
openssh 9.0p1-1
orage 4.16.0-1
pacaur 4.8.6-1
pacman 6.0.1-4
pacman-contrib 1.4.0-4
pamac-aur 10.4.0-0
parole 4.16.0-1
patch 2.7.6-8
pavucontrol 1:5.0+r35+g964f298-1
pciutils 3.7.0-2
pcmciautils 018-8
perl 5.34.1-1
pkgconf 1.8.0-1
procps-ng 3.3.17-1
psmisc 23.4-1
pulseaudio-alsa 1:1.2.6-3
qt4 4.8.7-35
rambox-bin 0.7.9-1
reflector 2021.11-3
reiserfsprogs 3.6.27-3
rememberthemilk 1.3.11-1
ristretto 0.12.2-1
s-nail 14.9.23-1
sed 4.8-1
shadow 4.11.1-1
signal-desktop 5.39.0-1
snap-pac 3.0.1-1
snapper 0.10.0-1
subversion 1.14.1-5
sudo 1.9.10-1
sysfsutils 2.1.1-1
systemd 250.4-2
systemd-sysvcompat 250.4-2
tar 1.34-1
teamspeak3 3.5.6-2
texinfo 6.8-2
thunar 4.16.11-1
thunar-archive-plugin 0.4.0-3
thunar-media-tags-plugin 0.3.0-2
thunar-volman 4.16.0-1
trello 0.1.9-4
tumbler 4.16.0-3
update-grub 0.0.1-7
usbutils 014-2
util-linux 2.38-1
vi 1:070224-5
vlc 3.0.17.4-1
wget 1.21.3-1
which 2.21-5
xf86-video-ati 1:19.1.0.r9.g5eba006e-2
xfburn 0.6.2-1
xfce4-appfinder 4.16.1-2
xfce4-artwork 0.1.1a_git20110420-6
xfce4-battery-plugin 1.1.4-1
xfce4-clipman-plugin 1.6.2-1
xfce4-cpufreq-plugin 1.2.7-1
xfce4-cpugraph-plugin 1.2.6-1
xfce4-datetime-plugin 0.8.1-1
xfce4-dict 0.8.4-1
xfce4-diskperf-plugin 2.7.0-1
xfce4-eyes-plugin 4.6.0-1
xfce4-fsguard-plugin 1.1.2-1
xfce4-genmon-plugin 4.1.1-1
xfce4-mailwatch-plugin 1.3.0-1
xfce4-mount-plugin 1.1.5-1
xfce4-mpc-plugin 0.5.2-2
xfce4-netload-plugin 1.4.0-1
xfce4-notes-plugin 1.9.0-1
xfce4-notifyd 0.6.3-1
xfce4-panel 4.16.4-1
xfce4-power-manager 4.16.0-3
xfce4-pulseaudio-plugin 0.4.3-2
xfce4-screenshooter 1.9.10-2
xfce4-sensors-plugin 1.4.3-1
xfce4-session 4.16.0-2
xfce4-settings 4.16.2-1
xfce4-smartbookmark-plugin 0.5.2-1
xfce4-systemload-plugin 1.3.1-1
xfce4-taskmanager 1.5.2.201.g58cf9b2-1
xfce4-terminal 1.0.2-1
xfce4-time-out-plugin 1.1.2-1
xfce4-timer-plugin 1.7.1-1
xfce4-verve-plugin 2.0.1-1
xfce4-wavelan-plugin 0.6.2-1
xfce4-weather-plugin 0.11.0-1
xfce4-whiskermenu-plugin 2.7.1-1
xfce4-xkb-plugin 0.8.2-1
xfconf 4.16.0-2
xfdesktop 4.16.0-2
xfsprogs 5.15.0-2
xfwm4 4.16.1-3
xfwm4-themes 4.10.0-4
xorg-server 21.1.3-6
xorg-xinit 1.4.1-3
xrdp 0.9.19-2
xterm 372-1Any idea which package do the suspend?
I also checked the energie settings in XFCE4... ther're noe option for USB suspend.
Last edited by Galatheas (2022-04-22 07:29:12)
Offline
cat /sys/module/usbcore/parameters/autosuspend is still "-1"?
The lsusb is *while* the input does *not* work?
Nothing helps. The only way to get both run again ist to Poweroff and restart the computer via powerbutton.
Does re-plugging the input devices help?
Make sure you can ssh into the system, next time the input drops out, check (via ssh) whether evtest generates events.
If it does, the problem is above the kernel layer and it could be as silly as something (browser, some popup) grabbing the input devices and not releasing them.
setxkbmap -option grab:break_actions will allow you to break the grab w/ Ctrl+Alt+Keypad-Divide and kill the grabbing client (warning, could be your browser…) w/ Ctrl+Alt+Keypad-Multiply
NOTICE that this constitutes a massive security risk because screenlockers use the grab to protect the system.
To unset the option you'll first have to set an empty option and then re-instate your previous options, eg.
setxkbmap -option "" -option "terminate:ctrl_alt_bksp,compose:caps"You can check the config w/ "setxkbmap -query".
Also notice that setxkbmap will steamroll over your xmodmap, reset the keyboard autorepeat etcetc.
Offline
Hey ho,
and there it is again....
lsusb said:
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubSame output after replug the Keyboard and Mouse....
And cat /sys/module/usbcore/parameters/autosuspend said -1 .....
Any other ideas?
And you See.... it dont happend at a strikt time... it could be that it works for some days/weeks... then it happend multiply per houre then suveral time everything works finde.... and so on
Last edited by Galatheas (2022-05-15 10:03:16)
Offline
Edit: disregard.
Since the devices no longer show up it's not a grab.
Check the system journal for the affected boot (do NOT hard-reboot, in doubt make sure that you can ssh into the system once the devices are gone)
Last edited by seth (2022-05-15 13:35:26)
Offline
Hey ho...
And back again... now with the last journalctl messages:
Mai 17 10:57:03 connyarch kernel: input: Holtek Optical Mouse as /devices/pci0000:00/0000:00:15.1/0000:03:00.0/usb7/7-2/7-2:1.0/0003:145F:011A.0009/input/input20
Mai 17 10:57:03 connyarch kernel: hid-generic 0003:145F:011A.0009: input,hidraw2: USB HID v1.10 Mouse [Holtek Optical Mouse] on usb-0000:03:00.0-2/input0
Mai 17 10:57:08 connyarch kernel: usb 7-2: USB disconnect, device number 9
Mai 17 10:57:08 connyarch kernel: usb 7-2: new low-speed USB device number 10 using xhci_hcd
Mai 17 10:57:08 connyarch kernel: usb 7-2: New USB device found, idVendor=145f, idProduct=011a, bcdDevice= 1.00
Mai 17 10:57:08 connyarch kernel: usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Mai 17 10:57:08 connyarch kernel: usb 7-2: Product: Optical Mouse
Mai 17 10:57:08 connyarch kernel: usb 7-2: Manufacturer: Holtek
Mai 17 10:57:08 connyarch kernel: input: Holtek Optical Mouse as /devices/pci0000:00/0000:00:15.1/0000:03:00.0/usb7/7-2/7-2:1.0/0003:145F:011A.000A/input/input21
Mai 17 10:57:08 connyarch kernel: hid-generic 0003:145F:011A.000A: input,hidraw2: USB HID v1.10 Mouse [Holtek Optical Mouse] on usb-0000:03:00.0-2/input0
Mai 17 10:57:36 connyarch kernel: usb 7-2: USB disconnect, device number 10
Mai 17 10:57:41 connyarch kernel: xhci_hcd 0000:03:00.0: xHCI host not responding to stop endpoint command.
Mai 17 10:57:41 connyarch kernel: xhci_hcd 0000:03:00.0: USBSTS: 0x00000000
Mai 17 10:57:41 connyarch kernel: xhci_hcd 0000:03:00.0: xHCI host controller not responding, assume dead
Mai 17 10:57:41 connyarch kernel: xhci_hcd 0000:03:00.0: HC died; cleaning up
Mai 17 10:57:41 connyarch kernel: usb 7-1: USB disconnect, device number 2
Mai 17 10:57:42 connyarch acpid[384]: input device has been disconnected, fd 11
Mai 17 10:57:42 connyarch acpid[384]: input device has been disconnected, fd 12
Mai 17 10:57:42 connyarch acpid[384]: input device has been disconnected, fd 13The Messages with : input; hid-generic; usb 7-2
shows up a lot... not sure why.... normal?
Well... but i think its the acpid message on the last 3 lines, it is?
How can i fix this?
EDIT:
I add the follow Lines to /etc/systemd/sleep.conf:
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=noin hope that the problem now is sloved....
Or did you have a better practice?
Last edited by Galatheas (2022-05-17 09:22:18)
Offline
The mouse shows up at 10:57:03, 5 seconds later drops out and immediately re-appears, 28 seconds later drops again and then kinda takes the bus out.
There's no indication of any suspend/sleep/hibernation/whatever.
Most like a broken device on that hub (probably the mouse, perhaps the cable) => do you have replacement hardware to test?
Offline
Most like a broken device on that hub (probably the mouse, perhaps the cable) => do you have replacement hardware to test?
Hmmmmm, that could be.... but nope... not replaced the Hardware....
I think i have to buy a new one first... dont have a "backup-mouse".
But thank you... I'll have a look at this.
Question...
But if it is a broken mouse, why should the system shut down (suspend) all usb devices at same time? Can it also be that the USB Port(s) on the Mainboard is broken? And thats the point why the Kernel shut down all USB-Devices?
Just a thought....
Its an Asus A68HM-Plus Board with an AMD-A8-7650K APU...
yep... arround 8 Years old
and yep... the Arch Installation is arround same time
until now without any problems ^^...
Offline
An irregular USB device can (from personal experience) end up jamming the entire bus - the kernel probably should™ be more robust against that.
lsusb -tvOffline
Quick update....
we bought yesterday a new mouse after the issue comes a couple time the last 3 days....
currently works fine... i'll have a look onto it...
Last edited by Galatheas (2022-05-20 10:07:44)
Offline