You are not logged in.
I own a Lenovo Ideapad Y510P.
I have trouble suspending. If I press Fn-F1 (the button with the sleep symbol), then my screen turns black, but my comptuter doesn't suspend (fan is still quite active and I can hear the harddrives spinning up and down). After I get the screen to light up again, I run systemctl --failed and it says the suspend.service failed.
[raphael@raphael ~]$ systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-suspend.service loaded failed failed Suspend
Without belaboring my entire experiment to come to this conclusion, I think suspension fails when I have Laptop Mode installed and start my computer with the mouse plugged in. If I have Laptop Mode uninstalled and have my mouse plugged in, then it successfully suspends. If I just install Laptop Mode and then plug in my mouse, then it still suspends. If I have Laptop Mode, start my computer with my mouse plugged in, try to suspend my computer only to have it fail, then force a restart without the mouse plugged in, then I still can't successfully suspend until I uninstall Laptop Mode.
I know there are a number of recent forum threads about suspending troubles, but it doesn't look like any fit my particular description of troubles.
Thanks in advance for any help. Please let me know if I can provide any more information.
Offline
What happens if you add your mouse to the USB modules that shouldn't have autosuspend applied to them?
Offline
This is the result of lsusb:
Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Then I modify /etc/laptop-mode/conf.d/runtime-pm.conf like so
# The list of Device IDs that should not use autosuspend. Use system commands or
# look into sysfs to find out the IDs of your devices.
# Example: AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST="046d:c025 0123:abcd"
AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST="046d:c52f"
But still, I have the same error.
When I reinstall Laptop Mode and have my mouse plugged in, my computer struggles to shut down.
Here is an the error message: usb 2-7: device descriptor read/64, error -110. It likely has something to do with my troubles.
https://www.dropbox.com/s/cznisdo5k7fd3 … d.jpg?dl=0
I also tried dmesg | grep usb. I see several errors, but don't know how to debug.
[ 0.751127] usbcore: registered new interface driver usbfs
[ 0.751127] usbcore: registered new interface driver hub
[ 0.751131] usbcore: registered new device driver usb
[ 5.917471] pci 0000:00:14.0: quirk_usb_early_handoff+0x0/0x6c6 took 4912301 usecs
[ 5.933272] pci 0000:00:1a.0: quirk_usb_early_handoff+0x0/0x6c6 took 15420 usecs
[ 5.949936] pci 0000:00:1d.0: quirk_usb_early_handoff+0x0/0x6c6 took 16257 usecs
[ 6.087580] usbcore: registered new interface driver usbserial_generic
[ 6.087584] usbserial: USB Serial support registered for generic
[ 6.633249] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 6.633251] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.633253] usb usb1: Product: EHCI Host Controller
[ 6.633254] usb usb1: Manufacturer: Linux 4.19.12-arch1-1-ARCH ehci_hcd
[ 6.633256] usb usb1: SerialNumber: 0000:00:1a.0
[ 6.635037] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 6.635039] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.635040] usb usb2: Product: xHCI Host Controller
[ 6.635041] usb usb2: Manufacturer: Linux 4.19.12-arch1-1-ARCH xhci-hcd
[ 6.635042] usb usb2: SerialNumber: 0000:00:14.0
[ 6.637481] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[ 6.637483] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.637484] usb usb4: Product: xHCI Host Controller
[ 6.637485] usb usb4: Manufacturer: Linux 4.19.12-arch1-1-ARCH xhci-hcd
[ 6.637486] usb usb4: SerialNumber: 0000:00:14.0
[ 6.653290] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 6.653292] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.653293] usb usb3: Product: EHCI Host Controller
[ 6.653294] usb usb3: Manufacturer: Linux 4.19.12-arch1-1-ARCH ehci_hcd
[ 6.653296] usb usb3: SerialNumber: 0000:00:1d.0
[ 6.963234] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 6.969892] usb 2-1: new high-speed USB device number 2 using xhci_hcd
[ 6.983223] usb 3-1: new high-speed USB device number 2 using ehci-pci
[ 7.110601] usb 1-1: New USB device found, idVendor=8087, idProduct=8008, bcdDevice= 0.05
[ 7.110605] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 7.130625] usb 3-1: New USB device found, idVendor=8087, idProduct=8000, bcdDevice= 0.05
[ 7.130630] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 7.182548] usb 2-1: New USB device found, idVendor=174f, idProduct=1474, bcdDevice= 8.27
[ 7.182552] usb 2-1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 7.182555] usb 2-1: Product: Lenovo EasyCamera
[ 7.182557] usb 2-1: Manufacturer: Generic
[ 7.182560] usb 2-1: SerialNumber: 200901010001
[ 7.309946] usb 2-2: new full-speed USB device number 3 using xhci_hcd
[ 7.452800] usb 2-2: New USB device found, idVendor=046d, idProduct=c52f, bcdDevice=30.00
[ 7.452804] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7.452807] usb 2-2: Product: USB Receiver
[ 7.452810] usb 2-2: Manufacturer: Logitech
[ 7.466729] usbcore: registered new interface driver usbhid
[ 7.466730] usbhid: USB HID core driver
[ 7.576590] usb 2-7: new full-speed USB device number 4 using xhci_hcd
[ 23.016590] usb 2-7: device descriptor read/64, error -110
[ 38.589631] usb 2-7: device descriptor read/64, error -110
[ 38.819503] usb 2-7: new full-speed USB device number 5 using xhci_hcd
[ 54.376077] usb 2-7: device descriptor read/64, error -110
[ 69.949214] usb 2-7: device descriptor read/64, error -110
[ 70.055846] usb usb2-port7: attempt power cycle
[ 70.699139] usb 2-7: new full-speed USB device number 6 using xhci_hcd
[ 76.005911] usb 2-7: Device not responding to setup address.
[ 76.212397] usb 2-7: device not accepting address 6, error -71
[ 76.335741] usb 2-7: new full-speed USB device number 7 using xhci_hcd
[ 81.552374] usb 2-7: Device not responding to setup address.
[ 81.758971] usb 2-7: device not accepting address 7, error -71
[ 81.759032] usb usb2-port7: unable to enumerate USB device
[ 82.754526] input: Lenovo EasyCamera: Lenovo EasyC as /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/input/input18
[ 82.754619] usbcore: registered new interface driver uvcvideo
[ 82.761522] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/0003:046D:C52F.0001/input/input19
[ 82.762004] hid-generic 0003:046D:C52F.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-2/input0
[ 82.762247] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.1/0003:046D:C52F.0002/input/input20
[ 82.819091] hid-generic 0003:046D:C52F.0002: input,hiddev0,hidraw1: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-2/input1
[ 169.129020] dpm_run_callback(): usb_dev_suspend+0x0/0x10 returns -16
[ 169.129024] PM: Device usb2 failed to suspend async: error -16
[ 170.731118] usb 2-7: new full-speed USB device number 8 using xhci_hcd
[ 186.214325] usb 2-7: device descriptor read/64, error -110
[ 191.737959] workqueue usb_hub_wq: flags=0x4
[ 201.787461] usb 2-7: device descriptor read/64, error -110
[ 202.017363] usb 2-7: new full-speed USB device number 9 using xhci_hcd
[ 217.573872] usb 2-7: device descriptor read/64, error -110
[ 233.146963] usb 2-7: device descriptor read/64, error -110
[ 233.253753] usb usb2-port7: attempt power cycle
[ 233.896965] usb 2-7: new full-speed USB device number 10 using xhci_hcd
[ 239.203722] usb 2-7: Device not responding to setup address.
[ 239.410238] usb 2-7: device not accepting address 10, error -71
[ 239.533565] usb 2-7: new full-speed USB device number 11 using xhci_hcd
[ 244.750325] usb 2-7: Device not responding to setup address.
[ 244.956839] usb 2-7: device not accepting address 11, error -71
[ 244.956932] usb usb2-port7: unable to enumerate USB device
Offline
I can confirm that this problem persists with Linux kernel 4.20.0-arch1-1-ARCH.
Offline
The same problem is here on Acer Aspire ES-15.
Offline
Same problem on a 2017 MacBook Air.
Offline
Less "me too's", if you want this resolved figure out if this really is laptop mode tools specific, i.e. if you use TLP or powertop instead, which essentially modifies these same knobs and the issue doesn't happen there you've found something that isn't the kernel nor it's general power saving, and you should report a bug to the LMT developers.
Last edited by V1del (2019-01-08 08:45:25)
Offline
Hi V1del, you're right. Unfortunately right know I don't have a lot of time to run tests, but maybe some context might help narrow the search until we know who to report the bug to. I'm not running TLP but I run powertop. Also, I don't have any peripherals connected, not mouses or anything else. I'll subscribe to the topic and report back when I have the time to run some experiments.
Offline
Then you already have a different issue than what the topic was about, and should hence open up your own thread and post logs and journals from your own system.
Offline
I am having the same problem with suspend, my laptop is a MacBookPro11,1
Here is how I solved this issue:
lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 05ac:0259 Apple, Inc. Internal Keyboard/Trackpad
Bus 001 Device 006: ID 05ac:8289 Apple, Inc.
Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Blacklist usb device 002 on file
/etc/default/tlp
# Set to 0 to disable, 1 to enable USB autosuspend feature.
USB_AUTOSUSPEND=1
# Exclude listed devices from USB autosuspend (separate with spaces).
# Use lsusb to get the ids.
# Note: input devices (usbhid) are excluded automatically
USB_BLACKLIST="0a5c:4500 05ac:8406 1d6b:0003"
And set XHC1 to disable for
/proc/acpi/wakeup
via
/etc/udev/rules.d/90-xhc_sleep.rules
SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"
After reboot
Device S-state Status Sysfs node
P0P2 S3 *disabled
EC S4 *disabled platform:PNP0C09:00
HDEF S3 *disabled pci:0000:00:1b.0
RP01 S3 *enabled pci:0000:00:1c.0
RP02 S3 *enabled pci:0000:00:1c.1
RP03 S3 *enabled pci:0000:00:1c.2
ARPT S4 *disabled pci:0000:03:00.0
RP05 S3 *enabled pci:0000:00:1c.4
RP06 S3 *enabled pci:0000:00:1c.5
XHC1 S3 *disabled pci:0000:00:14.0
ADP1 S4 *disabled platform:ACPI0003:00
LID0 S4 *enabled platform:PNP0C0D:00
No more problems to suspend
Last edited by waltervargas (2019-01-09 00:22:33)
Offline
False positive, Forget about it, is still not working:
kernel: PM: Syncing filesystems ... done.
kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
kernel: OOM killer disabled.
kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
kernel: printk: Suspending console(s) (use no_console_suspend to debug)
kernel: dpm_run_callback(): usb_dev_suspend+0x0/0x10 returns -16
kernel: PM: Device usb2 failed to suspend async: error -16
Last edited by waltervargas (2019-01-09 07:52:13)
Offline
In my case, the problem is related to the WiFi.
If I stop the network before calling suspend, it works.
Offline