You are not logged in.

#1 2022-12-19 15:11:13

guissou
Member
Registered: 2022-02-25
Posts: 16

[SOLVED] nvidia drivers and optimus manager: RTX A2000

Hello,

This is my first post, please let me know if I am posting it at the wrong place, in the wrong format. Some useful information is probably missing, I am happy to provide it if you tell me how to get it smile

I am running Arch, using KDE plasma, SDDM (I think) and X11, and have a laptop with a dedicated nvidia GPU (RTX A2000) and and integrated intel one. The external monitors are directly connected to the nvidia GPU. AFAIK, I haven't used the dedicated GPU so far, but I have been able to use external monitors connected to the GPU. I recently changed my config and broke nvidia support, hence I am not able to connect external monitors to my laptop anymore. I would love 1) to be able to use external monitors again and 2) make use of the dedicated nvidia GPU.

I have installed the packages nvidia and optimus-manager. When using the command "optimus-manager --switch hybrid" or "optimus-manager --switch nvidia", I get logged out, and login again, but the "optimus-manager --status" doesn't change, the "integrated" mode is still used, and the "GPU mode requested for next login:" is the one I just configured. Manually logging out and in again doesn't apply the change.

It is possible that I touched some configs I shouldn't have while trying to make this work, but don't have a history of the changes I made.

Thank you in advance for your help smile

neofetch:

OS: Arch Linux x86_64
Host: 20Y4S02Q00 ThinkPad P1 Gen 4i
Kernel: 6.0.12-arch1-1
Packages: 1358 (pacman)
Shell: zsh 5.9
Resolution: 3840x2400
DE: Plasma 5.26.4
WM: KWin
Theme: [Plasma], Breeze [GTK3]
Icons: [Plasma], breeze-dark [GTK2/3]
Terminal: konsole
CPU: 11th Gen Intel i7-11800H (16) @ 4.600GHz
GPU: NVIDIA RTX A2000 Mobile
GPU: Intel TigerLake-H GT1 [UHD Graphics]
Memory: 6398MiB / 31824MiB
$ lspci -k                                 
00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
        Subsystem: Lenovo Device 22e4
00:01.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller #1 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: i915
        Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device_pci_legacy
00:06.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller #0 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:07.0 PCI bridge: Intel Corporation Tiger Lake-H Thunderbolt 4 PCI Express Root Port #1 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:07.2 PCI bridge: Intel Corporation Tiger Lake-H Thunderbolt 4 PCI Express Root Port #2 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:0d.0 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 USB Controller (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:0d.2 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 NHI #0 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: thunderbolt
        Kernel modules: thunderbolt
00:0d.3 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 NHI #1 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: thunderbolt
        Kernel modules: thunderbolt
00:14.0 USB controller: Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Tiger Lake-H Shared SRAM (rev 11)
        Subsystem: Lenovo Device 22e4
00:15.0 Serial bus controller: Intel Corporation Tiger Lake-H Serial IO I2C Controller #0 (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Tiger Lake-H Management Engine Interface (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:1c.0 PCI bridge: Intel Corporation Device 43b8 (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:1c.6 PCI bridge: Intel Corporation Device 43be (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Device 4389 (rev 11)
        Subsystem: Lenovo Device 22e4
00:1f.3 Multimedia audio controller: Intel Corporation Tiger Lake-H HD Audio Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: sof-audio-pci-intel-tgl
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Tiger Lake-H SMBus Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-H SPI Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: intel-spi
        Kernel modules: spi_intel_pci
01:00.0 VGA compatible controller: NVIDIA Corporation GA107GLM [RTX A2000 Mobile] (rev a1)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation Device 2291 (rev a1)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO
        Subsystem: Samsung Electronics Co Ltd Device a801
        Kernel driver in use: nvme
        Kernel modules: nvme
09:00.0 Network controller: Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz (rev 1a)
        Subsystem: Intel Corporation Wi-Fi 6 AX210 160MHz
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi
0a:00.0 SD Host controller: Genesys Logic, Inc GL9755 SD Host Controller
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci_pci

/var/log/Xorg.1.log

[ 21071.094] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 21071.094] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 21071.094] (--) Log file renamed from "/var/log/Xorg.pid-21072.log" to "/var/log/Xorg.1.log"
[ 21071.094] 
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[ 21071.094] Current Operating System: Linux guinux 5.16.13-arch1-1 #1 SMP PREEMPT Tue, 08 Mar 2022 20:07:36 +0000 x86_64
[ 21071.094] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=c22c7a3e-8e38-4406-a1a4-1c32c4574795 rw loglevel=3 quiet
[ 21071.094]  
[ 21071.094] Current version of pixman: 0.40.0
[ 21071.094]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 21071.094] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 21071.094] (==) Log file: "/var/log/Xorg.1.log", Time: Sat Mar 12 23:08:03 2022
[ 21071.095] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 21071.095] (==) No Layout section.  Using the first Screen section.
[ 21071.095] (==) No screen section available. Using defaults.
[ 21071.095] (**) |-->Screen "Default Screen Section" (0)
[ 21071.095] (**) |   |-->Monitor "<default monitor>"
[ 21071.095] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[ 21071.095] (==) Automatically adding devices
[ 21071.095] (==) Automatically enabling devices
[ 21071.095] (==) Automatically adding GPU devices
[ 21071.095] (==) Automatically binding GPU devices
[ 21071.095] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 21071.095] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 21071.095]    Entry deleted from font path.
[ 21071.095] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[ 21071.095]    Entry deleted from font path.
[ 21071.095]    (Run 'mkfontdir' on "/usr/share/fonts/TTF").
[ 21071.095] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 21071.095]    Entry deleted from font path.
[ 21071.095] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 21071.095]    Entry deleted from font path.
[ 21071.095] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 21071.095]    Entry deleted from font path.
[ 21071.095] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 21071.095]    Entry deleted from font path.
[ 21071.095] (==) FontPath set to:

[ 21071.095] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 21071.095] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 21071.095] (II) Module ABI versions:
[ 21071.095]    X.Org ANSI C Emulation: 0.4
[ 21071.095]    X.Org Video Driver: 25.2
[ 21071.095]    X.Org XInput driver : 24.4
[ 21071.095]    X.Org Server Extension : 10.0
[ 21071.096] (++) using VT number 1

