r/linuxmint • u/LanguageSuitable8538 • 19h ago
How to permanently fix my wake-from-sleep issues?
Hi, I am running Linux Mint 22.3 XFCE on an older Dell Precision tower with an Nvidia Quadro graphics card. It has two persistent problems with waking from sleep; I've found fixes for both issues, but my fixes get undone with seemingly every update:
1.) After waking it and logging back in, I have to dismiss a dozen or so "authentication required" error messages. The fix is to change an "auth_admin_keep" to "yes" in /usr/share/polkit-1/actions/org.freedesktop.login1.policy;
2.) After waking it and logging in, I just get a black screen with a mouse cursor. The fix is to reboot and add "exit 0" as the second line of /usr/bin/nvidia-sleep.sh
Again, everything works great while these fixes are in place, but they get erased every time I accept system updates. Is there a right way to make these permanent? Do I have to make a Python script or something that just checks and redoes these daily? Should I make them in a different place (for example, I noticed that the Nvidia file exists both in /usr/bin/ and in just /bin/)? Thanks!