You are not logged in.

#1 2023-03-16 17:56:51

nilbouassida
Member
Registered: 2023-03-16
Posts: 7

[SOLVED] xinit: unable to connect to X server: connection refused

Hello,
i am am kinda new to arch linux, so please excuse if i made/make some dumb mistakes.
I just installed arch as a doual boot with bspwm window manager and until a few days ago everything ran perfektly fine.
Once I just booted up and tried to run startx but it gave me the errors:
vesa: refusing to run, Framebuffer or dri present (ee) Fatal server error: (ee) no screens found(ee)
and:
xinit unable to connect to X server: Connection refused

the log file(/var/log/Xorg.0.log):

[  6374.922]
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[  6374.922] Current Operating System: Linux arch 6.1.19-1-lts #1 SMP PREEMPT_DYNAMIC Mon, 13 Mar 2023 14:18:18 +0000 >
[  6374.922] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=115b1546-31ab-4d69-b8ab-5ac0ffa6f426 rw>
[  6374.922]
[  6374.922] Current version of pixman: 0.42.2
[  6374.922]    Before reporting problems, check [url]http://wiki.x.org[/url]
        to make sure that you have the latest version.
[  6374.922] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  6374.922] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar 16 18:34:11 2023
[  6374.922] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  6374.923] (==) No Layout section.  Using the first Screen section.
[  6374.923] (==) No screen section available. Using defaults.
[  6374.923] (**) |-->Screen "Default Screen Section" (0)
[  6374.923] (**) |   |-->Monitor "<default monitor>"
[  6374.923] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[  6374.923] (==) Automatically adding devices
[  6374.923] (==) Automatically enabling devices
[  6374.923] (==) Automatically adding GPU devices
[  6374.923] (==) Automatically binding GPU devices
[  6374.923] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  6374.923] (WW) The directory "/usr/share/fonts/misc" does not exist.
[  6374.923]    Entry deleted from font path.
[  6374.923] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[  6374.923]    Entry deleted from font path.
[  6374.923] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[  6374.923]    Entry deleted from font path.
[  6374.923] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[  6374.923]    Entry deleted from font path.
[  6374.923] (==) FontPath set to:
        /usr/share/fonts/100dpi,
        /usr/share/fonts/75dpi
