You are not logged in.

#26 2012-11-02 21:18:57

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

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

lxsession-logout uses dbus socket to request the actions, oblogout simply calls bash scripts.

Offline

#27 2012-11-03 05:08:48

TobyJamesJoy
Member
From: Melbourne, Australia
Registered: 2012-06-13
Posts: 24
Website

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

Might be OT but I'm an openbox user and experienced similar problems, no graphical logout, reboot or shutdown.
This thread may hold the answer: https://bbs.archlinux.org/viewtopic.php?id=151786&p=1
Seems that the latest pango update may be the culprit. After downgrading to pango 1.30.1 full functionality was restored. YMMV.

Offline

#28 2012-11-03 11:25:19

eanderalx
Member
From: Berlin/Germany
Registered: 2010-01-10
Posts: 20
Website

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

I'm using lxdm with xfce. One System uses .xinitrc and create an logind session then working. Two other Systems doesn't and without an logind session I hasn't permission to suspend or mount devices. But I don't find the reason for this. I belive it could be the profile but I don't find something.

xinitrc contains this:
https://wiki.archlinux.org/index.php/Xi … he_session

Edit:
pam_ssh was the problem. When its enabled the pams doesn't work with logind.

Last edited by eanderalx (2012-11-03 16:09:41)


"Man kann ein Problem nicht mit den gleichen Denkstrukturen lösen, die zu seiner Entstehung beigetragen haben." (Albert Einstein)
"A problem cannot be solve at the same level of thinking at which it was created." (Albert Einstein)

Offline

#29 2012-11-03 17:42:16

hyuga
Member
From: Argentina
Registered: 2012-11-03
Posts: 3

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

ricrogz wrote:

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.

I also have LXDM with MATE and have the same problem. Shutdown and reboot buttons are missing.
Btw, did you have the same problems with consolekit? I don't know if it worked well with consolekit because I just installed Arch Linux last night.

Last edited by hyuga (2012-11-03 18:21:50)

Offline

#30 2012-11-03 20:09:10

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

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

@hyuga

With consolekit everything worked fine. Installing consolekit-git from aur restores the buttons, but is. of course, a stepback.

Offline

#31 2012-11-03 21:16:10

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

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

@ricrogz

I got a build error while trying to make consolekit-git from the AUR. Did you experience problems building it?


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

Offline

#32 2012-11-03 21:21:27

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

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

Why are you trying to install consolekit?  For example, you can shutdown with "systemctl poweroff" etc.


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

Offline

#33 2012-11-04 01:20:50

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

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

loafer wrote:

Why are you trying to install consolekit?  For example, you can shutdown with "systemctl poweroff" etc.

Because the shutdown, restart buttons are missing.


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

Offline

#34 2012-11-04 01:22:24

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

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

Ok so I pulled up my SSD and popped in a empty drive in my laptop and install Arch latest with kde4. On first boot to KDE4 the Shudown, Restart and Hibernate buttons are missing.

Last edited by hydn (2012-11-04 01:22:53)


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

Offline

#35 2012-11-04 01:27:31

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

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

@cmorgenstern

No, I can build consolekit cleanly with no errors. What kind of error are you getting?

Offline

#36 2012-11-04 01:31:48

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

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

cmorgenstern, even though the maintainer didn't include it (and should have) git is required for git packages.

Offline

#37 2012-11-04 16:54:18

clovenhoof
Member
From: Bulgaria
Registered: 2010-09-16
Posts: 82

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

I'm using MATE with pure systemd (no consolekit installed).
No problems with 'sudo reboot' and 'sudo poweroff' from terminal, but only corresponding buttons are missing in shutdown dialog.

Last edited by clovenhoof (2012-11-04 16:55:19)

Offline

#38 2012-11-04 17:57:45

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

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

So far the only way I've been able to solve this is to disable SLiM and enable the KDE4 default KDM login manager. Now when I login, the Shutdown, Reboot and Hibernate buttons all appear in KDE4.

# systemctl disable slim
# systemctl enable kdm

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

Offline

#39 2012-11-05 04:58:11

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

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

@Scimmia

Yes, installing git solves it. Sorry for the stupid question. I occasionally forget that because I've built the system from scratch, I sometimes need to install additional features that come pre-installed with other Linux distros.

Anyway, installing consolekit-git from the AUR restores the buttons to the menu and they all seem to work. I guess this does technically solve the problem, but it's not a good long-term solution, since ideally having those functions controlled by systemd would be better considering that Arch is now dropping all support for things like initscripts and going pure systemd. If anyone comes up with a better solution than this, I'm sure many of us who are experiencing this problem would be pleased.


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

Offline

#40 2012-11-05 05:03:01

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

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

I don't want consolekit. For me the buttons only fail to load when i use SLiM, XDM or XDM-arch to login but works fine with KDM. So I switched back to kdm and installed.. pacman -S archlinux-themes-kdm.


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

Offline

#41 2012-11-05 05:20:41

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

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

I am using xdm with xdm-archlinux from AUR and have none of your problems.  *Many* posts lately have been complaining about permission, etc. problems related to polkit.service.  Apparently, polkit is not installing properly due to group id numbers.  Please check your logs for incomplete install of polkit due to goup number conflicts.  I recently had this problem due to an old install of gdm using group id 102 so polkit wouldn't install properly.  Once gdm was removed and polkit reinstalled, no more problems encountered. smile


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

Offline

#42 2012-11-05 05:24:50

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

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

I made the switch to a pure systemd boot, and it seems to have resolved all the issues I had on my laptop.  So far, so good, anyway ...

Offline

#43 2012-11-05 05:52:55

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

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

Yup I switched to systemd few days ago. Didn't resolve missing buttons so I did clean re-install of Slim + KDE4. No shutdown icons either. But systemd-analyze is not 150 mins faster at 1800ms, go figure. Luv this stuff. As mentioned icons work with KDM though.


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

Offline

#44 2012-11-07 02:43:10

snakeroot
Member
Registered: 2012-10-06
Posts: 164

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

Reported as a bug against lxsession at https://bugs.archlinux.org/task/32508

Regards,

Offline

#45 2012-11-07 07:40:24

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

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

The upshot may be the removal of lxsession from the repos.

@hydn, this thread is regarding LXDE and lxsession-logout not KDE or KDM.


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

Offline

#46 2012-11-07 07:44:04

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

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

Yup so true. I'm working like a dream now! Hope u guys are sorted soon.


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

Offline

#47 2012-11-10 13:32:28

rital
Member
Registered: 2012-11-10
Posts: 1

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

lxsession-logout lacks the "Shutdown" and "Restart" buttons because it expects consolekit, hal or, apparently, ltsp to be present
such behavior is c hardcoded

logind support should be straightforward to implement; meanwhile I would suggest to revert to, say, a gtkdialog script wich calls systemctl poweroff / reboot directly (maybe specific sudoers permissions are needed, too):

modify the Logout entry of your ~/.config/lxpanel/LXDE/config

[Command]
FileManager=pcmanfm %s
Terminal=lxterminal
Logout=/path-to-your-gtkdialog-logout-script

to handle the lxpanel logout button, to the right, a .desktop file (a copy of your lxde-logout.desktop) is needed, wich execs the gtkdialog logout script

...
Icon=gnome-logout
Exec=/path-to-your-gtkdialog-logout-script
NoDisplay=true

this .desktop file has to be referenced in ~/.config/lxpanel/LXDE/panels/panel:

...
Plugin {
    type = launchbar
    Config {
        Button {
            id=/path-to-your-logout.desktop
        }
    }
}

Offline

#48 2012-11-10 13:58:07

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

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

Please also see post #44.

Last edited by loafer (2012-11-10 14:00:05)


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

Offline

#49 2012-11-18 11:11:55

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

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

This should be fixed with lxsession 0.4.6.1-3.  Those who tested it found the functionality restored.


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

Offline

#50 2012-11-18 14:35:47

snakeroot
Member
Registered: 2012-10-06
Posts: 164

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

Bug 32508 is now closed and new version 0.4.6.1-3 of lxsession is in community repo. Big thanks to Bartłomiej for taking the bug, to Antonio for his patch and to Dave and Tiago for testing.

Regards,

Offline

Board footer

Powered by FluxBB