I’m having trouble with my NVIDIA dGPU on Linux Mint 21.3 (Ubuntu 24.04 base).
I have an RTX 3040 dGPU and Intel iGPU in a laptop (Optimus).
My setup is prime-select query → on-demand.
Problem:
-
GPU is active, but
nvidia-smisaysNo devices were found. -
Even
glxinfohangs when trying to check the renderer. -
i cant play video or audio in browser not event yt
-
i cant open vs code most frustrating
-
i cant shutdown the home mount is using by gpu manager error thows up i had to hard reset
When it happens,
when the laptop boots up the gpu is truned off only and when i connect to ac power the gpu sets to active
found that through this commend
cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
when i disconnect the ac power now the problem begins it goes to suspended state for a sec and resumes and goes to active
The state this problem got me is,
$ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
active
$ nvidia-smi
No devices were found
$ sudo fuser -v /dev/nvidia*
USER PID ACCESS COMMAND
/dev/nvidia0: root 1150 F...m Xorg
/dev/nvidiactl: root 1150 F...m Xorg
/dev/nvidia-modeset: root 1150 F.... Xorg
$ prime-select query
on-demand
$ dpkg -l | grep nvidia-driver
ii nvidia-driver-575-open 575.64.03-0ubuntu0.24.04.3 amd64
ii nvidia-driver-580-open 580.65.06-0ubuntu0.24.04.4 amd64
$ apt list --installed | grep libnvidia-gl
libnvidia-gl-575 ...
libnvidia-gl-580 ...
$ lsmod | grep nouveau
(nothing)
My system info:
santhosh@san-LOQ:~$ inxi -Fxxxzr
System:
Kernel: 6.8.0-83-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0
clocksource: tsc
Desktop: Cinnamon v: 6.4.8 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1 vt: 7
dm: LightDM v: 1.30.0 Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble
Machine:
Type: Laptop System: LENOVO product: 83GS v: LOQ 15IAX9
serial: <superuser required> Chassis: type: 10 v: LOQ 15IAX9
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0T76485 WIN
serial: <superuser required> part-nu: LENOVO_MT_83GS_BU_idea_FM_LOQ 15IAX9
uuid: <superuser required> UEFI: LENOVO v: NECN44WW date: 04/01/2025
Battery:
ID-1: BAT1 charge: 7.0 Wh (11.8%) condition: 59.1/60.0 Wh (98.5%)
power: 21.7 W volts: 14.7 min: 15.4 model: SMP L23M4PK4 type: Li-poly
serial: <filter> status: discharging cycles: 102
CPU:
Info: 8-core (4-mt/4-st) model: 12th Gen Intel Core i5-12450HX bits: 64
type: MST AMCP smt: enabled arch: Alder Lake rev: 2 cache: L1: 704 KiB
L2: 7 MiB L3: 12 MiB
Speed (MHz): avg: 845 high: 914 min/max: 800/4400:3100 cores: 1: 857
2: 812 3: 800 4: 800 5: 801 6: 858 7: 900 8: 800 9: 893 10: 826 11: 879
12: 914 bogomips: 64512
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Graphics:
Device-1: Intel Alder Lake-S [UHD Graphics] vendor: Lenovo driver: i915
v: kernel arch: Gen-12.2 ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1,
HDMI-A-2, HDMI-A-3, HDMI-A-4 bus-ID: 00:02.0 chip-ID: 8086:468b
class-ID: 0300
Device-2: NVIDIA GN20-P0-R-K2 [GeForce RTX 3050 6GB Laptop GPU]
vendor: Lenovo driver: nvidia v: 580.65.06 arch: Ampere pcie: speed: 16 GT/s
lanes: 8 ports: active: none empty: DP-3,HDMI-A-5,eDP-2 bus-ID: 01:00.0
chip-ID: 10de:25ec class-ID: 0300
Device-3: IMC Networks Integrated Camera driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-6:2 chip-ID: 13d3:54b6
class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa dri: iris gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 98 s-size: 499x280mm (19.65x11.02")
s-diag: 572mm (22.53")
Monitor-1: eDP-1 model-id: CSW 0x150f serial: <filter> res: 1920x1080
hz: 144 dpi: 142 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
modes: 1920x1080
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia nouveau drv: nvidia
platforms: device: 0 drv: nvidia device: 1 drv: nouveau device: 2 drv: iris
device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11:
drv: iris inactive: wayland
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa
v: 25.0.7-0ubuntu0.24.04.2 glx-v: 1.4 direct-render: yes renderer: Mesa
Intel UHD Graphics (ADL-S GT0.5) device-ID: 8086:468b
Audio:
Device-1: Intel Alder Lake-S HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7ad0 class-ID: 0401
Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
speed: 16 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:2291 class-ID: 0403
API: ALSA v: k6.8.0-83-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: Lenovo RTL8111/8168/8411 driver: r8169 v: kernel pcie:
speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 07:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp7s0 state: down mac: <filter>
Device-2: Realtek RTL8852BE PCIe 802.11ax Wireless Network vendor: Lenovo
driver: rtw89_8852be_git v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 3000
bus-ID: 08:00.0 chip-ID: 10ec:b852 class-ID: 0280
IF: wlp8s0 state: up mac: <filter>
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 bus-ID: 1-14:4 chip-ID: 0bda:4853 class-ID: e001
serial: <filter>
Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 5.3
lmp-v: 12 sub-v: b20f hci-v: 12 rev: dbc6 class-ID: 7c010c
Drives:
Local Storage: total: 476.94 GiB used: 24.56 GiB (5.2%)
ID-1: /dev/nvme0n1 vendor: Micron model: MTFDKCD512QGN-1BN1AABLA
size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 1000V8LN temp: 39.9 C scheme: GPT
Partition:
ID-1: / size: 46.63 GiB used: 17.48 GiB (37.5%) fs: ext4 dev: /dev/nvme0n1p5
ID-2: /boot/efi size: 256 MiB used: 48.3 MiB (18.9%) fs: vfat
dev: /dev/nvme0n1p1
ID-3: /home size: 179.38 GiB used: 7.04 GiB (3.9%) fs: ext4
dev: /dev/nvme0n1p7
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
file: /swapfile
Sensors:
System Temperatures: cpu: 40.0 C mobo: N/A
Fan Speeds (rpm): N/A
Repos:
Packages: 2207 pm: dpkg pkgs: 2196 pm: flatpak pkgs: 11
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/diodon-team-stable-noble.list
1: deb [signed-by=/etc/apt/keyrings/diodon-team-stable-noble.gpg] https://ppa.launchpadcontent.net/diodon-team/stable/ubuntu noble main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb https://mirror.maa.albony.in/linuxmint xia main upstream import backport
2: deb https://mirrors.nxtgen.com/ubuntu-mirror/ubuntu noble main restricted universe multiverse
3: deb https://mirrors.nxtgen.com/ubuntu-mirror/ubuntu noble-updates main restricted universe multiverse
4: deb https://mirrors.nxtgen.com/ubuntu-mirror/ubuntu noble-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
Active apt repos in: /etc/apt/sources.list.d/vscode.sources
1: deb [arch=amd64] https://packages.microsoft.com/repos/code stable main
Info:
Memory: total: 12 GiB note: est. available: 11.39 GiB used: 3.94 GiB (34.6%)
Processes: 337 Power: uptime: 15m states: freeze,mem,disk suspend: deep
wakeups: 0 hibernate: platform Init: systemd v: 255 target: graphical (5)
default: graphical
Compilers: gcc: 13.3.0 Shell: Bash v: 5.2.21 running-in: gnome-terminal
inxi: 3.3.34