FS#66419 - [autorandr] 1.10-1 prevents the session to initialize
Attached to Project:
Community Packages
Opened by Stanislav T (stas-t) - Sunday, 26 April 2020, 10:13 GMT
Last edited by David Runge (dvzrv) - Monday, 04 May 2020, 17:06 GMT
Opened by Stanislav T (stas-t) - Sunday, 26 April 2020, 10:13 GMT
Last edited by David Runge (dvzrv) - Monday, 04 May 2020, 17:06 GMT
|
Details
Description: after upgrading autoranrd to 1.10-1 and booting
into awesome-gnome I see only a black screen for few
minutes.
After diving into the package I discovered that a new desktop file was added which blocks the session startup: /etc/xdg/autostart/autorandr-launcher.desktop FIX/WORKAROUND: edit autorandr-launcher.desktop and change Exec=/usr/bin/autorandr-launcher to Exec=/usr/bin/autorandr-launcher --daemonize Additional info: * package version(s) awesome-gnome 2.3-1 autorandr 1.10-1 gnome-session 3.36.0-1 Steps to reproduce: - close X session - upgrade packages (sudo pacman -Syu) - start X session based e.g. on gnome-session - the session fails to initialize properly and after a while you'll see this message in system journal: gnome-session-binary[4982]: WARNING: Application 'autorandr-launcher.desktop' failed to register before timeout |
This task depends upon
Closed by David Runge (dvzrv)
Monday, 04 May 2020, 17:06 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with autorandr 1.10.1-1 (upstream reverted the default)
Monday, 04 May 2020, 17:06 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with autorandr 1.10.1-1 (upstream reverted the default)
Is there a way to make gnome-session stop autorandr-launcher gently before Xorg exits?
I have created an upstream ticket to track this: https://github.com/phillipberndt/autorandr/issues/199
If you're interested it would probably be nice to leave a note with further information on the segfault (if possible).
I'm currently evaluating rolling back the old behavior of systemd/udev integration instead of the `autorandr-launcher` executable.
Regarding previous udev-based mechanism - it worked quite stable. For the new autorandr-launcher it's not clear to me how to make it session-aware or other way round - make gnome-session aware that autorandr-launcher needs to be killed before stopping Xorg.
For now I have this awesome callback to quit the session (mod4+shift+q):
function awesome_gnome_quit()
awesome.quit()
awful.spawn.with_shell("killall xss-lock autorandr-launcher ; gnome-session-quit --logout --no-prompt")
end
https://github.com/phillipberndt/autorandr/commit/dfb37523e36050826db6e188545a630c8e53a895
https://github.com/phillipberndt/autorandr/commit/42104bf719a16fcb45e55bf3bc65c5cca4e97a90
They are expected to fix both problems - session startup and the crash when Xorg stops.