Ubuntu 14.04与联想S20-30有一个很长的问题:在恢复暂停会话后,有些事情会破坏:
答案 0 :(得分:1)
这是关于这个主题的许多不同答案(来自堆栈和其他答案)的摘要,这些答案对我来说始终如一:
#!/bin/bash for I in $(ls /sys/bus/pci/drivers/xhci_hcd/|grep : ) ; do echo $I sudo echo $I > /sys/bus/pci/drivers/xhci_hcd/unbind sudo echo $I > /sys/bus/pci/drivers/xhci_hcd/bind done
#!/bin/bash nmcli nm sleep false
#!/bin/bash pulseaudio -k ; sudo modprobe -fr snd_hda_intel; sudo modprobe snd-hda-intel
这解决了重启时出现的常见消息:
modprobe: FATAL: Module snd_hda_intel is in use.
答案 1 :(得分:0)
将IljaBek的答案改编成自动化答案。将以下脚本放在名为:
的新文件中 /etc/pm/sleep.d/20_usb_unbind_bind
#!/bin/sh
# Action script to ubind then bind USB devices after sleep
#
case "${1}" in
hibernate)
# nothing
;;
resume|thaw)
for I in $(ls /sys/bus/pci/drivers/xhci_hcd/|grep : ) ; do
echo $I > /sys/bus/pci/drivers/xhci_hcd/unbind
echo $I > /sys/bus/pci/drivers/xhci_hcd/bind
done
;;
esac
使用sudo chmod 755 /etc/pm/sleep.d/20_usb_unbind_bind