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

SDDM blackscreen after usage. (KDE Spin) #110

Open
QazCetelic opened this issue Jul 7, 2022 · 18 comments
Open

SDDM blackscreen after usage. (KDE Spin) #110

QazCetelic opened this issue Jul 7, 2022 · 18 comments

Comments

@QazCetelic
Copy link

QazCetelic commented Jul 7, 2022

I've used the tool to install the drivers, but sadly this has caused an issue. The login screen doesn't show up anymore. I did manage to click on the password field by pure luck and was able to log in.
Then the black screen was replaced with the startup animation, after which it did function. The GPU is now automatically used when launching certain applications, but those applications do crash with the following errors:

GLFW error 65545: GLX: Failed to find a suitable GLXFBConfig
org.lwjgl.LWJGLException: Could not choose GLX13 config
@QazCetelic QazCetelic changed the title Blackscreen after usage. SDDM blackscreen after usage. (KDE Spin) Jul 7, 2022
@QazCetelic
Copy link
Author

QazCetelic commented Jul 7, 2022

System information:
Operating System: Fedora Linux 36
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.3
Kernel Version: 5.18.9-200.fc36.x86_64 (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15.4 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060/PCIe/SSE2
Secureboot is off

@QazCetelic
Copy link
Author

I started experiencing these issues after using sudo nvautoinstall primec.

@QazCetelic
Copy link
Author

Output of sudo nvautoinstall compat:

[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ ★ ] CHECKING FOR GPU COMPATIBILITY...
[ ! ] Compatibility infomation was obtained
[ ✓ ] One or more active NVIDIA GPUs were detected
      00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
      01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1)
[ ✓ ] An Optimus Dual GPU setup was detected
[ ★ ] GATHERING CURRENT HOST INFORMATION...
[ ! ] Host information was gathered
      System: Linux v5.18.9-200.fc36.x86_64
      Hostname: fedora
      Version: #1 SMP PREEMPT_DYNAMIC Sat Jul 2 15:56:43 UTC 2022
      Distribution: Fedora Linux x86_64
[ ★ ] CHECKING FOR HOST COMPATIBILITY...
[ ✓ ] Supported OS detected
      This tool is expected to work correctly here
[ ✗ ] Leaving installer

@QazCetelic
Copy link
Author

Reverting the NVIDIA driver install with the RPMfusion guide fixed the SDDM and applications.

@QazCetelic
Copy link
Author

I have tried to reinstall just the driver without other things such as FFMPEG and vulkan, however it doesn't boot at all now.

@QazCetelic
Copy link
Author

I managed to get it to start after the 4th reboot (??) and Nvidia X-Server settings works now. GreenWithEnvy is also able to get data from the GPU. Applications do start now, but use the iGPU.

@QazCetelic
Copy link
Author

I have been able to reproduce the same issue (blackscreen SDDM & broken apps) when manually setting the Nvidia GPU as primary GPU with the fedora docs guide.

@QazCetelic
Copy link
Author

I have reverted the change by removing the Option "PrimaryGPU" "yes" line in /etc/X11/xorg.conf.d/nvidia.conf. The SDDM and applications are functioning again.

@QazCetelic
Copy link
Author

QazCetelic commented Jul 7, 2022

So in conclusion:

SDDM displayed1 Apps run2 dGPU usage3
All parts installed using nvautoinstall w/o primec x
All parts installed using nvautoinstall with primec x x
Driver installed using nvautoinstall x
Driver installed using RPMfusion guide x
Driver installed using nvautoinstall and RPMfusion primary GPU guide used x x

Footnotes

  1. No black screen displayed when SDDM is used.

  2. No dGPU related OpenGL startup crashes

  3. A dGPU usage above 0%.

@kphanipavan
Copy link

Have you tried changing /etc/sddm/Xsetup file?

If not, refer the note in the below link.
https://docs.fedoraproject.org/en-US/quick-docs/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops/#_step_8_edit_the_x11_configuration

Change /etc/sddm/Xsetup file to contain the following:

xrandr --setprovideroutputsource modesetting NVIDIA-G0
xrandr --auto

I have a similar setup, an Intel CPU and an Nvidia GPU. Prime and reverse Prime works with the above Xsetup mod.

Dynamic power boost and D3 power management is working fine too. Can you report on that as well please...

@QazCetelic
Copy link
Author

QazCetelic commented Jul 8, 2022

This works, the SDDM is properly shown now, but some applications still crash. I've created a pull request to add these changes to the tool.

@kphanipavan
Copy link

I am having the same issue, application crash randomly with the special souse __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 but only when Nvidia is not the primary GPU.

When I enable Prime, everything is working fine. No crashes...

@QazCetelic
Copy link
Author

It seems like Nvidia is the primary GPU on my system now. Apps crash with and without the wrapper command; env __NV_PRIME_RENDER_OFFLOAD=1 env __GLX_VENDOR_LIBRARY_NAME=nvidia.

nvidia_primary_gpu

@kphanipavan
Copy link

kphanipavan commented Jul 8, 2022

Switch to nvidia gpu being the primary gpu, and dont use the env flags...

Edit: What application are you trying to use?

@QazCetelic
Copy link
Author

I think I've already chosen Nvidia to be my primary GPU.
nvidia.conf:

#This file is provided by xorg-x11-drv-nvidia
#Do not edit

Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
EndSection

I'm trying to use the PolyMC launcher (Minecraft Launcher).
I get the following error when using your suggested wrapper command The wrapper command "__GLX_VENDOR_LIBRARY_NAME=nvidia" couldn't be found..

@kphanipavan
Copy link

kphanipavan commented Jul 8, 2022

With Nvidia GPU as primary, dont use that wrapper, launch the app directly.

Also, are you using the flatpak version? If so, try using the AppImage...

@QazCetelic
Copy link
Author

QazCetelic commented Jul 8, 2022

I am indeed using the flatpak version.
The crashes are caused by org.lwjgl.LWJGLException: Could not choose GLX13 config & at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method).
It could be because the flatpak's sandboxing causes issues.

@QazCetelic
Copy link
Author

The apps work using the RPM install.

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

2 participants