[ Content contribution] 笔记本休眠后唤醒无声音的解决方法 Resolved
Tofloor
poster avatar
neko
deepin
Ecological co-builder
2023-09-25 04:23
Author
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

直接全部复制粘贴到终端执行即可。

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-09-25 04:27
#1

like

Reply View the author
dgmenghuan
deepin
2023-09-25 16:33
#2

tail

Reply View the author
yanjuner
Super Moderator
2023-09-25 22:28
#3

有用

实用

多发

Reply View the author