Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 01-18-2013, 04:49 AM   #1
Weapon S
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 199
Blog Entries: 2

Rep: Reputation: 21
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, 07:50 AM   #2
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
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:

sudo pm-suspend

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, 07:55 AM   #3
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 588

Rep: Reputation: 119Reputation: 119
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:
man pm-action
I've never used them. Hope it works for you.
1 members found this post helpful.
Old 01-18-2013, 12:15 PM   #4
Weapon S
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 199
Blog Entries: 2

Original Poster
Rep: Reputation: 21

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.


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 09:04 AM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 11:46 AM
Question about this line "Couldn't load %s: %s\n" what does %s stand for? RHLinuxGUY Programming 3 04-16-2006 04:29 AM
TCP/IP command in stand alone wincrk Linux - Networking 5 03-02-2003 08:47 AM

All times are GMT -5. The time now is 12:44 AM.

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