Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681300 - x11-misc/light-locker-1.8.0 does not restore session after locking if xorg-server is compiled with elogind support
Summary: x11-misc/light-locker-1.8.0 does not restore session after locking if xorg-se...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Denis Dupeyron (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: elogind-support
  Show dependency tree
 
Reported: 2019-03-22 14:00 UTC by Guillaume Castagnino
Modified: 2019-03-30 09:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Castagnino 2019-03-22 14:00:16 UTC
A push request will follow soon, applying a patch available here: https://github.com/the-cavalry/light-locker/pull/117/files
Comment 1 Andreas Sturmlechner gentoo-dev 2019-03-23 21:07:34 UTC
Plus: reconsider IUSE=+consolekit

It clashes with the planned switch of desktop profiles to +elogind. This package apparently does not need any of session managers enabled to run - or otherwise it was missing a REQUIRED_USE so far - so it should be fine without a default; desktop profiles at this time are setting +consolekit globally anyway, except if otherwise defined by systemd subprofile.
Comment 2 Guillaume Castagnino 2019-03-24 11:58:14 UTC
(In reply to Andreas Sturmlechner from comment #1)
> This
> package apparently does not need any of session managers enabled to run - or
> otherwise it was missing a REQUIRED_USE so far
This assertion is partially false. In fact that’s why I spotted the issue : if your session is handled with elogind and light-locker does not has elogind support, you will be able to lock the session, but you will never be able to re-enter the session again and will be stuck with a black screen after unlocking.

And as soon as xorg is compiled with elogind support, the xfce session uses elogind automatically, so you must have light-locker support set accordingly. Same for systemd I assume (but I cannot check since I remain an openrc user).

I will fix all the comments on the pull request as soon I can (probably not until tomorrow), regarding default USE flags, required USE, dependency mess and EAPI bump.

But if someone else want to take over before that, you are welcome. Initially I just wanted to add elogind support by porting a PR that is available upstream ;)
Comment 3 Andreas Sturmlechner gentoo-dev 2019-03-24 13:39:36 UTC
(In reply to Guillaume Castagnino from comment #2)
> (In reply to Andreas Sturmlechner from comment #1)
> > This
> > package apparently does not need any of session managers enabled to run - or
> > otherwise it was missing a REQUIRED_USE so far
> This assertion is partially false. In fact that’s why I spotted the issue :
> if your session is handled with elogind and light-locker does not has
> elogind support, you will be able to lock the session, but you will never be
> able to re-enter the session again and will be stuck with a black screen
> after unlocking.
That misses the point I made. Does light-locker work without any session management? If so, a default session manager is not necessary. If not, the ebuilds have been wrong so far.

Does a revdep of light-locker require light-locker built with a certain session-manager? Fine, that's not for light-locker to solve, but for the revdep to set the correct use deps on light-locker.
Comment 4 Larry the Git Cow gentoo-dev 2019-03-30 09:59:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c355d1d34e9c90ebdfb422fedde2f9f1aee1b1d6

commit c355d1d34e9c90ebdfb422fedde2f9f1aee1b1d6
Author:     Guillaume Castagnino <casta@xwing.info>
AuthorDate: 2019-03-22 14:03:36 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-03-30 09:58:21 +0000

    x11-misc/light-locker: add elogind support
    
    This patch comes from the pull request
    https://github.com/the-cavalry/light-locker/pull/117/files
    and add elogind support. Without this patch, if xorg is compiled with
    elogind support, the session cannot be restored after locking the screen
    and result in a black screen.
    
    Closes: https://bugs.gentoo.org/681300
    Signed-off-by: Guillaume Castagnino <casta@xwing.info>
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Closes: https://github.com/gentoo/gentoo/pull/11460
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/light-locker-1.8.0-elogind.patch         | 257 +++++++++++++++++++++
 x11-misc/light-locker/light-locker-1.8.0-r1.ebuild |  74 ++++++
 2 files changed, 331 insertions(+)