omarchy/install/config/hardware/usb-autosuspend.sh
2025-08-25 11:09:15 +02:00

6 lines
245 B
Bash
Executable File

#!/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