Le 29/12/2017 à 10:44, Didier Kryn a écrit :

    Found a simple solution to suspend on lid close:

    1) uninstall xfce4-power-manager (probably true with power-managers from other DEs). It doesn't work and it prevents the default acpi methods to be called.

    2) edit /etc/default/acpi-support
             uncomment line 36: #LID_SLEEP=true
             uncomment line 40: #LID_SHUTDOWN=true

    The second parameter tells the script to shutdown if suspend fails. It isn't mandatory, but I would recommend it for a laptop.

    Push the power button to resume. Openning the lid isn't enough.

    If you have xscreen-saver installed, then the screen will be locked on resume.

    Actualy xscreensaver also prevents the suspend. I didn't notice the first time because it seems to take a logout-login before the presence of the daemon to be noticed.

    There is a hackish workaround: comment the following 3 lines in /etc/acpi/lid.sh:
if { CheckPolicy || HasLogindAndSystemd1Manager; }; then
exit
fi

            Didier
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to