Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My secondary screen dose not work anymore after nvidia update. #61

Closed
Vildnex opened this issue Feb 1, 2025 · 25 comments
Closed

My secondary screen dose not work anymore after nvidia update. #61

Vildnex opened this issue Feb 1, 2025 · 25 comments

Comments

@Vildnex
Copy link

Vildnex commented Feb 1, 2025

Hello,

After an update of the nvidia graphic card applied in both partitions via:

abroot upgrade

My secondary display is not working anymore.

What I've tried:

  1. I've tried to upgrade the abroot again and it didn't work
  2. I've tried to change the configuration via abroot config-editor and then using the abroot upgrade to change:
    "name": "vanilla-os/nvidia",

To both "name": "vanilla-os/nvidia-exp" and "name": "vanilla-os/desktop" . None of those worked.

  1. I've tried to move my profile to XORG and Wayland, but none of them made any difference

  2. I've tried to change the GPU Profile Management from settings to "Integrate GPU" and also "On-demand", but none of them worked.

  3. I've also tried to add the following kernel parameters via abroot kargs edit:

    nvidia.NVreg_EnableGpuFirmware=0
    nvidia_drm.modeset=1

Question:

How can I either downgrade my version of the Nvidia driver or do some configuration to fix this?

Note:

For the case when I've changed the nvidia to nvidia-exp in the config-editor my display it will display ONLY the "Vanilla | Orchid" logo as can be seen in the attached image with not regard to what am I doing on the main monitor.

Image

@Vildnex Vildnex changed the title My secondary screen dose not work anymore. My secondary screen dose not work anymore after nvidia update. Feb 1, 2025
@mirkobrombin mirkobrombin transferred this issue from Vanilla-OS/ABRoot Feb 1, 2025
@mirkobrombin
Copy link
Member

Return to the nvidia image and use v1.1.2 as the tag, this will make the downgrade. I have no idea why this happened, maybe a regression in the nvidia drivers packaged by debian.

@Vildnex
Copy link
Author

Vildnex commented Feb 1, 2025

Hey @mirkobrombin, thx for the suggestion but could You tell me how coud i add that flag and also apply it?

@mirkobrombin
Copy link
Member

  1. abroot config-editor
  2. edit tag setting v1.1.2
  3. save with CTRL+X
  4. upgrade with abroot upgrade

@Vildnex
Copy link
Author

Vildnex commented Feb 2, 2025

I've done this and the only thing that changed is on this version of nvidia-smi which I have now:

NVIDIA-SMI 535.183.06

I don't have the secondary screen running with the vanilla os logo

@Vildnex
Copy link
Author

Vildnex commented Feb 2, 2025

I've also tried 1.1.1 and same issue

@Vildnex
Copy link
Author

Vildnex commented Feb 2, 2025

Update:

I've tested all of the following versions: main, v1.1.2, v1.1.1 and v1.1.0. None of those versions helped me to make my display to work again.

Nvia smi for the versions:

MAIN:
Sun Feb  2 18:29:08 2025       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.216.03             Driver Version: 535.216.03   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2060        Off | 00000000:01:00.0 Off |                  N/A |
| N/A   53C    P0              19W /  90W |      0MiB /  6144MiB |      1%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+


v1.1.1:
Sun Feb  2 19:34:19 2025       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.06             Driver Version: 535.183.06   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2060        Off | 00000000:01:00.0 Off |                  N/A |
| N/A   40C    P8               1W /  90W |      0MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+


v1.1.0 
Sun Feb  2 21:52:40 2025       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.06             Driver Version: 535.183.06   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 2060        Off | 00000000:01:00.0 Off |                  N/A |
| N/A   43C    P8               1W /  90W |      0MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+

Do you have any idea on what else I could do? @mirkobrombin

@mirkobrombin
Copy link
Member

This means you were not using the nvidia image than. What image where you using?

@Vildnex
Copy link
Author

Vildnex commented Feb 3, 2025

I don't know what exact version you mean.

This is my current config on which I've tested the tag versions:

{
    "autoRepair": true,
    "maxParallelDownloads": 2,

    "registry": "ghcr.io",
    "registryService": "registry.ghcr.io",
    "registryAPIVersion": "v2",
    
    "name": "vanilla-os/nvidia",
    
    "tag": "main",

    "iPkgMngPre": "lpkg --unlock",
    "iPkgMngPost": "lpkg --lock",
    "iPkgMngAdd": "apt-get install -y",
    "iPkgMngRm": "apt-get remove -y --autoremove",
    "iPkgMngApi": "https://packages.vanillaos.org/api/pkg/{packageName}",
    "iPkgMngStatus": 2,

    "differURL": "https://differ.vanillaos.org",

    "partLabelVar": "vos-var",
    "partLabelA": "vos-a",
    "partLabelB": "vos-b",
    "partLabelBoot": "vos-boot",
    "partLabelEfi": "vos-efi",

    "libPathStates": "/var/lib/abroot/states",
  "PartCryptVar": "/dev/mapper/vos--var-var",
  "thinProvisioning": true,
    "thinInitVolume": "vos-init"
}

@stoorps
Copy link

stoorps commented Feb 3, 2025

I have the same issue with v1.1.3. Reverting to v1.1.2 seems to fix it.
Is there any useful information/debugging I can do to help progress this issue? I'll keep having a play around and see what I can find for myself for now.

Edit: For reference, I'm on a 3080ti

Edit 2: Full symptom list on my setup is:

  • No second monitor
  • Resolution stuck at a low setting
  • Refresh rate at 76hz (I only have 60hz panels so not sure what's going on there)

@stoorps
Copy link

stoorps commented Feb 3, 2025

I managed to get some decent boot logs from journalctl -b (attached). It looks like the NOUVEAU driver is loaded instead, although I'm not sure if this is a fallback by design?

Attached both 1.1.2 (working) and 1.1.3 (broken) for reference (edit: accidentally got them the wrong way around)

boot_1.1.2.txt
boot_1.1.3.txt

@mirkobrombin
Copy link
Member

mirkobrombin commented Feb 3, 2025

Weird, nvidia-smi works when nouveau is loaded? (Did not check logs yet)

@stoorps
Copy link

stoorps commented Feb 3, 2025

it seems to... in the logs it looks like it starts configuring the nvidia drivers, but then falls over trying to find /dev/dri/card0:

Feb 03 09:51:12 vos gnome-shell[2752]: Failed to open gpu '/dev/dri/card0': GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid argument Feb 03 09:51:12 vos org.gnome.Shell.desktop[2752]: Failed to setup: No GPUs found

@stoorps
Copy link

stoorps commented Feb 3, 2025

I tried blacklisting the nouveau driver in kargs with no luck. Also tried adding the modeset=1.

@Vildnex
Copy link
Author

Vildnex commented Feb 3, 2025

@stoorps could you tell me where can I also find this logs to check if is the exact same issue?

@Vildnex
Copy link
Author

Vildnex commented Feb 3, 2025

@mirkobrombin

UPDATE:

For some reason, I will switch the GPU Profile Management to the Discrete GPU instead of the Integrate GPU or On-demand. The second monitor is going to work again using the tag v1.1.2. I will try later also with the main (1.1.3)

UPDATE 2:

tag main or v1.1.3 -> the second monitor is not going to work not even under Discrete GPU
tag v1.1.2 -> Everything works as expected and my second monitor works ONLY in the Discrete GPU

@stoorps
Copy link

stoorps commented Feb 4, 2025

@stoorps could you tell me where can I also find this logs to check if is the exact same issue?

you can grab logs by removing quiet splash from your kargs, rebooting, and then ctrl+alt+f3 to get into the host shell, and run journalctl -b. It's ctrl+alt+f2 to get back to the DE. Might be an easier way to do it but that's the combo that seems to work well for me :)

@Vildnex
Copy link
Author

Vildnex commented Feb 4, 2025

Thanks, I will try it later :D

@mirkobrombin
Copy link
Member

We are making a new sync with Sid, hope this fixes the issue. I will give you instructions on how to test the next testing image once ready.

@stoorps
Copy link

stoorps commented Feb 6, 2025

Any updates on the sync? :)

@Vildnex
Copy link
Author

Vildnex commented Feb 22, 2025

Just an update @mirkobrombin, I've also tried the new version 1.1.4 and I face the exact same issue as in 1.1.3

@Vildnex
Copy link
Author

Vildnex commented Feb 24, 2025

Second update @mirkobrombin. This issue is fixed and everything works as expected if I use the main branch with the nvidia-exp combined.

@Vildnex
Copy link
Author

Vildnex commented Feb 26, 2025

@mirkobrombin

Update: Now with this current update of 1.2.0 not only that the monitor is not going to work at all, in both nvidia and nvidia-exp but the nvidia-smi is not going to be recognizable.

⬢ [apx-vso-pico] ❯ host-shell pkexec nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

@mirkobrombin
Copy link
Member

@mirkobrombin

Update: Now with this current update of 1.2.0 not only that the monitor is not going to work at all, in both nvidia and nvidia-exp but the nvidia-smi is not going to be recognizable.

⬢ [apx-vso-pico] ❯ host-shell pkexec nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Gonna tag @jardon because I am completely out of loop here.

@jardon
Copy link
Member

jardon commented Feb 26, 2025

the nvidia and nvidia-exp images have been tested and verified working for v1.2.1 with the dkms modules loading correctly.

@Vildnex
Copy link
Author

Vildnex commented Feb 26, 2025

I don't know if it has relevance or is just for me, but with this new update, my second monitor is going to work only after I log in with my username and password. But as long as I am on the login screen, it is not going to work at all.

But it except it everything works, thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants