You are not logged in.

#1 2022-01-02 15:51:12

Hazzl
Member
From: Germany
Registered: 2012-10-04
Posts: 5

Lenovo E485 USB not working on battery (AC ok)

Hi there,

the USB-ports on my Lenovo Thinkpad E485 don't work when I'm on battery, while they work perfectly when on AC. The issue is present with older kernels as well as with up-to-date. 5.15 as well as linux-lts. Booting on battery I find the following in the dmesg:

[    0.337066] platform USBC000:00: failed to claim resource 0: [mem 0x9cf7d8c6-0x9cf7e8c5]
[    0.337073] acpi USBC000:00: platform device creation failed: -16

[    1.076210] xhci_hcd 0000:05:00.3: xHCI Host Controller
[    1.076222] xhci_hcd 0000:05:00.3: new USB bus registered, assigned bus number 1
[    1.076465] xhci_hcd 0000:05:00.3: hcc params 0x0270ffe5 hci version 0x110 quirks 0x0000000840000410
[    1.077784] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.077787] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.077790] usb usb1: Product: xHCI Host Controller
[    1.077792] usb usb1: Manufacturer: Linux 5.15.12-arch1-1 xhci-hcd
[    1.077793] usb usb1: SerialNumber: 0000:05:00.3
[    1.077985] hub 1-0:1.0: USB hub found
[    1.077998] hub 1-0:1.0: 4 ports detected
[    1.078660] xhci_hcd 0000:05:00.3: xHCI Host Controller
[    1.078667] xhci_hcd 0000:05:00.3: new USB bus registered, assigned bus number 2
[    1.078671] xhci_hcd 0000:05:00.3: Host supports USB 3.1 Enhanced SuperSpeed
[    1.078713] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.078744] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    1.078747] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.078749] usb usb2: Product: xHCI Host Controller
[    1.078750] usb usb2: Manufacturer: Linux 5.15.12-arch1-1 xhci-hcd
[    1.078752] usb usb2: SerialNumber: 0000:05:00.3
[    1.078994] hub 2-0:1.0: USB hub found
[    1.079006] hub 2-0:1.0: 4 ports detected
[    1.079703] xhci_hcd 0000:05:00.4: xHCI Host Controller
[    1.079709] xhci_hcd 0000:05:00.4: new USB bus registered, assigned bus number 3
[    1.079910] xhci_hcd 0000:05:00.4: hcc params 0x0260ffe5 hci version 0x110 quirks 0x0000000840000410
[    1.081115] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.081119] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.081120] usb usb3: Product: xHCI Host Controller
[    1.081122] usb usb3: Manufacturer: Linux 5.15.12-arch1-1 xhci-hcd
[    1.081124] usb usb3: SerialNumber: 0000:05:00.4
[    1.081259] hub 3-0:1.0: USB hub found
[    1.081268] hub 3-0:1.0: 2 ports detected
[    1.081509] xhci_hcd 0000:05:00.4: xHCI Host Controller
[    1.081513] xhci_hcd 0000:05:00.4: new USB bus registered, assigned bus number 4
[    1.081516] xhci_hcd 0000:05:00.4: Host supports USB 3.1 Enhanced SuperSpeed
[    1.081562] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.081588] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    1.081590] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.081592] usb usb4: Product: xHCI Host Controller
[    1.081593] usb usb4: Manufacturer: Linux 5.15.12-arch1-1 xhci-hcd
[    1.081594] usb usb4: SerialNumber: 0000:05:00.4
[    1.081709] hub 4-0:1.0: USB hub found
[    1.081717] hub 4-0:1.0: 1 port detected

[    1.332558] usb 3-1: new full-speed USB device number 2 using xhci_hcd
[    1.491711] usb 3-1: New USB device found, idVendor=0cf3, idProduct=e500, bcdDevice= 0.01
[    1.491721] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[    1.619178] usb 3-2: new high-speed USB device number 3 using xhci_hcd
[    1.792639] usb 3-2: New USB device found, idVendor=04f2, idProduct=b604, bcd
Device= 0.27
[    1.792647] usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[    1.792648] usb 3-2: Product: Integrated Camera
[    1.792651] usb 3-2: Manufacturer: Chicony Electronics Co.,Ltd.
[    1.792653] usb 3-2: SerialNumber: 0001