[ 21071.096] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 21071.097] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 21071.097] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[ 21071.097] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 21071.097] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 21071.098] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[ 21071.099] (--) PCI:*(0@0:2:0) 8086:9a60:17aa:22e4 rev 1, Mem @ 0x614c000000/16777216, 0x4000000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[ 21071.099] (--) PCI: (1@0:0:0) 10de:25b8:17aa:22e4 rev 161, Mem @ 0x9d000000/16777216, 0x6000000000/4294967296, 0x6100000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[ 21071.099] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 21071.099] (II) LoadModule: "glx"
[ 21071.099] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 21071.100] (II) Module glx: vendor="X.Org Foundation"
[ 21071.100]    compiled for 1.21.1.3, module version = 1.0.0
[ 21071.100]    ABI class: X.Org Server Extension, version 10.0
[ 21071.100] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[ 21071.100]    loading driver: nvidia
[ 21071.100] (==) Matched intel as autoconfigured driver 0
[ 21071.100] (==) Matched nvidia as autoconfigured driver 1
[ 21071.100] (==) Matched nouveau as autoconfigured driver 2
[ 21071.100] (==) Matched nv as autoconfigured driver 3
[ 21071.100] (==) Matched modesetting as autoconfigured driver 4
[ 21071.100] (==) Matched fbdev as autoconfigured driver 5
[ 21071.100] (==) Matched vesa as autoconfigured driver 6
[ 21071.100] (==) Assigned the driver to the xf86ConfigLayout
[ 21071.100] (II) LoadModule: "intel"
[ 21071.100] (WW) Warning, couldn't open module intel
[ 21071.100] (EE) Failed to load module "intel" (module does not exist, 0)
[ 21071.100] (II) LoadModule: "nvidia"
[ 21071.100] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 21071.101] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 21071.101]    compiled for 1.6.99.901, module version = 1.0.0
[ 21071.101]    Module class: X.Org Video Driver
[ 21071.101] (II) LoadModule: "nouveau"
[ 21071.101] (WW) Warning, couldn't open module nouveau
[ 21071.101] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 21071.101] (II) LoadModule: "nv"
[ 21071.101] (WW) Warning, couldn't open module nv
[ 21071.101] (EE) Failed to load module "nv" (module does not exist, 0)
[ 21071.101] (II) LoadModule: "modesetting"
[ 21071.101] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 21071.101] (II) Module modesetting: vendor="X.Org Foundation"
[ 21071.101]    compiled for 1.21.1.3, module version = 1.21.1
[ 21071.101]    Module class: X.Org Video Driver
[ 21071.101]    ABI class: X.Org Video Driver, version 25.2
[ 21071.101] (II) LoadModule: "fbdev"
[ 21071.101] (WW) Warning, couldn't open module fbdev
[ 21071.101] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 21071.101] (II) LoadModule: "vesa"
[ 21071.101] (WW) Warning, couldn't open module vesa
[ 21071.101] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 21071.101] (II) NVIDIA dlloader X Driver  510.54  Tue Feb  8 04:38:00 UTC 2022
[ 21071.101] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 21071.101] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 21071.101] (II) modeset(0): using drv /dev/dri/card0
[ 21071.101] (II) Loading sub module "fb"
[ 21071.101] (II) LoadModule: "fb"
[ 21071.101] (II) Module "fb" already built-in
[ 21071.101] (II) Loading sub module "wfb"
[ 21071.101] (II) LoadModule: "wfb"
[ 21071.102] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 21071.102] (II) Module wfb: vendor="X.Org Foundation"
[ 21071.102]    compiled for 1.21.1.3, module version = 1.0.0
[ 21071.102]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 21071.102] (II) Loading sub module "ramdac"
[ 21071.102] (II) LoadModule: "ramdac"
[ 21071.102] (II) Module "ramdac" already built-in
[ 21071.102] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[ 21071.102] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 21071.102] (==) modeset(0): RGB weight 888
[ 21071.102] (==) modeset(0): Default visual is TrueColor
[ 21071.102] (II) Loading sub module "glamoregl"
[ 21071.102] (II) LoadModule: "glamoregl"
[ 21071.102] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 21071.104] (II) Module glamoregl: vendor="X.Org Foundation"
[ 21071.104]    compiled for 1.21.1.3, module version = 1.0.1
[ 21071.104]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 21071.124] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) UHD Graphics (TGL GT1)
[ 21071.124] (II) modeset(0): glamor initialized
[ 21071.124] (==) modeset(0): VariableRefresh: disabled
[ 21071.124] (==) modeset(0): AsyncFlipSecondaries: disabled
[ 21071.124] (II) modeset(0): Output eDP-1 has no monitor section
[ 21071.124] (II) modeset(0): Output HDMI-1 has no monitor section
[ 21071.124] (II) modeset(0): Output DP-1 has no monitor section
[ 21071.124] (II) modeset(0): Output DP-2 has no monitor section
[ 21071.124] (II) modeset(0): Output DP-3 has no monitor section
[ 21071.124] (II) modeset(0): Output DP-4 has no monitor section
[ 21071.125] (II) modeset(0): EDID for output eDP-1
[ 21071.125] (II) modeset(0): Manufacturer: LGD  Model: 6aa  Serial#: 0
[ 21071.125] (II) modeset(0): Year: 2020  Week: 0
[ 21071.125] (II) modeset(0): EDID Version: 1.4
[ 21071.125] (II) modeset(0): Digital Display Input
[ 21071.125] (II) modeset(0): 10 bits per channel
[ 21071.125] (II) modeset(0): Digital interface is DisplayPort
[ 21071.125] (II) modeset(0): Max Image Size [cm]: horiz.: 34  vert.: 21
[ 21071.125] (II) modeset(0): Gamma: 2.20
[ 21071.125] (II) modeset(0): DPMS capabilities: StandBy Suspend Off
[ 21071.125] (II) modeset(0): Supported color encodings: RGB 4:4:4 
[ 21071.125] (II) modeset(0): First detailed timing is preferred mode
[ 21071.125] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[ 21071.125] (II) modeset(0): Display is continuous-frequency
[ 21071.125] (II) modeset(0): redX: 0.663 redY: 0.330   greenX: 0.204 greenY: 0.715
[ 21071.125] (II) modeset(0): blueX: 0.145 blueY: 0.058   whiteX: 0.313 whiteY: 0.329
[ 21071.125] (II) modeset(0): Manufacturer's mask: 0
[ 21071.125] (II) modeset(0): Supported detailed timing:
[ 21071.125] (II) modeset(0): clock: 592.6 MHz   Image Size:  344 x 215 mm
[ 21071.125] (II) modeset(0): h_active: 3840  h_sync: 3888  h_sync_end 3920 h_blank_end 4000 h_border: 0
[ 21071.125] (II) modeset(0): v_active: 2400  v_sync: 2403  v_sync_end 2409 v_blanking: 2469 v_border: 0
[ 21071.125] (II) modeset(0): Ranges: V min: 48 V max: 60 Hz, H min: 148 H max: 148 kHz, PixClock max 605 MHz
[ 21071.125] (II) modeset(0):  LG Display
[ 21071.125] (II) modeset(0):  LP160UQ1-SPB1
[ 21071.125] (II) modeset(0): Number of EDID sections to follow: 1
[ 21071.125] (II) modeset(0): EDID (in hex):
[ 21071.125] (II) modeset(0):   00ffffffffffff0030e4aa0600000000
[ 21071.125] (II) modeset(0):   001e0104b5221578e3e435a95434b725
[ 21071.125] (II) modeset(0):   0e505400000001010101010101010101
[ 21071.125] (II) modeset(0):   01010101010178e700a0f06045903020
[ 21071.125] (II) modeset(0):   360058d71000001a000000fd00303c94
[ 21071.125] (II) modeset(0):   943c010a202020202020000000fe004c
[ 21071.125] (II) modeset(0):   4720446973706c61790a2020000000fe
[ 21071.125] (II) modeset(0):   004c503136305551312d535042310138
[ 21071.125] (II) modeset(0):   02030f00e3058000e606050173734200
[ 21071.125] (II) modeset(0):   00000000000000000000000000000000
[ 21071.125] (II) modeset(0):   00000000000000000000000000000000
[ 21071.125] (II) modeset(0):   00000000000000000000000000000000
[ 21071.125] (II) modeset(0):   00000000000000000000000000000000
[ 21071.125] (II) modeset(0):   00000000000000000000000000000000
[ 21071.125] (II) modeset(0):   00000000000000000000000000000000
[ 21071.125] (II) modeset(0):   0000000000000000000000000000006a
[ 21071.125] (II) modeset(0): Not using default mode "3840x2160" (bad mode clock/interlace/doublescan)
[ 21071.125] (II) modeset(0): Not using default mode "2560x1440" (bad mode clock/interlace/doublescan)
[ 21071.125] (II) modeset(0): Not using default mode "3840x2160" (bad mode clock/interlace/doublescan)
[ 21071.125] (II) modeset(0): Not using default mode "3840x2160" (bad mode clock/interlace/doublescan)
[ 21071.125] (II) modeset(0): Printing probed modes for output eDP-1
[ 21071.125] (II) modeset(0): Modeline "3840x2400"x60.0  592.56  3840 3888 3920 4000  2400 2403 2409 2469 +hsync -vsync (148.1 kHz eP)
[ 21071.125] (II) modeset(0): Modeline "3840x2160"x60.0  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync (133.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "3200x1800"x60.0  492.00  3200 3456 3800 4400  1800 1803 1808 1865 -hsync +vsync (111.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "3200x1800"x59.9  373.00  3200 3248 3280 3360  1800 1803 1808 1852 +hsync -vsync (111.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2880x1620"x60.0  396.25  2880 3096 3408 3936  1620 1623 1628 1679 -hsync +vsync (100.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2880x1620"x60.0  303.75  2880 2928 2960 3040  1620 1623 1628 1666 +hsync -vsync (99.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2560x1600"x60.0  348.50  2560 2760 3032 3504  1600 1603 1609 1658 -hsync +vsync (99.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2560x1600"x60.0  268.50  2560 2608 2640 2720  1600 1603 1609 1646 +hsync -vsync (98.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2560x1440"x60.0  469.12  2560 2584 2600 2640  1440 1441 1444 1481 doublescan +hsync -vsync (177.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2560x1440"x60.0  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync (89.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2048x1536"x60.0  266.95  2048 2200 2424 2800  1536 1537 1540 1589 -hsync +vsync (95.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1920x1440"x60.0  234.00  1920 2048 2256 2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1856x1392"x60.0  218.30  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1792x1344"x60.0  204.80  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2048x1152"x60.0  406.50  2048 2220 2444 2840  1152 1153 1156 1193 doublescan -hsync +vsync (143.1 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2048x1152"x60.0  302.50  2048 2072 2088 2128  1152 1153 1156 1185 doublescan +hsync -vsync (142.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2048x1152"x59.9  197.00  2048 2184 2400 2752  1152 1155 1160 1195 -hsync +vsync (71.6 kHz d)
[ 21071.125] (II) modeset(0): Modeline "2048x1152"x59.9  156.75  2048 2096 2128 2208  1152 1155 1160 1185 +hsync -vsync (71.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1920x1080"x60.0  356.38  1920 2080 2288 2656  1080 1081 1084 1118 doublescan -hsync +vsync (134.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1920x1080"x60.0  266.50  1920 1944 1960 2000  1080 1081 1084 1111 doublescan +hsync -vsync (133.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1920x1080"x60.0  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1920x1080"x59.9  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.6 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1600x900"x60.0  246.00  1600 1728 1900 2200  900 901 904 932 doublescan -hsync +vsync (111.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1600x900"x59.9  186.50  1600 1624 1640 1680  900 901 904 926 doublescan +hsync -vsync (111.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1600x900"x59.9  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync (56.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1600x900"x59.8   97.50  1600 1648 1680 1760  900 903 908 926 +hsync -vsync (55.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1400x900"x60.0  103.50  1400 1480 1624 1848  900 903 913 934 -hsync +vsync (56.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1400x900"x59.9   86.50  1400 1448 1480 1560  900 903 913 926 +hsync -vsync (55.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1440x810"x60.0  198.12  1440 1548 1704 1968  810 811 814 839 doublescan -hsync +vsync (100.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1440x810"x60.0  151.88  1440 1464 1480 1520  810 811 814 833 doublescan +hsync -vsync (99.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1368x768"x59.9   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync (47.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1368x768"x59.9   72.25  1368 1416 1448 1528  768 771 781 790 +hsync -vsync (47.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x800"x60.0  174.25  1280 1380 1516 1752  800 801 804 829 doublescan -hsync +vsync (99.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x800"x60.0  134.25  1280 1304 1320 1360  800 801 804 823 doublescan +hsync -vsync (98.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x720"x60.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x720"x60.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1024x768"x60.0  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "960x720"x60.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "928x696"x60.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "896x672"x60.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1024x576"x60.0   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1024x576"x60.0   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "960x600"x59.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[ 21071.125] (II) modeset(0): Modeline "960x600"x60.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "960x540"x60.0   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "960x540"x60.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[ 21071.125] (II) modeset(0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "800x600"x60.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "840x525"x60.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "840x525"x59.9   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "700x525"x60.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "800x450"x59.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "800x450"x59.8   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x512"x60.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "700x450"x60.0   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "700x450"x59.9   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x480"x60.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[ 21071.125] (II) modeset(0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "684x384"x59.9   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "684x384"x59.9   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x400"x59.9   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x400"x60.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x360"x59.9   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x360"x59.8   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "512x384"x60.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[ 21071.125] (II) modeset(0): Modeline "512x288"x60.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "512x288"x59.9   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "480x270"x59.6   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "480x270"x59.8   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "400x300"x60.3   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[ 21071.125] (II) modeset(0): Modeline "400x300"x56.3   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[ 21071.125] (II) modeset(0): Modeline "432x243"x59.9   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[ 21071.125] (II) modeset(0): Modeline "432x243"x59.6   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[ 21071.125] (II) modeset(0): Modeline "320x240"x60.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "360x202"x59.5   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[ 21071.125] (II) modeset(0): Modeline "360x202"x59.1   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[ 21071.125] (II) modeset(0): Modeline "320x180"x59.8    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[ 21071.125] (II) modeset(0): Modeline "320x180"x59.3    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[ 21071.125] (II) modeset(0): EDID for output HDMI-1
[ 21071.125] (II) modeset(0): EDID for output DP-1
[ 21071.125] (II) modeset(0): EDID for output DP-2
[ 21071.125] (II) modeset(0): EDID for output DP-3
[ 21071.125] (II) modeset(0): EDID for output DP-4
[ 21071.125] (II) modeset(0): Output eDP-1 connected
[ 21071.125] (II) modeset(0): Output HDMI-1 disconnected
[ 21071.125] (II) modeset(0): Output DP-1 disconnected
[ 21071.125] (II) modeset(0): Output DP-2 disconnected
[ 21071.125] (II) modeset(0): Output DP-3 disconnected
[ 21071.125] (II) modeset(0): Output DP-4 disconnected
[ 21071.125] (II) modeset(0): Using exact sizes for initial modes
[ 21071.125] (II) modeset(0): Output eDP-1 using initial mode 3840x2400 +0+0
[ 21071.125] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 21071.125] (==) modeset(0): DPI set to (96, 96)
[ 21071.125] (II) Loading sub module "fb"
[ 21071.125] (II) LoadModule: "fb"
[ 21071.125] (II) Module "fb" already built-in
[ 21071.125] (==) NVIDIA(G0): Depth 24, (==) framebuffer bpp 32
[ 21071.125] (==) NVIDIA(G0): RGB weight 888
[ 21071.125] (==) NVIDIA(G0): Default visual is TrueColor
[ 21071.125] (==) NVIDIA(G0): Using gamma correction (1.0, 1.0, 1.0)
[ 21071.125] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[ 21071.125] (**) NVIDIA(G0): Option "AllowEmptyInitialConfiguration"
[ 21071.125] (**) NVIDIA(G0): Enabling 2D acceleration
[ 21071.125] (II) Loading sub module "glxserver_nvidia"
[ 21071.125] (II) LoadModule: "glxserver_nvidia"
[ 21071.125] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[ 21071.130] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 21071.130]    compiled for 1.6.99.901, module version = 1.0.0
[ 21071.130]    Module class: X.Org Server Extension
[ 21071.130] (II) NVIDIA GLX Module  510.54  Tue Feb  8 04:36:31 UTC 2022
[ 21071.130] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 21071.130] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[ 21071.130] (--) NVIDIA(0):     DFP-0
[ 21071.130] (--) NVIDIA(0):     DFP-1
[ 21071.130] (--) NVIDIA(0):     DFP-2
[ 21071.130] (--) NVIDIA(0):     DFP-3
[ 21071.130] (--) NVIDIA(0):     DFP-4
[ 21071.130] (II) NVIDIA(G0): NVIDIA GPU NVIDIA RTX A2000 Laptop GPU (GA107GL-A) at
[ 21071.130] (II) NVIDIA(G0):     PCI:1:0:0 (GPU-0)
[ 21071.130] (--) NVIDIA(G0): Memory: 4194304 kBytes
[ 21071.130] (--) NVIDIA(G0): VideoBIOS: 94.07.3b.40.98
[ 21071.130] (II) NVIDIA(G0): Detected PCI Express Link width: 16X
[ 21071.130] (EE) NVIDIA(GPU-0): Failed to acquire modesetting permission.
[ 21071.130] (EE) NVIDIA(G0): Failing initialization of X screen
[ 21071.131] (II) UnloadModule: "nvidia"
[ 21071.131] (II) UnloadSubModule: "glxserver_nvidia"
[ 21071.131] (II) Unloading glxserver_nvidia
[ 21071.131] (II) UnloadSubModule: "wfb"
[ 21071.131] (EE) modeset(0): drmSetMaster failed: Device or resource busy
[ 21071.131] (EE) 
Fatal server error:
[ 21071.131] (EE) AddScreen/ScreenInit failed for driver 0
[ 21071.131] (EE) 
[ 21071.131] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[ 21071.131] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 21071.131] (EE) 
[ 21071.153] (EE) Server terminated with error (1). Closing log file.

Optimus manager switch logs

$ cat /var/log/optimus-manager/switch/switch-20221219T153450.log 
[8] INFO: # Xorg pre-start hook
[8] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[8] INFO: Requested mode is: integrated
[1369] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[1369] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[1372] INFO: switching=none, nothing to do
[2203] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[2203] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20221219T153450', 'requested_mode': 'integrated'}
[2203] INFO: Xorg pre-start hook completed successfully.
[4] INFO: # Xorg post-start hook
[800] INFO: Running /etc/optimus-manager/xsetup-integrated.sh
[824] INFO: Writing state {'type': 'done', 'switch_id': '20221219T153450', 'current_mode': 'integrated'}
[825] INFO: Xorg post-start hook completed successfully.

No errors displayed, but the state wasn't updated. The "switching" don't seem to match my operation "optimus-manager --switch nvidia".

I am not sure what the xinit folder is.

$ tree /etc/X11 
/etc/X11
├── xinit
│   ├── xinitrc
│   ├── xinitrc.d
│   │   ├── 40-libcanberra-gtk-module.sh
│   │   └── 50-systemd-user.sh
│   └── xserverrc
└── xorg.conf.d
    └── 10-optimus-manager.conf
$ cat /etc/X11/xorg.conf.d/10-optimus-manager.conf 
Section "Device"
        Identifier "integrated"
        Driver "modesetting"
        BusID "PCI:0:2:0"
        Option "DRI" "3"
EndSection

Last edited by guissou (2022-12-21 12:36:23)

Offline

#2 2022-12-19 15:38:29

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,329

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

[ 21071.094] (==) Log file: "/var/log/Xorg.1.log", Time: Sat Mar 12 23:08:03 2022

You're looking at the wrong Xorg log.

I recently changed my config and broke nvidia support, hence I am not able to connect external monitors to my laptop anymore. I would love 1) to be able to use external monitors again and 2) make use of the dedicated nvidia GPU.

The official™, supported, suggested and out-of-the-box approach to this would be prime - you (probably) have been using the GPU to drive the outputs and could use prime-run to run isolated processes on the GPU.

If you want to use the GPU exclusively and have the option, disable the IGP in the BIOS settings.
If that's not possible, see https://wiki.archlinux.org/title/NVIDIA … phics_only

https://bbs.archlinux.org/viewtopic.php?id=281907&p=2 figured a conflict/bug in the takedown of sddm and OMs prime-switch process
However optimus-manager is some sort of legacy approach to switch between the VGAs, but requires to re-login and is probably of very little use if you've outputs on both of them (because you cannot power down either)

Online

#3 2022-12-20 07:29:12

guissou
Member
Registered: 2022-02-25
Posts: 16

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

You're looking at the wrong Xorg log.

Sorry, I missed that, it was stupid.

If you want to use the GPU exclusively and have the option, disable the IGP in the BIOS settings.
If that's not possible, see https://wiki.archlinux.org/title/NVIDIA … phics_only

I am not interested in running the GPU exclusively smile

The official™, supported, suggested and out-of-the-box approach to this would be prime - you (probably) have been using the GPU to drive the outputs and could use prime-run to run isolated processes on the GPU.

Thanks a lot, I managed to get one external monitor working with prime!

https://bbs.archlinux.org/viewtopic.php?id=281907&p=2 figured a conflict/bug in the takedown of sddm and OMs prime-switch process
However optimus-manager is some sort of legacy approach to switch between the VGAs, but requires to re-login and is probably of very little use if you've outputs on both of them (because you cannot power down either)

I have uninstalled optimus-manager.

However, now as soon as I connect a second external monitor (I have one on usb-c and one on hdmi), no matter which one is connected first, the UI becomes super slow (5 seconds delay between user input and visual change), even when I disable one monitor from the KDE "Display and Monitor" settings. Do you know what might be the cause? And which log files may be relevant to look at?

Offline

#4 2022-12-20 08:11:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,329

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

the UI becomes super slow

Does that affect everything or just some clients? Mouse cursor?
What happens if you suspend the compositor (SHIFT+Alt+F12)?

Please post the output of "xrandr -q" and an xorg log covering that situation.

On a distant stretch: https://bbs.archlinux.org/viewtopic.php?id=282021 ?
Is the internal output still active?

Online

#5 2022-12-20 14:04:20

guissou
Member
Registered: 2022-02-25
Posts: 16

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

Before doing SHIFT+Alt+F12

It seems to affect all windows. However, the mouse cursor doesn't get slowed down. There is a 3-5 second delay between the click happens and the action is produced. Keyboard input is slow to appear on screen (unlike mouse cursor movements).

Something else that I just noticed, out of the 3 monitors I have (built-in screen, hdmi, and usb-c connected), enabling 1 or all 3 monitors works without a lag, but enabling only 2 out of the 3 (no matter which combination) results in a slow down.

Also, one of the external monitors is configured to be 90° clockwise. For all display combinations, the display isn't rotated at all (windows appear with 90° rotation), but when moving the mouse on that screen, it moves correctly as if the screen was actually rotated 90° clockwise. Changing the display orientation doesn't change the windows orientation, but changes the mouse movement direction in this display.

$ xrandr -q
Screen 0: minimum 8 x 8, current 5040 x 4000, maximum 32767 x 32767
eDP1 connected 3840x2400+1200+1600 (normal left inverted right x axis y axis) 340mm x 210mm
   3840x2400     60.00*+
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
DP4 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 connected primary 3440x1440+1200+160 (normal left inverted right x axis y axis) 800mm x 335mm
   3440x1440     59.97*+  29.99  
   2560x1440     59.95  
   2560x1080     59.98  
   2048x1152     60.00  
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected 1200x1920+0+0 left (normal left inverted right x axis y axis) 519mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00    59.94  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x480       59.94  
   640x480       75.00    59.94    59.93
After doing SHIFT+Alt+F12

Now only the Plasma apps (System Settings, Panel, Application Launcher etc.) appear to be slow, even on 2 monitors. Firefox and Konsole are fast again. When 1 or 3 monitors are enabled everything is fast. The rotated monitor still has the same issue as before.

seth wrote:

Interesting, maybe reverting to nvidia 520 will solve this issue.

seth wrote:

Is the internal output still active?

Where do I get this information?

Offline

#6 2022-12-20 14:16:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,329

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

Where do I get this information?

xrandr - or by looking at it tongue

current 5040 x 4000

What if you clone all outputs?
(No rotation, all outputs originatign at 0,0)

the display isn't rotated at all (windows appear with 90° rotation)

pacman -Qs xf86-video

Online

#7 2022-12-20 15:07:35

guissou
Member
Registered: 2022-02-25
Posts: 16

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

$ pacman -Qs xf86-video
local/xf86-video-intel 1:2.99.917+916+g31486f40-2 (xorg-drivers)
    X.org Intel i810/i830/i915/945G/G965+ video drivers
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards
When duplicating all 3 displays

Everything is fast, all 3 displays are enabled.

$ xrandr -q
Screen 0: minimum 8 x 8, current 3840 x 2400, maximum 32767 x 32767
eDP1 connected 3840x2400+0+0 (normal left inverted right x axis y axis) 340mm x 210mm
   3840x2400     60.00*+
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
DP4 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 800mm x 335mm
   3440x1440     59.97*+  29.99  
   2560x1440     59.95  
   2560x1080     59.98  
   2048x1152     60.00  
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 519mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00    59.94  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x720      60.00    59.94  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
When disabling 1 display

2 displays are enabled, 1 disabled. The two enabled displays clone each other (no rotation). Still experiencing the same slowness.

I found out this message in the "i" next to the resolution field for my built-in screen config.

Using unsupported resolutions was possible in the plasma X11 session, but they were never guaranteed to work and are not available in this Plasma Wayland session.

Offline

#8 2022-12-20 15:16:35

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,329

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

Get rid of both xf86-video packages, make sure they're not referenced anywhere

grep -riE 'intel|nouveau' /{usr/share,etc}/X11/xorg.conf*

in this Plasma Wayland session

????

loginctl session-status

Online

#9 2022-12-21 07:40:31

guissou
Member
Registered: 2022-02-25
Posts: 16

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

Get rid of both xf86-video packages, make sure they're not referenced anywhere

Done! Thank you for the tip! I rebooted after removing the packages, and there are no references left.

$ loginctl session-status                                  
2 - guissou (1000)
           Since: Wed 2022-12-21 08:17:41 CET; 2min 50s ago
          Leader: 827 (sddm-helper)
            Seat: seat0; vc1
         Display: :0
         Service: sddm; type x11; class user
         Desktop: KDE
           State: active
            Unit: session-2.scope
                  ├─827 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth9b67f7d9-3f85-4e2b-935b-f6a28c0bceff --id 1 --start /usr/bin/startplasma-x11 --user guissou
                  ├─841 /usr/bin/kwalletd5 --pam-login 6 8
                  └─842 /usr/bin/startplasma-x11

Dec 21 08:17:41 guinux sddm-helper[840]: pam_kwallet5: final socket path: /run/user/1000/kwallet5.socket
Dec 21 08:17:41 guinux sddm-helper[842]: Adding cookie to "/home/guissou/.Xauthority"

Now the rotated monitor works as expected! It can rotate. All screen combinations (built-in screen, hdmi monitor and usb-c monitor) work as expected, but the combination hdmi+usb-c monitor enabled and build-in screen disabled. This results in a global slowness, all windows are slow, and only the mouse cursor moves fast (and the click reaction is delayed), typing in windows is slow.

PS: the "Plasma Wayland session" in System Settings->Display and Monitor, is very weird, after rebooting the host, the message was gone. The "loginctl session-status" logs date from after the reboot.  Maybe removing the xf86-video packages solved it.

Offline

#10 2022-12-21 09:17:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,329

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

the combination hdmi+usb-c monitor enabled and build-in screen disabled. This results in a global slowness

https://wiki.archlinux.org/title/PRIME#Reverse_PRIME - 2nd note.
Also https://bbs.archlinux.org/viewtopic.php?id=282021

Online

#11 2022-12-21 10:17:56

guissou
Member
Registered: 2022-02-25
Posts: 16

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

Thanks for the references I now understand better!

I downgraded to nvidia 520, but now the external monitors aren't detected at all anymore.

$ pacman -Qs nvidia                                                 
local/egl-wayland 2:1.1.11-2
    EGLStream-based Wayland external platform
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/nvidia 520.56.06-12
    NVIDIA drivers for linux
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-utils 520.56.06-2
    NVIDIA drivers utilities
$ xrandr -q                                                         

Screen 0: minimum 320 x 200, current 3840 x 2400, maximum 16384 x 16384
eDP-1 connected primary 3840x2400+0+0 (normal left inverted right x axis y axis) 344mm x 215mm
   3840x2400     60.00*+
   3840x2160     59.97  
   3200x1800     59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
$ lspci -k                                                          
00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
        Subsystem: Lenovo Device 22e4
00:01.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller #1 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: i915
        Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device_pci_legacy
00:06.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller #0 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:07.0 PCI bridge: Intel Corporation Tiger Lake-H Thunderbolt 4 PCI Express Root Port #1 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:07.2 PCI bridge: Intel Corporation Tiger Lake-H Thunderbolt 4 PCI Express Root Port #2 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:0d.0 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 USB Controller (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:0d.2 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 NHI #0 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: thunderbolt
        Kernel modules: thunderbolt
00:0d.3 USB controller: Intel Corporation Tiger Lake-H Thunderbolt 4 NHI #1 (rev 05)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: thunderbolt
        Kernel modules: thunderbolt
00:14.0 USB controller: Intel Corporation Tiger Lake-H USB 3.2 Gen 2x1 xHCI Host Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Tiger Lake-H Shared SRAM (rev 11)
        Subsystem: Lenovo Device 22e4
00:15.0 Serial bus controller: Intel Corporation Tiger Lake-H Serial IO I2C Controller #0 (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Tiger Lake-H Management Engine Interface (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:1c.0 PCI bridge: Intel Corporation Device 43b8 (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:1c.6 PCI bridge: Intel Corporation Device 43be (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Device 4389 (rev 11)
        Subsystem: Lenovo Device 22e4
00:1f.3 Multimedia audio controller: Intel Corporation Tiger Lake-H HD Audio Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: sof-audio-pci-intel-tgl
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Tiger Lake-H SMBus Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Tiger Lake-H SPI Controller (rev 11)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: intel-spi
        Kernel modules: spi_intel_pci
01:00.0 VGA compatible controller: NVIDIA Corporation GA107GLM [RTX A2000 Mobile] (rev a1)
        Subsystem: Lenovo Device 22e4
        Kernel modules: nouveau
01:00.1 Audio device: NVIDIA Corporation Device 2291 (rev a1)
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO
        Subsystem: Samsung Electronics Co Ltd Device a801
        Kernel driver in use: nvme
        Kernel modules: nvme
09:00.0 Network controller: Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz (rev 1a)
        Subsystem: Intel Corporation Wi-Fi 6 AX210 160MHz
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi
0a:00.0 SD Host controller: Genesys Logic, Inc GL9755 SD Host Controller
        Subsystem: Lenovo Device 22e4
        Kernel driver in use: sdhci-pci
        Kernel modules: sdhci_pci

Do you know what could be the cause?

Offline

#12 2022-12-21 11:14:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

A "naive" downgrade like that will install an incompatible kernel module for he current kernel. Install the appropriately older version of nvidia-dkms instead of the standard nvidia package as well as linux-headers for your current kernel.

Offline

#13 2022-12-21 12:38:19

guissou
Member
Registered: 2022-02-25
Posts: 16

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

V1del wrote:

A "naive" downgrade like that will install an incompatible kernel module for he current kernel. Install the appropriately older version of nvidia-dkms instead of the standard nvidia package as well as linux-headers for your current kernel.

Nice, it worked! Any advice for checking when the bug is solved and upgrading the nvidia packages to the last version?

Thanks a lot for your precious help seth and V1del!

Offline

#14 2022-12-21 13:48:12

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

Put the nvidia packages into your ignore list and check again when the actual driver version goes up past 525.60.11 (pacman will inform you on the version you aren't getting, pay attention to that) note that if you're unlucky the DKMS build with this older version might fail when the kernel bumps to 6.1 but hopefully a fixed release is out by then (or you might want to hold the kernel on 6.0.x for a bit in that case as well).

Offline

#15 2022-12-21 13:54:26

guissou
Member
Registered: 2022-02-25
Posts: 16

Re: [SOLVED] nvidia drivers and optimus manager: RTX A2000

Great, thank you!

Offline

Board footer

Powered by FluxBB