Package Details: indicator-powersave r98.10-2

Git Clone URL: https://aur.archlinux.org/indicator-powersave.git (read-only, click to copy)
Package Base: indicator-powersave
Description: User discretion power managment utility forked from CPU frequency indicator (bzr version)
Upstream URL: https://launchpad.net/indicator-cpufreq
Licenses: GPL
Conflicts: indicator-cpufreq, indicator-cpufreq-bzr
Provides: indicator-cpufreq, indicator-cpufreq-bzr
Submitter: quequotion
Maintainer: quequotion
Last Packager: quequotion
Votes: 2
Popularity: 0.000000
First Submitted: 2014-05-15 13:42
Last Updated: 2020-04-08 16:25

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

quequotion commented on 2015-01-07 22:54

Figured this out:
"warning: directory ownership differs on /usr/share/polkit-1/rules.d/
filesystem: 102:0 package: 0:0"

It was an easy fix after all; just something I never thought of: this directory must be owned by "polkitd", so it must be installed with "-o polkitd"

Apparently that's what "102:0" means (although I never found any documentation on that; I just looked over the permissions on my system more carefully).

quequotion commented on 2015-01-07 22:53

Figured this out:
"warning: directory ownership differs on /usr/share/polkit-1/rules.d/
filesystem: 102:0 package: 0:0"

It was an easy fix after all; just something I never thought of: this directory must be owned by "polkitd", so it must be installed with "-o polkitd"

Apparently that's what "120:0" means (although I never found any documentation on that; I just looked over the permissions on my system more carefully).

quequotion commented on 2015-01-04 17:30

Also, no idea about this warning:

"warning: directory ownership differs on /usr/share/polkit-1/rules.d/
filesystem: 102:0 package: 0:0"

I cannot find documentation on what is meant by permissions "102:0" or "0:0".

The permissions for /usr/share/polkit-1/rules.d on my system are 700 and the permissions for it in the package are 700.

In any case, it doesn't seem to be a problem; just a warning.

quequotion commented on 2015-01-04 17:02

Updated!

I learned a little more about polkit. I revised the rules to allow any locally active user to toggle switches without a password.

"GPU Throttle" does not work. I think it has something to do with permissions or userid (this should be done as an ordinary user, not SUID). It is not a problem with the throttle script.

orschiro commented on 2015-01-04 14:03

Thanks for the polkit fix which worked. I added '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1' to my '~/.xprofile' which I prefer over xdg-autostart.

Unfortunately I cannot help you with the rule creation as I don't know anything about polkit.

quequotion commented on 2015-01-04 12:42

>>orschiro
"dbus.exceptions.DBusException: com.ubuntu.DeviceDriver.PermissionDeniedByPolicy: com.ubuntu.indicatorcpufreqselector.setthrottle"

I had the same issue, caused by gnome-polkit not running in the session.

I should add gnome-polkit as a dependency; but i'd rather use pkttyagent and depend only on polkit itself.

I suggest adding gnome-polkit to xdg autostarts (this was default with previous versions of gnome-polkit, which was installed by default with previous versions of gnome-session) apparently GNOME no longer needs this "legacy" daemon but Pantheon does.

So I made this file:
/etc/xdg/autostart/gnome-polkit-pantheon.desktop

[Desktop Entry]
Name=Gnome-Polkit
Comment=Gnome policykit authentication agent
Icon=view-refresh
Exec=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
Terminal=false
Type=Application
Categories=System
OnlyShowIn=Pantheon;
X-GNOME-Autostart-Notify=true
X-GNOME-AutoRestart=true
X-GNOME-Autostart-Phase=Panel

Also, I plan to make two updates to the polkit rules:
1. I should probably include all of the actions in the rules file; don't know why only setting a rule for "setfrequencyscaling" worked for everything else to begin with.*
2. When/If I learn more about polkit, I want to bypass entering the root password for these actions.

I'll look into the installation warning; probably an easy fix.

*This will probably be in the next release (unless it proves unnecessary)
/usr/share/polkit-1/rules.d/indicator-cpufreq.rules
/* Original:
* [Change CPU Frequency scaling]
* Identity=unix-group:wheel
* Action=com.ubuntu.indicatorcpufreqselector.setfrequencyscaling
* ResultActive=yes
*/

polkit.addRule(function(action, subject) {
if ((action.id == "com.ubuntu.indicatorcpufreqselector.setthrottle")
&& subject.local
&& subject.active
&& subject.isInGroup ("wheel")) {
return polkit.Result.YES;
}
});

polkit.addRule(function(action, subject) {
if ((action.id == "com.ubuntu.indicatorcpufreqselector.setfrequencyscaling")
&& subject.local
&& subject.active
&& subject.isInGroup ("wheel")) {
return polkit.Result.YES;
}
});

polkit.addRule(function(action, subject) {
if ((action.id == "com.ubuntu.indicatorcpufreqselector.setpsturbo")
&& subject.local
&& subject.active
&& subject.isInGroup ("wheel")) {
return polkit.Result.YES;
}
});

polkit.addRule(function(action, subject) {
if ((action.id == "com.ubuntu.indicatorcpufreqselector.sethyperthreads")
&& subject.local
&& subject.active
&& subject.isInGroup ("wheel")) {
return polkit.Result.YES;
}
});

polkit.addRule(function(action, subject) {
if ((action.id == "com.ubuntu.indicatorcpufreqselector.setgputhrottle")
&& subject.local
&& subject.active
&& subject.isInGroup ("wheel")) {
return polkit.Result.YES;
}
});

orschiro commented on 2015-01-04 10:46

@quequotion

I am encountering two issues:

1. Warning during installation

(1/1) installing indicator-powersave [###############################################################] 100%
warning: directory ownership differs on /usr/share/polkit-1/rules.d/
filesystem: 102:0 package: 0:0

2. I am launching 'indicator-cpufreq' as normal user in the terminal. I cannot set any settings. I am not asked for the superuser password. Terminal output:

~ ❯ indicator-cpufreq

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/indicator_cpufreq/indicator.py", line 214, in select_activated
dbus_interface='com.ubuntu.IndicatorCpufreqSelector')
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: com.ubuntu.DeviceDriver.PermissionDeniedByPolicy: com.ubuntu.indicatorcpufreqselector.setthrottle
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/indicator_cpufreq/indicator.py", line 214, in select_activated
dbus_interface='com.ubuntu.IndicatorCpufreqSelector')
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: com.ubuntu.DeviceDriver.PermissionDeniedByPolicy: com.ubuntu.indicatorcpufreqselector.setthrottle

quequotion commented on 2015-01-03 19:23

Update!

Mostly to put the menus in a better order.

quequotion commented on 2015-01-03 19:10

>>orschiro

Yes, "System Throttle" throws all the switches; the smaller switches (hyperthreads, turbo, etc) will be overridden by it.

orschiro commented on 2014-12-28 08:19

@quequotion

Thanks for the updated libappindicator dependency. The tray icon works very will with stalonetray and Openbox. A question:

Is "System Throttle" -> "full" and "cut" the overall setting influencing all the sub-settings?