You are not logged in.

#1 2012-06-23 10:17:27

Reznor
Member
From: BiH
Registered: 2012-06-23
Posts: 78

[SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Hello everybody. I am new around here. I am using Arch Linux and Slackware for some time, and I'm still learning. I have installed many times Arch Linux successfully, but this time I have got an issue that I can't solve.

I am using XFCE4 with LXDM. In rc.conf I have added dbus and hald (maybe hald is not needed anymore?) before crond and network and lxdm as last entry in daemons. It boots ok, and lilo is my choice of boot manager (because of Slackware). However, shutdown and reboot icons in xfce4 tray popup menu are grayed out. I need to turn off my computer manually with shutdown -h now or init 0 commands. Also, when I double click on any of my hard disk drives/pendrives it says that I am not authorized to do that operation.

Here is the screenshot:

-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --



I have recently installed ConsoleKit.

Here are my ~/.xinitrc and rc.conf:

#!/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 ck-launch-session startxfce4
#exec ck-launch-session xfce4-session
exec ck-launch-session dbus-launch
# ...or the Window Manager of your choice
xrandr --newmode "1280x1024_75.00"  138.75  1280 1368 1504 1728  1024 1027 1034 1072 -hsync +vsync
xrandr --addmode VGA-0 "1280x1024_75.00"
xrandr --output VGA-0 --mode 1280x1024_75.00
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# See 'man 5 rc.conf' for more details
#

# LOCALIZATION
# ------------
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Sarajevo"
KEYMAP="de"
CONSOLEFONT=
CONSOLEMAP=
LOCALE=
DAEMON_LOCALE="yes"
USECOLOR="yes"

# HARDWARE
# --------
MODULES=(ext2 ext3 ext4)
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"

# NETWORKING
# ----------
HOSTNAME="archlinux"

interface=eth0
address=
netmask=
broadcast=
gateway=

NETWORK_PERSIST="no"

# DAEMONS
# -------
#
DAEMONS=(syslog-ng dbus hal network pulseaudio crond lxdm)

Thanks in advance.

Last edited by Reznor (2012-06-29 08:08:44)


rm -rf /

Offline

#2 2012-06-23 10:38:01

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

The .xinitrc looks odd;

1. The line "exec  ck-launch-session dbus launch" but no xfce4-session after it?

2. The xrandr lines after would not be executed if you, had, xfce4-session started in the line before - not until xfce4 was closed.

Look over the config a bit and good luck.


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#3 2012-06-23 19:50:39

Reznor
Member
From: BiH
Registered: 2012-06-23
Posts: 78

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

I have changed this line to exec ck-launch-session dbus-launch xfce4-session, but no change. Is there anything else I should try?

Ok, I will move xrandr lines upper, that is not an issue, changing resolution works ok, I am using autologin for lxdm, so I don't notice that.


rm -rf /

Offline

#4 2012-06-23 19:59:30

PReP
Member
From: Sweden
Registered: 2010-06-13
Posts: 359
Website

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Alright.

I do not know much about the ck-launch-session or policykit, dbus and such since i stopped using them,
but until you or someone solves it, you could make a link, launcher or icon that executes a script doing "sudo halt" or "shutdown -h" and "sudo reboot" or such perhaps.

And i do not think you need 'hald' anymore for some time now smile


. Main: Intel Core i5 6600k @ 4.4 Ghz, 16 GB DDR4 XMP, Gefore GTX 970 (Gainward Phantom) - Arch Linux 64-Bit
. Server: Intel Core i5 2500k @ 3.9 Ghz, 8 GB DDR2-XMP RAM @ 1600 Mhz, Geforce GTX 570 (Gainward Phantom) - Arch Linux 64-Bit
. Body: Estrogen @ 90%, Testestorone @ 10% (Not scientific just out-of-my-guesstimate-brain)

Offline

#5 2012-06-23 20:20:45

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

For me only 'exec ck-launch-session startxfce4' is needed, all the stuff between the 'if' and 'fi' seem to be doing more harm than good for me. Your xrandr stuff should be executed from xfce, put it in a script and add that script in the session startup configuration.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2012-06-23 21:46:56

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

LXDM does not use .xinitrc smile.

Shutdown and reboot grayed out with LXDM is very strange. I have never encountered that, nor did I ever read a topic about it. Post your /etc/lxdm/lxdm.conf please.
I have also noted that automounting stopped working for me, but I don't care since I almost never use a usb stick. Also, I never looked at the wiki page about automounting, so I can't help you with that.

Offline

#7 2012-06-24 19:30:54

Reznor
Member
From: BiH
Registered: 2012-06-23
Posts: 78

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Here's lxdm.conf

[base]
## uncomment and set autologin username to enable autologin
# autologin=dgod
autologin=dino
## uncomment and set timeout to enable timeout autologin,
## the value should >=5
# timeout=10
timeout=0
## default session or desktop used when no systemwide config
# session=/usr/bin/startlxde
session=/usr/bin/startxfce4
## uncomment and set to set numlock on your keyboard
# numlock=0

## set this if you don't want to put xauth file at ~/.Xauthority
# xauth_path=/tmp

## greeter used to welcome the user
greeter=/usr/lib/lxdm/lxdm-greeter-gtk

[server]
## arg used to start xserver, not fully function
# arg=/usr/bin/X -background vt1

[display]
## gtk theme used by greeter
gtk_theme=Clearlooks

## background of the greeter
# bg=/usr/share/backgrounds/default.png

## if show bottom pane
bottom_pane=1

## if show language select control
lang=1

## if show keyboard layout select control
keyboard=0

## the theme of greeter
theme=Industrial

[input]

[userlist]
## if disable the user list control at greeter
disable=0

## whitelist user
white=

## blacklist user
black=

rm -rf /

Offline

#8 2012-06-25 16:37:09

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

You could try another display manager to see if LXDM is the problem, but lxdm.conf is ok so I suspect something is wrong with consolekit. I don't know much about consolekit, but 'ck-list-sessions' should show a session with a line 'active = TRUE'. If it doesn't, then something is definitely wrong with consolekit.

I got automounting working by installing the following:

pacman -S --needed gvfs gvfs-afc thunar-volman

Offline

#9 2012-06-26 16:21:10

Reznor
Member
From: BiH
Registered: 2012-06-23
Posts: 78

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

I have tried KDM. It says:
warning: Cannot open ConsoleKit session: Message did not receive a reply (timeout by message bus)

However, with KDE shutdown and reboot works, but I can feel that with KDM system is slower (also launched KDE through LXDM, and it was a bit faster).

It could not stay like this anyway, because I will always have to pass this message on login.

On ck-list-sessions it does show nothing (empty line)

[root@archlinux dino]# ck-list-sessions
[root@archlinux dino]# 

I have those packages you suggested, but automounting still does not work.

Thank you for your help. If anyone else would not come with any solution for ConsoleKit, I will do a clean install. It would be the last option, because I have spent a lot of time setting up the system. I did not selected dev packages, so it seems that ConsoleKit must be installed in base installation in order to work properly.

Last edited by Reznor (2012-06-26 16:23:06)


rm -rf /

Offline

#10 2012-06-28 10:17:45

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

I am having the exact same problems as described by the OP of this thread.  This resulted from a fresh network install of Archlinux done today.

Is the current Consolekit package in the repository broken, perhaps?

Offline

#11 2012-06-28 10:33:41

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Unlikely, I did a fresh net-install two days ago and my consolekit works fine. I did have to change a file to be able to mount usb-sticks, as described in the wiki (I'm not running a DM atm).

Offline

#12 2012-06-28 12:25:38

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Well, I've tried it without a DM as well, both using startx and starting it directly from the command line (invoking ck-launch-session both as its own command and as a switch with startxfce4).  I've also mixed in a dbus-launch occasionally, but with no change.  I'm not seeing any obvious error messages (though I have admittedly not checked any logs yet), but when I try ck-list-sessions, it gives me nothing.

Offline

#13 2012-06-28 12:32:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Reznor, you have hal in your daemons array??

Do you actually use hal?  I don't know much about hal, but considering it has been replaced (in part) by policy-kit, it would not surprise me if they conflict and might cause many of these problems.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2012-06-28 12:34:23

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

I don't know about Reznor, but I don't even have hal installed on my machine.

Offline

#15 2012-06-28 15:49:54

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Well, I just did a complete resintallation of my Archlinux system, and it's still broken.  I even made sure to follow the 'beginners guide' this time, instead of going from memory.  I just cannot get a consolekit session launched with XFCE.

Offline

#16 2012-06-28 16:31:29

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Have you tried starting xfce without a display manager?

Make sure that you have dbus in your DAEMONS array in rc.conf. Make sure your .xinitrc ends with:

exec ck-launch-session startxfce4

Then start xfce with 'startx'. If that doesn't launch a session registred with consolekit, you should probably file a bug report.

Note: Xinitrc should not contain dbus-launch (as often seen in the forums and on the wiki), because startxfce4 starts a dbus-session. It is needed for some other WM's/DE's.

------------------------------------------------------------------------

edit: I see you have already tried that. It might be worth trying it again on the fresh install before filing a bug report.

edit 2:According to this post, downgrading dbus and dbus-core solves the problem.

Note that for me xfce4 works perfectly with the most recent version of dbus and dbus-core:

[dean@PsyMadness ~]$ pacman -Qs dbus | grep local
local/dbus 1.6.0-1
local/dbus-core 1.6.0-5

Last edited by Terminator (2012-06-28 16:40:44)

Offline

#17 2012-06-28 17:36:00

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Yup, downgrading dbus solved the problem!  Anyone know if a bug report has been filed yet?  I'm not exactly sure where/how to file one.

EDIT: Huh, downgrading dbus also makes NetworkManager work all of a sudden.  But it breaks the current version of wicd.

Last edited by jmetal88 (2012-06-28 17:38:33)

Offline

#18 2012-06-29 08:07:36

Reznor
Member
From: BiH
Registered: 2012-06-23
Posts: 78

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

jmetal88 wrote:

Yup, downgrading dbus solved the problem!  Anyone know if a bug report has been filed yet?  I'm not exactly sure where/how to file one.

EDIT: Huh, downgrading dbus also makes NetworkManager work all of a sudden.  But it breaks the current version of wicd.

So many thanks man!

Now all problems are gone. Firstly, on boot there is no weird dbus error messages anymore (I forgot to say that it shows a machine-id not valid something error, I can't remember exactly). KDM does not show error message anymore. Now I can shutdown and logout with lxdm, and sugar on top, mounting works now without any problem.

Thanks again. It is definitely a bug that needs to be fixed. I will mark this thread as solved.

Also thanks everyone for helping my case.

Here is a screenshot of a solved problem:

http://ompldr.org/vZWp2dQ/2012-06-29-12 … _scrot.png

And I used this repo: http://arm.konnichi.com/

Downloaded version 1.4.8-1 dbus and dbus-core from extra and core folders. I did downgrade with a single command in current directory: pacman -U dbus*.pkg.tar.xz (in Slackware style)

Last edited by Reznor (2012-06-29 08:10:45)


rm -rf /

Offline

#19 2012-06-29 13:22:43

nabukadnezar43
Member
Registered: 2011-08-19
Posts: 14

Re: [SOLVED][XFCE4] Shutdown and reboot grayed out, mount problem

Check this bug report for a possible workaround (no downgrade needed): https://bugs.archlinux.org/task/30476

Offline

Board footer

Powered by FluxBB