You are not logged in.

#1 2023-08-15 19:24:31

coellobranco
Member
Registered: 2012-10-11
Posts: 83

[SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Hi,
After updating 6.4.10 kernel laptop not detect external monitors (DP and HDMI).
Workaround: downgrade kernel worked.

Last edited by coellobranco (2023-09-14 14:47:07)

Offline

#2 2023-09-07 05:52:01

coellobranco
Member
Registered: 2012-10-11
Posts: 83

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

6.4.14 same problem... any workaround?

Offline

#3 2023-09-07 06:11:10

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

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Please post your complete system journal for the boot:

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

Probably https://wiki.archlinux.org/title/NVIDIA … de_setting because of simpledrm?

Offline

#4 2023-09-14 06:03:20

coellobranco
Member
Registered: 2012-10-11
Posts: 83

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Hello,

drm modeset is set in default grub.

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nvidia_drm.modeset=1 acpi_backlight=nvidia_wmi_ec"

http://0x0.st/HfRQ.txt 6.4.9

http://0x0.st/HfR1.txt 6.4.15

6.4.5 same problem.

Last edited by coellobranco (2023-09-14 06:04:09)

Offline

#5 2023-09-14 06:20:53

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

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Sep 14 08:01:14 legionmalicious kernel: [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0
Sep 14 08:01:14 legionmalicious kernel: simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device

nvidia_drm.modeset=1

try

nvidia-drm.modeset=1

(modprobe harmonizes the syntax, not sure about the simpledrm deactivating code - though the wiki explicitly mentions the present form)

In doubt:

initcall_blacklist=simpledrm_platform_driver_init

Edit: the deactivating patches simply might not be in the hardened kernel, you might wanna file a bug, in case
However, our little POS isn't in 6.4.9 so I'm quite confident that this is another drop in the "Why the fuck is that?" bucket.

Last edited by seth (2023-09-14 06:24:08)

Offline

#6 2023-09-14 07:55:07

coellobranco
Member
Registered: 2012-10-11
Posts: 83

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Thanks... but.. not work

http://0x0.st/HfR7.txt

Offline

#7 2023-09-14 08:05:41

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

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Sep 14 09:52:43 legionmalicious kernel: [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0
Sep 14 09:52:43 legionmalicious kernel: simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device

What "not work"?

Sep 14 09:52:43 legionmalicious kernel: Command line: BOOT_IMAGE=/vmlinuz-linux-hardened root=/dev/mapper/vg-root rw cryptdevice=/dev/nvme1n1p3:luks:allow-discards loglevel=3 quiet nvidia_drm.modeset=1 acpi_backlight=nvidia_wmi_ec

The commandline still has the underscore syntax and doesn't block the simpledrm init call either.

Offline

#8 2023-09-14 08:35:56

coellobranco
Member
Registered: 2012-10-11
Posts: 83

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

not detect external monitors.... downgrade to 6.4.9 and work...


my /etc/default/grub is

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nvidia-drm.modeset=1 acpi_backlight=nvidia_wmi_ec"

Last edited by coellobranco (2023-09-14 10:52:00)

Offline

#9 2023-09-14 11:39:16

coellobranco
Member
Registered: 2012-10-11
Posts: 83

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Offline

#10 2023-09-14 14:21:16

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

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Sep 14 13:38:21 legionmalicious kernel: [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0
Sep 14 13:38:21 legionmalicious kernel: simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device

Despite

nvidia-drm.modeset=1
Sep 14 13:38:22 legionmalicious python3[753]: [33] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
Sep 14 13:38:22 legionmalicious python3[753]: [33] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)

You seem to have optimus-manager installed, but I don't see a second VGA device?

Also

seth wrote:

In doubt:

initcall_blacklist=simpledrm_platform_driver_init

the deactivating patches simply might not be in the hardened kernel, you might wanna file a bug, in case

so try that kernel parameter to actively block the simpledrm module.

Offline

#11 2023-09-14 14:36:23

coellobranco
Member
Registered: 2012-10-11
Posts: 83

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Oh... thanks... optimus-manager was a problem... uninstall... and external monitor works...

Last edited by coellobranco (2023-09-14 14:40:11)

Offline

#12 2023-09-14 14:45:18

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

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Can you please post an updated journal (I'd like to see whether the simpledrm device is still there)
Ftr and wrt your edit: yes, that is a kernel parameter and I suspect it'll not break your boot at all, but b/c of the optimus-manager situation you were effectvely relying on the simpledrm device.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#13 2023-09-14 14:47:30

coellobranco
Member
Registered: 2012-10-11
Posts: 83

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

http://0x0.st/HfFL.txt
Journal updated... with optimus-manager uninstalled. THANKS.

Offline

#14 2023-09-14 15:14:58

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

Re: [SOLVED] 6.4.10 linux-hardened kernel problem with NVIDIA dkms

Sep 14 16:38:38 legionmalicious kernel: [drm] Initialized simpledrm 1.0.0 20200625 for simple-framebuffer.0 on minor 0
Sep 14 16:38:38 legionmalicious kernel: simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device

Is still there, feel free to try "initcall_blacklist=simpledrm_platform_driver_init" again, I don't expect it to cause trouble (certainly not more than the simpledrm device tends to cause)

Offline

Board footer

Powered by FluxBB