You are not logged in.

#1 2015-10-03 13:31:48

MisterChoc
Member
Registered: 2013-02-17
Posts: 74

Openbox-Message: Failed to open the display from the DISPLAY environme

I have setup xorg & xinit. So in my xinitrc I have "exec openbox-session" and when I login I just run startx and everything's fine.
Though sometimes, usually when I put the laptop on sleep for a while and come back my shortcut aren't working anymore and when I run openbox --restart I get this error message:

Openbox-Message: Failed to open the display from the DISPLAY environme

I'm forced to logout and login again to get it working again

Offline

#2 2015-10-03 13:34:41

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Openbox-Message: Failed to open the display from the DISPLAY environme

Are you sourcing /etc/X11/xinitrc.d/50-systemd-user.sh in your ~/.xinitrc as per the wiki?

Offline

#3 2015-10-03 13:49:45

MisterChoc
Member
Registered: 2013-02-17
Posts: 74

Re: Openbox-Message: Failed to open the display from the DISPLAY environme

Yes I think that's what the last if block does right?

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then

    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

exec openbox-session

Offline

#4 2015-10-03 14:07:48

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Openbox-Message: Failed to open the display from the DISPLAY environme

Yes, it is. Not sure what's going on then. You might want to take a look at this bug report: FS#46374.

Offline

#5 2015-10-03 14:40:56

MisterChoc
Member
Registered: 2013-02-17
Posts: 74

Re: Openbox-Message: Failed to open the display from the DISPLAY environme

Could this be caused by my hostname? Found some thread talking about that.

unkn0wn@localhost{~}:echo $HOSTNAME
localhost.localdomain

I did set it with hostnamectl and I can see it in /etc/hostname but $HOSTNAME is still localhose (I did logout and also tried the hostname command)
edit: after a reboot the hostname is set, let's wait and see if it happens again now

Last edited by MisterChoc (2015-10-03 14:44:02)

Offline

Board footer

Powered by FluxBB