Re: X11/Thinkpad T430: partially drops input from USB devices after resume

2015-07-18 Thread Joel Roth
On Sun, Mar 22, 2015 at 11:59:16AM -1000, Joel Roth wrote:
 On Sat, Mar 21, 2015 at 01:05:58AM +, stefan.schwar...@gmx.net wrote:
 
  I am using my laptop (lenovo T430, debian testing)
  regularly in a docking station. The dock has a USB
  keyboard, USB mouse and monitor  permanently attached. The
  laptops suspends from time to time, and _after_ resuming
  X11 or some other system component  the input from USB
  mouse and keyboard to be dropped/ignored partially.
  Symptoms are that the cursor does not move with the mouse,
  however it will start moving again if I click any of the
  mouse buttons; or that the keyboard input is ignored until
  I hit some arbitrary keys very rapidly. The USB amnesia
  starts again if I leave the input device untouched for
  some seconds.  The issue will not occur for newly
  connected devices or if I reconnect mouse/keyboard. The
  dock is not the issue as I can reproduce the phenomenon
  with a USB mouse directly connected to the laptop. 
  
  I am looking for ways to correctly diagnose things to file
  a bug (against which package: xorg-input, kernel/driver,
  ...).
 
 I've had a similar problem with my T410, running sid. 
 I was losing the first few keystrokes when I begin typing on a USB
 keyboard. I didn't connect it with sleeping.

