You are not logged in.

#1 2012-11-01 01:35:02

cmorgenstern
Member
Registered: 2012-06-21
Posts: 40
Website

[SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

After removing consolekit, my lxde-logout menu is now lacking the "Shutdown" and "Restart" buttons it once had.  I ran a few searches about this but could not find out how to correct the problem in light of removing consolekit.  The only advice I could find was in the LXDE wiki page stating that:

See xinitrc#Preserving the session for details on avoiding breaking the logind/consolekit session.

I'm not even sure if this is relevant to my case, however, because I don't have an ~/.xinitrc file since LXDM starts my X session for me. Any new insights or reprimands are welcome, since I'm stumped about how to proceed.

Just to be clear, I'm using LXDE with LXDM and the login manager and Openbox. I switched over to a pure systemd system about two weeks ago and have had no problems with it since until now.

Last edited by cmorgenstern (2016-07-29 04:09:27)


"Never ascribe to malice that which is adequately explained by incompetence."
~ Napoleon I

Offline

#2 2012-11-01 01:37:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,598
Website

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

Same setup without that problem... Did you reboot after removing console kit?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2012-11-01 06:08:52

hariskar
Member
From: Greece/Kavala
Registered: 2012-10-16
Posts: 185

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

Same problem for me, I rebooted.

Offline

#4 2012-11-01 06:10:12

pomekewe
Member
Registered: 2012-01-14
Posts: 17

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

I've got the same problems after today's pacman -Syu.  Haven't done any more research yet, this was the first place I looked.

The only thing I've noticed so far is that sometimes the logout panel shows 'Not authenticated' at the bottom.  That's presumably the main reason the shutdown/reboot etc. options are missing, but not sure why it says that yet.

Offline

#5 2012-11-01 06:59:46

pomekewe
Member
Registered: 2012-01-14
Posts: 17

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

P.S. I forgot to mention that suspend doesn't actually work, only kicking off the password-protected screen saver.  The 'not authorised' message shows in the login screen when the screen saver is unlocked.

Offline

#6 2012-11-01 15:09:53

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

@graysky
I'm here just because an italian community user has the same problem, I don't use Lxde. I took a look at lxsession-logout source code and there is no mention of systemd/logind dbus interface in it. Are you sure there's not installed hal or consolekit on your system? These are the only two frameworks supported by lxsession-logout, as far as I understood.

Offline

#7 2012-11-01 16:24:20

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

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

I have the same problem, despite my setup is LXDM+MATE.

I guess the older Desktop Environments do not support systemd, and are not able to tell if the user has permission to shut down the machine.

Offline

#8 2012-11-01 16:57:33

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

Yes, I too noticed similair behavior for my wife's setup on our desktop.  I setup fbpanel on openbox for her and she was complaining last night that the computer would not shutdown.  I just got time to look at it this morning and I find that I had to change my /etc/sudoers file to get back her shutdown and reboot.  In fbpanel the options are in the menu but when you click on shutdown or reboot, it just sits there and does nothing.  In the ~/.config/fbpanel/default file her setting was still a reference to sudo /sbin/halt and sudo /sbin/reboot--the links are still there but they link to systemctl and a regular user doesn't seem to get permission to use those options now.  For some reason, with consolekit now gone, I had to change the sudoers file to allow sudo systemctl with no passwd.  Everything is working for her now.

I didn't notice it for myself as I use a tiling wm and just logout back to my xdm screen and the shutdown and reboot buttons there work fine without the sudo systemctl poweroff/reboot.

edit: I'm noticing a few posts about shutdown, reboot buttons missing or not working.  It seems that some of the lighter dm's don't work so well without consolekit.  See https://bbs.archlinux.org/viewtopic.php?id=151799

edit2: Must be something odd on my desktop since I just upgraded my old laptop and I don't need any sudo changes for reboot and halt to work fine for my wife there.

Last edited by bgc1954 (2012-11-01 20:08:50)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#9 2012-11-01 21:00:58

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

@bgc1954
you can poweroff through lxsession-logout (default logout lxde dialog)? Could you checj if on that system consolekit and/or hal are still installed?

Offline

#10 2012-11-02 00:08:46

todcarnes
Member
From: Trinway, Ohio, USA
Registered: 2012-10-20
Posts: 9

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

4javier wrote:

@bgc1954
you can poweroff through lxsession-logout (default logout lxde dialog)? Could you check if on that system consolekit and/or hal are still installed?

I am having the same problem after removing consolekit as well. Work arounds are either to logout and then choose shutdown from the options on the login screen OR open a terminal window then issue the shutdown or the reboot command as root. However, I shouldn't have to go to all that trouble just to shutdown.

Edit: Perhaps consolekit should be marked as a dependancy for lxde?

Edit2: After a little more research, it seems that consolekit is, indeed, required... see <http://forum.lxde.org/viewtopic.php?f=8 … ekit#p4838>.

Todd

Last edited by todcarnes (2012-11-02 00:20:49)

Offline

#11 2012-11-02 00:42:42

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

@todcarnes

pacman -Si lxdm
Repository     : community
Name           : lxdm
Version        : 0.4.1-18
URL            : http://sourceforge.net/projects/lxdm/
Licenses       : GPL
Groups         : lxde
Provides       : None
Depends On     : gtk2  xorg-server
Optional Deps  : None
Conflicts With : None
Replaces       : None
Download Size  :  77.84 KiB
Installed Size : 952.00 KiB
Packager       : Daniel Wallace <danielwallace at gtmanfred dot com>
Architecture   : x86_64
Build Date     : Tue 23 Oct 2012 01:31:58 PM PDT
MD5 Sum        : 5a05d5098d50334d8d680e367b28d039
SHA256 Sum     : 833ee3e15d1a5d19d6fb656473dafd74fdc4f8446df9cddc069b9745c3143579
Signatures     : Yes
Description    : Lightweight X11 Display Manager

It should be built without consolekit support in our repos.  You are referencing something from lxde itself.  I think the question is whether or not lxdm has logind support.  This I am not sure of, as I don't use it.

Offline

#12 2012-11-02 01:23:08

todcarnes
Member
From: Trinway, Ohio, USA
Registered: 2012-10-20
Posts: 9

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

WonderWoofy wrote:

@todcarnes

pacman -Si lxdm
Repository     : community
Name           : lxdm
Version        : 0.4.1-18
URL            : http://sourceforge.net/projects/lxdm/
Licenses       : GPL
Groups         : lxde
Provides       : None
Depends On     : gtk2  xorg-server
Optional Deps  : None
Conflicts With : None
Replaces       : None
Download Size  :  77.84 KiB
Installed Size : 952.00 KiB
Packager       : Daniel Wallace <danielwallace at gtmanfred dot com>
Architecture   : x86_64
Build Date     : Tue 23 Oct 2012 01:31:58 PM PDT
MD5 Sum        : 5a05d5098d50334d8d680e367b28d039
SHA256 Sum     : 833ee3e15d1a5d19d6fb656473dafd74fdc4f8446df9cddc069b9745c3143579
Signatures     : Yes
Description    : Lightweight X11 Display Manager

It should be built without consolekit support in our repos.  You are referencing something from lxde itself.  I think the question is whether or not lxdm has logind support.  This I am not sure of, as I don't use it.

I referenced lxde itself, because we're talking about lxde. It only seems natural to go to the source.

FWIW, I tried looking up lxdm there too, but had no luck discovering if lxdm supports logind.

Todd

Offline

#13 2012-11-02 02:20:53

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

But you are using lxde as compiled by this distro, not from source.  So it makes much more sense in my head to look to the source of the binary package (if that is how you are installing it).  Sure you could compile from source code and add/remove whatever you want.  That doesn't mean it is a hard dependency.

Offline

#14 2012-11-02 04:43:54

pomekewe
Member
Registered: 2012-01-14
Posts: 17

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

Not sure if anyone else has noticed this, but on my laptop KDE and XFCE also have shutdown, reboot, suspend and hibernate disabled.  Given the message I got in LXDE about 'not authorised' when trying to suspend, I'm wondering if this is a policykit issue, as I vaguely remember an update to that earlier in the week.

I could have imagined it though.  Will try to check.

Offline

#15 2012-11-02 04:52:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,567

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

vaguely remember? It was front page news, the switch from consolekit to logind. If you're having issues with KDE and XFCE, you're probably not booting with systemd.

Offline

#16 2012-11-02 05:04:11

pomekewe
Member
Registered: 2012-01-14
Posts: 17

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

That would be right, I haven't made the switch to systemd yet.  However the OP has . . .

I'm entirely dependent on this laptop at the moment, and I was trying hard not to change too much.  Looks like I'll have to bite the bullet.

Last edited by pomekewe (2012-11-02 05:10:08)

Offline

#17 2012-11-02 06:20:11

hydn
Member
From: St. Kitts
Registered: 2012-09-23
Posts: 105
Website

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

Same issue with KDE. Watching this topic. I boot with systemd.


Linux Performance Blog: http://haydenjames.io/

Offline

#18 2012-11-02 06:31:21

pomekewe
Member
Registered: 2012-01-14
Posts: 17

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

Scimmia wrote:

vaguely remember? It was front page news, the switch from consolekit to logind. If you're having issues with KDE and XFCE, you're probably not booting with systemd.

That was polkit I was referring to, not consolekit.

Am working through the switch to systemd.  Not a trivial affair ...

Offline

#19 2012-11-02 06:34:22

hydn
Member
From: St. Kitts
Registered: 2012-09-23
Posts: 105
Website

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

pomekewe wrote:

Am working through the switch to systemd.  Not a trivial affair ...

Not hard took me 20 mins (longer than most im sure) following steps found here:
https://wiki.archlinux.org/index.php/Systemd

Last edited by hydn (2012-11-02 06:34:36)


Linux Performance Blog: http://haydenjames.io/

Offline

#20 2012-11-02 09:00:09

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

As far as I can tell the shutdown and reboot options will not appear in the LXDE menu without consolekit.  However, graysky now has this working so let's wait to see how he's done it.

I do not know if LXDM supports systemd but someone using it could check to see is loginctl is reporting a session and if it's active or not.  FWIW, slim works fine for me (suspend, hibernate, mounting all work as expected).

consolekit will not be added as a dependency of LXDE.

Last edited by loafer (2012-11-02 09:02:07)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#21 2012-11-02 10:24:32

cmorgenstern
Member
Registered: 2012-06-21
Posts: 40
Website

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

I did reboot after removing consolekit to no avail. The buttons were still missing.

LXDM should be supported by systemd, since there is a service file for it that I enabled when switching over to a purely systemd system and I can still log-in through it without any trouble even without consolekit.

I ran "lxsession-logout" and produced the following output in addition to launching the still incomplete logout menu:

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

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

I guess this confirms the necessity of hal and consolekit for this LXDE feature, or at least suggests why it's now broken.


"Never ascribe to malice that which is adequately explained by incompetence."
~ Napoleon I

Offline

#22 2012-11-02 10:32:15

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

The one thing it doesn't need is hal.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#23 2012-11-02 10:35:19

yoelion
Member
Registered: 2010-08-04
Posts: 3

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

lxsession-logout really needs consolekit right of now

Offline

#24 2012-11-02 10:51:38

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

4javier wrote:

@graysky
I'm here just because an italian community user has the same problem, I don't use Lxde. I took a look at lxsession-logout source code and there is no mention of systemd/logind dbus interface in it. Are you sure there's not installed hal or consolekit on your system? These are the only two frameworks supported by lxsession-logout, as far as I understood.

Auto-quoting what I wrote yesterday.
I think that the ones which have a working lxde system (where shutdown and reboot buttons are still present in logout dialog) have still installed on their system consolekit or hal. The ones with privilege issue have a different problem, that doesn't matter with the one of this thread.

Offline

#25 2012-11-02 21:00:00

cwuth
Member
From: Chicago
Registered: 2010-11-10
Posts: 2

Re: [SOLVED][lxde][lxdm]No "Shutdown" buttons after removing consolekit

I'm using the oblogout package from community instead of the default lxde-logout. I had to change the main oblogout config file (/etc/oblogout.conf), replacing the old consolekit lines for shutdown, reboot, suspend, & hibernate with the new systemctl commands. Then I edited the lxde-logout.desktop file to launch oblogout instead of lxde-logout. Works like a charm! --except the lock & logout commands don't work out of the box & I haven't tried to figure them out yet.

Offline

Board footer

Powered by FluxBB