Package: xfce4-power-manager
Version: 1.6.6-1
Followup-For: Bug #773743
Hello,
I run a thinkpad 495 laptop with tlp and this bug still exists. I believe the
bug has to do with the way the package adds rules to the systemd polkit. It
appears some rules and there subsequent config are missing. I also noticed that
with workarounds using the xfce4-power-manager settings the laptop would often
suspend before locking and when coming back it would briefly show the contents
of the unlocked system.
I have added what I did to fix the authentication errors below:
In order to get suspend issue corrected perform the following:
1) Create the '/etc/polkit-1/rules.d' directory
$ sudo su
# mkdir /etc/polkit-1/rules.d
2) Correct the permissions for the directory
# chmod 755 /etc/polkit-1/rules.d
3) Create a new file called /etc/polkit-1/rules.d/85-suspend.rules
# vi /etc/polkit-1/rules.d/85-suspend.rules
4) Add the following text to the new file called
'/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;
}
});
5) Correct the permissions on the file
'/etc/polkit-1/rules.d/85-suspend.rules'
# chmod 644 /etc/polkit-1/rules.d/85-suspend.rules
6) Edit the file
'/usr/share/polkit-1/actions/org.freedesktop.login1.policy' and change the
"suspend" rules to yes
The process is similar to fix the backlight modification authentication errors.
1) Create the '/etc/polkit-1/rules.d' directory ("if it doesn't exist")
$ sudo su
# mkdir /etc/polkit-1/rules.d
2) Correct the permissions for the directory ("if created above, in step
1")
# chmod 755 /etc/polkit-1/rules.d
3) Create a new file called /etc/polkit-1/rules.d/89-backlight.rules
# vi /etc/polkit-1/rules.d/89-backlight.rules
4) Add the following text to the new file called
'/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;
}
});
5) Correct the permissions on the file
'/etc/polkit-1/rules.d/89-backlight.rules'
# chmod 644 /etc/polkit-1/rules.d/89-backlight.rules
6) Edit the file
'/usr/share/polkit-1/actions/org.freedesktop.login1.policy' and change the
"backlight" rules to yes
I documented the fix on the wiki here:
https://wiki.debian.org/Xfce-power-manager-troubleshooting
And added a link the xfce debian wiki page.
Maybe we can get these fixes incorporated into the package?
Thanks,
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.6.0-1-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages xfce4-power-manager depends on:
ii libc6 2.30-8
ii libcairo2 1.16.0-4
ii libgdk-pixbuf2.0-02.40.0+dfsg-4
ii libglib2.0-0 2.64.2-1
ii libgtk-3-03.24.20-1
ii libnotify40.7.9-1
ii libpango-1.0-01.44.7-4
ii libpangocairo-1.0-0 1.44.7-4
ii libupower-glib3 0.99.11-1
ii libx11-6 2:1.6.9-2+b1
ii libxext6 2:1.3.3-1+b2
ii libxfce4ui-2-04.14.1-1+b1
ii libxfce4util7 4.14.0-1
ii libxfconf-0-3 4.14.1-1
ii libxrandr22:1.5.1-1
ii upower0.99.11-1
ii xfce4-power-manager-data 1.6.6-1
Versions of packages xfce4-power-manager recommends:
ii libpam-systemd 245.5-2
ii xfce4-power-manager-plugins 1.6.6-1
xfce4-power-manager suggests no packages.
-- no debconf information