[  6374.923] (==) ModulePath set to "/usr/lib/xorg/modules"
[  6374.923] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  6374.923] (II) Module ABI versions:
[  6374.923]    X.Org ANSI C Emulation: 0.4
[  6374.923]    X.Org Video Driver: 25.2
[  6374.923]    X.Org XInput driver : 24.4
[  6374.923]    X.Org Server Extension : 10.0
[  6374.924] (++) using VT number 1
[  6374.925] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[  6374.932] (--) PCI:*(7@0:0:0) 10de:1c03:1458:371a rev 161, Mem @ 0xf5000000/16777216, 0xe0000000/268435456, 0xf0000>
[  6374.932] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  6374.932] (II) LoadModule: "glx"
[  6374.932] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  6374.934] (II) Module glx: vendor="X.Org Foundation"
[  6374.934]    compiled for 1.21.1.7, module version = 1.0.0
[  6374.934]    ABI class: X.Org Server Extension, version 10.0
[  6374.934] (==) Matched nouveau as autoconfigured driver 0
[  6374.934] (==) Matched nv as autoconfigured driver 1
[  6374.934] (==) Matched modesetting as autoconfigured driver 2
[  6374.934] (==) Matched fbdev as autoconfigured driver 3
[  6374.934] (==) Matched vesa as autoconfigured driver 4
[  6374.934] (==) Assigned the driver to the xf86ConfigLayout
[  6374.934] (II) LoadModule: "nouveau"
[  6374.935] (WW) Warning, couldn't open module nouveau
[  6374.935] (EE) Failed to load module "nouveau" (module does not exist, 0)
[  6374.935] (II) LoadModule: "nv"
[  6374.935] (WW) Warning, couldn't open module nv
[  6374.935] (EE) Failed to load module "nv" (module does not exist, 0)
[  6374.935] (II) LoadModule: "modesetting"
[  6374.935] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  6374.936] (II) Module modesetting: vendor="X.Org Foundation"
[  6374.936]    compiled for 1.21.1.7, module version = 1.21.1
[  6374.936]    Module class: X.Org Video Driver
[  6374.936]    ABI class: X.Org Video Driver, version 25.2
[  6374.936] (II) LoadModule: "fbdev"
[  6374.936] (WW) Warning, couldn't open module fbdev
[  6374.936] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  6374.936] (II) LoadModule: "vesa"
[  6374.936] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[  6374.936] (II) Module vesa: vendor="X.Org Foundation"
[  6374.936]    compiled for 1.21.1.4, module version = 2.6.0
[  6374.936]    Module class: X.Org Video Driver
[  6374.936]    ABI class: X.Org Video Driver, version 25.2
[  6374.936] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  6374.936] (II) VESA: driver for VESA chipsets: vesa
[  6374.936] (EE) open /dev/dri/card0: No such file or directory
[  6374.936] (WW) Falling back to old probe method for modesetting
[  6374.936] (EE) open /dev/dri/card0: No such file or directory
[  6374.936] vesa: Refusing to run, Framebuffer or dri device present
[  6374.936] (EE) Screen 0 deleted because of no matching config section.
[  6374.936] (II) UnloadModule: "modesetting"
[  6374.936] (EE) Device(s) detected, but none match those in the config file.
[  6374.936] (EE)
Fatal server error:
[  6374.936] (EE) no screens found(EE)
[  6374.936] (EE)
Please consult the The X.Org Foundation support
         at [url]http://wiki.x.org[/url]
 for help.
[  6374.936] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  6374.937] (EE)
[  6374.938] (EE) Server terminated with error (1). Closing log file.

I already tried to reinstall arch but it gives the exact same error.
I am running an nvidia gpu and the according drivers btw, i saw somewhere that this gives often problems.
it would be really awesome if someone helped me, thank you.
ps sorry for my bad english, i am not a native speaker

Last edited by nilbouassida (2023-03-16 20:43:59)

Offline

#2 2023-03-16 18:02:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,345
Website

Re: [SOLVED] xinit: unable to connect to X server: connection refused

Welcome to the forums.  Please edit your post to add [code] tags around the xorg log.

The error here is due to the nvidia driver / configuration.  Please post the output of the following command:

lspci -v | grep -A1 -e VGA -e 3D

And describe specifically which driver package(s) you've installed and whether you did any configuration for the video driver.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-03-16 18:11:44

nilbouassida
Member
Registered: 2023-03-16
Posts: 7

Re: [SOLVED] xinit: unable to connect to X server: connection refused

Thank you for your fast reply.
the output of the command is:

07:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Gigabyte Technology Co., Ltd Device 371a

i did not configure the drivers, and i just installed nvidia and nvidia-utils.

Offline

#4 2023-03-16 19:20:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,208

Re: [SOLVED] xinit: unable to connect to X server: connection refused

lspci -k | grep -EA3 'VGA|3D'

should be more telling here. If you are however using the LTS kernel you need to install nvidia-lts which is the kernel module compiled for the LTS kernel. If that doesn't help post the output of my command as well as

pacman -Qs nvidia

Offline

#5 2023-03-16 19:26:21

nilbouassida
Member
Registered: 2023-03-16
Posts: 7

Re: [SOLVED] xinit: unable to connect to X server: connection refused

local/egl-wayland 2:1.1.11-3
    EGLStream-based Wayland external platform
local/nvidia 525.89.02-11
    NVIDIA drivers for linux
local/nvidia-utils 525.89.02-2
    NVIDIA drivers utilities
07:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 371a
	Kernel modules: nouveau
07:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)

so i am using the nouveau module. Sorry for the dumb question but how do i know if I am using lts kernel?
But I dont think i am.

Offline

#6 2023-03-16 19:29:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,345
Website

Re: [SOLVED] xinit: unable to connect to X server: connection refused

According to your xorg log you are:

[  6374.922] Current Operating System: Linux arch 6.1.19-1-lts #1 SMP PREEMPT_DYNAMIC Mon, 13 Mar 2023 14:18:18 +0000 >
[  6374.922] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=115b1546-31ab-4d69-b8ab-5ac0ffa6f426 rw>

You would have installed the lts kernel and configured your bootloader to use it.  So a better question is how could you not know?

What instructions did you follow to install this system?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2023-03-16 19:50:52

nilbouassida
Member
Registered: 2023-03-16
Posts: 7

Re: [SOLVED] xinit: unable to connect to X server: connection refused

ahh ok thats right, sorry.
like I said, I am still new to arch and not very expirienced.
I installed nvidia-lts but startx still wont work, and gives the same problem.

now the output to lspci -k | grep -EA3 'VGA|3D' is:

07:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd Device 371a
	Kernel modules: nouveau, nvidia_drm, nvidia
07:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)

and to pacman -Qs nvidia:

local/egl-wayland 2:1.1.11-3
    EGLStream-based Wayland external platform
local/nvidia 525.89.02-11
    NVIDIA drivers for linux
local/nvidia-lts 1:525.89.02-10
    NVIDIA drivers for linux-lts
local/nvidia-utils 525.89.02-2
    NVIDIA drivers utilities

Last edited by nilbouassida (2023-03-16 19:53:42)

Offline

#8 2023-03-16 20:02:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,208

Re: [SOLVED] xinit: unable to connect to X server: connection refused

What's your CPU? If it's intel gen 11+ you will also want to add the ibt=off kernel parameter as described in https://wiki.archlinux.org/title/NVIDIA#Installation - see the blue notes.

If that didn't help either, updated xorg log and

sudo journalctl -b

https://wiki.archlinux.org/title/List_o … n_services

Offline

#9 2023-03-16 20:07:08

nilbouassida
Member
Registered: 2023-03-16
Posts: 7

Re: [SOLVED] xinit: unable to connect to X server: connection refused

I am using a amd ryzen 5.
what exactly am I looking for with sudo journalctl -b?

Offline

#10 2023-03-16 20:14:48

seth
Member
Registered: 2012-09-03
Posts: 62,267

Re: [SOLVED] xinit: unable to connect to X server: connection refused

"Problems"
The nvidia module doesn't load and we'll have to figure why.

Post the updated xorg log and journal, don't copy stuff out of the pager, see the 1st link below on how to feed files and outputs into a pastebin service.

Offline

#11 2023-03-16 20:33:37

nilbouassida
Member
Registered: 2023-03-16
Posts: 7

Re: [SOLVED] xinit: unable to connect to X server: connection refused

ok, thank you!
journalctl:
https://pastebin.com/W4GVKQWA
new Xorg log:
https://pastebin.com/eutb0z8P

Offline

#12 2023-03-16 20:36:50

seth
Member
Registered: 2012-09-03
Posts: 62,267

Re: [SOLVED] xinit: unable to connect to X server: connection refused

What did I say about the pager?

sudo journalctl -b | curl -F 'file=@-' 0x0.st

However from the looks of the pasted fragments you installed the nvidia-lts package but didn't reboot (nor explicitly load it)?

Offline

#13 2023-03-16 20:41:55

nilbouassida
Member
Registered: 2023-03-16
Posts: 7

Re: [SOLVED] xinit: unable to connect to X server: connection refused

I rebooted and it worked!
Thank you so much!! it is really nice of you to help me, you were very kind!
Sorry for doing such a dumb mistake tho

Offline

Board footer

Powered by FluxBB