You are not logged in.

#1 2012-11-01 13:00:00

xaverlalo
Member
Registered: 2012-05-02
Posts: 18

LXDE - no more shutdown/reboot - not able to automount USB-stick

Hello,

after updating my system and creating the new "rc.conf"-Files (/etc/hostname, /etc/vconsole.conf etc.) I don't have shutdown and reboot buttons any more:

$ lxde-logout

** (lxsession-logout:1163): WARNING **: dbus-interface.c:94: DBUS: The name org.freedesktop.Hal was not provided by any .service files

** (lxsession-logout:1163): WARNING **: dbus-interface.c:94: DBUS: The name org.freedesktop.Hal was not provided by any .service files

I think there are seval problems with policykit because USB-sticks produce the error "Not authorized to perform operation"

#!/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
exec startlxde --with-ck-launch

dbus is in deamons-list in rc.conf:

#
# /etc/rc.conf - configuration file for initscripts
#
# Most of rc.conf has been replaced by various other configuration
# files. See archlinux(7) for details.
#
# For more details on rc.conf see rc.conf(5).
#

DAEMONS=(@syslog-ng acpid acpi-cpufreq dbus @networkmanager @alsa @crond @cupsd)

I use LXDM as shown in /etc/inittab:

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)	Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3: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/lxdm >& /dev/null
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file 

EDIT:

I do have a file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla  :

Local restart]
Identity=unix-group:power
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown]
Identity=unix-group:power
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=no
ResultActive=yes

Last edited by xaverlalo (2012-11-01 13:18:39)

Offline

#2 2012-11-01 13:29:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: LXDE - no more shutdown/reboot - not able to automount USB-stick

You need to upgrade to systemd. LXDM now uses it instead of consolekit.

Offline

#3 2012-11-01 13:33:38

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: LXDE - no more shutdown/reboot - not able to automount USB-stick

- boot with systemd
- remove "--with-ck-launch"
- remove the polkit rules, they are useless and unnecessary

Offline

#4 2012-11-01 15:02:41

ricrogz
Member
From: Murcia
Registered: 2011-11-23
Posts: 21
Website

Re: LXDE - no more shutdown/reboot - not able to automount USB-stick

Same problem here, removing polkit rules does not solve it.

Offline

#5 2012-11-02 03:31:14

kabbalah
Banned
Registered: 2011-08-23
Posts: 150

Re: LXDE - no more shutdown/reboot - not able to automount USB-stick

Lxde have same problem, with fresh installation, not reboot, not poweroof.

Offline

#6 2012-11-19 02:18:36

debianuser
Member
Registered: 2012-11-19
Posts: 1

Re: LXDE - no more shutdown/reboot - not able to automount USB-stick

I have problems lately with suspend from the lxde panel (using 'sudo pm-suspend' instead)
I fixed the "not authorized" messages re:automounting usb volumes by adding a file in policykit described here:
http://www.ab9il.net/linux/pcmanfm-usb-mount.html

Last edited by debianuser (2012-11-19 02:21:13)

Offline

Board footer

Powered by FluxBB