[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Xfce4, systemd - shutdown via builtin-dialog isn't working



On 5/18/14, Zenaan Harkness <zen@freedbms.net> wrote:
> On 5/17/14, Michael Biebl <biebl@debian.org> wrote:
>> Am 17.05.2014 04:27, schrieb Zenaan Harkness:
>>> I have no display manager.
>>
>> [..]
>>
>>> Also, I would like to see Shutdown and Suspend enabled, of course.
>>
>> Most likely related to [0].
>> Make sure you have libpam-systemd installed and enabled and when
>> starting the X session to use the same tty as your console login so your
>> logind session is "upgraded" for your X session.
>> In the linked bug report they recommend to use something like
>>
>> startx -- vt01 (in case your logged in on tty1)
>
> That's great, thank you. The bug links to a red hat bug with a more
> dynamic solution, which works for me.

For reference, here's my new startx ("se") bash function to start x
from a linux tty (with lines taken from the red hat bug report):

se () {
   local tty_num=$(tty | grep -oE '[0-9]+$')
   startx -- -logverbose 7 vt$tty_num &>/var/tmp/my_xorg.log
   exit
}

> [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747882
https://bugzilla.redhat.com/show_bug.cgi?id=806491


Reply to: