Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I make KDE4 use tuxonice?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lucs12
n00b
n00b


Joined: 13 Feb 2010
Posts: 13

PostPosted: Wed Jul 14, 2010 1:02 pm    Post subject: How can I make KDE4 use tuxonice? Reply with quote

By default KDE4 seems to be using pm-utils and HAL. I would like to use Tuxonice instead. Any ideas how to do that? Thanks.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Jul 15, 2010 5:17 pm    Post subject: Reply with quote

The kernel? Emerge tuxonice-sources and configure the kernel. KDE is a DE and has nothing to do with the kernel.

I recommend using Pappy's Kernel Seeds.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
lucs12
n00b
n00b


Joined: 13 Feb 2010
Posts: 13

PostPosted: Thu Jul 15, 2010 5:31 pm    Post subject: Reply with quote

I do use tuxonice-sources and when I do a hibernate-ram or hibernate in CLI, the tuxonice mechanism is used. This also shows in the tuxonice logs. However, when I choose suspend to RAM or suspend to disk in the KDE menus, some other suspend mechanism seems to be used, most likely something via HAL, because it doesn't show in the tuxonice logs. Maybe I am wrong, I don't know.
Back to top
View user's profile Send private message
poOoch
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2003
Posts: 77
Location: Ulm / Germany

PostPosted: Fri Jul 16, 2010 11:27 am    Post subject: Reply with quote

Did you set CONFIG_TOI_REPLACE_SWSUSP=y in Kernel, so the standard hibernate mechanism is replaced by the tuxonice's one?
Back to top
View user's profile Send private message
lucs12
n00b
n00b


Joined: 13 Feb 2010
Posts: 13

PostPosted: Fri Jul 16, 2010 12:48 pm    Post subject: Reply with quote

poOoch wrote:
Did you set CONFIG_TOI_REPLACE_SWSUSP=y in Kernel, so the standard hibernate mechanism is replaced by the tuxonice's one?


Yes, I did.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2489
Location: イタリアのロディで

PostPosted: Thu Dec 02, 2010 9:48 pm    Post subject: Reply with quote

up?
Any news about kde4 suspending with hibernate script?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
lucs12
n00b
n00b


Joined: 13 Feb 2010
Posts: 13

PostPosted: Thu Dec 02, 2010 9:58 pm    Post subject: Reply with quote

bandreabis wrote:
up?
Any news about kde4 suspending with hibernate script?


No, I pretty much gave up trying to figure this out.
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Fri Dec 03, 2010 12:57 pm    Post subject: Reply with quote

KDE4 doesn't use the hibernate script but pm-utils. As long as you have that kernel option to replace swsusp with toi pm-hibernate will hibernate with toi.
If you don't get splash/ui check that the correct toi userspace ui program is set in kernel.
Back to top
View user's profile Send private message
lucs12
n00b
n00b


Joined: 13 Feb 2010
Posts: 13

PostPosted: Fri Dec 03, 2010 1:59 pm    Post subject: Reply with quote

ssteinberg wrote:
KDE4 doesn't use the hibernate script but pm-utils. As long as you have that kernel option to replace swsusp with toi pm-hibernate will hibernate with toi.
If you don't get splash/ui check that the correct toi userspace ui program is set in kernel.


Yeah, I suspected that pm-utils was involved. I have the toi set in the kernel, however, whenever I do a suspend from the KDE menus, I can see the splash/ui screen but nothing is logged in the toi log. When I do a hibernate or hibernate-ram, I can see afterward what happened in the toi log. Do you think toi is used in both cases above? Thanks.
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Fri Dec 03, 2010 2:48 pm    Post subject: Reply with quote

lucs12 wrote:
ssteinberg wrote:
KDE4 doesn't use the hibernate script but pm-utils. As long as you have that kernel option to replace swsusp with toi pm-hibernate will hibernate with toi.
If you don't get splash/ui check that the correct toi userspace ui program is set in kernel.


Yeah, I suspected that pm-utils was involved. I have the toi set in the kernel, however, whenever I do a suspend from the KDE menus, I can see the splash/ui screen but nothing is logged in the toi log. When I do a hibernate or hibernate-ram, I can see afterward what happened in the toi log. Do you think toi is used in both cases above? Thanks.


If you see the splash/ui from tuxoniceui_* then yes, you are using toi.
I don't know what log you are talking about, probably it is some log generated by the hibernation script. pm-hibernate logs its own log as well, check /var/log/pm-suspend.log.
Back to top
View user's profile Send private message
lucs12
n00b
n00b


Joined: 13 Feb 2010
Posts: 13

PostPosted: Fri Dec 03, 2010 2:55 pm    Post subject: Reply with quote

ssteinberg wrote:
lucs12 wrote:
ssteinberg wrote:
KDE4 doesn't use the hibernate script but pm-utils. As long as you have that kernel option to replace swsusp with toi pm-hibernate will hibernate with toi.
If you don't get splash/ui check that the correct toi userspace ui program is set in kernel.


Yeah, I suspected that pm-utils was involved. I have the toi set in the kernel, however, whenever I do a suspend from the KDE menus, I can see the splash/ui screen but nothing is logged in the toi log. When I do a hibernate or hibernate-ram, I can see afterward what happened in the toi log. Do you think toi is used in both cases above? Thanks.


If you see the splash/ui from tuxoniceui_* then yes, you are using toi.
I don't know what log you are talking about, probably it is some log generated by the hibernation script. pm-hibernate logs its own log as well, check /var/log/pm-suspend.log.


You're right, that's what's going on. I could find the suspend logs in /var/log/pm-suspend.log, but not in /var/log/hibernate.log. Thanks.
Back to top
View user's profile Send private message
lamarque
n00b
n00b


Joined: 11 Jan 2006
Posts: 49
Location: Rio de Janeiro / Brasil

PostPosted: Wed Dec 22, 2010 5:04 pm    Post subject: Reply with quote

You can make pm-utils use tuxonice by adding the line below to /etc/pm/config.d/gentoo:

SLEEP_MODULE="tuxonice"
_________________
Lamarque V. Souza
http://www.geographicguide.com/brazil.htm
Linux User #57137 - http://counter.li.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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