KDE4 powerdevil profiles

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

KDE4 powerdevil profiles

Postby doktor5000 » Jun 6th, '11, 23:30

Hello,

on a fresh default x86_64 installation of Mageia 1,
there only seems to be the "performance" profile in powerdevil.
Can anyone confim this?
Or is this just because i'm running with no battery?

The other question would be: Why does VLC player
turn off screen after 10 minutes? I disabled energy control for the
monitor in powerdevil and also dimming. Even disabled DPMS
with xset -dpms, but no success either.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: KDE4 powerdevil profiles

Postby mikala » Jun 7th, '11, 02:42

doktor5000 wrote:Hello,

on a fresh default x86_64 installation of Mageia 1,
there only seems to be the "performance" profile in powerdevil.
Can anyone confim this?
Or is this just because i'm running with no battery?

It's probably because you're running without battery:
on my netbook i've got several profile while there's only on on my workstation.

doktor5000 wrote:The other question would be: Why does VLC player
turn off screen after 10 minutes? I disabled energy control for the
monitor in powerdevil and also dimming. Even disabled DPMS
with xset -dpms, but no success either.

I can't reproduce here.
mikala
 
Posts: 114
Joined: Mar 16th, '11, 20:42
Location: French Guiana

Re: KDE4 powerdevil profiles

Postby m123456 » Jun 7th, '11, 09:29

Hi,
1. Install cpufreq cpufrequtils:
Code: Select all
urpmi cpufreq cpufrequtils

2. Check:
Code: Select all
cpufreq-info
or
Code: Select all
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
available cpufreq governors: ondemand, conservative, powersave, userspace, performance

Available governors:
cpufreq_performance (default)
The performance governor is built into the kernel and runs the CPU(s) at maximum clock speed
cpufreq_ondemand (recommended)
Dynamically increases/decreases the CPU(s) clock speed based on system load
cpufreq_conservative
Similar to ondemand, but more conservative (clock speed changes are more graceful)
cpufreq_powersave
Runs the CPU at minimum speed
cpufreq_userspace
Manually configured clock speeds by user

3. You can set the sticky bit on /usr/bin/cpufreq-set, from a root console:
Code: Select all
chmod 4755 /usr/bin/cpufreq-set

4. From a root console:
Code: Select all
service cpufreq start

5. See http://www.youtube.com/watch?v=KNec8jMWQxE
Code: Select all
cpufreq-set -g ondemand
cpufreq-set -g powersave
...


Regards.
User avatar
m123456
 
Posts: 28
Joined: May 20th, '11, 15:22
Location: Poland

Re: KDE4 powerdevil profiles

Postby doktor5000 » Jun 7th, '11, 23:37

Something else that bugs me ist that powerdevil earlier version (like KDE 4.4x and 4.5x)
had two other "tabs" for every profile, one for the monitor and one for the processor.
What happended to these?

Will check about the cpufreq stuff, maybe then really at least Suggests on cpufreq & cpufrequtils
are missing from powerdevil / task-kde4.

About the VLC player issue: Deleted VLC and powerdevil configs, started fresh, and still the
same problem. Seem powerdevil isn't saving the disabling of monitor-energy-management.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: KDE4 powerdevil profiles

Postby doktor5000 » Jun 8th, '11, 00:10

Another question about powerdevil: Where should it store the settings for every profile
or the general settings? Only things i've found so far:

Code: Select all
[doktor5000@mageia1 ~]$ cat .kde4/share/config/powerdevilrc
[Profiles]
ACProfile=Performance

Code: Select all
[doktor5000@mageia1 ~]$ cat .kde4/share/config/powerdevil2profilesrc
[Performance]
icon=preferences-system-performance

[Performance][HandleButtonEvents]
lidAction=1
powerButtonAction=16
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: KDE4 powerdevil profiles

Postby m123456 » Jun 8th, '11, 00:49

Code: Select all
$ cat ~/.kde4/share/config/powerdevil2profilesrc
[ONDEMAND]
icon=favorites
name=ONDEMAND

[ONDEMAND][BrightnessControl]
value=50

[ONDEMAND][DPMSControl]
idleTime=7200

[ONDEMAND][DimDisplay]
idleTime=3600000

[ONDEMAND][HandleButtonEvents]
lidAction=8
powerButtonAction=16

[ONDEMAND][RunScript]
idleTime=600000
scriptCommand=cpufreq-set -g ondemand
scriptPhase=0

[POWERSAVE]
icon=process-idle
name=POWERSAVE

[POWERSAVE][BrightnessControl]
value=50

[POWERSAVE][DPMSControl]
idleTime=900

[POWERSAVE][DimDisplay]
idleTime=300000

[POWERSAVE][HandleButtonEvents]
lidAction=1
powerButtonAction=16

[POWERSAVE][RunScript]
idleTime=600000
scriptCommand=cpufreq-set -g powersave
scriptPhase=0

[Performance]
icon=preferences-system-performance

[Performance][DPMSControl]
idleTime=600

[Performance][DimDisplay]
idleTime=600000

[Performance][HandleButtonEvents]
lidAction=1
powerButtonAction=16

[Performance][RunScript]
idleTime=600000
scriptCommand=cpufreq-set -g performance
scriptPhase=0

$ cat ~/.kde4/share/config/powerdevilrc
[Profiles]
ACProfile=ONDEMAND
$
User avatar
m123456
 
Posts: 28
Joined: May 20th, '11, 15:22
Location: Poland

Re: KDE4 powerdevil profiles

Postby doktor5000 » Jun 8th, '11, 18:08

WEll, how much of these settings have you entered/changed manually?
Or are these the defaults on your box?

Maybe we should compare relevant packages:

Code: Select all
[doktor5000@mageia1 ~]$ rg power | sort
lib64powerdevilcore0-4.6.3-7.mga1
lib64upower-glib1-0.9.9-1.mga1
plasma-krunner-powerdevil-4.6.3-7.mga1
upower-0.9.9-1.mga1

Code: Select all
$ rg vlc | sort
lib64vlc5-1.1.9-4.mga1.tainted
lib64vlccore4-1.1.9-4.mga1.tainted
vlc-1.1.9-4.mga1.tainted
vlc-plugin-common-1.1.9-4.mga1.tainted
vlc-plugin-pulse-1.1.9-4.mga1.tainted
vlc-plugin-theora-1.1.9-4.mga1.tainted

Code: Select all
[doktor5000@mageia1 ~]$ rg cpu | sort
cpufreq-1.0-35.mga1
plasma-applet-system-monitor-cpu-4.6.3-7.mga1


Also tried yesterday to remove all relevant powerdevil actions from /usr/lib64/kde4,
but vlc still switches screen to black screen after 10 minutes with a fresh config.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: KDE4 powerdevil profiles

Postby m123456 » Jun 9th, '11, 21:14

In the beginning (ISO Mageia 1 beta2 or RC dual-arch or GNOME) there was only one. I have created others.
Code: Select all
$ rpm -qa |grep power | sort
gnome-power-manager-2.32.0-1.mga1
lib64powerdevilcore0-4.6.3-7.mga1
lib64upower-glib1-0.9.9-1.mga1
plasma-krunner-powerdevil-4.6.3-7.mga1
upower-0.9.9-1.mga1
$ rpm -qa |grep cpu | sort
cpufreq-1.0-35.mga1
cpufrequtils-008-2.mga1
lib64cpufreq0-008-2.mga1
plasma-applet-system-monitor-cpu-4.6.3-7.mga1
$
User avatar
m123456
 
Posts: 28
Joined: May 20th, '11, 15:22
Location: Poland


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest