Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I cannot shutdown my laptop as user from the xfce GUI after the last Debian upgrade (I think that installed systemd), only as root by sudo shutdown now, or by pressing the hardware power button.
The main problem seems to be that there is no active session:
which allowed me to power down with "shutdown now" even as non-root user and even though the GUI turn off button did not work.
But now that fails, too
Code:
$ shutdown now
Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to open /dev/initctl: Permission denied
Failed to talk to init daemon.
$ pkaction --verbose --action-id org.freedesktop.login1.power-off
org.freedesktop.login1.power-off:
description: Power off the system
message: Authentication is required for powering off the system.
vendor: The systemd Project
vendor_url: http://www.freedesktop.org/wiki/Software/systemd
icon:
implicit any: auth_admin_keep
implicit inactive: auth_admin_keep
implicit active: yes
annotation: org.freedesktop.policykit.imply -> org.freedesktop.login1.set-wall-message
I cannot shutdown my laptop as user from the xfce GUI after the last Debian upgrade (I think that installed systemd), only as root by sudo shutdown now, or by pressing the hardware power button.
yeah XFCE4 is like that, you got to be root to do anything other then log out when running xfce4. if you got yourself on the sudo group then you should get your selections back to do everything if you are using that menu logout - shutdown - reboot etc...
me: i just hit the button, it is faster.
clues:
Code:
$ shutdown now
Failed to set wall message, ignoring: Interactive authentication required.
implicit any: if that has a user setting you can type in there that too may change it to anyone can.
auth_admin_keep means only ROOT aka sudo too, and keep it that way.
or maybe try setting this to NO
> For properly registering the ConsoleKit session, you probably want to add --with-ck-launch with startxfce4
How do I set that? I do not run startxfce4 myself. Put
Code:
STARTUP="$STARTUP --with-ck-launch "
in /etc/X11/Xsession.d/55xfce4-session ?
Quote:
Originally Posted by BW-userx
yeah XFCE4 is like that, you got to be root to do anything other then log out when running xfce4. if you got yourself on the sudo group then you should get your selections back to do everything if you are using that menu logout - shutdown - reboot etc...
But a desktop GUI should not need root to shutdown
Quote:
Originally Posted by BW-userx
implicit any: if that has a user setting you can type in there that too may change it to anyone can.
auth_admin_keep means only ROOT aka sudo too, and keep it that way.
or maybe try setting this to NO
It does work with sudo anyways, but I want it without sudo
The newest one
Should be Sid
> For properly registering the ConsoleKit session, you probably want to add --with-ck-launch with startxfce4
How do I set that? I do not run startxfce4 myself. Put
Code:
STARTUP="$STARTUP --with-ck-launch "
in /etc/X11/Xsession.d/55xfce4-session ?
But a desktop GUI should not need root to shutdown
It is just a output
I thought I set the value with the pkla file
on the command line, it is always going to be "sudo shutdown -h now" unless you are in root account. then you can type just "shutdown -h now".
yeah I didn't really look to see what file that was and it is systemD so I have no idea what they've done with that I no longer use it.
but in polkit rules you might be able to make or mod a file to give users in a group rights to shutdown.
xfce4 in that menu off the app bar select to logout - reboot- shutdown where it is grayed out, if one is not in the sudo group. that is what I was talking about.
like I said I can use that menu if I wanted to whenever I am in xfce4 but I don't use that anymore, I use the appbar/toolbar whatever it is called in fluxbox and that is it.
Editing the /etc/X11/Xsession.d/55xfce4-session config file with STARTUP="$STARTUP --with-ck-launch might work. I'm not sure as I'm not running Sid.
That file is owned by root so be careful when you edit it and if it doesn't work upon a fresh reboot you can always undo what you've done.
***Make a copy of it before you begin.***
Quote:
But a desktop GUI should not need root to shutdown
Your right.
When you first boot up and your GUI and your log in to XFCE launches do you have the option to check a box to save the previous session?
Mine is checked and I don't have trouble shutting down as regular user.
Does another DE give you the same results?
Another idea is you may be missing pkg's from the upgrade.
Always be careful when you perform updates and check if the actions proposed by the package managing tools are in line with your wishes and expectations. (i.e. make sure that you do not remove a plethora of packages you need by blindly accepting the proposed action)
It's a long shot, but you might take a look in the log files for anything related to shutdown errors. I'd focus on /var/log/messages and /var/log/syslog.
The easiest thing to to would be to attempt to shut down, then use the tail command to inspect the logs. This is a good introduction to tail.
I am running Sid and have not encountered any issues with shut down or reboot from the GUI (I have KDE and MATE installed and usually use KDE).
Editing the /etc/X11/Xsession.d/55xfce4-session config file with STARTUP="$STARTUP --with-ck-launch might work. I'm not sure as I'm not running Sid.
That file is owned by root so be careful when you edit it and if it doesn't work upon a fresh reboot you can always undo what you've done.
oh my, that was a bad idea.
It broke the login.
XFCE goes to the username/password dialog and does not continue from there, till I reverted the file to backuped version.
Quote:
Originally Posted by Ztcoracat
When you first boot up and your GUI and your log in to XFCE launches do you have the option to check a box to save the previous session?
Mine is checked and I don't have trouble shutting down as regular user.
I have set it to auto-login.
When it works, it boots to the desktop without asking for any password.
Quote:
Originally Posted by Ztcoracat
Did you run apt-get upgrade <OR> apt-get dist-upgrade?
dist-upgrade
Quote:
Originally Posted by frankbell
It's a long shot, but you might take a look in the log files for anything related to shutdown errors. I'd focus on /var/log/messages and /var/log/syslog.
Well,
Code:
Jun 7 00:53:33 localhost slim[1034]: (pam_mount.c:743): pam_mount execution complete
Jun 7 00:53:33 localhost slim[1034]: (pam_mount.c:116): Clean global config (0)
Jun 7 00:53:33 localhost org.gtk.vfs.Daemon[1514]: A connection to the bus can't be made
Jun 7 00:53:33 localhost udev-acl.ck[22880]: g_slice_set_config: assertion 'sys_page_size == 0' failed
Jun 7 00:53:33 localhost console-kit-daemon[1535]: missing action
Jun 7 00:53:33 localhost org.gtk.vfs.Daemon[1514]: A connection to the bus can't be made
Jun 7 00:53:37 localhost slim[1034]: (II) Server terminated successfully (0). Closing log file.
Jun 7 00:53:37 localhost udev-acl.ck[22886]: g_slice_set_config: assertion 'sys_page_size == 0' failed
Jun 7 00:53:38 localhost slim[1034]: slim: opening a new Log file, while another is already open
Jun 7 00:53:38 localhost slim[1034]: /usr/bin/X11/xauth: file /var/run/slim.auth does not exist
Jun 7 00:53:38 localhost slim[1034]: X.Org X Server 1.19.3
Jun 7 00:53:38 localhost slim[1034]: Release Date: 2017-03-15
Jun 7 00:53:38 localhost slim[1034]: X Protocol Version 11, Revision 0
Jun 7 00:53:38 localhost slim[1034]: Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
Jun 7 00:53:38 localhost slim[1034]: Current Operating System: Linux hostname 4.9.0-3-amd64 #1 SMP Debian 4.9.25-1 (2017-05-02) x86_64
Jun 7 00:53:38 localhost slim[1034]: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-3-amd64 root=UUID=2a92e38c-8ac9-43d2-a86f-2adad23b35a7 ro quiet
Jun 7 00:53:38 localhost slim[1034]: Build Date: 15 March 2017 09:21:41PM
Jun 7 00:53:38 localhost slim[1034]: xorg-server 2:1.19.3-1 (https://www.debian.org/support)
Jun 7 00:53:38 localhost slim[1034]: Current version of pixman: 0.34.0
Jun 7 00:53:38 localhost slim[1034]: #011Before reporting problems, check http://wiki.x.org
Jun 7 00:53:38 localhost slim[1034]: #011to make sure that you have the latest version.
Jun 7 00:53:38 localhost slim[1034]: Markers: (--) probed, (**) from config file, (==) default setting,
Jun 7 00:53:38 localhost slim[1034]: #011(++) from command line, (!!) notice, (II) informational,
Jun 7 00:53:38 localhost slim[1034]: #011(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Jun 7 00:53:38 localhost slim[1034]: (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun 7 00:53:38 2017
Jun 7 00:53:38 localhost slim[1034]: (==) Using config file: "/etc/X11/xorg.conf"
Jun 7 00:53:38 localhost slim[1034]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Jun 7 00:53:38 localhost acpid: client 1125[0:0] has disconnected
Jun 7 00:53:38 localhost acpid: client connected from 22889[0:0]
Jun 7 00:53:38 localhost acpid: 1 client rule loaded
Jun 7 00:53:38 localhost udev-acl.ck[22892]: g_slice_set_config: assertion 'sys_page_size == 0' failed
Jun 7 00:53:40 localhost org.freedesktop.Tracker1[1514]: Received signal:15->'Terminated'
Jun 7 00:53:40 localhost org.freedesktop.Tracker1[1514]: OK
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.