Hi All,
Having difficulty with fixing suspend/hibernate functions on Acer c720 running Debian sid (Kernel = 3.13-1-amd64).
There are various approaches to fix these functions on chrubuntu, archlinux etc, but not so much for Debian. Have tried various recipes:
From here:
http://blogs.fsfe.org/the_unconventional/
NB: This works for the first time suspend is used, but the mouse freezes the next time "log out" is selected in the applications menu. Can get around that with the keyboard, but There are endless error messages that prevent the machine from ever shutting down cleanly.
from here:
https://plus.google.com/+PedroLarroy/posts/6CgQypQukMa
and from here:
http://www.reddit.com/r/chrubuntu/co...r_c720/ch8eq2o
(The part entitled: "another solution that may work for Debian")
The present set of fixes is as follows:
/etc/rc.local is executable. It looks like this:
=======================================
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sleep 2
echo 93 > /sys/class/backlight/intel_backlight/brightness
echo EHCI > /proc/acpi/wakeup
echo HDEF > /proc/acpi/wakeup
echo XHCI > /proc/acpi/wakeup
echo LID0 > /proc/acpi/wakeup
echo TPAD > /proc/acpi/wakeup
echo TSCR > /proc/acpi/wakeup
exit 0
==========================================
/etc/pm/sleep.d/05_sound is executable. It looks like this:
==========================================
#!/bin/bash
# File: "/etc/pm/sleep.d/05_Sound".
mods=( btusb bnep ath3k rfcomm bluetooth )
case "${1}" in
hibernate|suspend)
#stop bluetooth service
service bluetooth stop
#unload bluetooth modules
for m in "${mods[@]}"
do
/sbin/rmmod $m
done
# Unbind ehci for preventing error
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind
# Unbind snd_hda_intel for sound
echo -n "0000:00:1b.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
echo -n "0000:00:03.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
;;
resume|thaw)
# Bind ehci for preventing error
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/bind
# Bind snd_hda_intel for sound
echo -n "0000:00:1b.0" | tee /sys/bus/pci/drivers/snd_hda_intel/bind
echo -n "0000:00:03.0" | tee /sys/bus/pci/drivers/snd_hda_intel/bind
#load bluetooth modules
for m in "${mods[@]}"
do
/sbin/modprobe $m
done
#start bluetooth service
service bluetooth start
;;
esac
=======================================================
And I also made a copy of this file in the same directory, named 05_Sound (with a capital S), also executable.
Finally, in the file
/etc/default/grub I amended the LINUX_DEFAULT line to read:
GRUB_CMDLINE_LINUX_DEFAULT="quiet tpm_tis.interrupts=0 modprobe.blacklist=ehci_hcd,ehci_pci nmi_watchdog=0 "
and then ran:
$ sudo update-grub2
============================================
The result is that both suspend and hibernate do the same thing, which is just to lock the screen.
Any thoughts?
Thanks in advance...
Andrew.