LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   14.0: What is the canonical way to suspend on lid-close (http://www.linuxquestions.org/questions/slackware-14/14-0-what-is-the-canonical-way-to-suspend-on-lid-close-4175432456/)

padeen 10-16-2012 05:59 AM

14.0: What is the canonical way to suspend on lid-close
 
I hadn't bothered to get involved in the HAL, DBus and ACPI wars up to now, and thank goodness.

Previously, when I wanted to suspend my laptop on lid-close I wrote a small script that was called on ACPI event button.lid and used the pm-utils command "pm-suspend" to enter suspend mode.

I guess we are all using DBus now, so I should change to doing things properly. That is, if I could find the docs.

The Slackware wiki has some notes on hibernate, but not suspend, and those notes refer to a UPower key UPower.Hibernate, which AFAICT is not configured on 14.0, so I can't use it as an example to write my own UPower.Suspend.

What is the canonical way in 14.0 to enter suspend mode when a laptop's lid is closed?

I should add I use a tiling WM, so no desktop and no KDE or Gnome power management daemons are running.

jtsn 10-16-2012 06:07 AM

Quote:

Originally Posted by padeen (Post 4807003)
What is the canonical way in 14.0 to enter suspend mode when a laptop's lid is closed?

There is no Canonical (sic!) way. You are in control and you choose, which way works best for you.

Mark Pettit 10-16-2012 06:44 AM

@padeen - I can only answer for XFCE. It's not too hard. From the Menu, choose "Settings", "Power manager". This will open up a window called "Xfce Power Manager". This window has 4 tabs on the left - General, ON AC, ON Battery, Extended. Choose "On AC" and pick your setting for the lid. Now choose "On battery". And again you will see a separate action you can take for the lid close.

TobiSGD 10-16-2012 09:12 AM

Quote:

Originally Posted by padeen (Post 4807003)
I guess we are all using DBus now, so I should change to doing things properly.

Just because it is present it doesn't mean that you have to use it. There is nothing wrong with pm-suspend, if you are used to it then use it.

allend 10-16-2012 09:20 AM

Personally, I use your method as it works for all desktop environments and window managers. It saves doing individual configurations.

Stephen Morgan 10-16-2012 10:29 AM

I use pm-suspend. You can use XFCE power manager without Xfce. I'm using Crunchbang which uses Xfce power manager with Openbox.


All times are GMT -5. The time now is 11:31 AM.