X server: connection refused

Raspberry Pi 2

X server: connection refused

Postby 2sdude » Mon May 27, 2024 2:43 am

I didn't start X in a while on my RPI3b with RPI 7in touch screen ...
And now I get: "unable to connect to X server: connection refused"

Anybody have an idea?

"tail -f ~/.local/share/xorg/Xorg.0.log | ts"

[code]
May 26 21:34:00 [ 32.381] (II) XINPUT: Adding extended input device "raspberrypi-ts" (type: TOUCHSCREEN, id 10)
May 26 21:34:00 [ 32.381] (**) Option "AccelerationScheme" "none"
May 26 21:34:00 [ 32.381] (**) raspberrypi-ts: (accel) selected scheme none/0
May 26 21:34:00 [ 32.381] (**) raspberrypi-ts: (accel) acceleration factor: 2.000
May 26 21:34:00 [ 32.381] (**) raspberrypi-ts: (accel) acceleration threshold: 4
May 26 21:34:00 [ 32.384] (II) event4 - raspberrypi-ts: is tagged by udev as: Touchscreen
May 26 21:34:00 [ 32.385] (II) event4 - raspberrypi-ts: device is a touch device
May 26 21:34:00 [ 32.387] (II) config/udev: Adding input device raspberrypi-ts (/dev/input/mouse0)
May 26 21:34:00 [ 32.387] (II) No input driver specified, ignoring this device.
May 26 21:34:00 [ 32.387] (II) This device may have been added with another device file.
[/code]

"config.txt"

[code]
initramfs initramfs-linux.img followkernel

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# lcd_rotate=2

# Uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

dtoverlay=disable-bt
arm_boost=1

[cm4]
otg_mode=1

[all]
[/code]

"cmdline.txt"

[code]
root=/dev/mmcblk0p2 rw rootwait console=serial0,115200 console=tty1 fsck.repair=
yes fbcon=rotate:2
[/code]
2sdude
 
Posts: 25
Joined: Sun Nov 12, 2017 11:13 pm

Re: X server: connection refused

Postby 2sdude » Mon May 27, 2024 3:11 pm

I found in ~/.local/share/xorg/Xorg.0.log :

May 27 10:07:11 [ 28.995] (EE) open /dev/fb0: Permission denied

I tried to put a /etc/X11/Xwrapper.config, but no cigar (same error message)
2sdude
 
Posts: 25
Joined: Sun Nov 12, 2017 11:13 pm

Re: X server: connection refused

Postby solskogen » Tue May 28, 2024 6:05 am

Can root start X?
Can you try to comment or remove the dtoverlay=vc4-kms-v3d line?
solskogen
 
Posts: 168
Joined: Mon Nov 18, 2013 10:41 am

Re: X server: connection refused

Postby 2sdude » Tue May 28, 2024 12:37 pm

Hi, thanks for the response! "root" can't start X either: same errors.
Then I commented out "dtoverlay=vc4-kms-v3d", but now my screen remained black after boot.

I removed the "#" and got my screen back.
2sdude
 
Posts: 25
Joined: Sun Nov 12, 2017 11:13 pm


Return to Broadcom

Who is online

Users browsing this forum: No registered users and 3 guests