You are not logged in.

#1 2024-12-02 19:25:23

dakota
Member
Registered: 2016-05-20
Posts: 342

nvidia 390.157-13 Failed to acquire modesetting permission

After upgrading nvidia-390xx-utils and nvidia-390xx-dkms from 12 ==> 13 (and executing mkinitcpio -P), xorg fails to start (via startx).

65:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 315] (rev a1)
	Subsystem: NVIDIA Corporation Device 102f
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

xorg log
journal

I tried adding nvidia_drm.fbdev=0 to the kernel parameters, but this leads to

kernel: nvidia_drm: unknown parameter 'fbdev' ignored

Cheers,

Last edited by dakota (2024-12-02 19:27:25)


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#2 2024-12-02 20:42:55

pvtvega
Member
Registered: 2024-11-25
Posts: 48

Re: nvidia 390.157-13 Failed to acquire modesetting permission

From your bootlogs, it looks like the kernel is using simpledrm which is not supported with the NVIDIA drivers when the nvidia_drm.fbdev parameter is set to 0. Does enabling this parameter allow the X server to start?

Online

#3 2024-12-02 21:04:11

dakota
Member
Registered: 2016-05-20
Posts: 342

Re: nvidia 390.157-13 Failed to acquire modesetting permission

pvtvega wrote:

From your bootlogs, it looks like the kernel is using simpledrm...

That's odd. Shouldn't setting...

nvidia_drm.modeset=1

... as a kernel parameter enable DRM kernel mode setting? Or is that something different?

Note that later in the journal, it appears that drm is initialized

Dec 02 10:45:52 maria kernel: [drm] Initialized simpledrm 1.0.0 for simple-framebuffer.0 on minor 0
...
Dec 02 10:45:52 maria kernel: nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 241
Dec 02 10:45:52 maria kernel: [drm] [nvidia-drm] [GPU ID 0x00006500] Loading driver
Dec 02 10:45:52 maria kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:65:00.0 on minor 1
Dec 02 10:45:52 maria kernel: Registered the nv-hotplug-helper DRM client.
# cat /sys/module/nvidia_drm/parameters/modeset
Y
pvtvega wrote:

Does enabling this (the nvidia_drm.fbdev parameter) allow the X server to start?

No.

It makes no difference if I omit the parameter, explicitly enable it, or explicitly disable it. In all cases, the journal reports

kernel: nvidia_drm: unknown parameter 'fbdev' ignored

Cheers,

Last edited by dakota (2024-12-02 21:05:05)


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#4 2024-12-02 21:05:15

seth
Member
Registered: 2012-09-03
Posts: 59,079

Re: nvidia 390.157-13 Failed to acquire modesetting permission

The nvidia_drm.modeset=1 hack wa removed from the 6.12 kernels for "reasons", I guess.
Use the LTS kernel - for the 6.12 kernel you can try to add "initcall_blacklist=simpledrm_platform_driver_init" to the https://wiki.archlinux.org/title/Kernel_parameters

The nvidia_drm.fbdev is only supported since some 5xx.xx version (525 or 535 or so)

https://gitlab.archlinux.org/archlinux/ … /issues/94

Online

#5 2024-12-02 21:27:34

dakota
Member
Registered: 2016-05-20
Posts: 342

Re: nvidia 390.157-13 Failed to acquire modesetting permission

seth wrote:

The nvidia_drm.modeset=1 hack wa removed from the 6.12 kernels for "reasons", I guess.

Humph.

seth wrote:

Use the LTS kernel.

The LTS kernel works fine, and I'm happy to use that as a short-term solution.

seth wrote:

...for the 6.12 kernel you can try to add "initcall_blacklist=simpledrm_platform_driver_init" to the https://wiki.archlinux.org/title/Kernel_parameters.

Using this results in a black screen, but with the following entry in the journal

kernel: initcall simpledrm_platform_driver_init blacklisted

Cheers,

EDIT - Thanks for your feedback, Seth!

Last edited by dakota (2024-12-02 23:24:39)


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#6 2024-12-02 21:31:10

seth
Member
Registered: 2012-09-03
Posts: 59,079

Re: nvidia 390.157-13 Failed to acquire modesetting permission

Using this results in a black screen, but with the following entry in the journal

By this time an expectable pattern sad

Stay tuned for developments on the gitlab bug. I hope.

Online

#7 2024-12-02 21:33:34

pvtvega
Member
Registered: 2024-11-25
Posts: 48

Re: nvidia 390.157-13 Failed to acquire modesetting permission

seth wrote:

The nvidia_drm.modeset=1 hack wa removed from the 6.12 kernels for "reasons", I guess.

This is good to know, thanks. Can you clarify what "removed" means? And what would be the rationale for disabling this?

Online

#8 2024-12-02 22:34:18

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,428
Website

Re: nvidia 390.157-13 Failed to acquire modesetting permission

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2024-12-02 22:38:22

seth
Member
Registered: 2012-09-03
Posts: 59,079

Re: nvidia 390.157-13 Failed to acquire modesetting permission

pvtvega wrote:

Can you clarify what "removed" means? And what would be the rationale for disabling this?

It was a downstream patch that no longer gets applied.
No reason has been published.
The question is open on the gitlab bug - it could just be "let's see whether we still need this", but nvidia_drm.fbdev doesn't reliably work and blocking the simlpydumb initcall seems too late and older nvidia drivers cannot handle this at all. Unless there's a technical reason (patch no longer compiles etc.) I see no upside in removing it.

Online

#10 Yesterday 23:20:37

tekstryder
Member
Registered: 2013-02-14
Posts: 177

Re: nvidia 390.157-13 Failed to acquire modesetting permission

seth wrote:

Unless there's a technical reason (patch no longer compiles etc.)

The patch (as of 6.11.9 build) requires no rebase and applies cleanly to kernel 6.12.1.

Applying patch disable-simple-drm.patch...
patching file drivers/firmware/sysfb.c

Most recent commit to sysfb.c was on 2024-09-26.

Patched kernel 6.12.1 compiles without issue.

Offline

Board footer

Powered by FluxBB