Установили драйверы NVIDIA и сидите довольные? Попробуйте перезагрузить компьютер и не входить в систему некоторое время. Компьютер перейдёт в спящий режим, из которого не выйдет уже никогда.

Проверим настройки NVIDIA

Давайте по шагам:

  1. Проверяем /etc/modprobe.d/nvidia-options.conf:

     #options nvidia-current-open NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=44 NVreg_DeviceFileMode=0660
    
     # To grant performance counter access to unprivileged users, uncomment the following line:
     #options nvidia-current-open NVreg_RestrictProfilingToAdminUsers=0
    
     # Uncomment to enable this power management feature:
     options nvidia-current-open NVreg_PreserveVideoMemoryAllocations=1
    
     # Uncomment to enable this power management feature:
     options nvidia-current-open NVreg_EnableS0ixPowerManagement=1
    
  2. Настройки параметров ядра сделали? Проверьте содержимое /etc/default/grub.d/nvidia-modeset.cfg:

     GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT nvidia-drm.modeset=1 nvidia-drm.fbdev=1"
     GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX nvidia-drm.modeset=1 nvidia-drm.fbdev=1"
    
  3. А вы точно обновили параметры загрузчика? На всякий случай:

     sudo update-grub
    

Не помогло? Не помогло, потому что за нужные настройки отвечает совсем другой файл.

Настроим GDM

Дело в том, что за питание на экране входа в систему отвечают настройки менеджера GDM3. Его конфигурация хранится в каталоге /etc/gdm3/, и с настройками по умолчанию он тушит систему через 20 минут бездействия. А потом не может проснуться.

  1. Приведите /etc/gdm3/greeter.dconf-defaults к такому виду:

     # These are the options for the greeter session that can be set
     # through GSettings. Any GSettings setting that is used by the
     # greeter session can be set here.
    
     # Note that you must configure the path used by dconf to store the
     # configuration, not the GSettings path.
    
    
     # Login manager options
     # =====================
     [org/gnome/login-screen]
     logo='/usr/share/images/vendor-logos/logo-text-version-64.png'
    
     # - Disable user list
     # disable-user-list=true
     # - Disable restart buttons
     # disable-restart-buttons=true
     # - Show a login welcome message
     # banner-message-enable=true
     # banner-message-text='Welcome'
     # - Don't use a fingerprint reader for authentication
     # enable-fingerprint-authentication=false
     # - Don't use a smartcard reader for authentication
     enable-smartcard-authentication=false
    
     # Automatic suspend
     # =================
     [org/gnome/settings-daemon/plugins/power]
     # - Time inactive in seconds before suspending with AC power
     #   1200=20 minutes, 0=never
     # sleep-inactive-ac-timeout=1200
     # - What to do after sleep-inactive-ac-timeout
     #   'blank', 'suspend', 'shutdown', 'hibernate', 'interactive' or 'nothing'
     # sleep-inactive-ac-type='suspend'
     # - As above but when on battery
     # sleep-inactive-battery-timeout=1200
     # sleep-inactive-battery-type='suspend'
     sleep-inactive-ac-timeout=0
    

    Всё верно, нужно добавить всего одну строку.

  2. Запустите перенастройку пакета:

     sudo dpkg-reconfigure gdm3
    
  3. Перезагрузите компьютер.

Вот теперь компьютер не будет переходить в спящий режим, из которого не сможет выйти.