Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
making sleep states usable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Sat May 15, 2004 5:23 pm    Post subject: making sleep states usable Reply with quote

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
View user's profile Send private message
tuxlover
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 297
Location: weltweit

PostPosted: Sat May 15, 2004 11:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Sat May 15, 2004 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sat May 15, 2004 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Sun May 16, 2004 12:27 am    Post subject: Reply with quote

This is /proc/acpi/sleep. Shouldn't it be writable?
Back to top
View user's profile Send private message
LosD
n00b
n00b


Joined: 12 Jun 2002
Posts: 61
Location: Taastrup, Denmark

PostPosted: Sun May 16, 2004 12:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum