From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Unlocking Plasma desktop in Gentoo without systemd
Date: Tue, 12 Sep 2017 14:04:13 +0100 [thread overview]
Message-ID: <7645100.2X8QJz99a6@dell_xps> (raw)
In-Reply-To: <7ca2b0e8-a8f8-eb4e-8b60-ee7f262c4b7e@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]
On Tuesday, 12 September 2017 13:13:32 BST Michael Palimaka wrote:
> On 09/12/2017 05:04 AM, Daniel Frey wrote:
> > According to a comment in the bug, you can try to figure out which
> > session it is (ck-list-sessions) and look for the X11 display property
> > set. This will not work (or could be difficult) if you have several
> > users using KDE at the same time and can't tell the sessions apart.
> >
> > Once you figure that out, remember the session name and:
> >
> > # su -c 'dbus-send --system --print-reply \
> > --dest="org.freedesktop.ConsoleKit" \
> >
> > /org/freedesktop/ConsoleKit/<session name> \
> >
> > org.freedesktop.ConsoleKit.Session.Unlock'
>
> If there a nice way to wrap this up in a script I'd be interesting in
> shipping this for non-logind systems.
>
> Another option is sys-auth/elogind, which provides the logind interface
> and tools (like loginctl) for non-systemd systems. This is what I've
> been testing with OpenRC for some time.
>
> I read that ConsoleKit is also supporting the logind dbus interface now.
> This would in theory make it easy to create a tool to unlock the
> session, but I haven't had a chance to test it yet.
I think if Plasma shipped with screenlock unset as a default this problem
would not exist for non-systemd set ups. I disabled Plasma's screenlock and
after after some time of inactivity eventually DPMS kicks in and the monitors
go into power saving mode. This negates for needing special scripts elogind
or anything else KDE/Plasma never needed before now.
Nevertheless, the suggestions for using dbus-send were useful for getting me
out of a hole. Thanks again! :-)
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-09-12 13:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 17:49 [gentoo-user] Unlocking Plasma desktop in Gentoo without systemd Mick
2017-09-11 18:18 ` Stroller
2017-09-11 19:00 ` Mick
2017-09-11 18:27 ` Jigme Datse Yli-RAsku
2017-09-11 19:04 ` Mick
2017-09-11 19:27 ` Dan Johansson
2017-09-11 21:38 ` Mick
2017-09-11 19:04 ` Daniel Frey
2017-09-12 12:13 ` [gentoo-user] " Michael Palimaka
2017-09-12 13:04 ` Mick [this message]
2017-09-13 9:07 ` J. Roeleveld
2018-02-13 3:03 ` Daniel Frey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7645100.2X8QJz99a6@dell_xps \
--to=michaelkintzios@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox