LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-16-2012, 06:59 AM   #1
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware 14, Debian 7, FreeBSD, OpenBSD
Posts: 182

Rep: Reputation: 35
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.

Last edited by padeen; 10-16-2012 at 07:06 AM. Reason: added info on desktop environment
 
Old 10-16-2012, 07:07 AM   #2
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 908

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Quote:
Originally Posted by padeen View Post
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.
 
Old 10-16-2012, 07:44 AM   #3
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.1 64 Multi-Lib
Posts: 442

Rep: Reputation: 140Reputation: 140
@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.
 
Old 10-16-2012, 10:12 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096
Quote:
Originally Posted by padeen View Post
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.
 
1 members found this post helpful.
Old 10-16-2012, 10:20 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,520

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Personally, I use your method as it works for all desktop environments and window managers. It saves doing individual configurations.
 
1 members found this post helpful.
Old 10-16-2012, 11:29 AM   #6
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 154

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


Reply

Tags
acpi, dbus, slackware 14, suspend


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DELL XPS 15Z on SL6 will not suspend on lid close Ullysse Linux - Laptop and Netbook 3 11-06-2012 09:35 PM
No suspend on lid close AllanP Linux - Laptop and Netbook 26 05-19-2012 01:38 PM
LXer: Ready for Gnome 3.2? no more suspend on laptop lid close LXer Syndicated Linux News 0 09-16-2011 03:41 AM
disable suspend when I close the laptop lid lindylex Debian 5 04-14-2009 09:53 AM
Suspend to Disk problem when I close my laptop lid xbaez Mandriva 0 06-23-2004 09:41 AM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration