cat << 'EOF' | sudo tee /lib/systemd/system-sleep/restart_sound #!/bin/sh case $1 in post) AUDIO_DEVICE_ID=$(lspci | grep Audio | awk '/^[0]*:[0-9a-f]*\.[0-9]/ {print $1}') echo 1 > /sys/bus/pci/devices/0000:${AUDIO_DEVICE_ID}/remove sleep 1 echo 1 > /sys/bus/pci/rescan esac EOF sudo chmod +x /lib/systemd/system-sleep/restart_sound
直接全部复制粘贴到终端执行即可。
有用
实用
多发
Popular Ranking
Popular Events
直接全部复制粘贴到终端执行即可。