/dev/dri/card0: No such file or directory (Nvidia Optimus+AMD)

Hi everyone! I updated my system ([Stable Update] 2022-02-27 - Kernels, Mesa 21.3.7, Plasma 5.24.2, Frameworks 5.91, Pipewire 0.3.47, Toolchain, Gstreamer 1.20, Nvidia 510.54) and after a restart, the laptop’s main monitor (eDP1) is not to be detected anymore: the DE is only shown on an external monitor connected to HDMI. tty is not affected.

Outputs for inxi -G:

Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] driver: nvidia
    v: 510.54
  Device-2: AMD Renoir driver: amdgpu v: kernel
  Device-3: Luxvisions Innotech HP TrueVision HD Camera type: USB
    driver: uvcvideo
  Display: x11 server: X.org v: 1.21.1.3 driver: X:
    loaded: modesetting,nvidia gpu: nvidia,amdgpu resolution: 1920x1080~60Hz
  Message: Unable to show GL data. Required tool glxinfo missing.

and xrandr:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 1600mm x 900mm
   1920x1080     60.00*+  59.94    50.00    29.97    25.00    23.98  
   1360x768      60.02  
   1280x1024     60.02  
   1280x720      59.94    59.81    50.00  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.95    59.94    59.93  

I tried this so far:

❯ xrandr -d eDP1
Cant open display eDP1
❯ xrandr --auto
❯ xrandr -d :0 --auto
Cant open display :0

May it be a driver misconfiguration or something messed up with optimus-manager?
Thanks in advance for your advice!

Are there error-messages in Xorg.log ?

I’ve checked both Xorg.0.log and Xorg.1.log and found this error at the first half of the former file.

[    15.596] (II) Loading sub module "ramdac"
[    15.596] (II) LoadModule: "ramdac"
[    15.596] (II) Module "ramdac" already built-in
[    15.852] (EE) open /dev/dri/card0: No such file or directory
[    15.852] (WW) Falling back to old probe method for modesetting
[    15.852] (EE) open /dev/dri/card0: No such file or directory
[    15.852] (EE) Screen 1 deleted because of no matching config section.
[    15.852] (II) UnloadModule: "modesetting"
[    15.852] (II) NVIDIA(0): Creating default Display subsection in Screen section

Btw, both files are plentiful of other info which may be useful, yet quite large. If needed just ask for them.

I can´t help any further. But i do think this message points to the problem (missing device/driver)

/dev/dri/card0: No such file or directory

By the way what kernel do you use ? EOL ?

You did only provide a snippet of inxi :man_shrugging: (You should provide the following inxi whenever you really need help)

inxi --admin --verbosity=7 --filter --no-host --width

Sorry for omitting that, here it goes. It’s kernel 5.15.25-1.

System:
  Kernel: 5.15.25-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=2f6e1089-abac-44b2-b1ee-495f341762f4 ro quiet splash
    acpi_backlight=native apparmor=1 security=apparmor
    resume=UUID=b76a8a85-c54f-44d9-8352-07d3ac2c8550 udev.log_priority=3
  Desktop: GNOME 41.4 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-ec1xxx v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 87B2 v: 31.23 serial: <superuser required> UEFI: AMI
    v: F.25 date: 08/18/2021
Battery:
  ID-1: BAT0 charge: 46.2 Wh (99.1%) condition: 46.6/46.6 Wh (100.0%)
    volts: 12.9 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
    serial: N/A status: Charging cycles: 419
