Skip to main content
Topic: Unable to start window manager, "cannot open display" (Read 7055 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unable to start window manager, "cannot open display"

Hello,
I've installed Artix with Runit, than installed xorg with all packages provided plus xorg-xinit.

lspci gives the following:
Code: [Select]
lspci | grep -e VGA -e 3D
Quote
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller

Thus  the xf86-video-intel package was installed.

The elogind & elogind-runit is installed, enabled and running.

Code: [Select]
sudo sv status elogind
run: elogind: (pid 1178) 4974s


For window manager I'm going to use dwm or i3.

System loads OK to tty1, after login trying to dmw|i3 (with sudo or without) gives the following:
Code: [Select]
dwm: cannot open display

With sudo startx dwm nothing happens as well.

From Xorg.0.log the bottom lines:
Code: [Select]
[  1958.573] (**) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[  1958.573] (**) ModulePath set to "/usr/lib/xorg/modules"
[  1958.573] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  1958.573] (WW) Disabling Mouse0
[  1958.573] (WW) Disabling Keyboard0
[  1958.574] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20200313
[  1958.574] (II) intel(0): SNA compiled from 2.99.917-908-g7181c5a4
[  1960.651] intel: waited 2020 ms for i915.ko driver to load
[  1960.675] Number of created screens does not match number of detected devices.
  Configuration failed.
[  1960.675] (EE) Server terminated with error (2). Closing log file.

Here is Xorg.0.log

I've checked this posts "Cannot open display "default display"", "boot stop before login, cant startx", "Warning: networkmanager 1.14.7dev+3+g353743b99-1 breaks X11", "boot stop before login, cant startx", but it didn't help.

Could you please help me to resolve this issue?

Re: Unable to start window manager, "cannot open display"

Reply #1
I guess wrong configured xorg?

Yes, exactly that is the problem, as i saw in your log :
Code: [Select]
[  1958.568] (**) |-->Screen "Screen0" (0)
[  1958.568] (**) |   |-->Monitor "Monitor0"
[  1958.570] (**) |   |-->Device "Card0"
[  1958.570] (**) |-->Screen "Screen1" (1)
[  1958.570] (**) |   |-->Monitor "Monitor1"
[  1958.571] (**) |   |-->Device "Card1"


Why you defined two graphics cards, if you have only one?? 😎😎😎
See:
https://blog.lobraun.de/2017/10/31/xorg-configure-no/

Re: Unable to start window manager, "cannot open display"

Reply #2
 I haven't do any configurations just installed xorg.
And now while trying to do sudo Xorg -configure it fails and displays following errors:
Code: [Select]
modprobe: FATAL: Module fbcon not found in directory /lib/modules/5.7.8-artix1-1
intel: waited 2020 ms for i915.ko driver to load
Number of created screens does not match number of detected devices.
     Configuration failed.
(EE) Server terminated with error (2). Closing log file.

I was trying to remove another device, monitor, screen form the xorg.conf.new, than have copied it to /etc/X11/xorg.conf but it hasn't work.

It is my first experience to set up linux from the ground, I've never done this before even with systemd. Therefore could miss something while installing and setting up.

What else could I check/do in the case?

Re: Unable to start window manager, "cannot open display"

Reply #3
It seems you are trying to connect two monitors. You are using open source drivers so in theory you wouldn't need xorg.conf file.

Can you try without "xorg.conf" and only one monitor?

Have you got .xinitrc file? (This maybe obvious but still relevant)
Artix Linux Colombia

Re: Unable to start window manager, "cannot open display"

Reply #4
I haven't do any configurations just installed xorg.
And now while trying to do sudo Xorg -configure it fails and displays following errors:
Code: [Select]
modprobe: FATAL: Module fbcon not found in directory /lib/modules/5.7.8-artix1-1
intel: waited 2020 ms for i915.ko driver to load
Number of created screens does not match number of detected devices.
     Configuration failed.
(EE) Server terminated with error (2). Closing log file.

I was trying to remove another device, monitor, screen form the xorg.conf.new, than have copied it to /etc/X11/xorg.conf but it hasn't work.

It is my first experience to set up linux from the ground, I've never done this before even with systemd. Therefore could miss something while installing and setting up.

What else could I check/do in the case?

please share your xorg configs! you must properly set your xorg server.

see my configs https://github.com/alium/share

Re: Unable to start window manager, "cannot open display"

Reply #5
I'm completely lost how to set it up  :(

