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

Missing SimpleDRM Support which is needed by Fedora and NobaraOS #228

Open
ryzendew opened this issue May 18, 2022 · 30 comments
Open

Missing SimpleDRM Support which is needed by Fedora and NobaraOS #228

ryzendew opened this issue May 18, 2022 · 30 comments
Labels
bug Something isn't working

Comments

@ryzendew
Copy link

NVIDIA Driver Version
515.43.04

GPU
3070 Max-q/GTX 1070

Describe the bug
https://fedoraproject.org/wiki/Changes/ReplaceFbdevDrivers
These Changes have broken TTY on fedora 36 and it causes a black screen for most if not all users.
more info here https://www.reddit.com/r/Fedora/comments/ucnqet/fedora_36_nvidia_blank_ttys/

Another issue is nvidia users are also getting a black screen at boot some having to wait 5 mins for the screen to kick in.

To Reproduce
install any driver on fedora 36 and try to switch to TTY

Expected behavior
No black screen on TTY

@ryzendew ryzendew added the bug Something isn't working label May 18, 2022
@ryzendew ryzendew changed the title Simple DRM bug on Fedora 36 SimpleDRM nvidia issues on Fedora 36 May 18, 2022
@gabrc52
Copy link

gabrc52 commented May 20, 2022

The issue I'm experiencing is not only TTYs, but everything after boot finishes is completely black.

This is an example of such a user: https://www.reddit.com/r/Fedora/comments/ueq4jm/internal_laptop_screen_black_in_discrete_graphics/

@ryzendew
Copy link
Author

The issue I'm experiencing is not only TTYs, but everything after boot finishes is completely black.

This is an example of such a user: https://www.reddit.com/r/Fedora/comments/ueq4jm/internal_laptop_screen_black_in_discrete_graphics/

Also part of the same issue

@potatogod3000
Copy link

Let me add this here. This is a major problem when you run into issues with your fstab or one of your disks refuse to mount for some reason. https://www.youtube.com/watch?v=SS0A-XvM8RI

@ryzendew
Copy link
Author

Might do a video covering this as well to warn the fedora nvidia community

@PAR2020
Copy link
Contributor

PAR2020 commented Jun 8, 2022

Apparently Fedora has a fix out per below thread:
level 2
paidhi
·
4 days ago
Fedora has implemented a fix with kernel package 5.17.11-300.fc36.

Also the Rpmfusion akmod-nvidia package was updated to reflect this. You will need akmod-nvidia version 3:510.68.02-2.fc36 which is now in the rpmfusion-nonfree-updates repository.

@potatogod3000
Copy link

Yup! Can confirm. The 5.17.11-300 along with 510.68.02-02 fixed the issue.

@Evernow
Copy link

Evernow commented Jun 12, 2022

Do note the fedora kernel does not fix the issue per say, simply bypasses it.

@ryzendew
Copy link
Author

reminder this still needs to be fixed and is very important

@ryzendew ryzendew changed the title SimpleDRM nvidia issues on Fedora 36 Missing SimpleDRM Support which is needed by Fedora and NobaraOS Aug 23, 2022
@ryzendew
Copy link
Author

@YusufKhan-gamedev can you maybe work on this if possible?

@YusufKhan-gamedev
Copy link

YusufKhan-gamedev commented Aug 23, 2022

@YusufKhan-gamedev can you maybe work on this if possible?

I think this might be that this might be something to do with ogk(these modules) not supporting fbdev emulation? My fbcon patches would probably fix the issue if thats the case(remember to set the kernel module param). I dont fully understand the problem though, im more into getting userland drivers for ogk but if I knew what the underlying issue is i would at least look into it.

@ryzendew
Copy link
Author

The issue is @fedora screwed up and replaced the drm they where using with simpledrm some weird emulation thing and amd supports it and intel but not nvidia

@YusufKhan-gamedev
Copy link

YusufKhan-gamedev commented Aug 23, 2022

The issue is @fedora screwed up and replaced the drm they where using with simpledrm some weird emulation thing and amd supports it and intel but not nvidia

Simpledrm is just a drm driver, so is amdgpu, nvidia_drm and i915(intel), there has to be some bug. Could this be related to #341? In that case you may have a conflicting drm driver, perhaps it could be simpledrm? If its simpledrm you might want to blacklist it until the kernel issue it fixed. There is also probably some way you can get simplefb or vesafb on fedora, perhaps an external repo?

if its completely as you say though, you can get fbdev emulation with my fbcon patches I mentioned before.

@ryzendew
Copy link
Author

Nobara added a fix in kernel but it doesn’t always work and for regular fedora its just screwed the blacklist doesn’t always work
Rpm fusion added a fix but that breaks just hoping someone adds support for it

@ryzendew
Copy link
Author

I will try your patches

@YusufKhan-gamedev
Copy link

Nobara added a fix in kernel but it doesn’t always work and for regular fedora its just screwed the blacklist doesn’t always work

Could I see the fix?

@ryzendew
Copy link
Author

ryzendew commented Aug 24, 2022 via email

@YusufKhan-gamedev
Copy link

They just reverted simpledrm

So they put simpledrm.modeset=0 in the kernel boot options? That should fix any conflicts with simpledrm...

@YusufKhan-gamedev
Copy link

I think it could get a fix up though...

@GloriousEggroll
Copy link

GloriousEggroll commented Aug 24, 2022

Hi @YusufKhan-gamedev I'm one of the maintainers of Nobara. To clarify, we disabled simpledrm in the kernel config and re-enabled fb_simple and fb_vesa, essentially reverting Fedora's changes:

# CONFIG_DRM_SIMPLEDRM is not set
CONFIG_FB_SIMPLE=y
CONFIG_FB_VESA=y

This allows us to freely swap between rpmfusion and negativo17 nvidia drivers without messing with people's boot options (other than still needing the nouveau blacklist ofc.). However, this is just a revert, not an actual fix. nvidia-drm.modeset=1 is -required- as a kernel boot option if simpledrm is enabled. (See this which was merged upstream: negativo17/nvidia-driver#129 (comment)). Setting it as a module config is not enough (ie /etc/modprobe.d/).

@YusufKhan-gamedev
Copy link

YusufKhan-gamedev commented Aug 24, 2022

Ah that makes sense, im guessing simpledrm is a conflicting framebuffer though. Or there is some conflicting framebuffer somewhere...

@YusufKhan-gamedev
Copy link

Either fbdev emulation is required or there is another driver trying to take control of the framebuffer, cant think of anything else.

@YusufKhan-gamedev
Copy link

@ryzendew you might wanna checkout my drm/aperture_control branch to see if it fixes your issue.

https://github.com/YusufKhan-gamedev/open-gpu-kernel-modules/tree/drm/aperture_control

@YusufKhan-gamedev
Copy link

I can reproduce the issue

@YusufKhan-gamedev
Copy link

Yeah, none of them solve it, perhaps its a duplicate of #341 ? In that case maybe try a older kernel??

@Evernow
Copy link

Evernow commented Jan 16, 2023

This has once again become a problem on the 6.1 kernel on Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2161104

Apparently given the comment on the Fedora dev their goal is not to ship any fbdev, and won't block any release on the NVIDIA driver, classic Fedora behavior, as they seem to be hoping for Nouveau to improve.

@cutephoton
Copy link

sigh. Been nothing but problems with the drivers since moving to the 6.x kernels. It appears fedora has stopped supporting the nvidia workaround with the latest kernels. There is a patch in testing linked to the bug. I couldn't tell if works or what needs to be done to make it work (per some comments). Might just have to give this GPU the Office Space treatment.

@cam-rod
Copy link

cam-rod commented Jan 23, 2023

Fedora devs readded the kernel hack (it was accidentally dropped during an update), and the Nvidia driver works again as of 6.1.7-200.fc37.x86_64. Hopefully the driver will be properly fixed before this happens again.

@birdie-github
Copy link

This must have been fixed in 545.23.06 beta drivers.

@GloriousEggroll
Copy link

On Nobara we manually reenabled simpledrm a long while back since this happened. on fedora as mentioned a kernel patch/hack is used. The only way to test this is without simpledrm being enabled and without the hack.

@C0rn3j
Copy link

C0rn3j commented Jan 28, 2024

Wasn't this fixed?

Judging by this comment negativo17/nvidia-driver#129 (comment), support was silently added in 525.60.11.

Stable 525.105.17 release also has this in notes:

Added support for console restoration when using simpledrm.

https://www.nvidia.com/download/driverResults.aspx/202504/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests