You are not logged in.

#1 2021-12-06 14:30:30

Flavio
Member
Registered: 2021-12-06
Posts: 41

lxdm.log Fatal server error:Server is already active for display 0

Hi all,
I have installed successfully arch on my old sony vaio using nvidia drivers 340.108 and lxde work fantastic
Now after upgrading all and also the kernel to linux-lts 5.10.83-1 (x86_64) after boot messages i get black screen and cannot get any terminal.
The Xorg.0.log report only the warning about the ABI version but has been ignored.
The strange things is that if i uninstall lxde and dependencies to get into the teminal and reinstall lxde and start the GUI with the command startx /usr/bin/startlxde the GUI appear!
But if i reboot again after "reached target graphical interface" i get black screen.
As by the title i get only this error:
Fatal server error:
(EE) Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
Please cause by the black screen it's very difficult debug this problem, so i need something to get terminal without boot in usb live mode.
Many thanks in advance.

Offline

#2 2021-12-06 14:53:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

Please post your system journal (you can use the tip in the 1st link below to post from a console)
Random guess: https://wiki.archlinux.org/title/Kernel … _KMS_start

Online

#3 2021-12-06 21:19:25

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

Excuse me Seth,
I've uninstalled lxde but again i get black screen if i boot from the partition where is installed.
Only way to work on partition and get terminal is with usb live and following commands:
mount /dev/sda2 /mnt
arch-chroot /mnt
Maybe now i've made some mistakes and cannot get login by terminal: it appears briefly and then i get black screen.
CTRL+ALT+F2 not working to get console.
We need to solve this trouble to continue with debug.

Offline

#4 2021-12-06 22:20:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

Maybe now i've made some mistakes and cannot get login by terminal: it appears briefly and then i get black screen.

Smells as if you're still running some graphical.target.
In any event, you can access the journal from the live iso: https://wiki.archlinux.org/title/System … al_to_view

Online

#5 2021-12-07 21:35:45

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

Finally I get the journal output in the link below:
http://ix.io/3Hj3

Offline

#6 2021-12-08 07:45:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

Dec 06 23:18:52 arch startx[306]: (==) Using config file: "/etc/X11/xorg.conf"
Dec 06 23:18:52 arch startx[306]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Dec 06 23:18:52 arch startx[306]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Dec 06 23:18:53 arch ntpd[316]: proto: precision = 0.271 usec (-22)
Dec 06 23:18:53 arch ntpd[316]: basedate set to 2020-06-19
Dec 06 23:18:53 arch ntpd[316]: gps base set to 2020-06-21 (week 2111)
Dec 06 23:18:53 arch ntpd[316]: Listen and drop on 0 v6wildcard [::]:123
Dec 06 23:18:53 arch ntpd[316]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Dec 06 23:18:53 arch ntpd[316]: Listen normally on 2 lo 127.0.0.1:123
Dec 06 23:18:53 arch ntpd[316]: Listen normally on 3 lo [::1]:123
Dec 06 23:18:53 arch ntpd[316]: Listening on routing socket on fd #20 for interface updates
Dec 06 23:18:53 arch ntpd[316]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec 06 23:18:53 arch ntpd[316]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Dec 06 23:18:53 arch systemd[1]: Started Network Time Service.
Dec 06 23:18:53 arch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 06 23:18:53 arch kernel: audit: type=1130 audit(1638829133.356:36): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 06 23:18:53 arch systemd[1]: Reached target Multi-User System.
Dec 06 23:18:53 arch systemd[1]: Reached target Graphical Interface.

You were booting up into the graphical.target which was provided by some startx call - and the journal reads as if you're autologin…ing and run startx (from the shell rc?), probably regardless of the target anyway.
So please avoid that. It is most likely also what spoiled lxdm w/ the given error.

X11 then runs into

