Dell G15 5511 Hybrid Intel-Nvidia RTX 3050 ti. How to correctly enable the dedicated card?

Hello, I would like to know how I can have control over the hybrid options through the terminal.

  • At the moment only the laptop display works with Intel video, but the Nvidia driver is installed and apparently active but not selected.

  • I have no video output from the HDMI output.

  • At the moment I have not added anything manually to /etc/X11/.

I have:

  • Dell G15 5511 laptop

  • Intel + Nvidia RTX 3050 ti,

  • Video is hybrid.

  • Debian Bookworm

  • Linux Kernel 5.15.0-2-amd64

  • Nvidia Driver 470.86

What I have done:

  • A fresh install of Debian 11
  • When rebooting into the grub with the E key I entered the options so that the line looks like this: “quiet splash nomodeset”.
  • I have upgraded to Bookworm with non-free and contrib repositories.
  • Then I installed apt-get install nvidia-drivers and apt-get install nvidia-detect.
  • On reboot I don’t use the splash nomodeset option.

$ inxi -G

Summary

Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] driver: i915 v: kernel
Device-2: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] driver: nvidia
v: 470.86
Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting,nvidia
unloaded: fbdev,nouveau,vesa resolution: 1920x1080~120Hz
OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 21.2.6

$ xrandr

Summary

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 120.04*+ 59.97 59.96 60.01 59.93
1680x1050 84.94 74.89 69.88 59.95 59.88

DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)

$ nvidia-smi

Summary

±----------------------------------------------------------------------------+

| NVIDIA-SMI 470.86 Driver Version: 470.86 CUDA Version: 11.4 |
|-------------------------------±---------------------±---------------------+
| 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 40C P0 10W / N/A | 5MiB / 3910MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 935 G /usr/lib/xorg/Xorg 4MiB |
±----------------------------------------------------------------------------+

/etc/X11$ ls

Summary

app-defaults xkb Xresources XvMCConfig
default-display-manager xorg.conf.d Xsession Xwrapper.config
fonts Xreset Xsession.d
rgb.txt Xreset.d Xsession.options

$ sudo lspci -nn -d 10de:*

Summary

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] [10de:25a0] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:2291] (rev a1)

I suspect this is something to direct towards a Debian support channel as this is unlikely to be a driver issue.

NVIDIA Optimus - Debian Wiki (Using NVIDIA GPU as the primary GPU).

https://download.nvidia.com/XFree86/Linux-x86_64/470.74/README/randr14.html

2 Likes