You are not logged in.

#1 2017-04-01 19:49:06

WJM
Member
Registered: 2017-04-01
Posts: 7

SDDM hangs when selecting Openbox session [SOLVED]

I installed Arch according to the install guide here and got to the point of installing desktop env. I decided to try LXQt so these are the steps I took:
-installed Xorg-server package
-installed SDDM
-installed LXQt (which installed Openbox)
-installed Oxygen icons

Everything seems to work well when I select LXQT as the session. However, when selecting Openbox, SDDM will hang and I need to start seperate terminal and reboot from there. If I log back into lxqt session everything works fine. This is output from $journalctl /usr/bin/sddm. There is message that sddm-helper crashed with exit code 15.

Apr 01 15:26:47 magneedo sddm[370]: Initializing...
Apr 01 15:26:47 magneedo sddm[370]: Starting...
Apr 01 15:26:47 magneedo sddm[370]: Adding new display on vt 1 ...
Apr 01 15:26:47 magneedo sddm[370]: Display server starting...
Apr 01 15:26:47 magneedo sddm[370]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{dcd5158e-8b05-4959-af29-1ea489ae7b55} -background
Apr 01 15:26:47 magneedo sddm[370]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Apr 01 15:26:47 magneedo sddm[370]: Display server started.
Apr 01 15:26:47 magneedo sddm[370]: Socket server starting...
Apr 01 15:26:47 magneedo sddm[370]: Socket server started.
Apr 01 15:26:47 magneedo sddm[370]: Greeter starting...
Apr 01 15:26:47 magneedo sddm[370]: Adding cookie to "/var/run/sddm/{dcd5158e-8b05-4959-af29-1ea489ae7b55}"
Apr 01 15:26:47 magneedo sddm[370]: sh: /usr/bin/xauth: No such file or directory
Apr 01 15:26:47 magneedo sddm[370]: Greeter session started successfully
Apr 01 15:26:47 magneedo sddm[370]: Message received from greeter: Connect
Apr 01 15:26:57 magneedo sddm[370]: Message received from greeter: Login
Apr 01 15:26:57 magneedo sddm[370]: Reading from "/usr/share/xsessions/openbox.desktop"
Apr 01 15:26:57 magneedo sddm[370]: Reading from "/usr/share/xsessions/openbox.desktop"
Apr 01 15:26:57 magneedo sddm[370]: Session "/usr/share/xsessions/openbox.desktop" selected, command: "/usr/bin/openbox-session"
Apr 01 15:26:57 magneedo sddm[370]: Authenticated successfully
Apr 01 15:26:57 magneedo sddm[370]: Auth: sddm-helper exited successfully
Apr 01 15:26:57 magneedo sddm[370]: Greeter stopped.
Apr 01 15:26:57 magneedo sddm[370]: Session started
Apr 01 15:27:19 magneedo sddm[370]: Authentication error: "Process crashed"
Apr 01 15:27:19 magneedo sddm[370]: Auth: sddm-helper crashed (exit code 15)
Apr 01 15:27:19 magneedo sddm[370]: Authentication error: "Process crashed"
Apr 01 15:27:19 magneedo sddm[370]: Auth: sddm-helper exited with 15
Apr 01 15:27:19 magneedo sddm[370]: Socket server stopping...
Apr 01 15:27:19 magneedo sddm[370]: Socket server stopped.
Apr 01 15:27:19 magneedo sddm[370]: Display server stopping...
Apr 01 15:27:24 magneedo sddm[370]: Removing display ":0" ...
Apr 01 15:27:24 magneedo sddm[370]: Adding new display on vt 1 ...
Apr 01 15:27:24 magneedo sddm[370]: Display server starting...
Apr 01 15:27:24 magneedo sddm[370]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{6c8d09b1-fd6c-425f-944c-d3c99ddb83af} -background
Apr 01 15:27:24 magneedo sddm[370]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Apr 01 15:27:24 magneedo sddm[370]: Display server started.
Apr 01 15:27:24 magneedo sddm[370]: Socket server starting...
Apr 01 15:27:24 magneedo sddm[370]: Socket server started.
Apr 01 15:27:24 magneedo sddm[370]: Greeter starting...
Apr 01 15:27:24 magneedo sddm[370]: Adding cookie to "/var/run/sddm/{6c8d09b1-fd6c-425f-944c-d3c99ddb83af}"
Apr 01 15:27:24 magneedo sddm[370]: sh: /usr/bin/xauth: No such file or directory
Apr 01 15:27:24 magneedo sddm[370]: Display server stopping...
Apr 01 15:27:24 magneedo sddm[370]: Display server stopped.
Apr 01 15:27:24 magneedo sddm[370]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Apr 01 15:27:24 magneedo sddm[370]: Signal received: SIGTERM
Apr 01 15:27:24 magneedo sddm[370]: Socket server stopping...
Apr 01 15:27:24 magneedo sddm[370]: Socket server stopped.
Apr 01 15:27:24 magneedo sddm[370]: Display server stopping...
Apr 01 15:27:25 magneedo sddm[370]: Display server stopped.
Apr 01 15:27:25 magneedo sddm[370]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Apr 01 15:27:25 magneedo sddm[370]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.

