You are not logged in.

#1 2011-11-07 14:38:04

palytoxin
Member
Registered: 2011-01-18
Posts: 7

Xfce can't reboot/shutdown after upgrade xfce4-session

now,it just logging out.
i'm reinstall  xfce4-session (4.8.2-2 -> 4.8.2-1) ,it's worked right.
and,if i using slim for autologin with inittab method,it's worked too.

.xinitrc

...
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4
...

inittab

id:5:initdefault:
# Boot to X11
#id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
x:5:once:/bin/su - -- yan -l -c '/usr/bin/startx </dev/null >/dev/null 2>&1'

# End of file

Offline

#2 2011-11-08 01:40:16

rene
Member
Registered: 2010-08-18
Posts: 36

Re: Xfce can't reboot/shutdown after upgrade xfce4-session

The xfce4-session 4.8.2-1 to 4.8.2-2 upgrade removed its custom policykit rules (files in /etc/polkit-1/localauthority/50.local.org) and the fact that you now can't reboot/shutdown anymore means that you have an incorrect ConsoleKit setup; their removal shouldn't have mattered. SLiM will do do that for you: it's broken currently.

If you check the output of ck-list-sessions, you will see 1 or 2 sessions, neither of which has both active=TRUE and is-local=TRUE.  I'd advice to replace SLiM with LXDM: it's also free of unwanted dependencies and does work correctly with current ConsoleKit.

You are aiming for output much like:

[rene@e600 ~]$ ck-list-sessions
Session1:
    unix-user = '1000'
    realname = ''
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-11-08T01:17:48.078956Z'
    login-session-id = ''
[rene@e600 ~]$

Offline

#3 2011-11-08 04:20:57

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Xfce can't reboot/shutdown after upgrade xfce4-session

Offline

#4 2011-11-16 11:47:06

palytoxin
Member
Registered: 2011-01-18
Posts: 7

Re: Xfce can't reboot/shutdown after upgrade xfce4-session

Thanks a lot.
this is my ck-list-sessions output with using slim.

Session2:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0.0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-11-16T11:15:30.843654Z'
	login-session-id = '1'
Session1:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0.0'
	x11-display-device = ''
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-11-16T11:15:30.177586Z'
	login-session-id = '1'

nnnn...it have been same issue after add *.pkla

And sorry for my english

Offline

#5 2011-11-16 12:33:25

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Xfce can't reboot/shutdown after upgrade xfce4-session

Your /home/~/.xinitrc should have the following for slim.

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice

Your /etc/inittab should have the following:

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
x:5:respawn:/usr/bin/slim >/dev/null 2>&1
#x:5:respawn:/usr/sbin/lxdm >/dev/null 2>&1

Your /etc/slim.conf should have the following line:

login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session

You need dbus in your daemons line of /etc/rc.conf.

I also have the following which may be needed:
/home/~/.bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

/home/~/.bash_profile

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

export EDITOR=nano
export GREP_COLOR="1;33"

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
	startx
	logout
fi

Note: you no longer need the .pkla files, but you do need polkit-gnome and gvfs for thunar.

Offline

Board footer

Powered by FluxBB