[    9.139192] xhci_hcd 0000:05:00.4: xHCI host not responding to stop endpoint command.
[    9.139199] xhci_hcd 0000:05:00.4: USBSTS: HCHalted HSE
[    9.139221] xhci_hcd 0000:05:00.4: xHCI host controller not responding, assume dead
[    9.139233] xhci_hcd 0000:05:00.4: HC died; cleaning up
[    9.139272] usb 3-1: USB disconnect, device number 2
[    9.139744] usb 3-1: Failed to access otp area (-108)
[    9.140695] usb 3-2: USB disconnect, device number 3

Any suggestions how I can fix / avoid this issue?

Best Regards
Hazzl

Offline

#2 2022-01-03 17:42:23

anarki@buttereblume
Member
Registered: 2015-12-29
Posts: 64

Re: Lenovo E485 USB not working on battery (AC ok)

I wonder if it's related to some configuration done during boot. Does USB work after booting with AC connected, then disconnecting AC and at last plugging in the USB device?

Also worth trying, to make sure there is no misconfigured module: Boot from an Arch install medium.

Offline

#3 2022-01-09 18:01:28

Hazzl
Member
From: Germany
Registered: 2012-10-04
Posts: 5

Re: Lenovo E485 USB not working on battery (AC ok)

Thank you anarki,

this was the nudge I needed. Turns out my problem was in TLP-configuration. Not a hardware issue at all.

Thanks

Offline

#4 2022-01-10 01:14:54

mrichetta
Member
Registered: 2021-10-31
Posts: 2

Re: Lenovo E485 USB not working on battery (AC ok)

Hazzl wrote:

this was the nudge I needed. Turns out my problem was in TLP-configuration. Not a hardware issue at all.

Hi! I think I have the same problem.

If I boot on AC, I can use the USB mouse and keyboard.
After unplugging it, devices are no longer recognizable.

Laptop: Lenovo ideapad 330S-15ARR
Kernel: 5.15.13-arch1-1

I tried setting USB_AUTOSUSPEND=0 on /etc/tlp.conf but it still happens as before.

What configuration solved your issue?

Thanks!

tlp-stat on AC
+++ USB
Autosuspend       = disabled
Device allowlist  = (not configured)
Device denylist   = 046d:c534
Exclude audio     = enabled
Exclude bluetooth = disabled
Exclude phones    = disabled
Exclude printers  = enabled
Exclude WWAN      = disabled

Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 — Linux Foundation 3.0 root hub (hub)
Bus 003 Device 003 ID 0cf3:e500 control = auto, autosuspend_delay_ms = 2000 — Qualcomm Atheros Communications (btusb)
Bus 003 Device 002 ID 04f2:b61e control = auto, autosuspend_delay_ms = 2000 — Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 — Linux Foundation 2.0 root hub (hub)
Bus 002 Device 002 ID 0bda:0409 control = auto, autosuspend_delay_ms =    0 — Realtek Semiconductor Corp. 4-Port USB 3.0 Hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 — Linux Foundation 3.0 root hub (hub)
Bus 001 Device 004 ID 18a5:0245 control = on,   autosuspend_delay_ms = 2000 — Verbatim, Ltd Store’n’Stay (usb-storage)
Bus 001 Device 003 ID 0bda:5409 control = auto, autosuspend_delay_ms =    0 — Realtek Semiconductor Corp. 4-Port USB 2.0 Hub (hub)
Bus 001 Device 002 ID 046d:c534 control = on,   autosuspend_delay_ms = 2000 — Logitech, Inc. Unifying Receiver (usbhid)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 — Linux Foundation 2.0 root hub (hub)

Offline

#5 2022-03-06 22:42:28

Iamfrightenedofyou
Member
Registered: 2015-05-15
Posts: 1

Re: Lenovo E485 USB not working on battery (AC ok)

What I found was that it was an ahci driver and tlp issue for me, after changing the USB Auto-suspend didn't work. https://github.com/linrunner/TLP/issues/587

The workaround was to remove values from the AHCI_RUNTIME configurations on the tlp config

AHCI_RUNTIME_PM_ON_AC= 
AHCI_RUNTIME_PM_ON_BAT=

I found this thread first, so I wanted to report that for anyone else searching to try.

mrichetta wrote:
Hazzl wrote:

this was the nudge I needed. Turns out my problem was in TLP-configuration. Not a hardware issue at all.

Hi! I think I have the same problem.

If I boot on AC, I can use the USB mouse and keyboard.
After unplugging it, devices are no longer recognizable.

Laptop: Lenovo ideapad 330S-15ARR
Kernel: 5.15.13-arch1-1

I tried setting USB_AUTOSUSPEND=0 on /etc/tlp.conf but it still happens as before.

What configuration solved your issue?

Thanks!

Offline

Board footer

Powered by FluxBB