Memory:
  RAM: total: 22.91 GiB used: 2.34 GiB (10.2%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 family: 0x17 (23) model-id: 0x60 (96) stepping: 1
    microcode: 0x8600106
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
    desc: 2x4 MiB
  Speed (MHz): avg: 1397 high: 1398 min/max: 1400/2900 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1397 2: 1398
    3: 1397 4: 1397 5: 1397 6: 1397 7: 1397 8: 1397 9: 1396 10: 1397 11: 1397
    12: 1397 13: 1397 14: 1397 15: 1397 16: 1397 bogomips: 92662
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
    f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
    irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
    pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
    rdtscp rep_good sep sha_ni skinit smap smca smep ssbd sse sse2 sse4_1
    sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext tsc
    tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
    wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Hewlett-Packard
    driver: nvidia v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 1
    speed: 2.5 GT/s lanes: 8 link-max: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1f95 class-ID: 0300
  Device-2: AMD Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
    active: none off: eDP-1 empty: none bus-ID: 05:00.0 chip-ID: 1002:1636
    class-ID: 0300
  Device-3: Luxvisions Innotech HP TrueVision HD Camera type: USB
    driver: uvcvideo bus-ID: 3-3:3 chip-ID: 30c9:0013 class-ID: 0e02
    serial: <filter>
  Display: x11 server: X.org v: 1.21.1.3 compositor: gnome-shell driver: X:
    loaded: modesetting,nvidia gpu: nvidia,amdgpu display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-size: <missing: xdpyinfo>
  Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 30
    size: 1600x900mm (63.0x35.4") diag: 1836mm (72.3")
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: NVIDIA vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 3 speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Hewlett-Packard driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.25-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.47 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw_8822ce v: N/A modules: rtw88_8822ce
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0
    chip-ID: 10ec:c822 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek 802.11ac WLAN Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-4:2 chip-ID: 0bda:b00c class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.74 TiB used: 1.65 TiB (60.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLQ512HALU-000H1 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: HPS4NFXV temp: 35.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WDS500G2B0A-00SM50 size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 20WD
    scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: Toshiba
    model: External USB 3.0 size: 1.82 TiB block-size: physical: 512 B
    logical: 512 B type: N/A serial: <filter> rev: 5438 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 70 GiB size: 68.4 GiB (97.72%) used: 36.71 GiB (53.7%)
    fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 label: N/A
    uuid: 2f6e1089-abac-44b2-b1ee-495f341762f4
  ID-2: /Windows raw-size: 276.33 GiB size: 276.33 GiB (100.00%)
    used: 147.61 GiB (53.4%) fs: ntfs dev: /dev/nvme0n1p3 maj-min: 259:3
    label: Windows uuid: 1C8E63568E63280A
  ID-3: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 64.6 MiB (67.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: CC60-C0DF
  ID-4: /home raw-size: 120 GiB size: 117.61 GiB (98.01%)
    used: 35.12 GiB (29.9%) fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6
    label: N/A uuid: 67393b2c-c8db-45ab-b1c5-c47b97b69c82
  ID-5: /run/media/chemooon/Backups raw-size: 1.82 TiB
    size: 1.82 TiB (100.00%) used: 1.44 TiB (79.2%) fs: ntfs dev: /dev/sdb1
    maj-min: 8:17 label: Backups uuid: 0F6D01D20F6D01D2
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 10 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p4 maj-min: 259:4 label: N/A
    uuid: b76a8a85-c54f-44d9-8352-07d3ac2c8550
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p7 maj-min: 259:7 size: 507 MiB fs: ntfs label: N/A
    uuid: 2CCA6510CA64D79A
  ID-3: /dev/sda1 maj-min: 8:1 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-4: /dev/sda2 maj-min: 8:2 size: 465.75 GiB fs: ntfs label: Extra
    uuid: 0AA4A005A49FF205
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-4:2 info: Realtek 802.11ac WLAN Adapter type: Bluetooth
    driver: btusb interfaces: 2 rev: 1.0 speed: 12 Mb/s power: 500mA
    chip-ID: 0bda:b00c class-ID: e001 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 2-2:2 info: Toshiba America Canvio Basics HDD type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 896mA
    chip-ID: 0480:a202 class-ID: 0806 serial: <filter>
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 3-1:2 info: Huasheng USB2.0 HUB ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 214b:7250 class-ID: 0900
  Device-1: 3-1.3:4 info: 2.4G Composite Devic type: Keyboard,Mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 50mA
    chip-ID: 4037:2804 class-ID: 0301
  Device-2: 3-1.4:5 info: USB OPTICAL MOUSE type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
    power: 100mA chip-ID: 275d:0ba6 class-ID: 0301
  Device-3: 3-3:3 info: Luxvisions Innotech HP TrueVision HD Camera
    type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 30c9:0013 class-ID: 0e02 serial: <filter>
  Hub-5: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 68.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: nvidia screen: :1.0 temp: 40 C device: amdgpu temp: 42.0 C
Info:
  Processes: 388 Uptime: 1m wakeups: 1 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1613 lib: 455
  flatpak: 0 Shell: Zsh v: 5.8.1 running-in: gnome-terminal inxi: 3.3.13

I also tried running kernel versions 5.4 and 5.10.

Sorry, now i am out

of ideas :man_shrugging:

Problem solved. As I was wondering from a start, last update left optimus-manager misconfigured. Reinstalled the corresponding AUR package and (for the time being), everything’s back to normal.
Thank you @andreas85 for your help, and Nvidia for breaking my head once more!!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.