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

Strange Mouse Issue after Resuming from Suspend



Hello,

I have here a Debian Stretch system with a Logitech RX300 mouse (changing the 
mouse does not help)

root@blackbox:~# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 046d:c040 Logitech, Inc. Corded Tilt-Wheel Mouse
Bus 006 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 002: ID 046a:b090 Cherry GmbH 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@blackbox:~# 


and an AMD system

root@blackbox:~# lspci 
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Kabini [Radeon HD 8400 / R3 Series]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP 
Audio
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Function 0
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Functions 5:1
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI 
Controller (rev 01)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA 
Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI 
Controller (rev 39)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI 
Controller (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI 
Controller (rev 39)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI 
Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 
3a)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller 
(rev 02)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor 
Function 5
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 06)
root@blackbox:~# 

After a resume on suspend the USB mouse is gone (at least once also the 
keyboard), lsusb does not list it anymore. Even replugging the mouse does not 
bring it back (!). 

root@blackbox:~# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 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 002: ID 046a:b090 Cherry GmbH 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@blackbox:~# 

dmesg output has at least some traces, e.g.

PM: Device 6-2 failed to resume async: error -22

here is the full dmesg output for the suspend/resume cycle:

[ 1276.214876] usb 6-2: USB disconnect, device number 2
[ 1280.550613] usb 6-2: new low-speed USB device number 3 using ohci-pci
[ 1280.753814] usb 6-2: New USB device found, idVendor=046d, idProduct=c05b
[ 1280.753821] usb 6-2: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[ 1280.753824] usb 6-2: Product: USB Optical Mouse
[ 1280.753827] usb 6-2: Manufacturer: Logitech
[ 1280.761623] input: Logitech USB Optical Mouse as /devices/
pci0000:00/0000:00:13.0/usb6/6-2/6-2:1.0/0003:046D:C05B.0004/input/input12
[ 1280.761978] hid-generic 0003:046D:C05B.0004: input,hidraw0: USB HID v1.11 
Mouse [Logitech USB Optical Mouse] on usb-0000:00:13.0-2/input0
[ 1328.365975] PM: suspend entry (deep)
[ 1328.365979] PM: Syncing filesystems ... done.
[ 1328.532151] Freezing user space processes ... (elapsed 0.007 seconds) done.
[ 1328.539259] OOM killer disabled.
[ 1328.539260] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) 
done.
[ 1328.541684] Suspending console(s) (use no_console_suspend to debug)
[ 1328.542837] parport_pc 00:04: disabled
[ 1328.543042] serial 00:03: disabled
[ 1328.562058] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1328.563675] sd 0:0:0:0: [sda] Stopping disk
[ 1328.578140] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 1328.578307] sd 1:0:0:0: [sdb] Stopping disk
[ 1329.345781] ACPI: Preparing to enter system sleep state S3
[ 1329.346668] PM: Saving platform NVS memory
[ 1329.346692] Disabling non-boot CPUs ...
[ 1329.362543] IRQ 37: no longer affine to CPU1
[ 1329.363633] smpboot: CPU 1 is now offline
[ 1329.386425] IRQ 33: no longer affine to CPU2
[ 1329.387447] smpboot: CPU 2 is now offline
[ 1329.410017] IRQ 17: no longer affine to CPU3
[ 1329.410024] IRQ 18: no longer affine to CPU3
[ 1329.410032] IRQ 27: no longer affine to CPU3
[ 1329.411053] smpboot: CPU 3 is now offline
[ 1329.411918] ACPI: Low-level resume complete
[ 1329.411969] PM: Restoring platform NVS memory
[ 1329.412012] LVT offset 0 assigned for vector 0x400
[ 1329.412378] Enabling non-boot CPUs ...
[ 1329.412445] x86: Booting SMP configuration:
[ 1329.412446] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 1329.414938]  cache: parent cpu1 should not be sleeping
[ 1329.415084] microcode: CPU1: patch_level=0x0700010b
[ 1329.415312] CPU1 is up
[ 1329.415359] smpboot: Booting Node 0 Processor 2 APIC 0x2
[ 1329.417843]  cache: parent cpu2 should not be sleeping
[ 1329.417993] microcode: CPU2: patch_level=0x0700010b
[ 1329.418269] CPU2 is up
[ 1329.418313] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 1329.420844]  cache: parent cpu3 should not be sleeping
[ 1329.421006] microcode: CPU3: patch_level=0x0700010b
[ 1329.421277] CPU3 is up
[ 1329.421923] ACPI: Waking up from system sleep state S3
[ 1329.444875] serial 00:03: activated
[ 1329.445654] parport_pc 00:04: activated
[ 1329.449962] sd 0:0:0:0: [sda] Starting disk
[ 1329.449968] sd 1:0:0:0: [sdb] Starting disk
[ 1329.464298] [drm] PCIE GART of 2048M enabled (table at 0x000000000030E000).
[ 1329.464584] radeon 0000:00:01.0: WB enabled
[ 1329.464603] radeon 0000:00:01.0: fence driver on ring 0 use gpu addr 
0x0000000020000c00 and cpu addr 0x00000000bfcd09fc
[ 1329.464605] radeon 0000:00:01.0: fence driver on ring 1 use gpu addr 
0x0000000020000c04 and cpu addr 0x00000000d2386a71
[ 1329.464608] radeon 0000:00:01.0: fence driver on ring 2 use gpu addr 
0x0000000020000c08 and cpu addr 0x0000000000988e82
[ 1329.464610] radeon 0000:00:01.0: fence driver on ring 3 use gpu addr 
0x0000000020000c0c and cpu addr 0x0000000043ba1daf
[ 1329.464613] radeon 0000:00:01.0: fence driver on ring 4 use gpu addr 
0x0000000020000c10 and cpu addr 0x000000003cee180b
[ 1329.465493] radeon 0000:00:01.0: fence driver on ring 5 use gpu addr 
0x0000000000078d30 and cpu addr 0x0000000031333dd0
[ 1329.465837] radeon 0000:00:01.0: fence driver on ring 6 use gpu addr 
0x0000000020000c18 and cpu addr 0x00000000fe919527
[ 1329.465840] radeon 0000:00:01.0: fence driver on ring 7 use gpu addr 
0x0000000020000c1c and cpu addr 0x00000000be5cb582
[ 1329.468224] [drm] ring test on 0 succeeded in 2 usecs
[ 1329.468293] [drm] ring test on 1 succeeded in 2 usecs
[ 1329.468305] [drm] ring test on 2 succeeded in 2 usecs
[ 1329.468524] [drm] ring test on 3 succeeded in 4 usecs
[ 1329.468531] [drm] ring test on 4 succeeded in 4 usecs
[ 1329.514218] [drm] ring test on 5 succeeded in 1 usecs
[ 1329.534084] [drm] UVD initialized successfully.
[ 1329.643258] [drm] ring test on 6 succeeded in 7 usecs
[ 1329.643269] [drm] ring test on 7 succeeded in 3 usecs
[ 1329.643269] [drm] VCE initialized successfully.
[ 1329.643442] [drm] ib test on ring 0 succeeded in 0 usecs
[ 1329.643647] [drm] ib test on ring 1 succeeded in 0 usecs
[ 1329.643820] [drm] ib test on ring 2 succeeded in 0 usecs
[ 1329.643981] [drm] ib test on ring 3 succeeded in 0 usecs
[ 1329.644143] [drm] ib test on ring 4 succeeded in 0 usecs
[ 1329.644924] r8169 0000:01:00.0 enp1s0: link down
[ 1329.846120] ohci-pci 0000:00:13.0: frame counter not updating; disabled
[ 1329.846123] ohci-pci 0000:00:13.0: HC died; cleaning up
[ 1329.870176] usb 3-1: reset low-speed USB device number 2 using ohci-pci
[ 1329.918157] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1329.918385] ata1.00: supports DRM functions and may not be fully accessible
[ 1329.919160] ata1.00: disabling queued TRIM support
[ 1329.920721] ata1.00: supports DRM functions and may not be fully accessible
[ 1329.921231] ata1.00: disabling queued TRIM support
[ 1329.922738] ata1.00: configured for UDMA/133
[ 1330.166241] [drm] ib test on ring 5 succeeded
[ 1330.186925] [drm] ib test on ring 6 succeeded
[ 1330.187617] [drm] ib test on ring 7 succeeded
[ 1332.181421] r8169 0000:01:00.0 enp1s0: link up
[ 1334.677890] dpm_run_callback(): usb_dev_resume+0x0/0x20 [usbcore] returns 
-22
[ 1334.677903] PM: Device 6-2 failed to resume async: error -22
[ 1334.678579] OOM killer enabled.
[ 1334.678580] Restarting tasks ... 
[ 1334.678645] usb 6-2: USB disconnect, device number 3
[ 1334.705744] done.
[ 1334.709918] PM: suspend exit
[ 1339.469858] ata2: softreset failed (device not ready)
[ 1341.025857] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1341.065625] ata2.00: configured for UDMA/133
[ 1341.210459] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[ 1341.343060] r8169 0000:01:00.0 enp1s0: link down
[ 1341.343070] r8169 0000:01:00.0 enp1s0: link down
[ 1341.343241] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[ 1361.942307] r8169 0000:01:00.0 enp1s0: link up
[ 1361.942331] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready
root@blackbox:~# 



When I use pm_test facilities and trigger suspend with "systemctl suspend", 
the problem does not occur even when core is used:

root@blackbox:~# cat /sys/power/pm_test
none [core] processors platform devices freezer
root@blackbox:~# 

Any advice is welcome.

Thanks
Rainer








Reply to: