nvidia-settings --load-config-only does not load user settings upon login

Bug #1929731 reported by Ma H
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-settings (Ubuntu)
New
Undecided
Unassigned

Bug Description

1. Release of Ubuntu | lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04
================================================================
2. Version of Package | apt-cache policy nvidia-settings
nvidia-settings:
  Installed: 460.39-0ubuntu0.20.04.1
  Candidate: 460.39-0ubuntu0.20.04.1
  Version table:
 *** 460.39-0ubuntu0.20.04.1 500
        500 http://se.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     440.64-0ubuntu1 500
        500 http://se.archive.ubuntu.com/ubuntu focal/main amd64 Packages
================================================================
3/4. Expected and Desired results
I expect my colour settings to be preserved and loaded between reboots/logins. While they are saved, they are not automatically loaded. Have to run nvidia-settings manually after login to load them.

================================================================
My own comments:

I run Ubuntu 20.04, with the latest updates as of today. Clean install.

I have changed some settings in nvidia-settings (the gui panel - see image) and changed the color settings, so that the brightness and contrast is lower on all channels. These settings are saved to a nvidia-settings-rc file in my home directory.

I noticed that there already is a startup script running this (/etc/xdg/autostart/nvidia-settings-autostart.desktop), buuuuuut it does NOT apply these settings upon login after gdm(3).

To fix it I changed a line from:
Exec=sh -c '/usr/bin/nvidia-settings --load-config-only'

To:
Exec=sh -c 'sleep 1 && /usr/bin/nvidia-settings --load-config-only'

Now my settings are applied upon logging in (albeit after 1 second).

I have tried other solutions suggested in forums such as running "nvidia-settings --load-config-only" in xinitrc and Xsession, as well as gdm3/PostLogin. They did not work, and I think that there simply needs to be some sleep/timeout time before loading the settings. Why? I don't know.

Tags: driver nvidia x11
Revision history for this message
Ma H (mah-dvlpr) wrote :
description: updated
summary: nvidia-settings --load-config-only does not load user settings upon
- login correctly
+ login
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.