You are not logged in.

#1 2024-12-10 11:41:33

dtexetd
Member
Registered: 2024-09-25
Posts: 7

USB devices suspend

My USB devices suspend after a while, I need to restart the system in order for them to work again, I've seen this behavior in AC so far

I have a Asus vivobook 15 laptop. I've tried installing the laptop mode tools, check xfce power tools

I've also tried some of the udev rules provided here:

https://wiki.archlinux.org/title/Power_ … utosuspend

Replugging also doesn't work, nor log out

If you have something to help me solve this issue, let me know, thx in advance

Offline

#2 2024-12-10 15:26:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,153

Re: USB devices suspend

What USB devices, what makes you sure it's the autosuspend and do you use any power management tools like TLP etc?
Also post your udev rule and check the actual autosuspend status for the device in question when this happens.

'cause 

Replugging also doesn't work, nor log out

doesn't sound like it's the autosuspend at all.
Maybe elaborate on the symptoms and if its input devices, check them w/ evtest.

Offline

#3 2024-12-10 16:11:03

dtexetd
Member
Registered: 2024-09-25
Posts: 7

Re: USB devices suspend

seth wrote:

What USB devices, what makes you sure it's the autosuspend and do you use any power management tools like TLP etc?
Also post your udev rule and check the actual autosuspend status for the device in question when this happens.

'cause 

Replugging also doesn't work, nor log out

doesn't sound like it's the autosuspend at all.
Maybe elaborate on the symptoms and if its input devices, check them w/ evtest.


It's every USB port that gets down

It's more of a guess that it's the auto suspend. I've search online that people may tend to have this problem (but thx for clarification)

I have laptop-mode-tools for power management

99-laptop-mode.rules

ACTION=="change", SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="|AC|ACAD|ADP*", RUN+="lmt-udev auto"
ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="lmt-udev auto"
ACTION=="add", SUBSYSTEM=="usb", RUN+="lmt-udev force"

# Run a particular module only
#ACTION=="add", SUBSYSTEM=="usb", RUN+="lmt-udev force modules=runtime-pm devices=%k"

Offline

#4 2024-12-10 16:18:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,153

Re: USB devices suspend

I have laptop-mode-tools for power management

You'll have to configure the usb autosuspend behavior there, it'll steamroll over your local udev rules or kernel parameters.

For a brief test, just completely disable LMT and see whether the issue remains.

Also take a close look at the USB devices you have - eg. I've a dvb tuner and if I plug that into a "weak" usb 2.0 port, it'll initially work but at some point starve and completely thrash and screw the entire usb stack. It however causes no problems in a stronger usb 2.0 port (they're both on the same hub but one seems to get more current) or usb3, there's no problem with it whatsoever.

Eg. wifi dongles and HDDs (or external optical drives) are notoriously power demanding.

Offline

Board footer

Powered by FluxBB