Page MenuHomeVyOS Platform

Disable USB autosuspend
Closed, ResolvedPublicFEATURE REQUEST

Description

Suggestion from the VyOS-subreddit.

Disabling USB autosuspend can be done by adding this line to /config/scripts/vyos-preconfig-bootup.script (because it doesnt seem to be possible to use sysctl for that):

# Disable USB autosuspend
echo -1 > /sys/module/usbcore/parameters/autosuspend

or through udev as described in:

https://wiki.archlinux.org/title/Power_management#USB_autosuspend

The above (disable USB autosuspend) could either be done "static" (as a default by VyOS) or as an option through config something like (where the default could be "disable"):

set system option usb-autosuspend disable

Ref: https://old.reddit.com/r/vyos/comments/196vywv/how_do_i_disable_usb_autosuspend/

I have vyos router setup on my lab network and I am using a usb ethernet (realtek r8152) and it keeps disconnecting and coming back without being able to bring back up the interface.

Is there a way to edit /etc/default/grub (I want to add usbcore.autosuspend=-1, but I can't update grub) and have it persist or any way to automatically bring up interface after it disconnects? I am very new to VyOs and used opnsense in the past (bsd hates realtek and hates usb ethernet even more) but found better performance with VyOs.

Thanks for any help

Details

Version
-
Is it a breaking change?
Behavior change
Issue type
Feature (new functionality)

Event Timeline

Viacheslav triaged this task as Normal priority.Jan 20 2024, 2:14 PM
HollyGurza changed the task status from Open to In progress.Jun 18 2024, 7:25 AM
HollyGurza claimed this task.
HollyGurza moved this task from Open to In Progress on the VyOS 1.5 Circinus board.
HollyGurza moved this task from In Progress to Finished on the VyOS 1.5 Circinus board.