Bug#773743: xfce4-power-manager: Suspend fails (requests authentication in order to suspend)

2020-05-21 Thread Justin
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



Bug#773743: xfce4-power-manager: Suspend fails (requests authentication in order to suspend)

2017-09-11 Thread Benedikt Wildenhain
Hello,

I ran into the same issue. Can I provide any further information? The
same problem seems to be present in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1605189

I tried the workaround mentioned there in the last comment (configure
screensaver not to lock the screen) and it works. Not nice from a
security point of view, but might be better than letting the system
waste energy for some days.

Regards,
Benedikt Wildenhain

-- 
Benedikt Wildenhain, M.Sc., Wiss. Mitarbeiter - Hardwarenahe IT-Systeme
Hochschule Bochum - Bochum University of Applied Sciences
Campus Velbert/Heiligenhaus - http://www.hs-bochum.de/cvh/
Kettwiger Str. 20, Heiligenhaus, Raum 2-37, Tel +49 2056 5848-16744



Bug#773743: [Pkg-xfce-devel] Bug#773743: xfce4-power-manager: Suspend fails (requests authentication in order to suspend)

2014-12-27 Thread Yves-Alexis Perez
control: tag -1 moreinfo unreproducible
On lun., 2014-12-22 at 15:41 -0500, Daniel Dickinson wrote:
> Suspend mode is never entered via power-manager due to the fact that when it
> comes times to suspend an authentication dialogue requesting authorization
> to suspend pops up instead of suspend occurring.

Looks like you have issues with your policykit config then, but there's
not enough information here to know what.
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part


Bug#773743: xfce4-power-manager: Suspend fails (requests authentication in order to suspend)

2014-12-22 Thread Daniel Dickinson
Package: xfce4-power-manager
Version: 1.4.1-1
Severity: important

Suspend mode is never entered via power-manager due to the fact that when it
comes times to suspend an authentication dialogue requesting authorization
to suspend pops up instead of suspend occurring.

This is on a non-laptop so perhaps there is something in the laptop
config that would make this work (haven't tried that yet).

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xfce4-power-manager depends on:
ii  libc6 2.19-13
ii  libdbus-1-3   1.8.12-1
ii  libdbus-glib-1-2  0.102-1
ii  libgdk-pixbuf2.0-02.31.1-2+b1
ii  libglib2.0-0  2.42.1-1
ii  libgtk2.0-0   2.24.25-1
ii  libnotify40.7.6-2
ii  libupower-glib3   0.99.1-3.1
ii  libx11-6  2:1.6.2-3
ii  libxext6  2:1.3.3-1
ii  libxfce4ui-1-04.10.0-6
ii  libxfce4util6 4.10.1-2
ii  libxfconf-0-2 4.10.0-3
ii  libxrandr22:1.4.2-1+b1
ii  upower0.99.1-3.1
ii  xfce4-power-manager-data  1.4.1-1

Versions of packages xfce4-power-manager recommends:
ii  libpam-systemd   215-8
ii  xfce4-power-manager-plugins  1.4.1-1

xfce4-power-manager suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org