Hybrid Intel/Nvidia 510 Still Runs X server on discreet card?

I noticed when I run nvidia-smi I still see an X server running on the card when it should show nothing:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.60.02    Driver Version: 510.60.02    CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:58:00.0 Off |                  N/A |
| N/A   56C    P0     7W /  N/A |      4MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       710      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

When I kill that PID I get logged out and goes back to the login screen so I assume this is the user login screen or possibly any X session? It should be running on the integrated GPU though. Is there some way to correct this?

can you return

inxi -Fza
System:
  Kernel: 5.17.1-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.17-x86_64
    root=UUID=c9465fb0-1020-46cd-8273-591ec1d1cfd3 rw quiet apparmor=1
    security=apparmor udev.log_priority=3 i915.enable_psr=0
    acpi_rev_override=1
  Desktop: KDE Plasma v: 5.24.4 tk: Qt v: 5.15.3 wm: kwin_wayland vt: 2
    dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Convertible System: ASUSTeK product: ZenBook UX564EH_Q528EH v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: UX564EH v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: UX564EH.312 date: 03/09/2022
Battery:
  ID-1: BAT0 charge: 91.7 Wh (100.0%) condition: 91.7/96.0 Wh (95.6%)
    volts: 11.7 min: 11.7 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: not charging cycles: 4
  Device-1: hid-0018:04F3:2C26.0001-battery model: ELAN9009:00 04F3:2C26
    serial: N/A charge: N/A status: N/A
CPU:
  Info: model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP
    arch: Tiger Lake family: 6 model-id: 0x8C (140) stepping: 1 microcode: 0x9A
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 5 MiB desc: 4x1.2 MiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 3028 high: 4451 min/max: 400/4700 scaling:
    driver: intel_pstate governor: powersave cores: 1: 3841 2: 1901 3: 4393
    4: 2821 5: 1470 6: 3422 7: 4451 8: 1928 bogomips: 44864
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  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
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: ASUSTeK
    driver: i915 v: kernel ports: active: DP-2,eDP-1 empty: DP-1,HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:9a49 class-ID: 0300
  Device-2: NVIDIA TU117M vendor: ASUSTeK driver: nvidia v: 510.60.02
    alternate: nouveau,nvidia_drm pcie: gen: 3 speed: 8 GT/s lanes: 4 link-max:
    lanes: 16 bus-ID: 58:00.0 chip-ID: 10de:1f99 class-ID: 0302
  Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 3-5:5 chip-ID: 13d3:56eb class-ID: fe01 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
    unloaded: nouveau alternate: fbdev,nv,vesa gpu: i915,nvidia
    d-rect: 3840x1080 display-ID: 0
  Monitor-1: DP-2 pos: right res: 1920x1080 size: N/A modes: N/A
  Monitor-2: eDP-1 pos: primary,left res: 1920x1080 size: N/A modes: N/A
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.3.8
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: ASUSTeK
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:a0c8 class-ID: 0401
  Device-2: Logitech H390 headset with microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-2.4.1:6
    chip-ID: 046d:0a8f class-ID: 0300
  Sound Server-1: ALSA v: k5.17.1-3-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.49 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel bus-ID: 00:14.3
    chip-ID: 8086:a0f0 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: TP-Link UE300 10/100/1000 LAN (ethernet mode) [Realtek RTL8153]
    type: USB driver: r8152 bus-ID: 4-2.3:3 chip-ID: 2357:0601 class-ID: 0000
    serial: <filter>
  IF: enp0s20f0u2u3 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-10:8 chip-ID: 8087:0026 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 969.92 GiB used: 48.73 GiB (5.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: HBRPEKNX0202A
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B
    speed: 15.8 Gb/s lanes: 2 type: SSD serial: <filter> rev: G002
    temp: 30.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Intel model: HBRPEKNX0202AO
    size: 27.25 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s
    lanes: 2 type: SSD serial: <filter> rev: K5110440 temp: 38.9 C
    scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 type: USB vendor: Western Digital
    model: WD My Passport 264F size: 465.73 GiB block-size: physical: 512 B
    logical: 512 B type: N/A serial: <filter> rev: 2005 scheme: MBR
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 48.71 GiB (10.4%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 57.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 2600
Info:
  Processes: 286 Uptime: 2h 11m wakeups: 2377 Memory: 15.36 GiB
  used: 3.57 GiB (23.2%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.2.0 clang: 13.0.1 Packages: 1274 pacman: 1268 lib: 337 flatpak: 6
  Shell: Zsh v: 5.8.1 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.15

are you using X11 or Wayland ?
can you check config X11 file ?

I use Wayland by default but even if I log into X11 it’s still the same (though programs in X11 seems rather unstable).

There are no GPU-related X11 config files. Just a couple empty mhwd files.

According to a post here: https://www.reddit.com/r/archlinux/comments/pxwz9b/configure_xorg_to_use_the_intel_integrated/hes5sfa/

This is apparently normal & expected behavior. Apparently an X instance is supposed to be started for both Intel and an additional X instance for Nvidia (headless) that will copy it’s output to the Intel instance when used.

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