View previous topic :: View next topic |
Author |
Message |
Plastic l33t
Joined: 24 Mar 2004 Posts: 649
|
Posted: Sat May 15, 2004 5:23 pm Post subject: making sleep states usable |
|
|
I'm using a 2.6 kernel, and I want to make sleep states usable. There are two problems. The first problem is, I can't set the sleep state unless I'm root, even if I use sudo. The second problem is that X won't work after I resume (console works alright though). I just get a screen with a couple of random pixels on it. Any thoughts? |
|
Back to top |
|
|
tuxlover Apprentice
Joined: 21 Oct 2003 Posts: 297 Location: weltweit
|
Posted: Sat May 15, 2004 11:41 pm Post subject: |
|
|
1) - only root can write to state files
How do you use sudo? I believe you can make a script that you make sudo'able in /etc/sudoers, which lets you suspend/standby. Why does this not work?
2) - x resuming problems
This is probably inherent to your graphic card driver. Which one are you using? Does it help to switch back and forth between x and consoles (I guess not because you already found out that console works)? |
|
Back to top |
|
|
Plastic l33t
Joined: 24 Mar 2004 Posts: 649
|
Posted: Sat May 15, 2004 11:47 pm Post subject: |
|
|
I use an admin (not root) account, so I can sudo anything as long as I type my password.
My GFX driver is nvidia-glx. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Sat May 15, 2004 11:47 pm Post subject: |
|
|
tuxlover wrote: | 1) - only root can write to state files
How do you use sudo? I believe you can make a script that you make sudo'able in /etc/sudoers, which lets you suspend/standby. Why does this not work? |
Some state files require you to only have superuser priveleges, but to be the superuser itself (example: /proc/sys/vm/*). _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
Plastic l33t
Joined: 24 Mar 2004 Posts: 649
|
Posted: Sun May 16, 2004 12:27 am Post subject: |
|
|
This is /proc/acpi/sleep. Shouldn't it be writable? |
|
Back to top |
|
|
LosD n00b
Joined: 12 Jun 2002 Posts: 61 Location: Taastrup, Denmark
|
Posted: Sun May 16, 2004 12:47 am Post subject: |
|
|
Plastic wrote: | I use an admin (not root) account, so I can sudo anything as long as I type my password.
My GFX driver is nvidia-glx. |
AFAIK the nVidia driver can't do standby yet...
Dennis |
|
Back to top |
|
|
|