Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sleep state
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Fri Nov 21, 2014 5:12 pm    Post subject: Sleep state Reply with quote

Do I need to set up TuxOnIce in order to have my Gentoo system "go to sleep"?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Fri Nov 21, 2014 5:18 pm    Post subject: Reply with quote

No, the standard/recent Linux kernel supports suspend/resume as well.

They handle it differently though. I've never used TuxOnIce before but can suspend/hibernate/resume just fine with a standard kernel. Hibernate dumps everything into swap, so you'll need a large swap area to hibernate.

I don't think the stock kernel supports hybrid suspend however.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Fri Nov 21, 2014 5:21 pm    Post subject: Reply with quote

OK suspend is "suspend to RAM" right? The system software is totally inaccessible while the system is suspended?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Fri Nov 21, 2014 5:26 pm    Post subject: Reply with quote

Yes suspend will just suspend to RAM. Needs ACPI support (S1 or S3 configured by BIOS). System is pretty much off except for RAM refresh for S3. S1 is a bit different (was it stop grant?) and was intended for older machines that don't have ACPI just right.
Hibernate is suspend to disk. Does NOT need ACPI support.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Thu Dec 04, 2014 9:29 pm    Post subject: Reply with quote

I am able to do this successfully:

Code:
# echo -n mem > /sys/power/state


But at what point will the system suspend on its own? Is this configured in xfce4? Can I prevent it from happening when watching a movie in xbmc?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Fri Dec 05, 2014 12:00 am    Post subject: Reply with quote

Yes the usermode app needs to control it. I think it's xfce-extra/xfce4-power-manager that you might want to check out.

Unfortunately I don't know if xbmc supports telling the power manager to not suspend the machine. For a well integrated GUI system, the movie player would have an option to tell the power manager you don't want to screensave or suspend the machine, and the power manager would stop this from happening until the movie ends or you tell it otherwise. There are add-ons for xfce to disable the screensaver (and hoping that it also inhibits automatic suspend/hibernate as well) by clicking on a taskbar button I believe, that's another way of doing it. Unfortunately I can't think if the applet name...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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