View previous topic :: View next topic |
Author |
Message |
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Fri Nov 21, 2014 5:12 pm Post subject: Sleep state |
|
|
Do I need to set up TuxOnIce in order to have my Gentoo system "go to sleep"? |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Fri Nov 21, 2014 5:18 pm Post subject: |
|
|
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 |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Fri Nov 21, 2014 5:21 pm Post subject: |
|
|
OK suspend is "suspend to RAM" right? The system software is totally inaccessible while the system is suspended? |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Fri Nov 21, 2014 5:26 pm Post subject: |
|
|
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 |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Thu Dec 04, 2014 9:29 pm Post subject: |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Fri Dec 05, 2014 12:00 am Post subject: |
|
|
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 |
|
|
|