Page 1 of 1

usb powersaving mode?

PostPosted: Thu Mar 07, 2024 7:37 pm
by matt_max
Hi guys,
After completing the last update (18.3) my NAS got some odd behavior. The front USB port switches off after a while. If I reboot NAS port works for a while. There is nothing in dmesg:
Code: Select all
[   23.906168] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   24.107197] usb 1-1: New USB device found, idVendor=0e8d, idProduct=201c
[   24.116546] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   24.123665] usb 1-1: Product: Retroid Pocket 4 Pro
[   24.144170] usb 1-1: Manufacturer: Moorechip
[   24.156201] usb 1-1: SerialNumber: JY202401020401307
[  359.181722] usb 1-1: USB disconnect, device number 2

I used it mainly to charge devices like phone on retroconsole. Now it is impossible.
echo "-1" > /sys/module/usbcore/parameters/autosuspend - do nothing
echo "on" > /sys/bus/usb/devices/usb1/power/control - nothing
Some kind of autosuspend? :thinking

Re: usb powersaving mode?

PostPosted: Thu Mar 07, 2024 9:49 pm
by fvdw
I need to check but if I remember well no changes were made in the kernel wrt suspend usb power. I will double check

Re: usb powersaving mode?

PostPosted: Thu Mar 07, 2024 10:03 pm
by fvdw
checked kernel config but nothing changed on suspend kernel parameters. I will try if I can reproduce your issue.
After how many minutes does the power turns off ?

Re: usb powersaving mode?

PostPosted: Thu Mar 07, 2024 10:52 pm
by fvdw
I could not reproduce your behavior. From what I read suspend may be initiated by the usb device itself ?? (not sure about that)
I connected a mobile phone to the port to charge it and still charging after half hour aloso power remained on when the hard disk entered standby mode :dontknow

Re: usb powersaving mode?

PostPosted: Fri Mar 08, 2024 9:04 am
by Jocko
Hi

18.3 uses a new kernel image so I think it is worth to try to check if you still have the same behavior with the previous kernel version.

Then do
Code: Select all
plugout download-fw 5966
check if you have the same md5sum (2f791aece45389418973c103a88e64fb)
Code: Select all
md5sum /tmp/UIMAGE-414133-KIRKWOOD-1


And only if it is same value, overwrite the new kernel image on sda6
Code: Select all
dd if=/tmp/UIMAGE-414133-KIRKWOOD-1 of=/dev/sda6

Reboot only if you have no error with dd command.