If anyone has seen this and can offer some suggestions it would be appreciated. I can just not login to Openbox as workaround, but would like to make sure I have things correct before continuing to install more packages.

Last edited by WJM (2017-04-05 12:18:13)

Offline

#2 2017-04-01 20:42:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SDDM hangs when selecting Openbox session [SOLVED]

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code

Paste your conf files and xorg.log . Can you start Openbox without the additional layer of abstraction, ie., without a DM?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-04-02 03:13:08

WJM
Member
Registered: 2017-04-01
Posts: 7

Re: SDDM hangs when selecting Openbox session [SOLVED]

Sorry for the lack of code tags. I was able to start an X session o.k using

$ startx

Three terminals and the clock were opened and worked. To try and start Openbox I used

$ startx /usr/bin/openbox-session

I only got a blank screen and mouse cursor (which seemed to work). So it looks like I'm having an issue running Openbox outside of SDDM. I guess I will try to see if I can get that working before adding in SDDM. Still not sure why Openbox would work when initiated from LXQt and not from SDDM or terminal.

SDDM.conf:
https://ptpb.pw/KMLP

Xorg.0.log:
https://ptpb.pw/rk9K

The Xorg log was taken after trying Openbox without SDDM.

Offline

#4 2017-04-02 03:17:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SDDM hangs when selecting Openbox session [SOLVED]

Openbox is working, your session was broken. If you copy the correct xinitrc to ~/.xinitrc and adapt it to start Openbox, it should work. See the wiki page.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-04-02 15:09:38

WJM
Member
Registered: 2017-04-01
Posts: 7

Re: SDDM hangs when selecting Openbox session [SOLVED]

I copied /etc/X11/xinit/xinitrc to ~/.xinitrc and also copied the files from /etc/xdg/openbox to ~/.config/openbox as mentioned in the wiki page. When modifying xinitrc, should the lines for twm, xclock and xterm be commented out or just append "exec openbox-session" ? I tried both scenarios and still had just a blank screen with mouse cursor.

Offline

#6 2017-04-02 17:44:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SDDM hangs when selecting Openbox session [SOLVED]

Only one exec line will be read. The wiki states this... Does the right click menu work in OB?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-04-02 19:31:17

peterklarc
Member
Registered: 2017-03-28
Posts: 28

Re: SDDM hangs when selecting Openbox session [SOLVED]

Hello,
Using Openbox here is my .xinitrc a bang courtesy:

#!/bin/bash

export DE=openbox

# Dbus fix
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
    eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi

/usr/bin/xdg-user-dirs-update

exec openbox-session
#exec startxfce4

Offline

#8 2017-04-02 19:40:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SDDM hangs when selecting Openbox session [SOLVED]

Where did you get that file?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2017-04-02 19:46:30

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: SDDM hangs when selecting Openbox session [SOLVED]

# Dbus fix
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
    eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi

This should not be needed.  If $DBUS_SESSION_BUS_ADDRESS is not set why not investigate the cause of that instead?

/usr/bin/xdg-user-dirs-update

Duplicates the functionality provided by /usr/lib/systemd/user/xdg-user-dirs-update.service

Offline

#10 2017-04-03 01:01:16

WJM
Member
Registered: 2017-04-01
Posts: 7

Re: SDDM hangs when selecting Openbox session [SOLVED]

