David Guevara (#Silvermyst), 2021-05-16 15:06:09 UTC
Nvidia GPU not working
Installed Solus on my new laptop. It has an Nvidia Geforce RTX 2060 and a Ryzen 7 4800H. I installed the DoFlicky Nvidia drivers, restarted, but the system is still using the integrated GPU. When I run `nvidia-smi`:
```
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 |
|-------------------------------+----------------------+----------------------+
| 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 ... On | 00000000:01:00.0 Off | N/A |
| N/A 42C P8 14W / N/A | 0MiB / 5934MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
```
And when I run `glxinfo | grep "OpenGL renderer"`:
```
OpenGL renderer string: AMD RENOIR (DRM 3.40.0, 5.11.21-179.current, LLVM 11.1.0)
```
How can I make it work?
Thanks!
David Guevara (#Silvermyst), 2021-05-16 21:56:45 UTC
>>! In T9725#184854, #ReillyBrogan wrote:
> Does running `sudo usysconf run -f` help at all?
Didn't help. Ran it, rebooted and still get the same with glxinfo.
Beatrice T. Meyers (#DataDrake), 2021-05-17 02:27:40 UTC
Try adding `blacklist=amdgpu` to your boot options: https://getsol.us/articles/troubleshooting/boot-management/en/#appending-kernel-parameters-to-solus-boot
David Guevara (#Silvermyst), 2021-05-17 05:58:42 UTC
>>! In T9725#184862, #DataDrake wrote:
> Try adding `blacklist=amdgpu` to your boot options: https://getsol.us/articles/troubleshooting/boot-management/en/#appending-kernel-parameters-to-solus-boot
I did the following:
- `echo 'blacklist=amdgpu' | sudo tee /etc/kernel/cmdline.d/blacklist-amdgpu.conf`
- `sudo clr-boot-manager update`
Rebooted. Didn't work, `glxinfo` showing the same. Then:
- `echo 'blacklist amdgpu' | sudo tee /etc/kernel/cmdline.d/blacklist-amdgpu2.conf` (removed the = and created a new .conf file)
- `sudo clr-boot-manager update`
Rebooted. Still didn't work.
#Silvermyst This is due to `linux-driver-management` not supporting the AMD iGPU + NVIDIA dGPU optimus setup. You can see in the output of `linux-driver-management status` that it failed to detect the dGPU.
If you need to use your dGPU, you will have to configure it manually. I was able to use my dGPU with the following changes:
1. Install the nvidia-driver. I used the `nvidia-glx-driver-current` package.
2. Add a file `start-xrandr` with the following content and make it executable:
```
#!/usr/bin/env bash
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
```
3. Change the content of `/usr/share/lightdm/lightdm.conf.d/99-ldm.conf` to the following:
```
[Seat:*]
display-setup-script=/path/to/your/start-xrandr
```
Replace `/path/to/your/start-xrandr` with the actual path of your newly created `start-xrandr` script.
4. Create a file `00-ldm.conf` in `/etc/X11/xorg.conf.d/` with the following content:
```
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "NVIDIA Card"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
VendorName "NVIDIA Corporation"
BoardName "TU106M [GeForce RTX 2060 Mobile]"
EndSection
```
Ultimately I think we should rely on updates to the `linux-driver-management` package, but it doesn't seem to be actively maintained at this point.
So I actually recently came into my possession a laptop with a similar setup as the original poster, but with an NVidia RTX 3050, following your instructions I basically just got a flashing screen. I'd like to dig your mind about this issue and get things properly working, also would help me collect some data as LDM could use some expansion in this case as well.
EDIT: I needed to chmod x+ start-xrandr, but I'll definitely like to collect some data for issues like this.
That's a good start, I just forked the repo into my personal GitHub and will work on it as much as I can. Though I can say for certain your instructions didn't exactly work for me, still reporting the AMD driver being in use, BUT, it's motivating me to try and improve LDM outside of my gnome packaging duties for Solus.
>>! In T9725#195923, #ZachBacon wrote:
> That's a good start, I just forked the repo into my personal GitHub and will work on it as much as I can. Though I can say for certain your instructions didn't exactly work for me, still reporting the AMD driver being in use, BUT, it's motivating me to try and improve LDM outside of my gnome packaging duties for Solus.
I see. I don't know what else needs to be done to enable the nvidia driver for X11 in your case. I guess I would suggest two modifications to see if they help:
1. Make sure `00-ldm.conf` uses the correct `BusID` and `BoardName` in your case.
2. Change the line `xrandr --setprovideroutputsource modesetting NVIDIA-0` to use the xrandr provider id of your modesetting card. For example, on my laptop, the output of `xrandr --listproviders` gives
```
Provider 0: id: 0x1b8 cap: 0x1, Source Output crtcs: 4 outputs: 6 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x206 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:modesetting
```
so I would change that line to `xrandr --setprovideroutputsource 0x206 NVIDIA-0`.
Also make sure that `nvidia-smi` shows that your nvidia card is seen by the driver.
By the way, looking forward to your work on LDM.
Well, either way, it's something I won't be looking into till tomorrow, and at this point I'm going to focus on LDM tomorrow and getting basic support done.
Nvidia GPU not working Installed Solus on my new laptop. It has an Nvidia Geforce RTX 2060 and a Ryzen 7 4800H. I installed the DoFlicky Nvidia drivers, restarted, but the system is still using the integrated GPU. When I run `nvidia-smi`: ``` +-----------------------------------------------------------------------------+ | NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 | |-------------------------------+----------------------+----------------------+ | 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 ... On | 00000000:01:00.0 Off | N/A | | N/A 42C P8 14W / N/A | 0MiB / 5934MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ ``` And when I run `glxinfo | grep "OpenGL renderer"`: ``` OpenGL renderer string: AMD RENOIR (DRM 3.40.0, 5.11.21-179.current, LLVM 11.1.0) ``` How can I make it work? Thanks!