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

Ghost display on nvidia desktop GPUs #641

Closed
WatchMkr opened this issue Jul 22, 2024 · 7 comments
Closed

Ghost display on nvidia desktop GPUs #641

WatchMkr opened this issue Jul 22, 2024 · 7 comments
Milestone

Comments

@WatchMkr
Copy link

No description provided.

@WatchMkr WatchMkr added this to the alpha 1 milestone Jul 22, 2024
@WatchMkr WatchMkr moved this to Alpha ToDo in COSMIC Epoch 1 Jul 22, 2024
@Drakulix
Copy link
Member

Drakulix commented Jul 22, 2024

This is simpledrm picking up the nvidia-gpu before the nvidia module is loaded.

To fix this we need to either enable nvidia's experimental fbdev-support (which had a lot of issues prior to 550) by also setting nvidia-drm.fbdev=1 or add a downstream kernel patch, like e.g. arch linux did: archlinux/linux@7bfc7b3

@ids1024
Copy link
Member

ids1024 commented Jul 22, 2024

Enabling the fbdev support could be good, but I don't know how that is in the current driver. I know it seemed a bit problematic when I tried it in the first driver that added it. It may be improved but is still "experimental" after all.

That kernel patch looks reasonable and straightforward, and including a patch Arch has generally seems alright.

@ids1024
Copy link
Member

ids1024 commented Jul 22, 2024

I guess it might also be possible for cosmic-comp to detect this situation in some way and ignore the simpledrm device node?

@Drakulix
Copy link
Member

I guess it might also be possible for cosmic-comp to detect this situation in some way and ignore the simpledrm device node?

Maybe? There could be legitimate simpledrm devices though on an nvidia system. I am not sure how annoying it would be to figure out if they refer to the same device.

@ids1024
Copy link
Member

ids1024 commented Jul 22, 2024

The Arch patch seems to just be defining a static boolean that is set whenever nvidia-drm.modeset is set, that will prevent any simpledrm device from being created? If so then that would have the same issue.

It should be simple to filter out the simpledrm node. Though I see parameters like /sys/module/nvidia_drm/parameters/modeset aren't world-readable, unlike /proc/cmdline.

@XV-02
Copy link

XV-02 commented Jul 30, 2024

For reference, the current fix effort:
pop-os/linux#332

@mmstick
Copy link
Member

mmstick commented Aug 1, 2024

Fixed by pop-os/linux#332 and accompanying iso and distinst changes

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

No branches or pull requests

5 participants