Dec 06 23:18:56 arch startx[306]: ================ WARNING WARNING WARNING WARNING ================
Dec 06 23:18:56 arch startx[306]: This server has a video driver ABI version of 25.2 that this
Dec 06 23:18:56 arch startx[306]: driver does not officially support.  Please check
Dec 06 23:18:56 arch startx[306]: http://www.nvidia.com/ for driver updates or downgrade to an X
Dec 06 23:18:56 arch startx[306]: server with a supported driver ABI.
Dec 06 23:18:56 arch startx[306]: =================================================================
Dec 06 23:18:56 arch startx[306]: (WW) NVIDIA: The driver will continue to load, but may behave strangely.
Dec 06 23:18:56 arch startx[306]: (WW) NVIDIA: This driver was compiled against the X.Org server SDK from commit e6ef2b12404dfec7f23592a3524d2a63d9d25802 and may not be compatible with the final version of this SDK.
Dec 06 23:18:56 arch kernel: resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d0000-0x000d3fff window]
Dec 06 23:18:56 arch kernel: caller _nv000788rm+0xe4/0x1c0 [nvidia] mapping multiple BARs
Dec 06 23:18:57 arch kernel: BUG: kernel NULL pointer dereference, address: 0000000000000038
Dec 06 23:18:57 arch kernel: #PF: supervisor read access in kernel mode
Dec 06 23:18:57 arch kernel: #PF: error_code(0x0000) - not-present page
Dec 06 23:18:57 arch kernel: PGD 0 P4D 0 
Dec 06 23:18:57 arch kernel: Oops: 0000 [#1] SMP PTI
Dec 06 23:18:57 arch kernel: CPU: 1 PID: 306 Comm: Xorg Tainted: P           OE     5.10.81-1-lts #1
Dec 06 23:18:57 arch kernel: Hardware name: Sony Corporation VGN-NR21Z_T/VAIO, BIOS R1150J9 12/24/2007
Dec 06 23:18:57 arch kernel: RIP: 0010:drm_pci_set_busid+0x12/0x80 [drm]
Dec 06 23:18:57 arch kernel: Code: fb fe ff eb af b8 ea ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 66 66 66 66 90 53 48 8b 87 88 01 00 00 31 d2 48 89 f3 <44> 8b 40 38 48 8b 40 10 45 89 c1 41 c1 e8 03 0f b6 88 e0 00 00 00
Dec 06 23:18:57 arch kernel: RSP: 0018:ffffb7534060fd98 EFLAGS: 00010246
Dec 06 23:18:57 arch kernel: RAX: 0000000000000000 RBX: ffff996d02ec96c0 RCX: 0000000000000002
Dec 06 23:18:57 arch kernel: RDX: 0000000000000000 RSI: ffff996d02ec96c0 RDI: ffff996d0445a800
Dec 06 23:18:57 arch kernel: RBP: ffff996d0445a800 R08: 0000000000000000 R09: 0000000000000001
Dec 06 23:18:57 arch kernel: R10: ffff996d0360d300 R11: 0000000000000010 R12: ffff996d0665be00
Dec 06 23:18:57 arch kernel: R13: ffff996d0445a8a8 R14: ffff996d02ec96c0 R15: ffff996d0665be00
Dec 06 23:18:57 arch kernel: FS:  00007fb86ee75100(0000) GS:ffff996dbfb00000(0000) knlGS:0000000000000000
Dec 06 23:18:57 arch kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Dec 06 23:18:57 arch kernel: CR2: 0000000000000038 CR3: 0000000007f72000 CR4: 00000000000006e0
Dec 06 23:18:57 arch kernel: Call Trace:
Dec 06 23:18:57 arch kernel:  drm_setversion+0x13e/0x180 [drm]
Dec 06 23:18:57 arch kernel:  ? drm_ioctl_flags+0x40/0x40 [drm]
Dec 06 23:18:57 arch kernel:  drm_ioctl_kernel+0xd5/0x100 [drm]
Dec 06 23:18:57 arch kernel:  drm_ioctl+0x22a/0x3d0 [drm]
Dec 06 23:18:57 arch kernel:  ? drm_ioctl_flags+0x40/0x40 [drm]
Dec 06 23:18:57 arch kernel:  __x64_sys_ioctl+0x82/0xb0
Dec 06 23:18:57 arch kernel:  do_syscall_64+0x33/0x40
Dec 06 23:18:57 arch kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Dec 06 23:18:57 arch kernel: RIP: 0033:0x7fb86f80559b
Dec 06 23:18:57 arch kernel: Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a5 a8 0c 00 f7 d8 64 89 01 48
Dec 06 23:18:57 arch kernel: RSP: 002b:00007fff7c5d45e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Dec 06 23:18:57 arch kernel: RAX: ffffffffffffffda RBX: 00007fff7c5d4620 RCX: 00007fb86f80559b
Dec 06 23:18:57 arch kernel: RDX: 00007fff7c5d4620 RSI: 00000000c0106407 RDI: 0000000000000014
Dec 06 23:18:57 arch kernel: RBP: 00000000c0106407 R08: 0000000000000000 R09: 00007fff7c5d42c7
Dec 06 23:18:57 arch kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff7c5d46a0
Dec 06 23:18:57 arch kernel: R13: 0000000000000014 R14: 00007fb86f941980 R15: 0000000000000010
Dec 06 23:18:57 arch kernel: Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio joydev snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec snd_hda_core snd_hwdep iwl4965 soundwire_bus iwlegacy snd_soc_core iTCO_wdt mac80211 intel_pmc_bxt rndis_host snd_compress iTCO_vendor_support cdc_ether at24 usbnet pcmcia mousedev mii cfg80211 ac97_bus snd_pcm_dmaengine mac_hid snd_pcm psmouse coretemp libarc4 pcspkr sky2 snd_timer snd yenta_socket pcmcia_rsrc soundcore sony_laptop pcmcia_core rfkill i2c_i801 video i2c_smbus lpc_ich intel_agp intel_gtt acpi_cpufreq nvidia_uvm(POE) nvidia(POE) drm fuse agpgart bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 sr_mod cdrom ata_generic pata_acpi serio_raw firewire_ohci atkbd libps2 firewire_core tifm_7xx1 ata_piix tifm_core crc_itu_t i8042 serio
Dec 06 23:18:57 arch kernel: CR2: 0000000000000038
Dec 06 23:18:57 arch kernel: ---[ end trace c29b83ca787038f6 ]---

You're running the 340xx driver and while 390xx seems to be fine-ish w/ the ABI deviation, I'm less than sure about 340xx (and this log suggests it doesn't)
=> Try to use nouveau…

Online

#7 2021-12-08 11:17:18

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

Before trying to use nouveau, because when i first installed arch, GUI not appear, so i need proprietary nvidia driver
(if was a driver problem i think startx /usr/bin/startlxde also doesn't work) , so i have tried to disable graphical.target using:
systemctl set-default multi-user.target
while before was set to graphical.target as shown by the output of: systemctl get-default
But again it's the same problem: login appears briefly (1-2 seconds) and then i get black screen.
Please i'm not very expert with xorg systemd and all things about GUI.

Offline

#8 2021-12-08 11:42:08

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

UPDATE:
maybe due to the previous command: systemctl set-default multi-user.target
now Xorg give this errors in the link below:
http://ix.io/3Hls

Offline

#9 2021-12-08 12:10:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

1. you were not supposed to run X11 at all, post your ~/.bashrc
2. You were now trying to run X11, chrooted from the install iso what fails because the iso doesn't provide the nvidia driver but your xorg.conf references it.

Remove /etc/X11/xorg.conf and all nvidia-related packages (from the installed system!), keep lxdm disabled and try to boot the installed system. See what happens.

Online

#10 2021-12-08 15:02:35

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

1. /home/.bashrc is present but empty
2. i've removed xorg.conf and uninstalled the nvidia proprietary driver
Now i get back working  login on console. What i do next to get lxde?

Offline

#11 2021-12-08 15:03:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

Try to run startx or the lxdm service.

Online

#12 2021-12-08 15:28:09

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

startx give error no display found, as by Xorg.0.log below:
http://ix.io/3HmV

Offline

#13 2021-12-08 15:45:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

You're still loading the nvidia driver (the 470xx one, in particular - which doesn't even support your GPU)

pacman -Qs nvidia

Get rid of them.

Also

[    32.888] (==) ServerLayout "X.org Configured"
[    32.888] (**) |-->Screen "Screen0" (0)
[    32.888] (**) |   |-->Monitor "Monitor0"
[    32.889] (**) |   |-->Device "Card0"
[    32.889] (**) |-->Input Device "Mouse0"
[    32.889] (**) |-->Input Device "Keyboard0"

tells me that some static server config is still around…

grep -r Screen0 /{etc,usr/share}/X11/xorg.conf*

Online

#14 2021-12-08 16:27:17

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

With pacman -Qs nvidia i've uninstalled this packages:
libvdpau, egl-wayland, nvidia-utils 
and all dependencies:
ffmpeg, firefox, kicad, opencascade, qt5-webengine, qt5-webview, vlc

grep -r Screen0 /{etc,usr/share}/X11/xorg.conf*  gives:
/etc/X11/xorg.conf.backup:    Screen      0  "Screen0" 0 0
/etc/X11/xorg.conf.backup:    Identifier     "Screen0"
/etc/X11/xorg.conf.d/xorg.conf: Screen      0  "Screen0" 0 0
/etc/X11/xorg.conf.d/xorg.conf: Identifier "Screen0"

Offline

#15 2021-12-08 16:31:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

libvdpau is a false positive - you can re-install that and the video clients.

grep -r Screen0 /{etc,usr/share}/X11/xorg.conf*  gives:

But remove /etc/X11/xorg.conf.backup and *especially* /etc/X11/xorg.conf.d/xorg.conf

Online

#16 2021-12-08 16:56:44

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

removed /etc/X11/xorg.conf.backup and /etc/X11/xorg.conf.d/xorg.conf
Now Xorg.0.log is this: http://ix.io/3Hnm

Offline

#17 2021-12-08 17:25:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

[   399.097] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   399.098] (EE) open /dev/dri/card0: No such file or directory
[   399.098] (WW) Falling back to old probe method for modesetting
[   399.098] (EE) open /dev/dri/card0: No such file or directory
[   399.098] (EE) Screen 0 deleted because of no matching config section.
[   399.098] (II) UnloadModule: "modesetting"

You're either booting w/ "nomodeset" or the nvidia kernel module still loads or the nouveau module is blacklisted or you need https://wiki.archlinux.org/title/Kernel … _KMS_start
The answer is going to be in the system journal…

Online

#18 2021-12-08 17:43:43

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

the latest journal here:
http://ix.io/3Hnx

Offline

#19 2021-12-08 20:10:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

Well, there's certainly "nouveau.modeset=0 rdblacklist=nouveau" …

Online

#20 2021-12-08 21:42:29

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

I've removed  "nouveau.modeset=0 rdblacklist=nouveau" from the grub.conf
now in the journal nouveau is no more blacklisted as you can see here:   http://ix.io/3HqE
I've tried to install nvidia (nouveau) but it requires linux 5.15 kernel but i've disable this update because i use linux-lts 5.10.
what's the next?

Offline

#21 2021-12-08 21:51:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

There's no "nouveau" package.
The nouveau kernel module doesn't load, is it blacklisted? (Look around /etc/modprobe.*)

Online

#22 2021-12-08 21:55:22

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

"There's no "nouveau" package." ok in fact i use pacman -S nvidia.
The problem is that for installing nvidia it requires the kernel linux 5.15 while i use the linux-lts 5.10

Offline

#23 2021-12-08 22:00:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

ok in fact i use pacman -S nvidia.

DON'T! We're trying to get that out of your system.
There's nvidia-lts, but that would install the 495xx driver which doesn't support your GPU.
Stop any of this and make sure the nouveau kernel module gets loaded.

Online

#24 2021-12-08 22:26:34

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

Excuse me for misunderstanding.
here is my lsmod : http://ix.io/3HqQ
if i try to modprobe nouveau i get:
modprobe : ERROR : could not find module by name 'off'
modprobe : ERROR : could not insert 'off' : unknown symbol in module, or unknown parameter (see dmesg)
here my dmesg: http://ix.io/3HqR

Offline

#25 2021-12-09 04:26:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,368

Re: lxdm.log Fatal server error:Server is already active for display 0

modprobe : ERROR : could not find module by name 'off'
modprobe : ERROR : could not insert 'off' : unknown symbol in module, or unknown parameter (see dmesg)
seth wrote:

Look around /etc/modprobe.*

Online

Board footer

Powered by FluxBB