public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: going from systemd to udev
Date: Fri, 7 Feb 2014 18:43:19 -0600	[thread overview]
Message-ID: <CADPrc81eYAYL0bLt1srFyRn=eX0G+mkuvAC9TpCmkwf9DN78yw@mail.gmail.com> (raw)
In-Reply-To: <52F56B4D.1080105@gmail.com>

On Fri, Feb 7, 2014 at 5:25 PM, walt <w41ter@gmail.com> wrote:
> On 02/07/2014 02:32 PM, Canek Peláez Valdés wrote:
>> Your seat seems to be the owner of both the power buttons and USB
>> devices, so you should not be asked for a password when powering down
>> the machine (unless another user or root is logged in, for example by
>> ssh), nor when using a USB stick.
>>
>> I repeat my question (if you already answered I apologize), do you
>> have systemd emerged with the policykit USE flag?
>
> Well, I know more now but understand less :)  I recompiled both systemd
> and polkit and they both have the correct useflags.
>
> After rebooting I looked at /run/systemd/seesions/1 and I'm now "ACTIVE".
>
> But next I startx (into xfce4) and look again:
>
> $cat /run/systemd/sessions/1
> # This is private data. Do not parse.
> UID=1001
> USER=wa1ter
> ACTIVE=0    <=================== not active
> STATE=online
> REMOTE=0
> TYPE=tty
> CLASS=user
> SCOPE=session-1.scope
> FIFO=/run/systemd/sessions/1.ref
> SEAT=seat0
> TTY=/dev/tty1
> SERVICE=login
> VTNR=1
> LEADER=431
> AUDIT=1
> REALTIME=1391814650100964
> MONOTONIC=29998146
>
> I think I remember having the same problem in the early days of consolekit
> and I used some kind of policy editor to fix it, but I don't remember much
> about it.

This is a known problem (or at least I heard something similar
before). You start your session when you log in, but then with startx,
that is lost in some cases because, technically, a VT session is
different from a X11 session (Wayland will take care of this, and many
other things). When you start your DE with gdm or lightdm, this
doesn't happen, because they talk to systemd (logind, actually) so
your session gets transferred to the X11 one. Supposedly, the Xfce
session manager (via startxfce4) has support for this, but only if
compiled with --enable-systemd, which is in turn supported by our
ebuilds.

So, a couple of questions:

  • Do you compiled xfce4-session with the systemd USE flag?
  • What do you have in $HOME/.xinitrc? I *think* it should just be
"exec startxfce4", if you used the systemd USE flag.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


  reply	other threads:[~2014-02-08  0:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 19:58 [gentoo-user] going from systemd to udev Joseph
2014-02-04 21:42 ` Daniel Campbell
2014-02-04 22:29   ` gottlieb
2014-02-04 23:27     ` [gentoo-user] " walt
2014-02-05  0:10       ` Canek Peláez Valdés
2014-02-05  1:30         ` Poncho
2014-02-05  1:34           ` Canek Peláez Valdés
2014-02-06  0:22         ` walt
2014-02-06  2:25           ` Canek Peláez Valdés
2014-02-07  1:21             ` walt
2014-02-07  1:38               ` Canek Peláez Valdés
2014-02-07 21:52                 ` walt
2014-02-07 22:32                   ` Canek Peláez Valdés
2014-02-07 23:25                     ` walt
2014-02-08  0:43                       ` Canek Peláez Valdés [this message]
2014-02-08  1:38                         ` walt
2014-02-05  6:21       ` Alan McKinnon
2014-02-05  9:27         ` J. Roeleveld
2014-02-05  0:03 ` [gentoo-user] " Canek Peláez Valdés
2014-02-05  0:24   ` Joseph
2014-02-05  0:38     ` Canek Peláez Valdés
2014-02-05  1:26       ` Joseph
2014-02-05  1:28       ` Joseph
2014-02-05  1:33         ` Canek Peláez Valdés
2014-02-05  2:01           ` Joseph
2014-02-05  2:06             ` Canek Peláez Valdés
2014-02-05  2:12               ` Joseph
2014-02-05  1:38   ` Joseph
2014-02-05  1:50     ` Canek Peláez Valdés
2014-02-06 19:22     ` Pavel Volkov

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='CADPrc81eYAYL0bLt1srFyRn=eX0G+mkuvAC9TpCmkwf9DN78yw@mail.gmail.com' \
    --to=caneko@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