Bug 221452 - sysutils/consolekit2: session's active state lost when switching between virtual terminals
Summary: sysutils/consolekit2: session's active state lost when switching between virt...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-gnome mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-12 19:19 UTC by chris
Modified: 2017-08-25 16:43 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chris 2017-08-12 19:19:35 UTC
The session's active state is [still] not 100% accurate with consolekit2 despite the fixes in #202269. I'm using lightdm and xfce4.

When I log in directly from lightdm, ck-list-sessions reports the session as active. However, if I ever switch to a text console and back to the X11 console, the session is reported as "active = FALSE" with the corresponding side effects (not able to mount removable media, ...)

Sometimes, I also have the case that the X11 session remains active even when running ck-list-sessions from a text console. I do not have pam configured to register sessions, thus the only session is the X11 session registered by lightdm, console login or not.

I'm using the text console (kern.vty=sc) and the Nvidia driver in case this makes any difference.

Please let me know if you need additional information or would like me to run tests.

Thanks,
--Christian
Comment 1 chris 2017-08-12 19:23:12 UTC
Forgot to mention: I'm on mainline 11.1-RELEASE-p1
Comment 2 rkoberman 2017-08-12 19:32:40 UTC
I can confirm the same issue with 11-STABLE r320665 on amd64 using mate desktop. I have not seen the issue with mounting USB media, though. Probably due to differences between MATE and XFCE4. Also of possible relevance, I don't use a sm to start. I log in to VTY1 and startx:
exec ck-launch-session dbus-launch --exit-with-session mate-session
Comment 3 Jesper Schmitz Mouridsen freebsd_committer 2017-08-25 14:48:11 UTC
I cannot reproduce the problem in comment #2 I've not tried the vty=sc

E.g swithing tty does not invalidate my active x11 session when coming back to /dev/ttyv8 (my x11 tty) from console (CTRL+ALT+F1..F8 neither with xinit or a DM.

How did you both install consolekit2?

I'm at 11.1-RELEASE FreeBSD 11.1-RELEASE
Comment 4 chris 2017-08-25 16:43:04 UTC
I've installed consolekit2 via ports using the default config. Most of my packages are installed via pkg, just a few are from ports. In the case of consolekit2, I used ports because it wasn't available as binary package at that point. If you want, I can check and use the binary package if it's available by now.