Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fixed, not solved - Inappropriate USB autosuspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Mon Mar 07, 2022 12:30 am    Post subject: Fixed, not solved - Inappropriate USB autosuspend Reply with quote

Earlier this year I began having problems with my USB auto-suspending quickly, and not waking up. A search later and I added the line
Code:
options usbcore autosuspend=-1

to /etc/modprobe.d/usbcore.conf which fixed it. Today was my first boot of kernel 5.16.12, which I built using the exact same .config as the 5.16.11 which it replaced. The autosuspend problems are back - even with those lines in modprobe.d.

I guess I've got some lines of script I found on the web which might fix it, but those are untested and I'm wondering why this even happened at all.

The fix -
I had re-assembled my system after taking it down for some home improvements. I used a USB-3 hub plugged into a KVM, for beginners. Before the tear-down it was plugged into a regular USB-3 on the back-panel. After the tear-down I saw a jack labeled "USB-3.2" and figured I'd plug into my BEST USB instead. I didn't remember dates exactly, but that's when my troubles started, both with keyboard and a separate problem with USB autosuspend. Re-plugging back into a regular USB-3 and all of my problems went away. I don't know why the USB-3.2 was poison, but it was. That's why I say, "Fixed, not solved".
_________________
.sigs waste space and bandwidth


Last edited by depontius on Sun Mar 13, 2022 11:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Mar 10, 2022 9:59 pm    Post subject: Reply with quote

Do you know Powertop?

Start the program and press 'Tab' to go to the tab 'Tunables'. This tab will show the power state of your hardware devices.

Use the arrow keys to go down to the USB devices. Press 'Space', which will toggle the power state. Powertop will show the command it uses, for example:
Code:
echo 'on'   > '/sys/bus/usb/devices/usb3/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb3/power/control'
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Sun Mar 13, 2022 11:53 pm    Post subject: Reply with quote

mike155 wrote:
Do you know Powertop?

Start the program and press 'Tab' to go to the tab 'Tunables'. This tab will show the power state of your hardware devices.

Use the arrow keys to go down to the USB devices. Press 'Space', which will toggle the power state. Powertop will show the command it uses, for example:
Code:
echo 'on'   > '/sys/bus/usb/devices/usb3/power/control'
echo 'auto' > '/sys/bus/usb/devices/usb3/power/control'


I fired up powertop and all of my USB ports shown are "bad", meaning that they're not autosuspending. But I don't have anything plugged into the USB-3.2 port that was giving me problems, so I don't know what's up there, at the moment.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Mon Mar 14, 2022 11:46 am    Post subject: Reply with quote

Check in dmesg if Linux considere that the usb hub do not have enough power for each usb connector 'not enough power'. When Linux say so it disable some if not all usb connectors of the hub and than you must reenable them through the sysfs.

This mostly happen if you use a usb 2 connector to provide power to the hub, usb 3 and an independant power for the hub are generally sufficiant.
_________________
Paul
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Sat Mar 19, 2022 11:25 am    Post subject: Reply with quote

Logicien wrote:
Check in dmesg if Linux considere that the usb hub do not have enough power for each usb connector 'not enough power'. When Linux say so it disable some if not all usb connectors of the hub and than you must reenable them through the sysfs.

This mostly happen if you use a usb 2 connector to provide power to the hub, usb 3 and an independant power for the hub are generally sufficiant.


I made sure to get a separately powered USB hub, for just that reason.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 477
Location: Flakey Shake & Bake Caliornia, USA

PostPosted: Tue May 03, 2022 10:20 pm    Post subject: Reply with quote

Did you remember to remove the options usbcore autosuspend=-1 from your boot scripts
_________________
AsRock B550 Phantom Gaming 4
128GB 3200 Mhz memory
4x 4TB Sata - 2x 2TB Sata SSD - 4x 450GB SaS - 3x 900GB SaS - 72GB SaS for Boot
LSI 9211-8i in HBA mode for all of the SaS drives
Radeon 6800 (Non XT) for GPU
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum