Xfce Power Manager Troubleshooting

Suspend and backlight issues.

As of 05/15/2020, there are 2 rules files missing from /etc/polkit-1/ that are required to make xfce4-power-manager work properly. One is for the backlight permission and the other is for suspend permission. The specific error message is "authentication is required to suspend the system" & "authentication is required to modify laptop display brightness"

In order to get suspend issue corrected perform the following:

 $ sudo su 
 # mkdir /etc/polkit-1/rules.d

 # chmod 755 /etc/polkit-1/rules.d

 # vi /etc/polkit-1/rules.d/85-suspend.rules

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.login1.suspend" &&
        subject.isInGroup("users")) {
        return polkit.Result.YES;
    }
});

 # chmod 644 /etc/polkit-1/rules.d/85-suspend.rules

The process is similar to fix the backlight modification authentication errors.

 $ sudo su 
 # mkdir /etc/polkit-1/rules.d

 # chmod 755 /etc/polkit-1/rules.d

 # vi /etc/polkit-1/rules.d/89-backlight.rules

polkit.addRule(function(action, subject) {
    if (action.id == "org.xfce.power.backlight-helper" &&
        subject.isInGroup("users")) {
        return polkit.Result.YES;
    }
});

 # chmod 644 /etc/polkit-1/rules.d/89-backlight.rules

This will stop the 'authentication' errors and it will also stop xfce4 from blanking the screen / suspending "BEFORE" locking which is the workaround suggested in other fixes using the GUI only.