LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-22-2006, 11:18 PM   #1
kev000
Member
 
Registered: Oct 2006
Posts: 53

Rep: Reputation: 15
suspend2 with edgy


Anyone know how to hibernate using suspend2 without having to type your password in (at either hibernate or resume)?

using the shutdown menu hibernate requires a password. You can get around this by hibernating from the command line however you need to be root (or sudo) which requires a password again. I'm using ubuntu in my car pc, so typing gets really complicated.

thanks for the help
 
Old 12-24-2006, 10:48 AM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
In the suspend2 HOWTO:

http://www.suspend2.net/HOWTO-3.html#ss3.1

If you want users to be able to suspend, use visudo and add the following lines to your /etc/sudoers file, changing the /usr/local/sbin/hibernate to the path it was installed (/usr/sbin/hibernate in the Debian & RPM packages)

Host_Alias LOCALHOST=localhost,<your hostname>
ALL LOCALHOST=NOPASSWD: /usr/local/sbin/hibernate *

See man sudoers(5) for more information. Users will then be able to do sudo /usr/local/sbin/hibernate

-----
I hope you have some kind of button that triggers the hibernate. In gentoo wiki you have some info to connect buttons to suspend :

http://gentoo-wiki.com/HOWTO_Softwar..._button_events
 
Old 12-24-2006, 03:04 PM   #3
kev000
Member
 
Registered: Oct 2006
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks Biophysics, I must have overlooked that part in the suspend2 howto. Also the ACPID works great also! Thanks!!!

-Kev
 
  


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
suspend2 in edgy kev000 Linux - Software 1 12-23-2006 03:07 AM
suspend2 patch for kernel 2.6.17.13 ? campher Slackware 2 10-30-2006 11:53 AM
Suspend2 rob666 Linux - Software 4 07-07-2006 07:56 PM
suspend2 in mm kernels? is there an easier way? cheater1034 Linux - Software 0 03-07-2006 09:47 PM
suspend2 and ATI tanaselia Linux - Hardware 3 01-25-2006 03:14 PM

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

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