| Summary: | sys-auth/consolekit-0.4.6 - consolekit ioctl fails during a VT_WAITACTIVE and fails to declare the current terminal as active | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jimmy.Jazz |
| Component: | [OLD] Core system | Assignee: | Jason Zaman <perfinion> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | freedesktop-bugs |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | consolekit-0.4.6 ck-vt-monitor.c patch | ||
|
Description
Jimmy.Jazz
2014-03-22 18:01:05 UTC
Created attachment 373274 [details, diff]
consolekit-0.4.6 ck-vt-monitor.c patch
(In reply to Jimmy.Jazz from comment #0) > For whatever reason, consolekit ioctl fails during a VT_WAITACTIVE and fails > to declare the current terminal as active. With what version of dev-libs/glib? Have you seen bug 501330? > The patch will care about it by reopening the console to check for the > active terminal again. You wrote the patch? Did you open a corresponding bug at http://bugzilla.freedesktop.org/ against the ConsoleKit component? > Please find attached the patch for testing. Why is this patch suddently now needed, when it wasn't before? I don't like the idea of adding new features to CK in a form of a distribution patch (as opposed getting something reviewed and committed to the freedesktop.org git) (In reply to Samuli Suominen from comment #2) > (In reply to Jimmy.Jazz from comment #0) > > For whatever reason, consolekit ioctl fails during a VT_WAITACTIVE and fails > > to declare the current terminal as active. > > With what version of dev-libs/glib? Have you seen bug 501330? dev-libs/glib-2.38.2-r1 w/ linux 3.13.6 I don't use a session manager but openbox directly. The login is always working. I'm using lightdm to connect to a login openbox 'session' and to shutdown the computer. x11-misc/lightdm-1.9.6 x11-misc/lightdm-gtk-greeter-1.8.2 I'm using pam w/ the line: session optional pam_ck_connector.so nox11 Consolekit never fails when I don't log to X. lightdm right menu is working and I'm able to log out as expected if I don't try to switch to a vt, return to the openbox session again and leave it for the lightdm greeter. Also, if I switch to any of the Alt-Fx vt, the lightdm greeter doesn't allow me to use its menu again. Consolekit fails to activate the current session. Its log shows the message error. With the patch, the failure disappear. I don't know about slim. > > > The patch will care about it by reopening the console to check for the > > active terminal again. > > You wrote the patch? Yes but it's hardly a patch. > Did you open a corresponding bug at http://bugzilla.freedesktop.org/ against > the ConsoleKit component? No. The reason. I don't understand why the /dev/tty descriptor goes mad. The patch has no pretention. It closes and reopens the device and tries again. > > > Please find attached the patch for testing. > > Why is this patch suddently now needed, when it wasn't before? I don't like > the idea of adding new features to CK in a form of a distribution patch (as > opposed getting something reviewed and committed to the freedesktop.org git) Believe me, it is needed on linux anyway. I don't know about BSD. Consolekit has never worked flawlessly. One time you loose the greeter menu, one time not. Also the patch isn't a feature. It just helps to give the ability to get the right session activated after a failed VT_WAITACTIVATE ioctl and that every time :) Does this still happen on the latest versions? please reopen if it does. |