Hello everybody,
I still have the following two problems with my system.
1. When I login to xfce4 desktop with lxdm or with startxfce4 the program mousepad autostarts. I couldn't find anything to disable?
2. openrc doesn't start lightdm thrue xdm, it ends with a black screen and a blinking cursor (lxdm no problems).
Does anybody knows a solution?
1 https://wiki.archlinux.org/index.php/xfce#Autostart
2 https://wiki.gentoo.org/wiki/LightDM#OpenRC
1. Unfortunately it's not that easy. I've been looking for mousepad in all these places, but it's not available anywhere. I do not know where to look. Edit: I've now uninstalled mousepad.
2. That's exactly how I got lxdm and SLiM to work, but not lightdm. Therefore, I had suspected incompatibility. But with SLiM i'm not able to shutdown or reboot, everytime it only log me out.
1 Possibly somewhere on an autostart configuration file there might be an $edit or $editor function that on xfce is defined as starting mousepad. Is it opening a blank file or a specific file? Is there a /etc/xdg/autostart? What does it say? Otherwise it is something within ~/.config/...../autostart
2 From the terminal and with xfce policy kit if you enter reboot as a user what does it do? Does it ask to say yes to reboot and reboots or does it say you don't have privileges. Same with poweroff -p. Sudo entering those commands should work but I have been on runit too long to remember. I am trying to remember the irrelevant thread where someone asked about suspend and hybernate ability and
@nous responded with a suggestion of an AUR pkg that did them. Sorry I haven't touched xfce for years and years. If it was lxde or openbox I could help. I see there is an xfce-session and xfce-utils pkg. xfce-session, which is required by xfce-panel, must have this in the menu for the panel. I see that it requires gnome polkit and if this hasn't been rebuilt by artix and comes from extra it should work.
Basically a user shouldn't have the rights to reboot or powerdown a system that theoretically may have other users logged on. Specific polkits may allow or not to do so after they ask the user if they really want to. The other way is to have a passwordless sudo setup at sudoers, so you can program a menu item as $sudo reboot and it will reboot right away.
@gripped thank you.
/var/log/lightdm/lightdm.log:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.28.0, UID=0 PID=3450
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: posix_spawn avoided (fd close requested)
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+0.01s] DEBUG: XServer 1: Can't launch X server Xephyr, not found in path
[+0.01s] DEBUG: XServer 1: X server stopped
[+0.01s] DEBUG: Releasing VT 7
[+0.01s] DEBUG: Seat seat0: Display server stopped
[+0.01s] DEBUG: Seat seat0: Can't create display server for greeter
[+0.01s] DEBUG: Seat seat0: Session stopped
[+0.01s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.01s] DEBUG: Seat seat0: Stopping
[+0.01s] DEBUG: Seat seat0: Stopped
[+0.01s] DEBUG: Failed to start seat: seat0
I've installed lightdm and lightdm-gtk-greeter.
The problem with SLiM is not the permission, but the interpretation. With lxdm everything runs smoothly (except for the ugly look). SLiM, however, interprets restart and shutdown only as logout. Also a
# poweroff
result in a logout
I do not understand where the problem with lightdm should be. According to gentoo-wiki (https://wiki.gentoo.org/wiki/LightDM)i, it seems to configure the same way as lxdm.
Something is wrong in your setup
[+0.00s] DEBUG: Using Xephyr for X servers
I doubt you want to be using Xephyr ? Later error suggests it's not installed.
I don't know Xephyr... how can I check where it should be set?
But i've found out that these dir does not exists /usr/share/lightdm/ /usr/local/share/lightdm/ /etc/xdg/lightdm/
Strange...
You probably forgot to install a lightdm greeter.
I just tested in vbox, lightdm works just fine if you set the /etc/pam.d/lightdm-greeter to elogind.
Why should lightdm-gtk-greeter be no greeter? ::) I couldn't found (https://www.archlinux.org/packages/?sort=&q=lightdm&maintainer=&flagged=) another greeter.
My log does not mention Xepher. I'm pretty sure it's related that in some way. (often wrong :) )
Post your /etc/lightdm/lightdm.conf
And maybe /var/log/lightdm/x-1.log (mentioned in the log you posted, which is weird, you sure you don't have an Xserver running ? would normally be x-0.log i think)
There are other greeters in AUR But I'd get the basic one working first. I use lightdm-slick-greeter
https://aur.archlinux.org/packages/?O=0&SeB=nd&K=lightdm&outdated=&SB=n&SO=a&PP=50&do_Search=Go
Now i've uninstalled lightdm and lightdm-gtk-greeter, removed them from paccache und rebootet.
Installed they new and added lightdm to the xdm file.
Same error but different log:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.28.0, UID=0 PID=2239
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: posix_spawn avoided (fd close requested)
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 2253: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.00s] WARNING: Could not enumerate user data directory /var/lib/lightdm-data: Error opening directory '/var/lib/lightdm-da$
[+0.42s] DEBUG: Got signal 10 from process 2253
[+0.42s] DEBUG: XServer 0: Got signal from X server :0
[+0.42s] DEBUG: XServer 0: Connecting to XServer :0
[+0.42s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+0.42s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.42s] DEBUG: Session pid=2472: Started with service 'lightdm-greeter', username 'lightdm'
[+0.43s] DEBUG: Session pid=2472: Authentication complete with return value 0: Success
[+0.43s] DEBUG: Seat seat0: Session authenticated, running command
[+0.43s] DEBUG: Session pid=2472: Running command /usr/bin/lightdm-gtk-greeter
[+0.44s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknow$
[+0.44s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.44s] DEBUG: User desktop added
[+0.44s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.44s] WARNING: Could not create user data directory /var/lib/lightdm-data/lightdm: Error creating directory /var/lib/light$
[+0.44s] DEBUG: Session pid=2472: Logging to /var/log/lightdm/seat0-greeter.log
[+0.44s] DEBUG: Activating VT 7
[+0.44s] DEBUG: Greeter closed communication channel
[+0.44s] DEBUG: Session pid=2472: Exited with return value 1
[+0.44s] DEBUG: Seat seat0: Session stopped
[+0.44s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+0.44s] DEBUG: Seat seat0: Stopping
[+0.44s] DEBUG: Seat seat0: Stopping display server
[+0.44s] DEBUG: Sending signal 15 to process 2253
[+0.61s] DEBUG: Process 2253 exited with return value 0
[+0.61s] DEBUG: XServer 0: X server stopped
[+0.61s] DEBUG: Releasing VT 7
[+0.61s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.61s] DEBUG: Seat seat0: Display server stopped
[+0.61s] DEBUG: Seat seat0: Stopped
[+0.61s] DEBUG: Required seat has stopped
[+0.61s] DEBUG: Stopping display manager
[+0.61s] DEBUG: Display manager stopped
[+0.61s] DEBUG: Stopping daemon
[+0.61s] DEBUG: Exiting with return value 1
I would check "/var/lib/lightdm-data/" directory, if exist, permissions, owner, users, groups and so on...
Something does not seem right. The folder did not exist, but it should be created during the installation.
With the folder, same error:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.28.0, UID=0 PID=2239
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: posix_spawn avoided (fd close requested)
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.01s] DEBUG: XServer 0: Launching X Server
[+0.01s] DEBUG: Launching process 2253: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknow$
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: User desktop added
[+0.42s] DEBUG: Got signal 10 from process 2253
[+0.42s] DEBUG: XServer 0: Got signal from X server :0
[+0.42s] DEBUG: XServer 0: Connecting to XServer :0
[+0.42s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+0.43s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.43s] DEBUG: Session pid=2475: Started with service 'lightdm-greeter', username 'lightdm'
[+0.44s] DEBUG: Session pid=2475: Authentication complete with return value 0: Success
[+0.44s] DEBUG: Seat seat0: Session authenticated, running command
[+0.44s] DEBUG: Session pid=2475: Running command /usr/bin/lightdm-gtk-greeter
[+0.44s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.44s] DEBUG: Session pid=2475: Logging to /var/log/lightdm/seat0-greeter.log
[+0.44s] DEBUG: Activating VT 7
[+0.44s] DEBUG: Greeter closed communication channel
[+0.44s] DEBUG: Session pid=2475: Exited with return value 1
[+0.44s] DEBUG: Seat seat0: Session stopped
[+0.44s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+0.44s] DEBUG: Seat seat0: Stopping
[+0.44s] DEBUG: Seat seat0: Stopping display server
[+0.44s] DEBUG: Sending signal 15 to process 2253
[+0.62s] DEBUG: Process 2253 exited with return value 0
[+0.62s] DEBUG: XServer 0: X server stopped
[+0.62s] DEBUG: Releasing VT 7
[+0.62s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.62s] DEBUG: Seat seat0: Display server stopped
[+0.62s] DEBUG: Seat seat0: Stopped
[+0.63s] DEBUG: Required seat has stopped
[+0.63s] DEBUG: Stopping display manager
[+0.63s] DEBUG: Display manager stopped
[+0.63s] DEBUG: Stopping daemon
[+0.63s] DEBUG: Exiting with return value 1
What else is needed?
It's telling you it failed to start a greeter
[+0.44s] DEBUG: Seat seat0: Stopping; failed to start a greeter
Further up it shows you where the greeter log is
/var/log/lightdm/seat0-greeter.log
Have you had a look in there ? Post it and the conf file I mentioned before and the greeter conf file ;)
I would try to get rid of that last warning. Do you have "accountsservice" package ?
But I read it is only optional, so no hard feeling, only trying to remove warnings.
I found similar error in wiki:
https://wiki.archlinux.org/index.php/LightDM#LightDM_freezes_on_login_attempt
But to be more precise it would help if you have log from greeter
[+0.44s] DEBUG: Seat seat0: Stopping; failed to start a greeter
Also can you post your "lightdm.conf" ?
In a way the data you gave us are ":( Something went wrong", so I am trying to search for solution with this....
/var/log/lightdm/seat0-greeter.log
** (process:2475): WARNING **: 19:57:11.379: Failed to open CK session: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
Error writing X authority: Failed to open X authority /var/lib/lightdm/.Xauthority: No such file or directory
lightdm.conf:
https://bin.disroot.org/?75e6d14a6c30e253#WhBegb898JlS8+Zr3Q/2G/Dt5vybhRBodAsxSclEnYs=
/var/log/lightdm/x-0.log
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
Build Operating System: Linux Arch Linux
Current Operating System: Linux hostname 4.20.0-gnu-1 #1 SMP PREEMPT Sun Jan 6 20:50:27 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux-libre root=UUID=e71e7b6e-24fa-424c-8e94-482dca5c8688 rw ipv6.disable=1 quiet
Build Date: 25 October 2018 04:42:32PM
Current version of pixman: 0.36.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 10 19:57:10 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported high keycode 372 for name <I372> ignored
> X11 cannot support keycodes above 255.
> This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
(II) Server terminated successfully (0). Closing log file.
There is nothing more in the dir /var/log/lightdm/
/var/lib/lightdm/
Does that directory exist ? I'm only guessing but it looks like it's trying to write .Xauthority then trying to open it..
If it does exist what are the permissions, owner, group
ls -al /var/lib/lightdm/
The directory does not exist, what content should the file .Xauthority have?
Same like /var/lib/lightdm-data . It is not enough to create the folders.. :(
As root
mkdir /var/lib/lightdm
chown lightdm:lightdm /var/lib/lightdm
chmod 1770 /var/lib/lightdm
.Xauthority should hopefully be created for you.
I don't know why this and previously mentioned dir's were missing ?Some thing is wrong (I'm good at stating the obvious)
Yeah! This solved my problem. :)
Just to be on the safe side i've changed the rights also for the lightdm-data folder.
But why this is not set default... ::)
Glad to hear it :) Yes you were right to do the data folder as well.
It should have JUST worked as you say. Always has for me. I would hazard a guess at operator error in some way but who knows ?
For future reference if you run into problems, which you are going to post, try to find logs and config files and post them straight away. Saves a lot of messing around.
And properly read the logs. The answer is often right there. (searching for 'error' in the log, if it's long, is a good start and can speed things up)
Glad to have been of some help :)