LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05:59 AM   #1
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
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 06:06 AM. Reason: added info on desktop environment
 
Old 10-16-2012, 06:07 AM   #2
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
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, 06:44 AM   #3
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
@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, 09:12 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 09:20 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
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, 10:29 AM   #6
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 164

Rep: Reputation: 19
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



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 08:35 PM
No suspend on lid close AllanP Linux - Laptop and Netbook 26 05-19-2012 12:38 PM
LXer: Ready for Gnome 3.2? no more suspend on laptop lid close LXer Syndicated Linux News 0 09-16-2011 02:41 AM
disable suspend when I close the laptop lid lindylex Debian 5 04-14-2009 08:53 AM
Suspend to Disk problem when I close my laptop lid xbaez Mandriva 0 06-23-2004 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:47 PM.

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
Open Source Consulting | Domain Registration