Thanks for the input. I noticed that nothing would run after exec command but was wondering if I needed any other x-windows to launch from there as well beforehand (not that familiar with what OB is supposed to be doing). Anyhow, I tried again (with and w/o xterm in initrc) and I do get the Openbox menu on right-click and can launch xterm from there. Most of the other apps on the menu I don't have installed. I haven't configured Openbox at all, so it's a pretty empty desktop, but does seem to be working independent of SDDM.

I am still seeing SDDM hang though when I select Openbox as a session. It looks like from journactl output, that it could be related to sddm-helper crashing due to an authentication issue, which doesn't happen when I select lxqt as a session. I read sddm-helper is run as a system user so maybe there's an issue there ? I guess I will try and look into that further and double check OB and SDDM configuration for now.

Offline

#11 2017-04-03 01:18:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SDDM hangs when selecting Openbox session [SOLVED]

jasonwryan wrote:

Where did you get that file?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2017-04-03 07:54:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,892

Re: SDDM hangs when selecting Openbox session [SOLVED]

Looks like https://gitla.in/Kashire/dotfiles/blob/ … p/.xinitrc

Edit: the only public source google cooks up.

Last edited by seth (2017-04-03 07:55:06)

Offline

#13 2017-04-04 02:31:16

WJM
Member
Registered: 2017-04-01
Posts: 7

Re: SDDM hangs when selecting Openbox session [SOLVED]

I looked at processes running during login to SDDM and it appears Openbox is started and running, however, it is running on top of the SDDM greeter. After I click login, the wallpaper and greeter remain on the screen but I will get the Openbox menu on right click. I can open a terminal from there, but moving it will "smear" the screen behind it and the OB menu will sometimes get stuck and multiple images of it remain on the screen. When I select LXQt session, the SDDM greeter closes and LXQt desktop shows up and works fine. I guess this is related to configuration of my Openbox session ?

Offline

#14 2017-04-04 02:53:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SDDM hangs when selecting Openbox session [SOLVED]

You keep ignoring my question, so I am going to assume that you are not running Arch, but some spinoff that ships broken configs.
Please ask your distro's community; we only support Arch. https://wiki.archlinux.org/index.php/Co … pport_ONLY



Closing -- for deletion

Sorry: I missed that someone else had posted the broken file...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2017-04-04 03:45:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SDDM hangs when selecting Openbox session [SOLVED]

Paste your config.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2017-04-04 03:48:46

WJM
Member
Registered: 2017-04-01
Posts: 7

Re: SDDM hangs when selecting Openbox session [SOLVED]

No problem, I'm not sure what that file means and the .initrc file I modified was working anyhow, Openbox started from startx.

I'm still having an issue of initiating Openbox from SDDM though, I tried using a different theme but that still had the same issue. I'm going to look at full journalctl entries for both lxqt and openbox sessions to see if I can spot any differences.

Offline

#17 2017-04-04 05:54:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,892

Re: SDDM hangs when selecting Openbox session [SOLVED]

This sounds related to the framebuffer - setting a new root wallpaper on openbox may "fix" the "remaining" SDDM and the smearing.
Have and executable script ~/.config/openbox/autostart and there use eg. feh to set a background.

The major difference w/ lxqt and many other "heavy" desktops is that they have a desktop window on top of the root window and SDDM is likely causing this by its GL code in relation to your driver.

Read on here https://wiki.archlinux.org/index.php/Op … wallpapers

Offline

#18 2017-04-05 02:05:05

WJM
Member
Registered: 2017-04-01
Posts: 7

Re: SDDM hangs when selecting Openbox session [SOLVED]

I added

 feh --bg-scale “/path/to/image” 

to my otherwise empty

~/.config/openbox/autostart

file and both Openbox and lxqt sessions are working o.k. now. Looks like not having wallpaper set by Openbox when it started was the issue. I'm using the default config files and openbox .xml files, only needed to add this one line to the autostart script. Thanks for everyone's assistance on this.

Offline

#19 2017-04-05 06:10:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,892

Re: SDDM hangs when selecting Openbox session [SOLVED]

Cool.
Please edit your first post and add a leading [SOLVED] to indicate the state of the topic to others (who seek for or to help)

Offline

Board footer

Powered by FluxBB