Hello,
I'm new to Salix. I installed KDE and everything is working well. However, there is one annoying message I would like to resolve so hoping someone here can assist. When I first log into Plasma (x11) I receive a message that states the following:
System policies prevent you from getting the current battery charge limit.
An application is attempting to perform an action that requires privileges. Authentication is required to perform this action.
Password: (fil in)
My password that I set up at time of install works fine. I just want to figure out how to lset this so I don't have to enter a password... i.e. edit whatever file I need to grant the proper authorization to automate the process.
Other than this little issue, I'm enjoying this distro, so far. Thank you in advance for your assistance!
Question about PolicyKit1 KDE Agent message
Re: Question about PolicyKit1 KDE Agent message
Do you have the polkit-kde-agent package installed?
Does the message say anything about which policy exactly it needs?
Does the message say anything about which policy exactly it needs?
Re: Question about PolicyKit1 KDE Agent message
Yes. I do have the Polkit agent installed. When I click "details", I get the following:
Action: Get current battery charger limit
ID: org.kde.powerdevil.chargethresholdhelper.getthreshold
Vendor: KDE
polkit.subject-pid: 1416
polkit.caller-pid: 1520
Action: Get current battery charger limit
ID: org.kde.powerdevil.chargethresholdhelper.getthreshold
Vendor: KDE
polkit.subject-pid: 1416
polkit.caller-pid: 1520
Re: Question about PolicyKit1 KDE Agent message
Try this: create a file /etc/polkit-1/rules.d/40-kde.powerdevil.rules with the following contents:
You'll probably need to log out and log back in.
Code: Select all
polkit.addRule(function(action, subject) {
if ((action.id == "org.kde.powerdevil.chargethresholdhelper.getthreshold") &&
subject.isInGroup("plugdev")) {
return polkit.Result.YES;
}
});
Re: Question about PolicyKit1 KDE Agent message
That worked to get rid of the first error but now I get one that says
System policies prevent you from getting the brightness level (and asking for the password).
This one says
Action: Get brightness
ID org.kde.powerdevil.backlighthelper.brightness
polkit.subject-pid: 1434
polkit.caller-pid: 1523
I tried creating another file /etc/polkit-1/rules.d/50-kde.powerdevil.rules and having both files in there.
polkit.addRule(function(action, subject) {
if ((action.id == "org.kde.powerdevil.backlighthelper.brightness") &&
subject.isInGroup("plugdev")) {
return polkit.Result.YES;
}
});
But after rebooting, the brightness level error still came up.
System policies prevent you from getting the brightness level (and asking for the password).
This one says
Action: Get brightness
ID org.kde.powerdevil.backlighthelper.brightness
polkit.subject-pid: 1434
polkit.caller-pid: 1523
I tried creating another file /etc/polkit-1/rules.d/50-kde.powerdevil.rules and having both files in there.
polkit.addRule(function(action, subject) {
if ((action.id == "org.kde.powerdevil.backlighthelper.brightness") &&
subject.isInGroup("plugdev")) {
return polkit.Result.YES;
}
});
But after rebooting, the brightness level error still came up.
Re: Question about PolicyKit1 KDE Agent message
Delete that new file and try editing the first file to this:
Code: Select all
polkit.addRule(function(action, subject) {
if ((action.id == "org.kde.powerdevil.chargethresholdhelper.getthreshold" ||
action.id == "org.kde.powerdevil.backlighthelper.brightness") &&
subject.isInGroup("plugdev")) {
return polkit.Result.YES;
}
});
Re: Question about PolicyKit1 KDE Agent message
That didn't work for the brightness warning. Is there a simpler way to grant permissions, perhaps through the group file (sudoers)? I can enter my password everytime I re-boot but I'm hoping I don't have to do that. Otherwise, I may just get used to XFCE. The Salix implementation may be the best I've ever come across, right out of the box. Nice job making XFCE look great.
Re: Question about PolicyKit1 KDE Agent message
That's weird. It should work. Are you sure you have the ID correct? Or perhaps you're getting a different ID now?
Re: Question about PolicyKit1 KDE Agent message
I figured it out. Ended up looking like this:
40-kde.powerdevil.rules
polkit.addRule(function(action, subject) {
if ((action.id == "org.kde.powerdevil.chargethresholdhelper.getthreshold" ||
action.id == "org.kde.powerdevil.backlighthelper.brightness"
||
action.id == "org.kde.powerdevil.backlighthelper.brightnessmax"
||
action.id == "org.kde.powerdevil.backlighthelper.syspath"
||
action.id == "org.kde.kded.smart.smartctl"
||
action.id == "org.kde.powerdevil.backlighthelper.setbrightness") &&
subject.isInGroup("plugdev")) {
return polkit.Result.YES;
}
});
40-kde.powerdevil.rules
polkit.addRule(function(action, subject) {
if ((action.id == "org.kde.powerdevil.chargethresholdhelper.getthreshold" ||
action.id == "org.kde.powerdevil.backlighthelper.brightness"
||
action.id == "org.kde.powerdevil.backlighthelper.brightnessmax"
||
action.id == "org.kde.powerdevil.backlighthelper.syspath"
||
action.id == "org.kde.kded.smart.smartctl"
||
action.id == "org.kde.powerdevil.backlighthelper.setbrightness") &&
subject.isInGroup("plugdev")) {
return polkit.Result.YES;
}
});