[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A mouse and keyboard problem (randomly lose keystrokes)



On Wed, Sep 30, 2015 at 10:02:29PM +0200, Sven Arvidsson wrote:
> On Wed, 2015-09-30 at 21:18 +0200, Václav Ovsík wrote:
> > After reboot there is some delay time (several seconds), that when
> > USB
> > keyboard or mouse is idle longer than this delay it froze.
> > Next keystroke after this delay is lost, but this lost keystroke
> > wakes
> > keyboard up and next keystrokes are sent again, until there is
> > another
> > longer delay. Mouse must be woke-up by pressing button. This woke-up
> > click is lost, but mouse works, until another delay normally.
> > 
> > Simple disconnect and reconnect both devices fixes this problem till
> > another reboot.
> 
> Could you try this:
> http://askubuntu.com/questions/80638/how-to-disable-auto-power-off-of-usb-devices-like-usb-mouse

My previous description wasn't accurate. The keyboard lost keystrokes
randomly really - not exactly the first hit when suspended.

 zito@bobek:~$ lsusb -t
 /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
         |__ Port 8: Dev 3, If 0, Class=Application Specific Interface, Driver=, 12M
         |__ Port 8: Dev 3, If 1, Class=Chip/SmartCard, Driver=, 12M
 /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
         |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/3p, 480M
         |__ Port 2: Dev 4, If 0, Class=Hub, Driver=hub/3p, 480M
             |__ Port 1: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
             |__ Port 2: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
         |__ Port 4: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
         |__ Port 4: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
         |__ Port 4: Dev 5, If 2, Class=Vendor Specific Class, Driver=, 12M
         |__ Port 4: Dev 5, If 3, Class=Application Specific Interface, Driver=, 12M
 

After reboot the keyboard and the mouse autosuspends:

 zito@bobek:~$ for x in /sys/bus/usb/devices/*/power/autosuspend; do echo "$x: $(cat $x)"; done
 /sys/bus/usb/devices/1-1.1/power/autosuspend: 2
 /sys/bus/usb/devices/1-1.2.1/power/autosuspend: 2
 /sys/bus/usb/devices/1-1.2.2/power/autosuspend: 2
 /sys/bus/usb/devices/1-1.2/power/autosuspend: 2
 /sys/bus/usb/devices/1-1.4/power/autosuspend: 2
 /sys/bus/usb/devices/1-1/power/autosuspend: 2
 /sys/bus/usb/devices/2-1.8/power/autosuspend: 2
 /sys/bus/usb/devices/2-1/power/autosuspend: 2
 /sys/bus/usb/devices/usb1/power/autosuspend: 2
 /sys/bus/usb/devices/usb2/power/autosuspend: 2
 
 zito@bobek:~$ for x in /sys/bus/usb/devices/*/power/level; do echo "$x: $(cat $x)"; done
 /sys/bus/usb/devices/1-1.1/power/level: auto
 /sys/bus/usb/devices/1-1.2.1/power/level: auto
 /sys/bus/usb/devices/1-1.2.2/power/level: auto
 /sys/bus/usb/devices/1-1.2/power/level: auto
 /sys/bus/usb/devices/1-1.4/power/level: auto
 /sys/bus/usb/devices/1-1/power/level: auto
 /sys/bus/usb/devices/2-1.8/power/level: auto
 /sys/bus/usb/devices/2-1/power/level: auto
 /sys/bus/usb/devices/usb1/power/level: auto
 /sys/bus/usb/devices/usb2/power/level: auto


Disconnecting & reconnecting the keyboard and the mouse, the problem is gone:

zito@bobek:~$ for x in /sys/bus/usb/devices/*/power/autosuspend; do echo "$x: $(cat $x)"; done
/sys/bus/usb/devices/1-1.1/power/autosuspend: 2
/sys/bus/usb/devices/1-1.2.1/power/autosuspend: 2
/sys/bus/usb/devices/1-1.2.2/power/autosuspend: 2
/sys/bus/usb/devices/1-1.2/power/autosuspend: 2
/sys/bus/usb/devices/1-1.4/power/autosuspend: 2
/sys/bus/usb/devices/1-1/power/autosuspend: 2
/sys/bus/usb/devices/2-1.8/power/autosuspend: 2
/sys/bus/usb/devices/2-1/power/autosuspend: 2
/sys/bus/usb/devices/usb1/power/autosuspend: 2
/sys/bus/usb/devices/usb2/power/autosuspend: 2

zito@bobek:~$ for x in /sys/bus/usb/devices/*/power/level; do echo "$x: $(cat $x)"; done
/sys/bus/usb/devices/1-1.1/power/level: auto
/sys/bus/usb/devices/1-1.2.1/power/level: on
/sys/bus/usb/devices/1-1.2.2/power/level: on
/sys/bus/usb/devices/1-1.2/power/level: auto
/sys/bus/usb/devices/1-1.4/power/level: auto
/sys/bus/usb/devices/1-1/power/level: auto
/sys/bus/usb/devices/2-1.8/power/level: auto
/sys/bus/usb/devices/2-1/power/level: auto
/sys/bus/usb/devices/usb1/power/level: auto
/sys/bus/usb/devices/usb2/power/level: auto

Both reconnected HID devices has power level on.
-- 
Zito


Reply to: