[Bug 1943160] [NEW] [SRU] It will take about 90+ seconds to open the 'Nvidia settings' app when 'Power Saving mode' running.

Launchpad Bug Tracker 1943160 at bugs.launchpad.net
Thu Sep 9 16:25:00 UTC 2021


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

[Impact]
On some I+N configs, It will take about 90+ seconds to open the 'Nvidia settings' window when 'Power Saving mode' running.


[Fix]
do not read config file if Nvidia driver did not loaded:

change nvidia-settings/src/nvidia-settings.c

    if (!op->no_load) {
        ret = nv_read_config_file(op, op->config, op->ctrl_display,
                                  p, &conf, &systems);

to
    if (!op->no_load && systems.n != 0) {
        ret = nv_read_config_file(op, op->config, op->ctrl_display,
                                  p, &conf, &systems);


[Test]
1. Install Ubuntu image.
2. Boot and login the system.
3. Open 'Nvidia Settings' app
4. Select the prime is 'Power saving' mode
5. Reboot system and login
6. Open 'Nvidia Settings' app
7. Verify the result


[Where problems will occur]
the "systems.n" gets from
    NvCtrlConnectToSystem(op->ctrl_display, &systems);
If there is a possibility that systems.n is zero and we still need to read nvidia config file, then it will be a problem. I tried and cannot find a situation like that.

** Affects: oem-priority
     Importance: Critical
     Assignee: Shengyao Xue (xueshengyao)
         Status: In Progress

** Affects: nvidia-settings (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch
-- 
[SRU] It will take about 90+ seconds to open the 'Nvidia settings' app when 'Power Saving mode' running.
https://bugs.launchpad.net/bugs/1943160
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list