Text and Icon corruption after resume from suspend on Nvidia

Hello All,

I have a ThinkPad 51 Laptop with an hybrid video card I use Gentoo as OS, when I resume system from suspend text and icon become corrupted. I use Cinnamon as desktop and the workaround for this problem is Alt+F2 and r.
If I modify this option “options nvidia NVreg_PreserveVideoMemoryAllocations=0” to “options nvidia NVreg_PreserveVideoMemoryAllocations=1” from /etc/modprobe.d/nvidia.conf everything work fine but the system will never go into the suspend mode.
Is it a way to have in same times the possibility to enter in suspend mode and the resume of system works fine ?
Below information my hardware configuration :

root@himalaya /etc/modprobe.d # inxi -GAz
Graphics:
Device-1: Intel HD Graphics 530 driver: i915 v: kernel
Device-2: NVIDIA GM206GLM [Quadro M2200 Mobile] driver: nvidia
v: 535.154.05
Device-3: Chicony Integrated Camera driver: uvcvideo type: USB
Display: x11 server: [X.org](http://X.org) v: 1.21.1.11 driver: X: loaded: intel dri: iris
gpu: i915,nvidia resolution: 1600x900~60Hz
API: EGL v: 1.5 drivers: iris,nvidia,swrast
platforms: gbm,x11,surfaceless,device
API: OpenGL v: 4.6.0 vendor: nvidia v: 535.154.05
renderer: Quadro M2200/PCIe/SSE2
Audio:
Device-1: Intel CM238 HD Audio driver: snd_hda_intel
Device-2: NVIDIA GM206 High Definition Audio driver: snd_hda_intel
API: ALSA v: k6.6.13-gentoo status: kernel-api
Server-1: PulseAudio v: 17.0 status: active (root, process)

Many thanks in advance for your help.

Kind regards,

Willy

Please enable the needed systemd units.

Hi Generix,
Thank you for your reply, I don’t use systemd subsystem I use rc, below a status of all services :

root@himalaya ~ # rc-status --all
Runlevel: boot
 hwclock                                                                                                                                                           [  started  ]
 loopback                                                                                                                                                          [  started  ]
 modules                                                                                                                                                           [  started  ]
 procfs                                                                                                                                                            [  started  ]
 binfmt                                                                                                                                                            [  started  ]
 fsck                                                                                                                                                              [  started  ]
 root                                                                                                                                                              [  started  ]
 mtab                                                                                                                                                              [  started  ]
 localmount                                                                                                                                                        [  started  ]
 sysctl                                                                                                                                                            [  started  ]
 bootmisc                                                                                                                                                          [  started  ]
 termencoding                                                                                                                                                      [  started  ]
 keymaps                                                                                                                                                           [  started  ]
 save-keymaps                                                                                                                                                      [  started  ]
 swap                                                                                                                                                              [  started  ]
 seedrng                                                                                                                                                           [  started  ]
 systemd-tmpfiles-setup                                                                                                                                            [  started  ]
 save-termencoding                                                                                                                                                 [  started  ]
 hostname                                                                                                                                                          [  started  ]
 consolefont                                                                                                                                                       [  started  ]
 elogind                                                                                                                                                           [  started  ]
Runlevel: sysinit
 sysfs                                                                                                                                                             [  started  ]
 devfs                                                                                                                                                             [  started  ]
 udev                                                                                                                                                              [  started  ]
 dmesg                                                                                                                                                             [  started  ]
 kmod-static-nodes                                                                                                                                                 [  started  ]
 systemd-tmpfiles-setup-dev                                                                                                                                        [  started  ]
 udev-trigger                                                                                                                                                      [  started  ]
 cgroups                                                                                                                                                           [  started  ]
Runlevel: nonetwork
 local                                                                                                                                                             [  started  ]
Runlevel: shutdown
 killprocs                                                                                                                                                         [  stopped  ]
 savecache                                                                                                                                                         [  stopped  ]
 mount-ro                                                                                                                                                          [  stopped  ]
Runlevel: default
 rsyslog                                                                                                                                                           [  started  ]
 wpa_supplicant                                                                                                                                                    [  started  ]
 nordvpn                                                                                                                                                           [  started  ]
 netmount                                                                                                                                                          [  started  ]
 acpid                                                                                                                                                             [  started  ]
 dbus                                                                                                                                                              [  started  ]
 display-manager                                                                                                                                                   [  started  ]
 alsasound                                                                                                                                                         [  started  ]
 atd                                                                                                                                                               [  started  ]
 chronyd                                                                                                                                                           [  started  ]
 clamd                                                                                                                                                             [  started  ]
 cupsd                                                                                                                                                             [  started  ]
 freshclam                                                                                                                                                         [  started  ]
 libvirtd                                                                                                                                                          [  started  ]
 libvirt-guests                                                                                                                                                    [  started  ]
 numlock                                                                                                                                                           [  started  ]
 openrc-settingsd                                                                                                                                                  [  started  ]
 sshd                                                                                                                                                              [  started  ]
 xdm                                                                                                                                                               [  started  ]
 local                                                                                                                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 dhcpcd                                                                                                                                                            [  started  ]
 display-manager-setup                                                                                                                                             [  started  ]
 virtlogd                                                                                                                                                          [  started  ]
Dynamic Runlevel: manual

https://forums.gentoo.org/viewtopic-t-1167020-start-0.html

Thank you for your help generix, infortunetly the fix does’nt work probably because I use xorg server.

Hi Generix,

You can close this case now because I’m installing Gentoo on another notebook (ThinkPad E14).
Thank you so much for your help.

Have a nice day.

Willy