From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6C266138CE3 for ; Tue, 11 Feb 2014 00:03:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B46D9E0D5F; Tue, 11 Feb 2014 00:03:33 +0000 (UTC) Received: from nm25-vm1.access.bullet.mail.gq1.yahoo.com (nm25-vm1.access.bullet.mail.gq1.yahoo.com [216.39.63.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7EAB0E0D57 for ; Tue, 11 Feb 2014 00:03:27 +0000 (UTC) Received: from [216.39.60.169] by nm25.access.bullet.mail.gq1.yahoo.com with NNFMP; 11 Feb 2014 00:03:26 -0000 Received: from [98.138.104.97] by tm5.access.bullet.mail.gq1.yahoo.com with NNFMP; 11 Feb 2014 00:03:26 -0000 Received: from [127.0.0.1] by smtp117.sbc.mail.ne1.yahoo.com with NNFMP; 11 Feb 2014 00:03:26 -0000 X-Yahoo-Newman-Id: 182621.44958.bm@smtp117.sbc.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _wurfcEVM1nw7B4VS_G7YkJ4HPX0cSc93YXBrBQ9ergsXLE hS4kYKBq2uCIp0ZNCPby.45P0NDyu7vKCJf2yNjiYLb6Ba4WNWpxFSgR4ULG GcMEGTnTWhNYkTRXZVFOmpRiBbivZCDxJC31kMlfgJE.kK2S.rEO409fma8_ Xn2FUaIQZGAWr8EwoMMA0HKsq0o_hr8OLAQLPjykfDWEnaQBdzHNgZb7ECjh KrpWb.mmPgtjarhm.8xu7myN2XVYOb1FtdQEF2IKIdVjionwgtMiRPol0J1s eCg5ngYA._XbWPPk6kqIEVylnwM3jVTol4P0f2Z4P9HUSt.fJblKk7eQSMS1 5K4eUpqBjETGMU6O.Ap1zmYy4NTO.WxnjnyTm1ZEpuiE5ON2XtWUfY9D4grC 0vr_QJ6poulOVZDSdiMkcWlipwV3PABc2MWmNLKTB0gjcML_ZCVuJDxBvrra lGvc89W9DE3Sy70fhX80WXBmMXc.0anVkw3FGE2OUDkYv9_OB5ykKx2gAB7V Dp9NtQ_N7kXmgD0CjXAKeDQAMUpnk_PAwAZdcfquMadawbSFIEwE6hZsPIds aeWhg93zspBt3myv9sJaT7wLIli0k.PZfZ7OPow_Hid7eRnRZMtDuT5yAXIy cphtCCIjMJXKf6K7n6IHO2CZeN.r4Pss1Gw4_l0xwFV4zZxljiKi4vPBQHXn giboV4Q-- X-Yahoo-SMTP: oM3WcDSswBC7zv73TQKEsi7eAZ0- X-Rocket-Received: from [192.168.1.2] (w41ter@69.234.181.15 with plain [98.138.31.74]) by smtp117.sbc.mail.ne1.yahoo.com with SMTP; 11 Feb 2014 00:03:26 +0000 UTC Message-ID: <52F968CC.4030003@gmail.com> Date: Mon, 10 Feb 2014 16:03:24 -0800 From: walt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: [poll] What is your session state? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: f6217077-8cb3-4a77-bedc-e7b8aa91a1cf X-Archives-Hash: 7b470824544bfc4e5f6146f679423259 On 02/09/2014 06:06 PM, Canek Peláez Valdés wrote: > On Sun, Feb 9, 2014 at 4:43 PM, walt wrote: >> Recent threads about consolekit vs logind(systemd) have made me curious, so >> I've been studying... >> >> A few of us have had recent problems with things like plugging USB sticks, >> which once worked transparently but now require root privileges. >> >> I've discovered that my own such problems are caused by this: >> >> $loginctl show-session 1 (I have only one session, cleverly named '1') >> >> Id=1 >> Timestamp=Sun 2014-02-09 07:18:32 PST >> TimestampMonotonic=389744251 >> VTNr=1 >> TTY=/dev/tty1 >> Remote=no >> Service=login >> Scope=session-1.scope >> Leader=426 >> Audit=1 >> Type=tty >> Class=user >> Active=no <========================= should be 'yes' >> State=online <======================= should be 'active' >> >> Users of consolekit, don't feel neglected. You should try this instead: >> >> $ck-list-sessions >> Session1: >> unix-user = '1001' >> realname = '(null)' >> seat = 'Seat2' >> session-type = '' >> active = FALSE (correct because I'm ssh'd into a remote box) >> x11-display = ':0' >> x11-display-device = '/dev/tty2' >> display-device = '/dev/tty1' >> remote-host-name = '' >> is-local = FALSE >> on-since = '2014-02-09T22:00:10.750312Z' >> login-session-id = '1' >> >> Canek explained that the reason my session is not 'active' is that I'm >> not using a Display Manager (gdm kdm lightdm), which talks to logind or >> consolekit and vouches for my physical presence at the local keyboard. >> >> However, when I do the same thing on arch linux (as a virtualbox guest) >> I see that my session (running gnome) is 'active' and I have no trouble >> powering off the virtual machine as an unprivileged user. > > Hi Walt; since I already have GNOME 3+systemd, I decided to install > Xfce. Given that all the plumbing is essentially the same for both > desktops, it took less than 15 minutes for portage to emerge it (13 > small packages). > > I started it like you, with "exec startxcfe4" in my $HOME/.xinitrc. > Boy, I had forgotten how desktops looked at the start of the century. Which century? :p > > Anyway, I had exactly the same problem as you; I needed my root > password to mount USB sticks or shutdown the machine. My session was > Active=no, State=online. > > As I suspected, if I started Xfce through gdm, everything worked > without any issue; session was Active=yes, State=active, and my root > password was not required for anything. So one workaround is to > install gdm, but that is ugly (and unnecessary, see below). > >> Any ideas how I can fix it? > > Yeah, I found the solution on the net: > > http://blog.falconindy.com/articles/back-to-basics-with-x-and-systemd.html Thank you! > > Basically, invoke startx passing Xorg the option of which VT you want > to "transfer" for your X11 session: > > startx -- vt01 > > Obviously, that only works if you are in VT 1 (Alt-F1). What an obvious fix, once you understand the underlying problem. BTW (thinking seat0) I typed "startx --vt0" That was interesting. (But not recommended :) > I owe you an apology Walter; I just assumed you had configured > something wrong. I'm just getting used to the fact that with GNOME > 3+systemd everything kinda works immediately. Sorry. No problem Canek. I'd never have got this far without your suggestions and hints. > I really don't understand > how could I get any work done before using GNOME Shell. Hmm. I think by 3.12 I'll be ready to give it another try. Meanwhile I'll stick to an earlier century :)