You are not logged in.

#1 2018-07-05 13:04:58

super_trash
Banned
Registered: 2018-07-04
Posts: 50

[SOLVED] i3: Cannot open display

I'm trying to start GUI that comes with xorg and i3 as wm, but had some issues by far.

It's archlinux installed as guest on vmware workstation.

list installed packages:

acpi 1.7-2
asp 2-1
autoconf 2.69-4
automake 1.15.1-1
bash 4.4.023-1
binutils 2.30-5
bison 3.0.5-1
bzip2 1.0.6-7
catch2 2.2.3-1
compton 0.1_beta2.5-11
conky 1.10.8-2
coreutils 8.29-1
cryptsetup 2.0.3-2
device-mapper 2.02.177-5
dhcpcd 7.0.4-1
diffutils 3.6-1
dmenu2 0.2-1
dunst 1.3.2-1
dunstify 1.3.2-1
e2fsprogs 1.44.2-1
fakeroot 1.22-1
feh 2.27-1
ffmpeg 1:4.0.1-2
file 5.33-3
filesystem 2018.1-2
findutils 4.6.0-2
firefox 61.0-1
flex 2.6.4-1
gawk 4.2.1-1
gcc 8.1.1+20180531-1
gcc-libs 8.1.1+20180531-1
gettext 0.19.8.1-2
git 2.18.0-1
glibc 2.27-3
grep 3.1-1
gzip 1.9-1
i3-gaps 4.15.0.1-2
i3blocks 1.4-6
i3ipc-python 1.5.1-2
i3lock-color 2.11-3
i3status 2.12-1
ibus 1.5.18-1
imagemagick 7.0.8.4-1
inetutils 1.9.4-5
iproute2 4.17.0-1
iputils 20161105.1f2bb12-2
j4-dmenu-desktop 2.16-1
jfsutils 1.1.15-5
less 530-1
libtool 2.4.6+40+g6ca5e224-7
licenses 20171006-1
linux 4.17.3-1
logrotate 3.14.0-1
lua 5.3.4-2
luarocks 2.4.4-1
lvm2 2.02.177-5
m4 1.4.18-1
make 4.2.1-2
man-db 2.8.3-1
man-pages 4.16-1
mdadm 4.0-1
mopidy 2.1.0-5
mpc 0.30-1
mpd 0.20.20-1
mpdscribble 0.22-14
mpv 1:0.28.2-2
nano 2.9.8-1
ncmpcpp 0.8.2-2
netctl 1.17-1
notify-desktop-git r23.9863919-1
npm 6.1.0-1
oomox 1.6.1-4
openssh 7.7p1-2
pacman 5.1.0-2
parted 3.2-6
patch 2.7.6-1
pciutils 3.5.6-1
perl 5.26.2-1
pkgconf 1.5.1-1
polkit-gnome 0.105-4
procps-ng 3.3.15-1
psmisc 23.1-1
python 3.6.5-3
python-pillow 5.1.0-1
python-pip 10.0.1-1
ranger 1.9.1-1
reiserfsprogs 3.6.27-1
ruby 2.5.1-1
rxvt-unicode 9.22-6
s-nail 14.9.10-1
sassc 3.4.2-1
scrot 0.8.18-1
sed 4.5-1
shadow 4.5-4
stow 2.2.2-5
sudo 1.8.23-2
sysfsutils 2.1.0-10
systemd-sysvcompat 238.133-4
tar 1.30-1
texinfo 6.5-1
tmux 2.7-1
trash-cli 0.17.1.14-3
udevil 0.4.4-3
unclutter 8-11
upower 0.99.7-1
usbutils 010-1
util-linux 2.32-3
vi 1:070224-3
vim 8.1.0022-1
wget 1.19.5-1
which 2.21-2
xautolock 2.2-5
xf86-input-vmmouse 13.1.0-3
xf86-video-vmware 13.3.0-1
xflux 20130901-5
xfsprogs 4.16.1-1
xorg-server 1.20.0-9
xorg-xrandr 1.5.0-1
xorg-xrdb 1.1.1-1
xorg-xvinfo 1.1.3-2
yarn 1.7.0-1



scirpt to start GUI (called i3init):

#!/usr/bin/env bash
# Start my i3 session.
## VARIABLES 
# Personal
ZIPCODE=92129

# System
DPI=276
XRESOURCES=$HOME/.Xresources

# Screensaver
SCREENSAVER=600
DPMS_STANDBY=720
DPMS_SUSPEND=840
DPMS_OFF=960

## AUTOSTART

# Gnome
/usr/libexec/gnome-settings-daemon &
/usr/libexec/polkit-gnome-authentication-agent-1 &

# Wait for gnome-settings-daemon
sleep 0.5

# Config
xrandr --dpi $DPI &
xrdb -merge "$XRESOURCES" &
xset dpms $DPMS_STANDBY $DPMS_SUSPEND $DPMS_OFF s $SCREENSAVER &

# Desktop
urxvt256cd -q -o -f &
# mpd &
compton &
xautolock &
# dunst &
devmon &

# Scripts
# bat-notify-daemon &
lightsOn &
notify-listener &

# User
xflux -z 92129 &
# dropbox start &
ibus-daemon -xdr &
unclutter &

# Wait for mpd
sleep 0.5
# mpdscribble &
# mpc-notify-daemon &

## LET'S DO THIS
i3

output when run `i3init` at console:

--------
Welcome to xflux (f.lux for X)
This will only work if you're running X on console.


No screensaver detected
WARNING: multiple instances of devmon appear to be running (my pid=1180):
   812 tty1     S      0:00 /bin/bash /usr/bin/devmon
  1180 tty1     S+     0:00 /bin/bash /usr/bin/devmon

device: [/dev/sr0]
    systeminternal: [0]
    usage:          [filesystem]
    type:           [iso9660]
    label:          [ARCH_201806]
    ismounted:      [1]
    nopolicy:       [0]
    hasmedia:       [1]
    opticaldisc:    [1]
    numaudiotracks: [0]
    blank:          [0]
    media:          [optical_dvd]
    partition:      [0]

Thanks for any help.

Last edited by super_trash (2018-07-06 01:28:27)

Offline

#2 2018-07-05 13:38:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] i3: Cannot open display

You aren't starting X anywhere, add the relevant lines of your script (or include it) in a properly configured .xinitrc and exec i3 at the end: https://wiki.archlinux.org/index.php/Xinit#xinitrc

Offline

#3 2018-07-06 01:25:58

super_trash
Banned
Registered: 2018-07-04
Posts: 50

Re: [SOLVED] i3: Cannot open display

That's right. Thanks.

Offline

Board footer

Powered by FluxBB