LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-18-2013, 03:49 AM   #1
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian
Posts: 146
Blog Entries: 1

Rep: Reputation: 12
Stand-by from command-line


I'm on Debian Squeeze. I've uninstalled the graphical login manager, and am using the command-line more often.
I'd like to be able to put the PC in stand-by from the command-line. I guess I'd need some ACPI daemon? Currently I have XFCE, and stand-by works properly under it. (Also the power buttons on the keyboard.) So maybe I only have to make sure XFCE's daemon is run, even if X isn't started?
Basic Google searches didn't help, and I don't know what I'm looking for exactly. Any help is welcome.
 
Old 01-18-2013, 06:50 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
What version of XFCE do you have? I think older versions use HAL, newer versions use UPower. In any event, you can try:

Code:
sudo pm-suspend
and

Code:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
/org/freedesktop/UPower org.freedesktop.UPower.Suspend
You may not need sudo for the first command if you're in the power group....
 
1 members found this post helpful.
Old 01-18-2013, 06:55 AM   #3
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
You can use the programs from the pm-utils package. Those are:
  • pm-suspend
  • pm-hibernate, and
  • pm-suspend-hibrid

You can get more help from the manpages:
Code:
man pm-action
I've never used them. Hope it works for you.
 
1 members found this post helpful.
Old 01-18-2013, 11:15 AM   #4
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian
Posts: 146
Blog Entries: 1

Original Poster
Rep: Reputation: 12
Thanks!

Ok, that works. There's also the packages acpi-support and acpi-fakekeys which seem to be the things you need, if you want to use power keys on your keyboard.
 
  


Reply


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
[SOLVED] Cursor does not move to the bottom line and overwrite to same line on command line mesuutt Linux - Newbie 3 02-25-2012 08:04 AM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM
Question about this line "Couldn't load %s: %s\n" what does %s stand for? RHLinuxGUY Programming 3 04-16-2006 03:29 AM
TCP/IP command in stand alone wincrk Linux - Networking 5 03-02-2003 07:47 AM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
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