Laptop locks up after closing the lid

Thanks agian, i have reported the bug here

I can edit it if you think i have missed anything. I cant switch to the nouveau driver as i have the problem with sddm logging me out when using it.
Are you suggesting to install the nouveau driver and boot with nouveau.config=NvGspRm=1
I think i know how to edit the grub boot but where do i add this line? also do i need to add to default grub and update to make it permanent? Is this likely inhibit 3D modeling with freecad.
Maybe i need to just suck it and see, if all else fails i can stick with gnome until this is fixed or the cinnamon desktop works.

That is a nvidia only option.

From the boot menu, you can edit the lines in the Advanced section (letter E). Then you add the setting after the other nvidia settings. I think you then hit F10 to boot, but the screen will tell you. It will not make the change permanent, just for that boot up.

You can try it, but I wouldn’t expect much.

Ok i will give that a go and report back.

1 Like

I tried adding the kernel peramaters, it didnt solve the lid reopening problem but logging in took longer than usual

the under score before quiet splash is just the curser i didnt think to move it after typing.
Its not a huge problem i just need to avoid closing the lid whilst logged in for the time being. Thanks again.

You are trying to use a nouveau setting with a nvidia setting and that will not work. You need to use this with nvidia-drm.modeset=1:

https://bugs.kde.org/show_bug.cgi?id=448866#c36

nvidia-drm.NVreg_PreserveVideoMemoryAllocations=1

I have now reinstalled the nvidia driver and tried this but it didn’t change anything. After doing some more reading i found several articles that say it is also necessary to enable nvidia services with systemctl; sleep, hibernate and suspend
sudo systemctl enable nvidia-sleep.service etc
These services were not found and i couldn’t find out how they could be installed
I then tried
systemctl list-units | grep nvidia
this produced no results however i checked the same thing on my linuxmint install and got this


I know linux mint is not OM but didn’t know if this info would be useful.

1 Like

They will need to be added.

i have enabled nvidia-persistence, but wasn’t able to do anything with sys-bus-pci-drivers-nvidia.
After loooking in this folder it is empty so no driver to load. More resaerch suggested kernel-headers were needed so i installed the kernel-desktop-devel package and now this folder has contents

[rich@Z710-OMrome ~]$ ls /sys/bus/pci/drivers/nvidia
0000:01:00.0  bind  module  new_id  remove_id  uevent  unbind
[rich@Z710-OMrome ~]$ systemctl list-units | grep nvidia
  nvidia-persistenced.service                                                                           loaded active running   NVIDIA Persistence Daemon
[rich@Z710-OMrome ~]$ sudo systemctl enable sys-bus-pci-drivers-nvidia.device
[sudo] password for rich: 
Failed to enable unit: Unit sys-bus-pci-drivers-nvidia.device does not exist
[rich@Z710-OMrome ~]$ sudo systemctl start sys-bus-pci-drivers-nvidia.device
^C
[rich@Z710-OMrome ~]$ systemctl list-units | grep nvidia
  sys-bus-pci-drivers-nvidia.device                                                                     loaded inactive dead      start /sys/bus/pci/drivers/nvidia
  nvidia-persistenced.service                                                                           loaded active   running         NVIDIA Persistence Daemon
[rich@Z710-OMrome ~]$ 

I got something to happen but not sure what.
How do i get the nvidia drivers to loaded active plugged?

:point_up_2:

That is for server workloads.

I can’t say for certain if the changes will help you or not. You can track the progress of the services being added here:

1 Like

I thought you meant i need to try and find them. For the moment i guess i need to wait. I saw on some other forums that some people had success down grading to the 550 driver so a downloaded it from nvidia and tried to install however it failed to build the kernel module due to clang compiler versions bieng different. For now i will just avoid closing the laptop without first shuting down. If this is fixed will it be implemented through a normal update or will i need to reinstall the driver. Thanks again for all the help.

The typical use case of the closed or open nvidia branded driver in Linux, is 3D acceleration (i.e. CAD, gaming, or compute). For that reason, it was probably decided not to include power management services. The builds should be done today for cooker and they have the services added, but disabled. People using it for power management purposes will need to enable them.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.