This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# 此脚本修复archlinux中由于usb3导致的挂起黑屏问题 | |
# | |
# 1. put in /lib/systemd/system-sleep/system-sleep-fix-usb3.sh | |
# 2. chmod a+x /lib/systemd/system-sleep/system-sleep-fix-usb3.sh | |
if [ "${1}" == "pre" ]; then | |
# Do the thing you want before suspend here, e.g.: | |
echo "Unload xhci_pci module before suspending at $(date)..." > /tmp/systemd_suspend_test |