I resolved my (not OP) issue by adding the USB IDs of the mouse and
keyboard (from lsusb) to the /etc/laptop-mode/conf.d/runtime-pm.conf
AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST variable.
 
 At the moment (typing on USB keyboard I plugged in to test)
 I don't see the problem.
 
 Linux version 3.16.0-4-amd64 (debian-ker...@lists.debian.org) (gcc version 
 4.8.3 (Debian 4.8.3-13) ) #1 SMP Debian 3.16.7-2 (2014-11-06)
 
 cheers,
 
 Joel
  
  dmesg shows on device attachment/boot, e.g. for a cordless USB mouse:
  [316267.291416] usb 3-1.2: new low-speed USB device number 7 using ehci-pci
  [316267.390581] usb 3-1.2: New USB device found, idVendor=046d, 
  idProduct=c521
  [316267.390588] usb 3-1.2: New USB device strings: Mfr=1, Product=2, 
  SerialNumber=0
  [316267.390591] usb 3-1.2: Product: USB Receiver
  [316267.390593] usb 3-1.2: Manufacturer: Logitech
  [316267.397463] input: Logitech USB Receiver as 
  /devices/pci:00/:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C521.002D/input/input60
  [316267.397850] hid-generic 0003:046D:C521.002D: input,hidraw0: USB HID 
  v1.11 Mouse [Logitech USB Receiver] on usb-:00:1a.0-1.2/input0
  [316267.405442] input: Logitech USB Receiver as 
  /devices/pci:00/:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.1/0003:046D:C521.002E/input/input61
  [316267.406232] hid-generic 0003:046D:C521.002E: input,hiddev0,hidraw1: USB 
  HID v1.11 Device [Logitech USB Receiver] on usb-:00:1a.0-1.2/input1
  
  on wakeup (all USB related messages)
  [316278.048335] xhci_hcd :00:14.0: System wakeup disabled by ACPI
  [316278.048401] ehci-pci :00:1a.0: System wakeup disabled by ACPI
  [316278.048465] ehci-pci :00:1d.0: System wakeup disabled by ACPI
  [316278.048543] PM: noirq resume of devices complete after 15.665 msecs
  ...
  [316278.428114] usb 3-1.1: reset full-speed USB device number 3 using 
  ehci-pci
  [316278.592293] usb 3-1.6: reset high-speed USB device number 6 using 
  ehci-pci
  
  lsusb (after resume)
  sts@nbof08:~$ lsusb
  Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
  Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 003 Device 006: ID 04f2:b2da Chicony Electronics Co., Ltd 
  Bus 003 Device 005: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 
  [ThinkPad]
  Bus 003 Device 004: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor 
  (WBF advanced mode)
  Bus 003 Device 007: ID 046d:c521 Logitech, Inc. Cordless Mouse Receiver
  Bus 003 Device 003: ID 17ef:1003 Lenovo Integrated Smart Card Reader
  Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  
  Xorg.0.log (info refering to device attachment, there is no info after 
  resume:
  ...
  [316188.752] (II) config/udev: Adding input device Logitech USB Receiver 
  (/dev/input/event14)
  [316188.752] (**) Logitech USB Receiver: Applying InputClass evdev pointer 
  catchall
  [316188.752] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
  [316188.752] (**) Logitech USB Receiver: always reports core events
  [316188.752] (**) evdev: Logitech USB Receiver: Device: /dev/input/event14
  [316188.752] (--) evdev: Logitech USB Receiver: Vendor 0x46d Product 0xc521
  [316188.752] (--) evdev: Logitech USB Receiver: Found 20 mouse buttons
  [316188.752] (--) evdev: Logitech USB Receiver: Found scroll wheel(s)
  [316188.752] (--) evdev: Logitech USB Receiver: Found relative axes
  [316188.752] (--) evdev: Logitech USB Receiver: Found x and y relative axes
  [316188.752] (II) 

Re: X11/Thinkpad T430: partially drops input from USB devices after resume

2015-03-22 Thread Joel Roth
On Sat, Mar 21, 2015 at 01:05:58AM +, stefan.schwar...@gmx.net wrote:

 I am using my laptop (lenovo T430, debian testing)
 regularly in a docking station. The dock has a USB
 keyboard, USB mouse and monitor  permanently attached. The
 laptops suspends from time to time, and _after_ resuming
 X11 or some other system component  the input from USB
 mouse and keyboard to be dropped/ignored partially.
 Symptoms are that the cursor does not move with the mouse,
 however it will start moving again if I click any of the
 mouse buttons; or that the keyboard input is ignored until
 I hit some arbitrary keys very rapidly. The USB amnesia
 starts again if I leave the input device untouched for
 some seconds.  The issue will not occur for newly
 connected devices or if I reconnect mouse/keyboard. The
 dock is not the issue as I can reproduce the phenomenon
 with a USB mouse directly connected to the laptop. 
 
 I am looking for ways to correctly diagnose things to file
 a bug (against which package: xorg-input, kernel/driver,
 ...).

I've had a similar problem with my T410, running sid. 
I was losing the first few keystrokes when I begin typing on a USB
keyboard. I didn't connect it with sleeping.

At the moment (typing on USB keyboard I plugged in to test)
I don't see the problem.

Linux version 3.16.0-4-amd64 (debian-ker...@lists.debian.org) (gcc version 
4.8.3 (Debian 4.8.3-13) ) #1 SMP Debian 3.16.7-2 (2014-11-06)

cheers,

Joel
 
 dmesg shows on device attachment/boot, e.g. for a cordless USB mouse:
 [316267.291416] usb 3-1.2: new low-speed USB device number 7 using ehci-pci
 [316267.390581] usb 3-1.2: New USB device found, idVendor=046d, idProduct=c521
 [316267.390588] usb 3-1.2: New USB device strings: Mfr=1, Product=2, 
 SerialNumber=0
 [316267.390591] usb 3-1.2: Product: USB Receiver
 [316267.390593] usb 3-1.2: Manufacturer: Logitech
 [316267.397463] input: Logitech USB Receiver as 
 /devices/pci:00/:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C521.002D/input/input60
 [316267.397850] hid-generic 0003:046D:C521.002D: input,hidraw0: USB HID v1.11 
 Mouse [Logitech USB Receiver] on usb-:00:1a.0-1.2/input0
 [316267.405442] input: Logitech USB Receiver as 
 /devices/pci:00/:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.1/0003:046D:C521.002E/input/input61
 [316267.406232] hid-generic 0003:046D:C521.002E: input,hiddev0,hidraw1: USB 
 HID v1.11 Device [Logitech USB Receiver] on usb-:00:1a.0-1.2/input1
 
 on wakeup (all USB related messages)
 [316278.048335] xhci_hcd :00:14.0: System wakeup disabled by ACPI
 [316278.048401] ehci-pci :00:1a.0: System wakeup disabled by ACPI
 [316278.048465] ehci-pci :00:1d.0: System wakeup disabled by ACPI
 [316278.048543] PM: noirq resume of devices complete after 15.665 msecs
 ...
 [316278.428114] usb 3-1.1: reset full-speed USB device number 3 using ehci-pci
 [316278.592293] usb 3-1.6: reset high-speed USB device number 6 using ehci-pci
 
 lsusb (after resume)
 sts@nbof08:~$ lsusb
 Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
 Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 003 Device 006: ID 04f2:b2da Chicony Electronics Co., Ltd 
 Bus 003 Device 005: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 
 [ThinkPad]
 Bus 003 Device 004: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF 
 advanced mode)
 Bus 003 Device 007: ID 046d:c521 Logitech, Inc. Cordless Mouse Receiver
 Bus 003 Device 003: ID 17ef:1003 Lenovo Integrated Smart Card Reader
 Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 
 Xorg.0.log (info refering to device attachment, there is no info after resume:
 ...
 [316188.752] (II) config/udev: Adding input device Logitech USB Receiver 
 (/dev/input/event14)
 [316188.752] (**) Logitech USB Receiver: Applying InputClass evdev pointer 
 catchall
 [316188.752] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
 [316188.752] (**) Logitech USB Receiver: always reports core events
 [316188.752] (**) evdev: Logitech USB Receiver: Device: /dev/input/event14
 [316188.752] (--) evdev: Logitech USB Receiver: Vendor 0x46d Product 0xc521
 [316188.752] (--) evdev: Logitech USB Receiver: Found 20 mouse buttons
 [316188.752] (--) evdev: Logitech USB Receiver: Found scroll wheel(s)
 [316188.752] (--) evdev: Logitech USB Receiver: Found relative axes
 [316188.752] (--) evdev: Logitech USB Receiver: Found x and y relative axes
 [316188.752] (II) evdev: Logitech USB Receiver: Configuring as mouse
 [316188.752] (II) evdev: Logitech USB Receiver: Adding scrollwheel support
 [316188.752] (**) evdev: Logitech USB Receiver: YAxisMapping: buttons 4 and 5
 [316188.752] (**) evdev: Logitech USB Receiver: EmulateWheelButton: 4, 
 EmulateWheelInertia: 10, EmulateWheelTimeout: 200
 [316188.752] 

Re: X11/Thinkpad T430: partially drops input from USB devices after resume

2015-03-21 Thread Peter Palfrader
On Sat, 21 Mar 2015, stefan.schwar...@gmx.net wrote:

 I am using my laptop (lenovo T430, debian testing) regularly in a docking 
 station. The dock has a USB keyboard, USB mouse and monitor 
 permanently attached. The laptops suspends from time to time, and _after_ 
 resuming X11 or some other system component 
 the input from USB mouse and keyboard to be dropped/ignored partially. 
 Symptoms are that the cursor does not move with 
 the mouse, however it will start moving again if I click any of the mouse 
 buttons; or that the keyboard input is ignored until 
 I hit some arbitrary keys very rapidly. The USB amnesia starts again if I 
 leave the input device untouched for some seconds.
 The issue will not occur for newly connected devices or if I reconnect 
 mouse/keyboard. The dock is not the issue as I can 
 reproduce the phenomenon with a USB mouse directly connected to the laptop. 

 I have no clue what could be going on...

Probably a USB autosuspend issue.  Do you have laptop-mode-tools
installed?  If yes, can you get rid of it and re-test?

-- 
   |  .''`.   ** Debian **
  Peter Palfrader  | : :' :  The  universal
 http://www.palfrader.org/ | `. `'  Operating System
   |   `-http://www.debian.org/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150321074954.gh18...@anguilla.noreply.org



X11/Thinkpad T430: partially drops input from USB devices after resume

2015-03-20 Thread stefan.schwarzer
I am using my laptop (lenovo T430, debian testing) regularly in a docking 
station. The dock has a USB keyboard, USB mouse and monitor 
permanently attached. The laptops suspends from time to time, and _after_ 
resuming X11 or some other system component 
the input from USB mouse and keyboard to be dropped/ignored partially. Symptoms 
are that the cursor does not move with 
the mouse, however it will start moving again if I click any of the mouse 
buttons; or that the keyboard input is ignored until 
I hit some arbitrary keys very rapidly. The USB amnesia starts again if I leave 
the input device untouched for some seconds.
The issue will not occur for newly connected devices or if I reconnect 
mouse/keyboard. The dock is not the issue as I can 
reproduce the phenomenon with a USB mouse directly connected to the laptop. 

I am looking for ways to correctly diagnose things to file a bug (against which 
package: xorg-input, kernel/driver, ...).

dmesg shows on device attachment/boot, e.g. for a cordless USB mouse:
[316267.291416] usb 3-1.2: new low-speed USB device number 7 using ehci-pci
[316267.390581] usb 3-1.2: New USB device found, idVendor=046d, idProduct=c521
[316267.390588] usb 3-1.2: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[316267.390591] usb 3-1.2: Product: USB Receiver
[316267.390593] usb 3-1.2: Manufacturer: Logitech
[316267.397463] input: Logitech USB Receiver as 
/devices/pci:00/:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C521.002D/input/input60
[316267.397850] hid-generic 0003:046D:C521.002D: input,hidraw0: USB HID v1.11 
Mouse [Logitech USB Receiver] on usb-:00:1a.0-1.2/input0
[316267.405442] input: Logitech USB Receiver as 
/devices/pci:00/:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.1/0003:046D:C521.002E/input/input61
[316267.406232] hid-generic 0003:046D:C521.002E: input,hiddev0,hidraw1: USB HID 
v1.11 Device [Logitech USB Receiver] on usb-:00:1a.0-1.2/input1

on wakeup (all USB related messages)
[316278.048335] xhci_hcd :00:14.0: System wakeup disabled by ACPI
[316278.048401] ehci-pci :00:1a.0: System wakeup disabled by ACPI
[316278.048465] ehci-pci :00:1d.0: System wakeup disabled by ACPI
[316278.048543] PM: noirq resume of devices complete after 15.665 msecs
...
[316278.428114] usb 3-1.1: reset full-speed USB device number 3 using ehci-pci
[316278.592293] usb 3-1.6: reset high-speed USB device number 6 using ehci-pci

lsusb (after resume)
sts@nbof08:~$ lsusb
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 006: ID 04f2:b2da Chicony Electronics Co., Ltd 
Bus 003 Device 005: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 
[ThinkPad]
Bus 003 Device 004: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF 
advanced mode)
Bus 003 Device 007: ID 046d:c521 Logitech, Inc. Cordless Mouse Receiver
Bus 003 Device 003: ID 17ef:1003 Lenovo Integrated Smart Card Reader
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Xorg.0.log (info refering to device attachment, there is no info after resume:
...
[316188.752] (II) config/udev: Adding input device Logitech USB Receiver 
(/dev/input/event14)
[316188.752] (**) Logitech USB Receiver: Applying InputClass evdev pointer 
catchall
[316188.752] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
[316188.752] (**) Logitech USB Receiver: always reports core events
[316188.752] (**) evdev: Logitech USB Receiver: Device: /dev/input/event14
[316188.752] (--) evdev: Logitech USB Receiver: Vendor 0x46d Product 0xc521
[316188.752] (--) evdev: Logitech USB Receiver: Found 20 mouse buttons
[316188.752] (--) evdev: Logitech USB Receiver: Found scroll wheel(s)
[316188.752] (--) evdev: Logitech USB Receiver: Found relative axes
[316188.752] (--) evdev: Logitech USB Receiver: Found x and y relative axes
[316188.752] (II) evdev: Logitech USB Receiver: Configuring as mouse
[316188.752] (II) evdev: Logitech USB Receiver: Adding scrollwheel support
[316188.752] (**) evdev: Logitech USB Receiver: YAxisMapping: buttons 4 and 5
[316188.752] (**) evdev: Logitech USB Receiver: EmulateWheelButton: 4, 
EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[316188.752] (**) Option config_info 
udev:/sys/devices/pci:00/:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C521.002D/input/inpu
t60/event14
[316188.752] (II) evdev: Logitech USB Receiver: initialized for relative axes.
[316188.752] (**) Logitech USB Receiver: (accel) keeping acceleration scheme 1
[316188.752] (**) Logitech USB Receiver: (accel) acceleration profile 0
[316188.752] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[316188.752] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
[316188.753] (II) config/udev: Adding