Siduction Forum

Siduction Forum => Software - Support => Topic started by: louispolaire on 2013/11/05, 12:14:46

Title: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: louispolaire on 2013/11/05, 12:14:46
Hey !

I have this problem since last week but I did not have time to take care of it before.

I switched to systemd 3-4 weeks ago and everything was fine so far.
Since last week I have two problems :
- in the xfce menu (right click in the desktop f.e.) the shutdown, reboot and hibernate are grayed out. The only way I have to shutdown the computer is to use shutdown in the cli. I also use cairo-dock and trying to use shutdown from there shows an error "Logind has returned an error : Operation not permitted"
-in Thunar, I can't mount the harddrives or usb keys by clicking in the lateral panel. I get an error "Not authorized to perform operation"

I found some similar issues on archlinux online , but that the solution does not apply to my system

Somebody have an idea ?
Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: unklarer on 2013/11/05, 14:32:16
apt-get install lsb-release
it was  with me (under lxde)
Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: devil on 2013/11/05, 20:48:21
If it's not LSB, check if libpam-systemd is installed.


greetz
devil
Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: louispolaire on 2013/11/05, 23:12:38
both lsb-release and libpam-systemd were already installed

I tried to reinstall both of them but that did not solve the problem.
Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: melmarker on 2013/11/05, 23:29:31
http://antix.freeforums.org/antix-core-no-shutdown-or-suspend-t4538.html
Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: louispolaire on 2013/11/07, 15:14:04
I already have policykit-1 installed along with other packages related.
here is the outcome from pkaction :
$ pkaction
net.launchpad.danielrichter2007.pkexec.grub-customizer
org.blueman.bluez.config
org.blueman.dhcp.client
org.blueman.hal.manager
org.blueman.network.setup
org.freedesktop.ModemManager.Contacts
org.freedesktop.ModemManager.Device.Control
org.freedesktop.ModemManager.Device.Info
org.freedesktop.ModemManager.Location
org.freedesktop.ModemManager.SMS
org.freedesktop.ModemManager.USSD
org.freedesktop.NetworkManager.enable-disable-network
org.freedesktop.NetworkManager.enable-disable-wifi
org.freedesktop.NetworkManager.enable-disable-wimax
org.freedesktop.NetworkManager.enable-disable-wwan
org.freedesktop.NetworkManager.network-control
org.freedesktop.NetworkManager.settings.modify.hostname
org.freedesktop.NetworkManager.settings.modify.own
org.freedesktop.NetworkManager.settings.modify.system
org.freedesktop.NetworkManager.sleep-wake
org.freedesktop.NetworkManager.wifi.share.open
org.freedesktop.NetworkManager.wifi.share.protected
org.freedesktop.consolekit.system.restart
org.freedesktop.consolekit.system.restart-multiple-users
org.freedesktop.consolekit.system.stop
org.freedesktop.consolekit.system.stop-multiple-users
org.freedesktop.hostname1.set-hostname
org.freedesktop.hostname1.set-machine-info
org.freedesktop.hostname1.set-static-hostname
org.freedesktop.locale1.set-keyboard
org.freedesktop.locale1.set-locale
org.freedesktop.login1.attach-device
org.freedesktop.login1.flush-devices
org.freedesktop.login1.hibernate
org.freedesktop.login1.hibernate-ignore-inhibit
org.freedesktop.login1.hibernate-multiple-sessions
org.freedesktop.login1.inhibit-block-idle
org.freedesktop.login1.inhibit-block-shutdown
org.freedesktop.login1.inhibit-block-sleep
org.freedesktop.login1.inhibit-delay-shutdown
org.freedesktop.login1.inhibit-delay-sleep
org.freedesktop.login1.inhibit-handle-hibernate-key
org.freedesktop.login1.inhibit-handle-lid-switch
org.freedesktop.login1.inhibit-handle-power-key
org.freedesktop.login1.inhibit-handle-suspend-key
org.freedesktop.login1.power-off
org.freedesktop.login1.power-off-ignore-inhibit
org.freedesktop.login1.power-off-multiple-sessions
org.freedesktop.login1.reboot
org.freedesktop.login1.reboot-ignore-inhibit
org.freedesktop.login1.reboot-multiple-sessions
org.freedesktop.login1.set-user-linger
org.freedesktop.login1.suspend
org.freedesktop.login1.suspend-ignore-inhibit
org.freedesktop.login1.suspend-multiple-sessions
org.freedesktop.policykit.exec
org.freedesktop.policykit.lockdown
org.freedesktop.systemd1.bus-access
org.freedesktop.systemd1.reply-password
org.freedesktop.timedate1.set-local-rtc
org.freedesktop.timedate1.set-ntp
org.freedesktop.timedate1.set-time
org.freedesktop.timedate1.set-timezone
org.freedesktop.udisks.cancel-job-others
org.freedesktop.udisks.change
org.freedesktop.udisks.change-system-internal
org.freedesktop.udisks.drive-ata-smart-refresh
org.freedesktop.udisks.drive-ata-smart-retrieve-historical-data
org.freedesktop.udisks.drive-ata-smart-selftest
org.freedesktop.udisks.drive-detach
org.freedesktop.udisks.drive-eject
org.freedesktop.udisks.drive-set-spindown
org.freedesktop.udisks.filesystem-check
org.freedesktop.udisks.filesystem-check-system-internal
org.freedesktop.udisks.filesystem-lsof
org.freedesktop.udisks.filesystem-lsof-system-internal
org.freedesktop.udisks.filesystem-mount
org.freedesktop.udisks.filesystem-mount-system-internal
org.freedesktop.udisks.filesystem-unmount-others
org.freedesktop.udisks.inhibit-polling
org.freedesktop.udisks.linux-lvm2
org.freedesktop.udisks.linux-md
org.freedesktop.udisks.luks-lock-others
org.freedesktop.udisks.luks-unlock
org.freedesktop.udisks2.ata-check-power
org.freedesktop.udisks2.ata-secure-erase
org.freedesktop.udisks2.ata-smart-enable-disable
org.freedesktop.udisks2.ata-smart-selftest
org.freedesktop.udisks2.ata-smart-simulate
org.freedesktop.udisks2.ata-smart-update
org.freedesktop.udisks2.ata-standby
org.freedesktop.udisks2.ata-standby-other-seat
org.freedesktop.udisks2.ata-standby-system
org.freedesktop.udisks2.cancel-job
org.freedesktop.udisks2.cancel-job-other-user
org.freedesktop.udisks2.eject-media
org.freedesktop.udisks2.eject-media-other-seat
org.freedesktop.udisks2.eject-media-system
org.freedesktop.udisks2.encrypted-change-passphrase
org.freedesktop.udisks2.encrypted-change-passphrase-system
org.freedesktop.udisks2.encrypted-lock-others
org.freedesktop.udisks2.encrypted-unlock
org.freedesktop.udisks2.encrypted-unlock-crypttab
org.freedesktop.udisks2.encrypted-unlock-other-seat
org.freedesktop.udisks2.encrypted-unlock-system
org.freedesktop.udisks2.filesystem-fstab
org.freedesktop.udisks2.filesystem-mount
org.freedesktop.udisks2.filesystem-mount-other-seat
org.freedesktop.udisks2.filesystem-mount-system
org.freedesktop.udisks2.filesystem-unmount-others
org.freedesktop.udisks2.loop-delete-others
org.freedesktop.udisks2.loop-modify-others
org.freedesktop.udisks2.loop-setup
org.freedesktop.udisks2.manage-md-raid
org.freedesktop.udisks2.manage-swapspace
org.freedesktop.udisks2.modify-device
org.freedesktop.udisks2.modify-device-other-seat
org.freedesktop.udisks2.modify-device-system
org.freedesktop.udisks2.modify-drive-settings
org.freedesktop.udisks2.modify-system-configuration
org.freedesktop.udisks2.open-device
org.freedesktop.udisks2.open-device-system
org.freedesktop.udisks2.power-off-drive
org.freedesktop.udisks2.power-off-drive-other-seat
org.freedesktop.udisks2.power-off-drive-system
org.freedesktop.udisks2.read-system-configuration-secrets
org.freedesktop.udisks2.rescan
org.freedesktop.upower.hibernate
org.freedesktop.upower.qos.cancel-request
org.freedesktop.upower.qos.request-latency
org.freedesktop.upower.qos.request-latency-persistent
org.freedesktop.upower.qos.set-minimum-latency
org.freedesktop.upower.suspend
org.kde.kcontrol.kcmremotewidgets.save
org.xfce.power.backlight-helper


I see some entries with power-off and reboot so that should work but that is not.
would uninstall and reinsall thos policy kit packages help ?
or maybe change something in their configuration ?
Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: louispolaire on 2013/11/09, 11:55:00
Nobody has any idea ?
I discovered yesterday that I could not connect to a new wireless network through network-manager because of the same permission limitation of the user.

between systemd, pam, policy-kit, hal... I'm getting lost where the problem could be. and where to look.
Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: louispolaire on 2013/11/10, 12:31:51
Ok I found the reason and a solution thanks to this : Debian Bug report logs - #728361 (728361@bugs.debian.org)

There seems to be a problem between lightdm 1.8 and libpam-systemd

If you encounter this problem you have two options :

remove libpam-lighdm

or comment the following line on /etc/pam.d/common-session :

session optional     pam_systemd.so


Title: Re: systemd xfce : shutdown and reboot icon grayed out and automount not working
Post by: louispolaire on 2013/11/10, 14:54:21
even better :

keep libpam-systemd installed,

pam-auth-update --force

and select only Unix authentification.

(I had troubles with the previous solutions and libGL)