You are not logged in.

#1 2012-08-05 18:42:02

ichi-no-eda
Member
Registered: 2011-08-28
Posts: 33

[solved] After transition to systemd blank screen - openbox, slim

Hi there.

When I start my system 9 times out of 10 I get a blank screen. I then can start the x-server manually with startx. Though this should be handled by Slim which I have enabled with systemctl enable slim.service. It also seems that Slim is somehow started as the boot-splash mentiones it.

How do I troubleshoot this?

There are some entries in /var/log/slim.log. Here's an excerpt of what seems relevant to me:

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 395642 requests (395642 known processed) with 0 events remaining.
XIO:  fatal IO error 4 (Interrupted system call) on X server ":0.0"
      after 44304 requests (44304 known processed) with 0 events remaining.
real transparency off.... depth: 24
xRandr: Found crtc's: 2
xRandr: Linking output DVI-I-1 with crtc 0
NO XSETTINGS manager, tint2 use config 'launcher_icon_theme'.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 193620 requests (193620 known processed) with 0 events remaining.
soffice: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 60105 requests (60105 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 1272556 requests (1272556 known processed) with 0 events remaining.
soffice: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
xscreensaver: 22:09:09: SIGHUP received: restarting...
xscreensaver: 22:09:09: running as daniel/users (1000/100)

xscreensaver: 22:09:10: Can't open display: :0.0
xscreensaver: 22:09:10: running as daniel/users (1000/100)

xscreensaver: 22:09:10: Errors at startup are usually authorization problems.
              But you're not logging in as root (good!) so something
              else must be wrong.  Did you read the manual and the FAQ?

              http://www.jwz.org/xscreensaver/faq.html
              http://www.jwz.org/xscreensaver/man.html

Server terminated successfully (0). Closing log file.
Conky: can't open display: :0.0


slim: waiting for X server to begin accepting connections.

Also when I start x manually and try to launch nitrogen --restore I get the following:

Couldn't find group for :1.0.
Could not get bg info

I'd really appreciate any help.

Last edited by ichi-no-eda (2012-08-06 17:53:01)

Offline

#2 2012-08-05 20:40:10

ichi-no-eda
Member
Registered: 2011-08-28
Posts: 33

Re: [solved] After transition to systemd blank screen - openbox, slim

O.K. the solution seems to be to start slim as a daemon which it is not by default.

Issue

sudo vim /usr/lib/systemd/system/slim.service

or open the file with any other text editor.

Then change line 6 from

ExecStart=/usr/bin/slim -nodaemon

to

ExecStart=/usr/bin/slim

Save. Exit. And reboot. Everything should work now. At least it does for me.

Last edited by ichi-no-eda (2012-08-05 20:42:18)

Offline

#3 2012-08-05 21:32:34

ichi-no-eda
Member
Registered: 2011-08-28
Posts: 33

Re: [solved] After transition to systemd blank screen - openbox, slim

Unfortunately it worked three times and then stopped. Blank screen again.

Offline

#4 2012-08-06 16:56:34

gavian
Member
Registered: 2008-03-05
Posts: 3

Re: [solved] After transition to systemd blank screen - openbox, slim

Slim depends on dbus which is missing in the Arch slim.service file.

I have changed the  /usr/lib/systemd/system/slim.service file into this.

[Unit]
Description=SLIM Simple Login Manager
Wants=dbus.target
Before=bluetooth.target network.target getty.target vixie-cron.service
After=acpid.service

[Service]
ExecStart=/usr/bin/slim -nodaemon
Restart=always

[Install]
Alias=display-manager.service
WantedBy=graphical.target

Offline

#5 2012-08-06 17:52:23

ichi-no-eda
Member
Registered: 2011-08-28
Posts: 33

Re: [solved] After transition to systemd blank screen - openbox, slim

Thanks for the suggestion gavian.

Wants=dbus.target

really seems to do the trick!

Offline

Board footer

Powered by FluxBB