Help answer threads with 0 replies.
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, 03:49 AM   #1
Weapon S
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 259
Blog Entries: 2

Rep: Reputation: 49
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
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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, 06:55 AM   #3
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
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, 11:15 AM   #4
Weapon S
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 259
Blog Entries: 2

Original Poster
Rep: Reputation: 49

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 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 > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:12 PM.

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