LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-02-2011, 07:21 AM   #1
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Rep: Reputation: Disabled
How to enter Standby mode from command line??


Disclosure: Using Voyage linux 0.75, based on Deb6.

As title, How can i enter Standby mode (Suspend to Ram) from command line??

Also, same question for hiberate.
 
Old 10-02-2011, 07:41 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
As root, use 'pm-suspend' or 'pm-hibernate'.
 
1 members found this post helpful.
Old 10-02-2011, 07:52 AM   #3
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware 12.1, slackware64-current
Posts: 252

Rep: Reputation: 43
These work in slackware as non-root, snippets from ~/.fluxbox/menu file of Salix distro:

Code:
Shutdown:
dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown

Reboot:
dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot

Hibernate:
dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate

Suspend:
dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0
Note that, i don't really understand these commands, maybe they won't work on debian-based distros.
 
0 members found this post helpful.
Old 10-02-2011, 12:16 PM   #4
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
My distro doesn't have pm-suspend or pm-hibernate.. ('command not found')

I tried installing via 'apt-get install pm-utils' but this wasn't found?? Is there a different name/ how do i install it / is there an alternative i might have??
 
Old 10-02-2011, 12:36 PM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The pm-suspend and pm-hibernate are provided by the pm-utils package:
Code:
# apt-file find /usr/sbin/pm-suspend
pm-utils: /usr/sbin/pm-suspend
pm-utils: /usr/sbin/pm-suspend-hybrid

# apt-file find /usr/sbin/pm-hibernate
pm-utils: /usr/sbin/pm-hibernate
Are you running as root?
 
Old 10-02-2011, 12:37 PM   #6
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
yes, running as root.

edit: apt-file command is not found and i have no pm-suspend or hibernate in the /usr/sbin directory.

Last edited by sdfi; 10-02-2011 at 12:41 PM.
 
Old 10-02-2011, 12:51 PM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Have you run 'apt-get update' to refresh your cache?
 
Old 10-02-2011, 03:14 PM   #8
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
yes
 
Old 10-02-2011, 03:39 PM   #9
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Then the distribution you're using is not set up with Debian sources. I don't know why they wouldn't be, but you should check with the distribution support/forums to see if there are any compatibility issues.
 
Old 10-02-2011, 03:43 PM   #10
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
? ..pretty sure it is, i've installed quite a few things with apt-get. Is it definitely 'apt-get install pm-utils' ?
 
Old 10-02-2011, 03:55 PM   #11
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
Yes, 'apt-get install pm-utils'.

The default Debian sources are:
Code:
deb http://ftp.debian.org/debian/ squeeze main
deb-src http://ftp.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
deb http://ftp.us.debian.org/debian/ squeeze-updates main
deb-src http://ftp.us.debian.org/debian/ squeeze-updates main
You can check your /etc/apt/sources.list to confirm you have them defined.
 
Old 10-03-2011, 07:02 AM   #12
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
OK, so i added some that were missing from above, and it worked. (Although, i think it used a source that was already there?.. is it possible to just ping eg. http://ftp.debian.org/debian/ to see if it is up/working??)

pm-suspend suspends, on 'resuming' it powers back up but nothing works. No VGA nor does it respond to commands.

pm-hibernate; it doesn't seem to hibernate properly (fans, hdd on) and is then just locked and won't resume.

Soooo... where do i start with troubleshooting this??
 
Old 10-03-2011, 09:08 AM   #13
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The first step is always Google.
 
1 members found this post helpful.
Old 10-12-2011, 05:38 PM   #14
sdfi
Member
 
Registered: Oct 2011
Distribution: debian
Posts: 107

Original Poster
Rep: Reputation: Disabled
I was hoping someone had some knowledge that might lead me to somewhere better than just googling aimlessly ?? Its fairly alien to me.
 
Old 10-12-2011, 05:48 PM   #15
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
There are many ways for suspend/resume to have problems. You can try updating the BIOS on your machine first. You can try checking/changing the BIOS suspend/resume settings. You can try using vbetool to reinitialize your video. You can check your /var/log/messages for errors on the resume. You can try Googling your specific model PC with linux and suspend resume to see if anyone has encountered the problem before. There's no single answer for all machines.
 
  


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
[Perl] Is there a way to encrypt command-line input when user enter a password ? android2009 Programming 2 11-05-2010 02:13 PM
[SOLVED] Fedora 11 can not enter GUI but via grub command line it can start normally hh3755 Linux - Newbie 1 11-10-2009 05:27 AM
How to enter graphical mode (run level 5) command line (run lenel 3) edmondgyampoh Linux - Newbie 3 05-15-2009 06:33 PM
sql how to enter .mode column from command line donnied Programming 1 03-03-2009 07:05 PM
Standby mode for drive, where does command go? inittab? Eradicator Mandriva 1 04-16-2004 08:35 AM


All times are GMT -5. The time now is 01:59 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