By using the latest nvidia-driver-495, I could reset the boot parameters. All back to normal ...
Updated
Adding the following boot parameters (to GRUB_CMDLINE_LINUX_DEFAULT
) did the trick for me:
acpi_osi=! acpi_osi="Windows 2009"
[double quotes "
need to be escaped with backslash \
in /etc/default/grub]
Props to https://github.com/Bumblebee-Project/Bumblebee/issues/764#issuecomment-594328434 (Although I'm not using bumblebee ..)
System consist out of:
- NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] / NVIDIA
GeForce GTX 1050 Ti/PCIe/SSE2
- Running Ubuntu 20.04.3
- Using the nvidia-driver-470
As a workaround (no longer working ...) for me is suspending via the command line (thus not using the topbar "Suspend" nor closing the lid - or the hooks from pm-suspend as I understand):
systemctrl suspend
Not yet tried (copied) solution form nvidia forum:
https://forums.developer.nvidia.com/t/problem-with-resume-from-suspend-ubuntu-16-04-gt-940mx/51410/172
Short answer, whats happens - in resume process Linux (+systemd) forget to turn on monitor. So to solve problem only just need to turn on monitor.
Short solution (fast test is it helps for you or not)
Ctrl+Alt+F1
, you see login prompt, login as normal user (not root) and do (one line command):
chvt 7 ; sleep 3; xrandr --display :0.0 --auto
Long solution
Install 360 driver and install all nvidia-*.service
& install /usr/bin/nvidia_sleep.sh
Install 470 driver (which does not contains this systemd services in /usr/share/doc/nvidia-*
folders).
Edit /usr/bin/nvidia_sleep.sh
and in resume section after chvt command add under your xserver user:
sleep 3; xrandr --display :0.0 --auto
Also need to add root (may be other) as XServer user, so under your working XSession you need to allow root to execute xrandr:
edit /etc/X11/xinit/xinitrc and add:
xhost +localhost
or
xhost +root@localhost
check it works:
sudo su -l xrandr
should work.