mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Fix USB autosuspend causing peripheral disconnection issues (#906)
* Fix USB autosuspend causing peripheral disconnection issues Add configuration to disable USB autosuspend by setting usbcore.autosuspend=-1 in modprobe.d configuration. This prevents USB devices from being automatically suspended which can cause keyboards, mice, and other peripherals to disconnect unexpectedly. * Add migration to apply autosuspend to existing systems --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
6
install/config/usb-autosuspend.sh
Executable file
6
install/config/usb-autosuspend.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Disable USB autosuspend to prevent peripheral disconnection issues
|
||||
if [[ ! -f /etc/modprobe.d/disable-usb-autosuspend.conf ]]; then
|
||||
echo "options usbcore autosuspend=-1" | sudo tee /etc/modprobe.d/disable-usb-autosuspend.conf
|
||||
fi
|
||||
Reference in New Issue
Block a user