lxqt-session icon indicating copy to clipboard operation
lxqt-session copied to clipboard

Lxqt-leave no shutdown

Open bugcrazy opened this issue 6 years ago • 7 comments

Lxqt-leave does not work shutdown

  • Distribution & Version: Void Linux
  • Kernel: 4.19.58_1
  • Qt Version: 5.11.3
  • liblxqt Version: 0.14.1
  • Package version: lxqt-session-0.14.1

Not root (glibc)

 (0x7ffc45978750) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanPowerOff"
 (0x7ffc45978750) Debug: systemd: "CanPowerOff" = "no"

Root (glibc)

 (0x7ffcd1e35cf0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanPowerOff"
 (0x7ffcd1e35cf0) Debug: systemd: "CanPowerOff" = "yes"

Not root (musl)

(0x7ffc0a597710) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanPowerOff"                

Root (musl)

(0x7ffc0a597710) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.ConsoleKit" "/org/freedesktop/ConsoleKit/Manager" "org.freedesktop.ConsoleKit.Manager" "CanPowerOff"  

bugcrazy avatar Jul 11 '19 07:07 bugcrazy

@agaida Shouldn't this be reported to the distro instead?

tsujan avatar Jul 19 '19 19:07 tsujan

I agree

jubalh avatar Jul 19 '19 19:07 jubalh

it depends - ok, the distribution should provide proper interfaces for "org.freedesktop.login1" and "*.ConsoleKit" - if we can use other things as Systemd to do theses Tasks (as in *BSD) it is not really our fault i guess.

agaida avatar Jul 19 '19 19:07 agaida

I'm not a fan of systemd but it's used by most distros and has been stable for a while -- touch wood ;). So, I think if a distro doesn't use it, it needs to make the replacement compatible with it -- a sort of bitter truth.

tsujan avatar Jul 19 '19 19:07 tsujan

Lxqt-leave no Hibernate, Suspend, Reboot, PowerOff.

The debug.log file

(0x7ffced8ee0c0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanHibernate"
2019-07-24 21:35:16.021 (0x7ffced8ee0c0) Warning: ** Dbus error **************************
2019-07-24 21:35:16.023 (0x7ffced8ee0c0) Warning: Error name  "org.freedesktop.DBus.Error.InvalidArgs"
2019-07-24 21:35:16.024 (0x7ffced8ee0c0) Warning: Error msg   "No such interface “org.freedesktop.DBus.Properties”"
2019-07-24 21:35:16.026 (0x7ffced8ee0c0) Warning: ****************************************
2019-07-24 21:35:16.088 (0x7ffced8ee0c0) Debug: systemd: "CanHibernate" = "na"
2019-07-24 21:35:16.092 (0x7ffced8ee0c0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanSuspend"
2019-07-24 21:35:16.096 (0x7ffced8ee0c0) Warning: ** Dbus error **************************
2019-07-24 21:35:16.097 (0x7ffced8ee0c0) Warning: Error name  "org.freedesktop.DBus.Error.InvalidArgs"
2019-07-24 21:35:16.097 (0x7ffced8ee0c0) Warning: Error msg   "No such interface “org.freedesktop.DBus.Properties”"
2019-07-24 21:35:16.098 (0x7ffced8ee0c0) Warning: ****************************************
2019-07-24 21:35:16.111 (0x7ffced8ee0c0) Debug: systemd: "CanSuspend" = "na"
2019-07-24 21:35:16.130 (0x7ffcbed6e2c0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanReboot"
2019-07-24 21:35:16.185 (0x7ffcbed6e2c0) Debug: systemd: "CanReboot" = "no"
2019-07-24 21:35:16.189 (0x7ffced8ee0c0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanReboot"
2019-07-24 21:35:16.256 (0x7ffced8ee0c0) Debug: systemd: "CanReboot" = "no"
2019-07-24 21:35:16.261 (0x7ffcbed6e2c0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanPowerOff"
2019-07-24 21:35:16.314 (0x7ffcbed6e2c0) Debug: systemd: "CanPowerOff" = "no"
2019-07-24 21:35:16.318 (0x7ffced8ee0c0) Warning: dbusCall: QDBusInterface is invalid "org.freedesktop.login1" "/org/freedesktop/login1" "org.freedesktop.login1.Manager" "CanPowerOff"
2019-07-24 21:35:16.368 (0x7ffced8ee0c0) Debug: systemd: "CanPowerOff" = "no"

Issue has been opened in the Void repository, reporting the bug. https://github.com/void-linux/void-packages/issues/13326

bugcrazy avatar Jul 25 '19 06:07 bugcrazy

According to user, they have ConsoleKit2 running and a CK2 session is established through their display manager. It is possible that Void does not build lxqt-session with CK2 support.

CameronNemo avatar Jul 26 '19 21:07 CameronNemo

Although Void Linux no longer uses consolekit2, I created a consolekit2 installation tutorial: https://notabug.org/Marcoapc/voidpkgs/wiki/ConsoleKit2+replace+Elogind

I solved the Lxqt-leave problem on shutdown, compiling polkit for Consolekit2, adding rules and pam:

https://notabug.org/Marcoapc/voidpkgs/src/master/mod_packages/polkit

https://notabug.org/Marcoapc/voidpkgs/src/master/mod_packages/polkit/files/10-udisks2.rules

https://notabug.org/Marcoapc/voidpkgs/src/master/mod_packages/polkit/files/20-shutdown-reboot.rules

https://notabug.org/Marcoapc/voidpkgs/src/master/mod_packages/polkit/files/polkit-1.pam

bugcrazy avatar Oct 14 '22 19:10 bugcrazy