LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-21-2007, 05:53 AM   #1
ewlabonte
Member
 
Registered: Mar 2005
Distribution: Debian Stretch
Posts: 127

Rep: Reputation: 15
Hibernation


I'm running etch on my laptop and I finally got hibernation to work. That is it works when I su to root and type "hibernate" at the command line. But when I right click on the power manager icon and select hibernate it gives me an error message. How do I get the hibernation script to work without logging in as root?

Last edited by ewlabonte; 01-21-2007 at 09:06 AM.
 
Old 01-21-2007, 10:56 PM   #2
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
you could maybe use sudo. I don't know for sure because I rather loathe the command myself. I'd much rather just do su and get it over with. But you might even be able to make a command button thing for it with like "sudo hibernate"?

You could give it a try.
 
Old 01-21-2007, 11:18 PM   #3
ewlabonte
Member
 
Registered: Mar 2005
Distribution: Debian Stretch
Posts: 127

Original Poster
Rep: Reputation: 15
Yeah, that would probably work. It's just strange that when you right click on the powermanager there are "hibernate" and "suspend" entries in the menu but they don't work... I tried changing the permissions of /usr/sbin/hibernate, but that didn't work. It still gave me "hibernate: You need to run this script as root" error message.
 
Old 01-22-2007, 03:58 PM   #4
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
Ok, try this. It should work, I tried it but apparently I don't have the option to hibernate on my computer.

Assuming you have the normal panels on the top and bottom of your screen:
Pick one of them
Right click -> Add to panel
Custom application launcher
Name: Hibernate
Command: sudo hibernate
Icon: There are some pretty neat icons, I picked the green apple.


Give it a try.

EDIT: I guess they don't like it when you try to sudo in a command button.

Last edited by war1025; 01-22-2007 at 04:01 PM.
 
Old 01-24-2007, 12:20 PM   #5
ewlabonte
Member
 
Registered: Mar 2005
Distribution: Debian Stretch
Posts: 127

Original Poster
Rep: Reputation: 15
Thanks for your help. That worked.
 
  


Reply



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
hibernation? Crazed_Mofo VectorLinux 8 07-03-2007 07:59 AM
Hibernation EdwardH Linux - Newbie 0 08-15-2005 12:57 PM
hibernation joshknape Linux - Newbie 5 07-26-2005 12:13 AM
Hibernation jfranks214 Linux - Laptop and Netbook 2 08-15-2004 12:50 PM
Hibernation (Oh no - not again...) Napper Mandriva 9 06-23-2004 08:41 AM

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

All times are GMT -5. The time now is 02:25 AM.

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