environment: gnome + 12700H + RTX3050
xrandr show HDMI disconnected, I through command sudo mhwd -a pci nonfree 0300
installed the graphics driver, and use optimus-manager to manager driver.
when i use optimus switch nvidia display, still doesn’t disconnected. but see nvidia-smi
output, xorg process run on nvidia.
This question has puzzled me for days, hope someone can give me some help, thanks a lot.
some output:
xrandr
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
eDP-1-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
2560x1440 165.00*+ 40.00 +
.................
320x175 85.27
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
DP-1-4 disconnected (normal left inverted right x axis y axis)
lspci | grep -E ‘VGA|3D’
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
inxi -Fazy
System:
Kernel: 5.15.41-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
root=UUID=52644168-21d3-440e-9e3a-40d27d72bf5a rw quiet splash apparmor=1
security=apparmor udev.log_priority=3
Desktop: GNOME v: 42.1 tk: GTK v: 3.24.34 wm: gnome-shell dm: GDM v: 42.0
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: HASEE product: V15x_V17xPNKPNJPNH v: N/A
serial: <superuser required> Chassis: No Enclosure type: 10
serial: <superuser required>
Mobo: Notebook model: V15x_V17xPNKPNJPNH serial: <superuser required>
UEFI: INSYDE v: 1.07.06THZX date: 02/15/2022
Battery:
ID-1: BAT0 charge: 40.9 Wh (100.0%) condition: 40.9/39.6 Wh (103.4%)
volts: 13.1 min: 11.6 model: Notebook BAT type: Li-ion serial: <filter>
status: full
CPU:
Info: model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP
arch: Alder Lake family: 6 model-id: 0x9A (154) stepping: 3 microcode: 0x41C
Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled
cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB
L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB desc: 1x24 MiB
Speed (MHz): avg: 464 high: 670 min/max: 400/4658:4700:3500 scaling:
driver: intel_pstate governor: powersave cores: 1: 618 2: 670 3: 517 4: 417
5: 454 6: 420 7: 481 8: 423 9: 509 10: 419 11: 435 12: 424 13: 484 14: 412
15: 499 16: 400 17: 400 18: 400 19: 400 20: 498 bogomips: 59920
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 and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 status: Vulnerable: eIBRS with unprivileged eBPF
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Alder Lake-P Integrated Graphics vendor: CLEVO/KAPOK
driver: i915 v: kernel ports: active: eDP-1
empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:46a6
class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: CLEVO/KAPOK
driver: nvidia v: 510.73.05 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-05) arch: Ampere pcie: gen: 1 speed: 2.5 GT/s
lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:25a2 class-ID: 0302
Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 3-8:4
chip-ID: 5986:9102 class-ID: 0e02
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1
compositor: gnome-shell driver: X: loaded: modesetting,nvidia gpu: i915
display-ID: :1 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
s-diag: 777mm (30.58")
Monitor-1: eDP-1 mapped: eDP-1-1 model: BOE Display 0x0974 built: 2020
res: 2560x1440 hz: 165 dpi: 189 gamma: 1.2 size: 344x194mm (13.54x7.64")
diag: 395mm (15.5") ratio: 16:9 modes: 2560x1440
OpenGL: renderer: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2
v: 4.6.0 NVIDIA 510.73.05 direct render: Yes
Audio:
Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: CLEVO/KAPOK
driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0403
Sound Server-1: ALSA v: k5.15.41-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.21 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
IF: wlp0s20f3 state: down mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: CLEVO/KAPOK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
driver: btusb v: 0.8 bus-ID: 3-10:5 chip-ID: 8087:0aaa class-ID: e001
Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
Local Storage: total: 1.09 TiB used: 13.73 GiB (1.2%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
model: WDS960G2G0C-00AJM0 size: 894.25 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 231800WD temp: 35.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: KIOXIA model: EXCERIA SATA SSD
size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 12.7 scheme: GPT
Partition:
ID-1: / raw-size: 893.96 GiB size: 878.85 GiB (98.31%)
used: 13.73 GiB (1.6%) 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:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 43.0 C mobo: N/A gpu: nvidia temp: 41 C
Fan Speeds (RPM): N/A
Info:
Processes: 410 Uptime: 13m wakeups: 1 Memory: 31.06 GiB
used: 2.55 GiB (8.2%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1277 lib: 308 flatpak: 0
Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.16
xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1b7 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x1e0 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 6 associated providers: 1 name:modesetting
nvidia-smi
Mon Jun 6 11:40:44 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.73.05 Driver Version: 510.73.05 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:01:00.0 Off | N/A |
| N/A 40C P8 3W / N/A | 639MiB / 4096MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 4515 G /usr/lib/Xorg 132MiB |
| 0 N/A N/A 4602 G /usr/bin/gnome-shell 160MiB |
| 0 N/A N/A 5479 G ...962219285398417134,131072 345MiB |
+-----------------------------------------------------------------------------+