I've removed /etc/X11/xorg.conf & /root/xorg.conf.new.

Then (all as a root)
Code: [Select]
Xorg :0 -configure

Got [this](https://bin.nixnet.services/?8eec736011250dd0#6kixZCkB4uYahneFvA4GR9ro4EzGe5ba2DRcnX7QUms9)

Here is [Xorg.0.log](https://bin.nixnet.services/?02e9156cdcf216d5#R42vsk7h4p7thRRXaPS4RuRortEx9A9rFPch8p3wXiY)
 
Here is [xorg.conf.new](https://bin.nixnet.services/?4e0e8d7480a8f614#6xnt6vRb6phhPJLhpcyN1k45ACA2TbLF82QGvAFs93Wa) generated by Xorg :0 -configure

And
Code: [Select]
 lspci | grep -e VGA -e Display
shows
Quote
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
00:02.1 Display controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller

I've manually edited [xorg.conf](https://bin.nixnet.services/?c8125ba7c8991b2b#CmUCthStQq5zJ84j3khFmYwCJkUJdghb1aNdZqYC32xt), removed all configs related to second device&monitor&screen and saved file under /etc/X11/xorg.conf

After that run startx dwm and received nothing :(, window manager won't start.

Here is [Xorg.0.conf](https://bin.nixnet.services/?345915e104f0f81b#GEjqAm9db7TXiRfPXcFGHt6kzJ8DCQtSYHhfwaabzhtZ) after running the above command

But new log file [Xorg.1.log](https://bin.nixnet.services/?26bdfa93549e1f28#CojfNcjv71MxoDgrpjmrzMUrcKi5UTC1hNcB7oerY8qb) has been created

I have no clue why there are two devices/monitors/screens detected and what is going on with X server  :o

Re: Unable to start window manager, "cannot open display"

Reply #6
Is linux-firmware installed? Sometimes there are a few locations xorg.conf can reside, you could try locate xorg.conf or similar. Perhaps there is some BIOS menu setting that would help? Perhaps you could try another desktop, although I doubt that's the problem - or plug in another monitor (could be a TV) if you had suitable ports and a cable, so it had the 2 displays it thinks it has  :D

Re: Unable to start window manager, "cannot open display"

Reply #7
linux-firmware is installed, the BIOS is very primitive, and it does not have any related settings (very old netbook - Acer D250), it is a laptop with one monitor available without additional plug-ins.
I've looked through whole disk to find xorg.conf but it is where it should be, in /etc/X11

Re: Unable to start window manager, "cannot open display"

Reply #8
OK, I've installed XFCE and it starts well by startxfce4 script.

here is a log file for the started xfce ([Xorg.0.log](https://bin.nixnet.services/?d27d27760c52f09c#97dhrUnW5ZyStdiMQFXy7hrUu1gEmkUUHJmhdf2veisL)).

after that I've created one more time ~/.xinitrc first with
Code: [Select]
exec i3
, then
Code: [Select]
exec dwm
.
and both have workded well with startx.

here is a log for the successfully started window managers [Xorg.0.log](https://bin.nixnet.services/?5dd43ec7e836b5b6#9m7EDyJxCWi2tuDVX5RUuWZBQj1xxfVhQiXPC5X1F1y2).

I don't know what just happened. Maybe I've missed something previously ([/code]

Re: Unable to start window manager, "cannot open display"

Reply #9
OK, I've installed XFCE and it starts well by startxfce4 script.

here is a log file for the started xfce ([Xorg.0.log](https://bin.nixnet.services/?d27d27760c52f09c#97dhrUnW5ZyStdiMQFXy7hrUu1gEmkUUHJmhdf2veisL)).

after that I've created one more time ~/.xinitrc first with
Code: [Select]
exec i3
, then
Code: [Select]
exec dwm
.
and both have workded well with startx.

here is a log for the successfully started window managers [Xorg.0.log](https://bin.nixnet.services/?5dd43ec7e836b5b6#9m7EDyJxCWi2tuDVX5RUuWZBQj1xxfVhQiXPC5X1F1y2).

I don't know what just happened. Maybe I've missed something previously ([/code]

1. can you try if can start your DE with displaymanager-opernrc package?
2. have you installed elogind?

 

Re: Unable to start window manager, "cannot open display"

Reply #10
1. can you try if can start your DE with displaymanager-opernrc package?
2. have you installed elogind?


1. I'm using Runit so I guess there is no displaymanager-openrnrc.
2. Yes, I've installed elogind & elogind-runit service