You are not logged in.

#1 2023-12-02 19:20:59

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

[SOLVED] SDDM loads before iGPU / uses dGPU

I have a laptop (Razer Blade 15 2021 w/ RTX 3070) that uses the dGPU to run SDDM when I'd rather use the iGPU. This keeps my dGPU on and consumes battery unecessarily

If I boot with an eGPU plugged in, it will use the iGPU as desired.

I'm guessing there's a race condition where SDDM is starting before the intel GPU has been able to setup. Is there a way I can configure SDDM to wait/depend on the intel GPU, but also allow it to start if there is in fact no intel GPU installed at all (i.e. drive moves to another PC)?

Thans

Last edited by RandomRanger (2023-12-03 01:51:24)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#2 2023-12-02 21:06:14

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

Try https://wiki.archlinux.org/title/Kernel … _KMS_start for i915 and in doubt post your xorg log(s)

Offline

#3 2023-12-02 21:54:58

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

I'm not so certain loading-order is my issue anymore. It looks like modesetting and nvidia modules are loaded. I don't know why booting with an eGPU connected would affect it though.

I've spent a lot of time troubleshooting this, but I fear I lack some prerequisite knowledge. Incase someone's able to help, I've included my xorg log below

[     5.170] (--) Log file renamed from "/var/log/Xorg.pid-738.log" to "/var/log/Xorg.0.log"
[     5.171] 
X.Org X Server 1.21.1.9
X Protocol Version 11, Revision 0
[     5.171] Current Operating System: Linux magos 6.6.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 29 Nov 2023 00:37:40 +0000 x86_64
[     5.171] Kernel command line: initrd=\intel-ucode.img initrd=\amd-ucode.img initrd=\initramfs-linux.img root="LABEL=Arch OS" rw nvidia_drm.modeset=1 button.lid_init_state=open resume=/dev/nvme0n1p2
[     5.171]  
[     5.171] Current version of pixman: 0.42.2
[     5.171] 	Before reporting problems, check [url]http://wiki.x.org[/url]
	to make sure that you have the latest version.
[     5.171] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     5.172] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Dec  2 13:58:14 2023
[     5.172] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     5.172] (==) No Layout section.  Using the first Screen section.
[     5.172] (==) No screen section available. Using defaults.
[     5.172] (**) |-->Screen "Default Screen Section" (0)
[     5.172] (**) |   |-->Monitor "<default monitor>"
[     5.172] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     5.172] (==) Automatically adding devices
[     5.172] (==) Automatically enabling devices
[     5.173] (==) Automatically adding GPU devices
[     5.173] (==) Automatically binding GPU devices
[     5.173] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     5.173] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     5.173] 	Entry deleted from font path.
[     5.173] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     5.173] 	Entry deleted from font path.
[     5.173] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     5.173] 	Entry deleted from font path.
[     5.174] (==) FontPath set to:
	/usr/share/fonts/TTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[     5.174] (==) ModulePath set to "/usr/lib/xorg/modules"
[     5.174] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     5.174] (II) Module ABI versions:
[     5.174] 	X.Org ANSI C Emulation: 0.4
[     5.174] 	X.Org Video Driver: 25.2
[     5.174] 	X.Org XInput driver : 24.4
[     5.174] 	X.Org Server Extension : 10.0
[     5.174] (++) using VT number 2

[     5.174] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     5.175] (II) xfree86: Adding drm device (/dev/dri/card1)
[     5.175] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[     5.196] (II) xfree86: Adding drm device (/dev/dri/card0)
[     5.196] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[     5.204] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[     5.205] (--) PCI:*(0@0:2:0) 8086:9bc4:1a58:2012 rev 5, Mem @ 0x6233000000/16777216, 0x4000000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[     5.205] (--) PCI: (1@0:0:0) 10de:249d:1a58:2012 rev 161, Mem @ 0xa3000000/16777216, 0x6000000000/8589934592, 0x6200000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[     5.205] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     5.205] (II) LoadModule: "glx"
[     5.205] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     5.209] (II) Module glx: vendor="X.Org Foundation"
[     5.209] 	compiled for 1.21.1.9, module version = 1.0.0
[     5.209] 	ABI class: X.Org Server Extension, version 10.0
[     5.209] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[     5.209] 	loading driver: nvidia
[     5.209] (==) Matched intel as autoconfigured driver 0
[     5.209] (==) Matched nvidia as autoconfigured driver 1
[     5.209] (==) Matched nouveau as autoconfigured driver 2
[     5.209] (==) Matched nv as autoconfigured driver 3
[     5.209] (==) Matched modesetting as autoconfigured driver 4
[     5.209] (==) Matched fbdev as autoconfigured driver 5
[     5.209] (==) Matched vesa as autoconfigured driver 6
[     5.209] (==) Assigned the driver to the xf86ConfigLayout
[     5.209] (II) LoadModule: "intel"
[     5.210] (WW) Warning, couldn't open module intel
[     5.210] (EE) Failed to load module "intel" (module does not exist, 0)
[     5.210] (II) LoadModule: "nvidia"
[     5.210] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     5.212] (II) Module nvidia: vendor="NVIDIA Corporation"
[     5.212] 	compiled for 1.6.99.901, module version = 1.0.0
[     5.212] 	Module class: X.Org Video Driver
[     5.212] (II) LoadModule: "nouveau"
[     5.212] (WW) Warning, couldn't open module nouveau
[     5.212] (EE) Failed to load module "nouveau" (module does not exist, 0)
[     5.212] (II) LoadModule: "nv"
[     5.213] (WW) Warning, couldn't open module nv
[     5.213] (EE) Failed to load module "nv" (module does not exist, 0)
[     5.213] (II) LoadModule: "modesetting"
[     5.213] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     5.214] (II) Module modesetting: vendor="X.Org Foundation"
[     5.214] 	compiled for 1.21.1.9, module version = 1.21.1
[     5.214] 	Module class: X.Org Video Driver
[     5.214] 	ABI class: X.Org Video Driver, version 25.2
[     5.214] (II) LoadModule: "fbdev"
[     5.214] (WW) Warning, couldn't open module fbdev
[     5.214] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     5.214] (II) LoadModule: "vesa"
[     5.214] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[     5.215] (II) Module vesa: vendor="X.Org Foundation"
[     5.215] 	compiled for 1.21.1.4, module version = 2.6.0
[     5.215] 	Module class: X.Org Video Driver
[     5.215] 	ABI class: X.Org Video Driver, version 25.2
[     5.215] (II) NVIDIA dlloader X Driver  545.29.06  Thu Nov 16 01:52:34 UTC 2023
[     5.215] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     5.215] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     5.215] (II) VESA: driver for VESA chipsets: vesa
[     5.236] (II) modeset(0): using drv /dev/dri/card0
[     5.237] (II) Loading sub module "fb"
[     5.237] (II) LoadModule: "fb"
[     5.237] (II) Module "fb" already built-in
[     5.237] (II) Loading sub module "wfb"
[     5.237] (II) LoadModule: "wfb"
[     5.237] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     5.238] (II) Module wfb: vendor="X.Org Foundation"
[     5.238] 	compiled for 1.21.1.9, module version = 1.0.0
[     5.238] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     5.239] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     5.239] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[     5.239] (==) modeset(0): RGB weight 888
[     5.239] (==) modeset(0): Default visual is TrueColor
[     5.239] (II) Loading sub module "glamoregl"
[     5.239] (II) LoadModule: "glamoregl"
[     5.239] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[     5.249] (II) Module glamoregl: vendor="X.Org Foundation"
[     5.249] 	compiled for 1.21.1.9, module version = 1.0.1
[     5.249] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     5.399] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) UHD Graphics (CML GT2)
[     5.399] (II) modeset(0): glamor initialized
[     5.399] (==) modeset(0): VariableRefresh: disabled
[     5.399] (==) modeset(0): AsyncFlipSecondaries: disabled
[     5.401] (II) modeset(0): Output eDP-1 has no monitor section
[     5.403] (II) modeset(0): EDID for output eDP-1
[     5.403] (II) modeset(0): Manufacturer: CMN  Model: 152a  Serial#: 0
[     5.403] (II) modeset(0): Year: 2020  Week: 16
[     5.403] (II) modeset(0): EDID Version: 1.4
[     5.403] (II) modeset(0): Digital Display Input
[     5.403] (II) modeset(0): 8 bits per channel
[     5.403] (II) modeset(0): Digital interface is DisplayPort
[     5.403] (II) modeset(0): Max Image Size [cm]: horiz.: 34  vert.: 19
[     5.403] (II) modeset(0): Gamma: 2.20
[     5.403] (II) modeset(0): No DPMS capabilities specified
[     5.403] (II) modeset(0): Supported color encodings: RGB 4:4:4 
[     5.403] (II) modeset(0): First detailed timing is preferred mode
[     5.403] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[     5.403] (II) modeset(0): Display is continuous-frequency
[     5.403] (II) modeset(0): redX: 0.680 redY: 0.320   greenX: 0.265 greenY: 0.690
[     5.403] (II) modeset(0): blueX: 0.150 blueY: 0.060   whiteX: 0.313 whiteY: 0.329
[     5.403] (II) modeset(0): Manufacturer's mask: 0
[     5.403] (II) modeset(0): Supported detailed timing:
[     5.403] (II) modeset(0): clock: 254.4 MHz   Image Size:  344 x 193 mm
[     5.403] (II) modeset(0): h_active: 2560  h_sync: 2608  h_sync_end 2640 h_blank_end 2720 h_border: 0
[     5.403] (II) modeset(0): v_active: 1440  v_sync: 1446  v_sync_end 1456 v_blanking: 1559 v_border: 0
[     5.403] (II) modeset(0): Ranges: V min: 48 V max: 165 Hz, H min: 257 H max: 257 kHz, PixClock max 705 MHz
[     5.403] (II) modeset(0):  CMN
[     5.403] (II) modeset(0):  N156KME-GNA
[     5.403] (II) modeset(0): Number of EDID sections to follow: 1
[     5.403] (II) modeset(0): EDID (in hex):
[     5.403] (II) modeset(0): 	00ffffffffffff000dae2a1500000000
[     5.403] (II) modeset(0): 	101e0104a5221378030f95ae5243b026
[     5.403] (II) modeset(0): 	0f505400000001010101010101010101
[     5.403] (II) modeset(0): 	010101010101636300a0a0a077503020
[     5.403] (II) modeset(0): 	6a0058c110000018000000fd0c30a502
[     5.403] (II) modeset(0): 	0246010a202020202020000000fe0043
[     5.403] (II) modeset(0): 	4d4e0a202020202020202020000000fe
[     5.403] (II) modeset(0): 	004e3135364b4d452d474e410a2001b0
[     5.403] (II) modeset(0): 	701379000003011450110184ff099f00
[     5.403] (II) modeset(0): 	2f001f009f0576000500090000000000
[     5.403] (II) modeset(0): 	00000000000000000000000000000000
[     5.403] (II) modeset(0): 	00000000000000000000000000000000
[     5.403] (II) modeset(0): 	00000000000000000000000000000000
[     5.403] (II) modeset(0): 	00000000000000000000000000000000
[     5.403] (II) modeset(0): 	00005435304157373832414631360000
[     5.403] (II) modeset(0): 	00000000000000000000000000007990
[     5.403] (II) modeset(0): Printing probed modes for output eDP-1
[     5.403] (II) modeset(0): Modeline "2560x1440"x60.0  254.43  2560 2608 2640 2720  1440 1446 1456 1559 -hsync -vsync (93.5 kHz eP)
[     5.403] (II) modeset(0): Modeline "2560x1440"x60.0  638.25  2560 2780 3064 3568  1440 1441 1444 1491 doublescan -hsync +vsync (178.9 kHz d)
[     5.403] (II) modeset(0): Modeline "2560x1440"x60.0  469.12  2560 2584 2600 2640  1440 1441 1444 1481 doublescan +hsync -vsync (177.7 kHz d)
[     5.403] (II) modeset(0): Modeline "2560x1440"x60.0  312.25  2560 2752 3024 3488  1440 1443 1448 1493 -hsync +vsync (89.5 kHz d)
[     5.403] (II) modeset(0): Modeline "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz d)
[     5.403] (II) modeset(0): Modeline "1920x1440"x60.0  234.00  1920 2048 2256 2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1856x1392"x60.0  218.30  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.4 kHz d)
[     5.403] (II) modeset(0): Modeline "1792x1344"x60.0  204.80  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.7 kHz d)
[     5.403] (II) modeset(0): Modeline "2048x1152"x60.0  406.50  2048 2220 2444 2840  1152 1153 1156 1193 doublescan -hsync +vsync (143.1 kHz d)
[     5.403] (II) modeset(0): Modeline "2048x1152"x60.0  302.50  2048 2072 2088 2128  1152 1153 1156 1185 doublescan +hsync -vsync (142.2 kHz d)
[     5.403] (II) modeset(0): Modeline "2048x1152"x59.9  197.00  2048 2184 2400 2752  1152 1155 1160 1195 -hsync +vsync (71.6 kHz d)
[     5.403] (II) modeset(0): Modeline "2048x1152"x59.9  156.75  2048 2096 2128 2208  1152 1155 1160 1185 +hsync -vsync (71.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz d)
[     5.403] (II) modeset(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1920x1080"x60.0  356.38  1920 2080 2288 2656  1080 1081 1084 1118 doublescan -hsync +vsync (134.2 kHz d)
[     5.403] (II) modeset(0): Modeline "1920x1080"x60.0  266.50  1920 1944 1960 2000  1080 1081 1084 1111 doublescan +hsync -vsync (133.2 kHz d)
[     5.403] (II) modeset(0): Modeline "1920x1080"x60.0  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz d)
[     5.403] (II) modeset(0): Modeline "1920x1080"x59.9  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync (66.6 kHz d)
[     5.403] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz d)
[     5.403] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz d)
[     5.403] (II) modeset(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[     5.403] (II) modeset(0): Modeline "1600x900"x60.0  246.00  1600 1728 1900 2200  900 901 904 932 doublescan -hsync +vsync (111.8 kHz d)
[     5.403] (II) modeset(0): Modeline "1600x900"x59.9  186.50  1600 1624 1640 1680  900 901 904 926 doublescan +hsync -vsync (111.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1600x900"x59.9  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync (56.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1600x900"x59.8   97.50  1600 1648 1680 1760  900 903 908 926 +hsync -vsync (55.4 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1400x900"x60.0  103.50  1400 1480 1624 1848  900 903 913 934 -hsync +vsync (56.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1400x900"x59.9   86.50  1400 1448 1480 1560  900 903 913 926 +hsync -vsync (55.4 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1440x810"x60.0  198.12  1440 1548 1704 1968  810 811 814 839 doublescan -hsync +vsync (100.7 kHz d)
[     5.403] (II) modeset(0): Modeline "1440x810"x60.0  151.88  1440 1464 1480 1520  810 811 814 833 doublescan +hsync -vsync (99.9 kHz d)
[     5.403] (II) modeset(0): Modeline "1368x768"x59.9   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync (47.8 kHz d)
[     5.403] (II) modeset(0): Modeline "1368x768"x59.9   72.25  1368 1416 1448 1528  768 771 781 790 +hsync -vsync (47.3 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x800"x60.0  174.25  1280 1380 1516 1752  800 801 804 829 doublescan -hsync +vsync (99.5 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x800"x60.0  134.25  1280 1304 1320 1360  800 801 804 823 doublescan +hsync -vsync (98.7 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x720"x60.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x720"x60.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[     5.403] (II) modeset(0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[     5.403] (II) modeset(0): Modeline "1024x768"x60.0  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[     5.403] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[     5.403] (II) modeset(0): Modeline "960x720"x60.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[     5.403] (II) modeset(0): Modeline "928x696"x60.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[     5.403] (II) modeset(0): Modeline "896x672"x60.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[     5.403] (II) modeset(0): Modeline "1024x576"x60.0   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[     5.403] (II) modeset(0): Modeline "1024x576"x60.0   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[     5.403] (II) modeset(0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[     5.403] (II) modeset(0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[     5.403] (II) modeset(0): Modeline "960x600"x59.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[     5.403] (II) modeset(0): Modeline "960x600"x60.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[     5.403] (II) modeset(0): Modeline "960x540"x60.0   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[     5.403] (II) modeset(0): Modeline "960x540"x60.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[     5.403] (II) modeset(0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[     5.403] (II) modeset(0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[     5.403] (II) modeset(0): Modeline "800x600"x60.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[     5.403] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[     5.403] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[     5.403] (II) modeset(0): Modeline "840x525"x60.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[     5.403] (II) modeset(0): Modeline "840x525"x59.9   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[     5.403] (II) modeset(0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[     5.403] (II) modeset(0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[     5.403] (II) modeset(0): Modeline "700x525"x60.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[     5.403] (II) modeset(0): Modeline "800x450"x59.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[     5.403] (II) modeset(0): Modeline "800x450"x59.8   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[     5.403] (II) modeset(0): Modeline "640x512"x60.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[     5.403] (II) modeset(0): Modeline "700x450"x60.0   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[     5.403] (II) modeset(0): Modeline "700x450"x59.9   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[     5.403] (II) modeset(0): Modeline "640x480"x60.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[     5.403] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[     5.403] (II) modeset(0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[     5.403] (II) modeset(0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[     5.403] (II) modeset(0): Modeline "684x384"x59.9   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[     5.403] (II) modeset(0): Modeline "684x384"x59.9   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[     5.403] (II) modeset(0): Modeline "640x400"x59.9   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[     5.403] (II) modeset(0): Modeline "640x400"x60.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[     5.403] (II) modeset(0): Modeline "640x360"x59.9   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[     5.403] (II) modeset(0): Modeline "640x360"x59.8   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[     5.403] (II) modeset(0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[     5.403] (II) modeset(0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[     5.403] (II) modeset(0): Modeline "512x384"x60.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[     5.403] (II) modeset(0): Modeline "512x288"x60.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[     5.403] (II) modeset(0): Modeline "512x288"x59.9   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[     5.403] (II) modeset(0): Modeline "480x270"x59.6   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[     5.403] (II) modeset(0): Modeline "480x270"x59.8   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[     5.403] (II) modeset(0): Modeline "400x300"x60.3   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[     5.403] (II) modeset(0): Modeline "400x300"x56.3   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[     5.403] (II) modeset(0): Modeline "432x243"x59.9   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[     5.403] (II) modeset(0): Modeline "432x243"x59.6   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[     5.403] (II) modeset(0): Modeline "320x240"x60.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[     5.403] (II) modeset(0): Modeline "360x202"x59.5   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[     5.403] (II) modeset(0): Modeline "360x202"x59.1   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[     5.403] (II) modeset(0): Modeline "320x180"x59.8    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[     5.403] (II) modeset(0): Modeline "320x180"x59.3    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[     5.403] (II) modeset(0): Output eDP-1 connected
[     5.403] (II) modeset(0): Using exact sizes for initial modes
[     5.403] (II) modeset(0): Output eDP-1 using initial mode 2560x1440 +0+0
[     5.403] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[     5.403] (==) modeset(0): DPI set to (96, 96)
[     5.403] (II) Loading sub module "fb"
[     5.403] (II) LoadModule: "fb"
[     5.403] (II) Module "fb" already built-in
[     5.403] (==) NVIDIA(G0): Depth 24, (==) framebuffer bpp 32
[     5.403] (==) NVIDIA(G0): RGB weight 888
[     5.403] (==) NVIDIA(G0): Default visual is TrueColor
[     5.403] (==) NVIDIA(G0): Using gamma correction (1.0, 1.0, 1.0)
[     5.403] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[     5.403] (**) NVIDIA(G0): Option "AllowEmptyInitialConfiguration"
[     5.404] (**) NVIDIA(G0): Enabling 2D acceleration
[     5.404] (II) Loading sub module "glxserver_nvidia"
[     5.404] (II) LoadModule: "glxserver_nvidia"
[     5.404] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[     5.422] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[     5.422] 	compiled for 1.6.99.901, module version = 1.0.0
[     5.422] 	Module class: X.Org Server Extension
[     5.422] (II) NVIDIA GLX Module  545.29.06  Thu Nov 16 01:55:23 UTC 2023
[     5.423] (II) NVIDIA: The X server supports PRIME Render Offload.
[     5.423] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[     5.423] (--) NVIDIA(0):     DFP-0
[     5.423] (--) NVIDIA(0):     DFP-1
[     5.423] (--) NVIDIA(0):     DFP-2
[     5.423] (--) NVIDIA(0):     DFP-3
[     5.423] (--) NVIDIA(0):     DFP-4
[     5.423] (--) NVIDIA(0):     DFP-5
[     5.423] (--) NVIDIA(0):     DFP-6
[     5.424] (II) NVIDIA(G0): NVIDIA GPU NVIDIA GeForce RTX 3070 Laptop GPU (GA104-A) at
[     5.424] (II) NVIDIA(G0):     PCI:1:0:0 (GPU-0)
[     5.424] (--) NVIDIA(G0): Memory: 8388608 kBytes
[     5.424] (--) NVIDIA(G0): VideoBIOS: 94.04.40.00.18
[     5.424] (II) NVIDIA(G0): Detected PCI Express Link width: 16X
[     5.424] (--) NVIDIA(GPU-0): DFP-0: disconnected
[     5.424] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[     5.424] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[     5.424] (--) NVIDIA(GPU-0): 
[     5.424] (--) NVIDIA(GPU-0): DFP-1: disconnected
[     5.424] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[     5.424] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[     5.424] (--) NVIDIA(GPU-0): 
[     5.424] (--) NVIDIA(GPU-0): DFP-2: disconnected
[     5.424] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[     5.424] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[     5.424] (--) NVIDIA(GPU-0): 
[     5.424] (--) NVIDIA(GPU-0): DFP-3: disconnected
[     5.424] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[     5.424] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[     5.424] (--) NVIDIA(GPU-0): 
[     5.424] (--) NVIDIA(GPU-0): DFP-4: disconnected
[     5.424] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[     5.424] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[     5.424] (--) NVIDIA(GPU-0): 
[     5.424] (--) NVIDIA(GPU-0): DFP-5: disconnected
[     5.424] (--) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[     5.424] (--) NVIDIA(GPU-0): DFP-5: 2670.0 MHz maximum pixel clock
[     5.424] (--) NVIDIA(GPU-0): 
[     5.424] (--) NVIDIA(GPU-0): DFP-6: disconnected
[     5.424] (--) NVIDIA(GPU-0): DFP-6: Internal TMDS
[     5.424] (--) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[     5.424] (--) NVIDIA(GPU-0): 
[     5.429] (II) NVIDIA(G0): Validated MetaModes:
[     5.429] (II) NVIDIA(G0):     "NULL"
[     5.429] (II) NVIDIA(G0): Virtual screen size determined to be 640 x 480
[     5.429] (WW) NVIDIA(G0): Unable to get display device for DPI computation.
[     5.429] (==) NVIDIA(G0): DPI set to (75, 75); computed from built-in default
[     5.429] (II) UnloadModule: "vesa"
[     5.429] (II) Unloading vesa
[     5.443] (==) modeset(0): Backing store enabled
[     5.443] (==) modeset(0): Silken mouse enabled
[     5.520] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[     5.520] (==) modeset(0): DPMS enabled
[     5.521] (II) modeset(0): [DRI2] Setup complete
[     5.521] (II) modeset(0): [DRI2]   DRI driver: iris
[     5.521] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
[     5.521] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
[     5.521] (II) NVIDIA:     access.
[     5.536] (II) NVIDIA(G0): ACPI: failed to connect to the ACPI event daemon; the daemon
[     5.536] (II) NVIDIA(G0):     may not be running or the "AcpidSocketPath" X
[     5.536] (II) NVIDIA(G0):     configuration option may not be set correctly.  When the
[     5.536] (II) NVIDIA(G0):     ACPI event daemon is available, the NVIDIA X driver will
[     5.536] (II) NVIDIA(G0):     try to use it to receive ACPI event notifications.  For
[     5.536] (II) NVIDIA(G0):     details, please see the "ConnectToAcpid" and
[     5.536] (II) NVIDIA(G0):     "AcpidSocketPath" X configuration options in Appendix B: X
[     5.536] (II) NVIDIA(G0):     Config Options in the README.
[     5.582] (II) NVIDIA(G0): Setting mode "NULL"
[     5.595] (==) NVIDIA(G0): Disabling shared memory pixmaps
[     5.595] (==) NVIDIA(G0): Backing store enabled
[     5.595] (==) NVIDIA(G0): Silken mouse enabled
[     5.595] (==) NVIDIA(G0): DPMS enabled
[     5.595] (II) Loading sub module "dri2"
[     5.595] (II) LoadModule: "dri2"
[     5.595] (II) Module "dri2" already built-in
[     5.595] (II) NVIDIA(G0): [DRI2] Setup complete
[     5.595] (II) NVIDIA(G0): [DRI2]   VDPAU driver: nvidia
[     5.595] (II) Initializing extension Generic Event Extension
[     5.596] (II) Initializing extension SHAPE
[     5.596] (II) Initializing extension MIT-SHM
[     5.596] (II) Initializing extension XInputExtension
[     5.596] (II) Initializing extension XTEST
[     5.596] (II) Initializing extension BIG-REQUESTS
[     5.596] (II) Initializing extension SYNC
[     5.596] (II) Initializing extension XKEYBOARD
[     5.596] (II) Initializing extension XC-MISC
[     5.596] (II) Initializing extension SECURITY
[     5.596] (II) Initializing extension XFIXES
[     5.596] (II) Initializing extension RENDER
[     5.596] (II) Initializing extension RANDR
[     5.596] (II) Initializing extension COMPOSITE
[     5.597] (II) Initializing extension DAMAGE
[     5.597] (II) Initializing extension MIT-SCREEN-SAVER
[     5.597] (II) Initializing extension DOUBLE-BUFFER
[     5.597] (II) Initializing extension RECORD
[     5.597] (II) Initializing extension DPMS
[     5.597] (II) Initializing extension Present
[     5.597] (II) Initializing extension DRI3
[     5.597] (II) Initializing extension X-Resource
[     5.597] (II) Initializing extension XVideo
[     5.597] (II) Initializing extension XVideo-MotionCompensation
[     5.597] (II) Initializing extension GLX
[     5.597] (II) Initializing extension GLX
[     5.597] (II) Indirect GLX disabled.
[     5.602] (II) AIGLX: Loaded and initialized iris
[     5.602] (II) GLX: Initialized DRI2 GL provider for screen 0
[     5.602] (II) Initializing extension XFree86-VidModeExtension
[     5.602] (II) Initializing extension XFree86-DGA
[     5.602] (II) Initializing extension XFree86-DRI
[     5.602] (II) Initializing extension DRI2
[     5.602] (II) Initializing extension NV-GLX
[     5.602] (II) Initializing extension NV-CONTROL
[     5.602] (II) modeset(0): Damage tracking initialized
[     5.602] (II) modeset(0): Setting screen physical size to 677 x 381
[     5.650] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[     5.650] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[     5.650] (II) LoadModule: "libinput"
[     5.650] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[     5.652] (II) Module libinput: vendor="X.Org Foundation"
[     5.652] 	compiled for 1.21.1.8, module version = 1.4.0
[     5.652] 	Module class: X.Org XInput Driver
[     5.652] 	ABI class: X.Org XInput driver, version 24.4
[     5.652] (II) Using input driver 'libinput' for 'Power Button'
[     5.652] (**) Power Button: always reports core events
[     5.652] (**) Option "Device" "/dev/input/event2"
[     5.655] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     5.655] (II) event2  - Power Button: device is a keyboard
[     5.655] (II) event2  - Power Button: device removed
[     5.680] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[     5.680] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[     5.682] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     5.682] (II) event2  - Power Button: device is a keyboard
[     5.683] (II) config/udev: Adding input device Video Bus (/dev/input/event10)
[     5.683] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[     5.683] (II) Using input driver 'libinput' for 'Video Bus'
[     5.683] (**) Video Bus: always reports core events
[     5.683] (**) Option "Device" "/dev/input/event10"
[     5.685] (II) event10 - Video Bus: is tagged by udev as: Keyboard
[     5.685] (II) event10 - Video Bus: device is a keyboard
[     5.685] (II) event10 - Video Bus: device removed
[     5.726] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input14/event10"
[     5.726] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[     5.729] (II) event10 - Video Bus: is tagged by udev as: Keyboard
[     5.729] (II) event10 - Video Bus: device is a keyboard
[     5.731] (II) config/udev: Adding input device Video Bus (/dev/input/event11)
[     5.731] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[     5.731] (II) Using input driver 'libinput' for 'Video Bus'
[     5.731] (**) Video Bus: always reports core events
[     5.731] (**) Option "Device" "/dev/input/event11"
[     5.733] (II) event11 - Video Bus: is tagged by udev as: Keyboard
[     5.733] (II) event11 - Video Bus: device is a keyboard
[     5.733] (II) event11 - Video Bus: device removed
[     5.770] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:13/LNXVIDEO:01/input/input15/event11"
[     5.770] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[     5.772] (II) event11 - Video Bus: is tagged by udev as: Keyboard
[     5.773] (II) event11 - Video Bus: device is a keyboard
[     5.774] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[     5.774] (II) No input driver specified, ignoring this device.
[     5.774] (II) This device may have been added with another device file.
[     5.776] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[     5.776] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[     5.776] (II) Using input driver 'libinput' for 'Power Button'
[     5.776] (**) Power Button: always reports core events
[     5.776] (**) Option "Device" "/dev/input/event1"
[     5.777] (II) event1  - Power Button: is tagged by udev as: Keyboard
[     5.777] (II) event1  - Power Button: device is a keyboard
[     5.778] (II) event1  - Power Button: device removed
[     5.796] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[     5.797] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[     5.799] (II) event1  - Power Button: is tagged by udev as: Keyboard
[     5.799] (II) event1  - Power Button: device is a keyboard
[     5.801] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event17)
[     5.801] (II) No input driver specified, ignoring this device.
[     5.801] (II) This device may have been added with another device file.
[     5.802] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event18)
[     5.802] (II) No input driver specified, ignoring this device.
[     5.802] (II) This device may have been added with another device file.
[     5.802] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event19)
[     5.803] (II) No input driver specified, ignoring this device.
[     5.803] (II) This device may have been added with another device file.
[     5.803] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=9 (/dev/input/event20)
[     5.803] (II) No input driver specified, ignoring this device.
[     5.803] (II) This device may have been added with another device file.
[     5.805] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/event4)
[     5.805] (**) Razer Razer Blade: Applying InputClass "libinput keyboard catchall"
[     5.805] (II) Using input driver 'libinput' for 'Razer Razer Blade'
[     5.805] (**) Razer Razer Blade: always reports core events
[     5.805] (**) Option "Device" "/dev/input/event4"
[     5.808] (II) event4  - Razer Razer Blade: is tagged by udev as: Keyboard
[     5.808] (II) event4  - Razer Razer Blade: device is a keyboard
[     5.810] (II) event4  - Razer Razer Blade: device removed
[     5.836] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:1532:026F.0001/input/input3/event4"
[     5.836] (II) XINPUT: Adding extended input device "Razer Razer Blade" (type: KEYBOARD, id 10)
[     5.840] (II) event4  - Razer Razer Blade: is tagged by udev as: Keyboard
[     5.840] (II) event4  - Razer Razer Blade: device is a keyboard
[     5.843] (II) config/udev: Adding input device Razer Razer Blade Keyboard (/dev/input/event5)
[     5.843] (**) Razer Razer Blade Keyboard: Applying InputClass "libinput keyboard catchall"
[     5.843] (II) Using input driver 'libinput' for 'Razer Razer Blade Keyboard'
[     5.843] (**) Razer Razer Blade Keyboard: always reports core events
[     5.843] (**) Option "Device" "/dev/input/event5"
[     5.846] (II) event5  - Razer Razer Blade Keyboard: is tagged by udev as: Keyboard
[     5.846] (II) event5  - Razer Razer Blade Keyboard: device is a keyboard
[     5.848] (II) event5  - Razer Razer Blade Keyboard: device removed
[     5.883] (II) libinput: Razer Razer Blade Keyboard: needs a virtual subdevice
[     5.883] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:1532:026F.0002/input/input5/event5"
[     5.883] (II) XINPUT: Adding extended input device "Razer Razer Blade Keyboard" (type: MOUSE, id 11)
[     5.883] (**) Option "AccelerationScheme" "none"
[     5.883] (**) Razer Razer Blade Keyboard: (accel) selected scheme none/0
[     5.883] (**) Razer Razer Blade Keyboard: (accel) acceleration factor: 2.000
[     5.883] (**) Razer Razer Blade Keyboard: (accel) acceleration threshold: 4
[     5.887] (II) event5  - Razer Razer Blade Keyboard: is tagged by udev as: Keyboard
[     5.887] (II) event5  - Razer Razer Blade Keyboard: device is a keyboard
[     5.890] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/event6)
[     5.890] (II) No input driver specified, ignoring this device.
[     5.890] (II) This device may have been added with another device file.
[     5.892] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/event7)
[     5.892] (**) Razer Razer Blade: Applying InputClass "libinput pointer catchall"
[     5.892] (II) Using input driver 'libinput' for 'Razer Razer Blade'
[     5.892] (**) Razer Razer Blade: always reports core events
[     5.892] (**) Option "Device" "/dev/input/event7"
[     5.950] (II) event7  - Razer Razer Blade: is tagged by udev as: Mouse
[     5.950] (II) event7  - Razer Razer Blade: device is a pointer
[     5.951] (II) event7  - Razer Razer Blade: device removed
[     5.990] (II) libinput: Razer Razer Blade: Step value 0 was provided, libinput Fallback acceleration function is used.
[     5.990] (II) libinput: Razer Razer Blade: Step value 0 was provided, libinput Fallback acceleration function is used.
[     5.990] (II) libinput: Razer Razer Blade: Step value 0 was provided, libinput Fallback acceleration function is used.
[     5.990] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:1532:026F.0003/input/input7/event7"
[     5.990] (II) XINPUT: Adding extended input device "Razer Razer Blade" (type: MOUSE, id 12)
[     5.990] (**) Option "AccelerationScheme" "none"
[     5.990] (**) Razer Razer Blade: (accel) selected scheme none/0
[     5.990] (**) Razer Razer Blade: (accel) acceleration factor: 2.000
[     5.990] (**) Razer Razer Blade: (accel) acceleration threshold: 4
[     6.049] (II) event7  - Razer Razer Blade: is tagged by udev as: Mouse
[     6.050] (II) event7  - Razer Razer Blade: device is a pointer
[     6.052] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/mouse0)
[     6.052] (II) No input driver specified, ignoring this device.
[     6.052] (II) This device may have been added with another device file.
[     6.054] (II) config/udev: Adding input device 1A582012:00 06CB:CD73 Mouse (/dev/input/event8)
[     6.054] (**) 1A582012:00 06CB:CD73 Mouse: Applying InputClass "libinput pointer catchall"
[     6.054] (II) Using input driver 'libinput' for '1A582012:00 06CB:CD73 Mouse'
[     6.054] (**) 1A582012:00 06CB:CD73 Mouse: always reports core events
[     6.054] (**) Option "Device" "/dev/input/event8"
[     6.056] (II) event8  - 1A582012:00 06CB:CD73 Mouse: is tagged by udev as: Mouse Pointingstick
[     6.058] (II) event8  - 1A582012:00 06CB:CD73 Mouse: device is a pointer
[     6.060] (II) event8  - 1A582012:00 06CB:CD73 Mouse: device removed
[     6.100] (II) libinput: 1A582012:00 06CB:CD73 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[     6.100] (II) libinput: 1A582012:00 06CB:CD73 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[     6.100] (II) libinput: 1A582012:00 06CB:CD73 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[     6.100] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-1A582012:00/0018:06CB:CD73.0004/input/input11/event8"
[     6.100] (II) XINPUT: Adding extended input device "1A582012:00 06CB:CD73 Mouse" (type: MOUSE, id 13)
[     6.100] (**) Option "AccelerationScheme" "none"
[     6.100] (**) 1A582012:00 06CB:CD73 Mouse: (accel) selected scheme none/0
[     6.100] (**) 1A582012:00 06CB:CD73 Mouse: (accel) acceleration factor: 2.000
[     6.100] (**) 1A582012:00 06CB:CD73 Mouse: (accel) acceleration threshold: 4
[     6.103] (II) event8  - 1A582012:00 06CB:CD73 Mouse: is tagged by udev as: Mouse Pointingstick
[     6.104] (II) event8  - 1A582012:00 06CB:CD73 Mouse: device is a pointer
[     6.108] (II) config/udev: Adding input device 1A582012:00 06CB:CD73 Mouse (/dev/input/mouse1)
[     6.108] (II) No input driver specified, ignoring this device.
[     6.108] (II) This device may have been added with another device file.
[     6.109] (II) config/udev: Adding input device 1A582012:00 06CB:CD73 Touchpad (/dev/input/event9)
[     6.109] (**) 1A582012:00 06CB:CD73 Touchpad: Applying InputClass "libinput touchpad catchall"
[     6.109] (II) Using input driver 'libinput' for '1A582012:00 06CB:CD73 Touchpad'
[     6.109] (**) 1A582012:00 06CB:CD73 Touchpad: always reports core events
[     6.109] (**) Option "Device" "/dev/input/event9"
[     6.112] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: is tagged by udev as: Touchpad
[     6.118] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: device is a touchpad
[     6.119] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: device removed
[     6.156] (II) libinput: 1A582012:00 06CB:CD73 Touchpad: Step value 0 was provided, libinput Fallback acceleration function is used.
[     6.156] (II) libinput: 1A582012:00 06CB:CD73 Touchpad: Step value 0 was provided, libinput Fallback acceleration function is used.
[     6.156] (II) libinput: 1A582012:00 06CB:CD73 Touchpad: Step value 0 was provided, libinput Fallback acceleration function is used.
[     6.157] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-1A582012:00/0018:06CB:CD73.0004/input/input12/event9"
[     6.157] (II) XINPUT: Adding extended input device "1A582012:00 06CB:CD73 Touchpad" (type: TOUCHPAD, id 14)
[     6.162] (**) Option "AccelerationScheme" "none"
[     6.162] (**) 1A582012:00 06CB:CD73 Touchpad: (accel) selected scheme none/0
[     6.162] (**) 1A582012:00 06CB:CD73 Touchpad: (accel) acceleration factor: 2.000
[     6.162] (**) 1A582012:00 06CB:CD73 Touchpad: (accel) acceleration threshold: 4
[     6.165] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: is tagged by udev as: Touchpad
[     6.170] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: device is a touchpad
[     6.172] (II) config/udev: Adding input device 1A582012:00 06CB:CD73 Touchpad (/dev/input/mouse2)
[     6.172] (II) No input driver specified, ignoring this device.
[     6.172] (II) This device may have been added with another device file.
[     6.173] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event12)
[     6.173] (II) No input driver specified, ignoring this device.
[     6.173] (II) This device may have been added with another device file.
[     6.174] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event13)
[     6.174] (II) No input driver specified, ignoring this device.
[     6.174] (II) This device may have been added with another device file.
[     6.175] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event14)
[     6.175] (II) No input driver specified, ignoring this device.
[     6.175] (II) This device may have been added with another device file.
[     6.175] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event15)
[     6.176] (II) No input driver specified, ignoring this device.
[     6.176] (II) This device may have been added with another device file.
[     6.176] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event16)
[     6.176] (II) No input driver specified, ignoring this device.
[     6.176] (II) This device may have been added with another device file.
[     6.177] (II) config/udev: Adding input device PC Speaker (/dev/input/event3)
[     6.177] (II) No input driver specified, ignoring this device.
[     6.177] (II) This device may have been added with another device file.
[     6.216] (**) Razer Razer Blade Keyboard: Applying InputClass "libinput keyboard catchall"
[     6.216] (II) Using input driver 'libinput' for 'Razer Razer Blade Keyboard'
[     6.216] (**) Razer Razer Blade Keyboard: always reports core events
[     6.216] (**) Option "Device" "/dev/input/event5"
[     6.216] (II) libinput: Razer Razer Blade Keyboard: is a virtual subdevice
[     6.216] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:1532:026F.0002/input/input5/event5"
[     6.216] (II) XINPUT: Adding extended input device "Razer Razer Blade Keyboard" (type: KEYBOARD, id 15)
[     6.520] (II) event2  - Power Button: device removed
[     6.567] (II) event10 - Video Bus: device removed
[     6.627] (II) event11 - Video Bus: device removed
[     6.663] (II) event1  - Power Button: device removed
[     6.680] (II) event4  - Razer Razer Blade: device removed
[     6.697] (II) event7  - Razer Razer Blade: device removed
[     6.730] (II) event8  - 1A582012:00 06CB:CD73 Mouse: device removed
[     6.763] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: device removed
[     6.807] (II) event5  - Razer Razer Blade Keyboard: device removed
[     6.823] (II) AIGLX: Suspending AIGLX clients for VT switch
[   360.519] (II) AIGLX: Resuming AIGLX clients after VT switch
[   360.584] (II) modeset(0): EDID vendor "CMN", prod id 5418
[   360.584] (II) modeset(0): Using EDID range info for horizontal sync
[   360.584] (II) modeset(0): Using EDID range info for vertical refresh
[   360.584] (II) modeset(0): Printing DDC gathered Modelines:
[   360.584] (II) modeset(0): Modeline "2560x1440"x0.0  254.43  2560 2608 2640 2720  1440 1446 1456 1559 -hsync -vsync (93.5 kHz eP)
[   360.683] (II) modeset(0): EDID vendor "CMN", prod id 5418
[   360.683] (II) modeset(0): Using hsync ranges from config file
[   360.683] (II) modeset(0): Using vrefresh ranges from config file
[   360.683] (II) modeset(0): Printing DDC gathered Modelines:
[   360.683] (II) modeset(0): Modeline "2560x1440"x0.0  254.43  2560 2608 2640 2720  1440 1446 1456 1559 -hsync -vsync (93.5 kHz eP)
[   360.700] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   360.700] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   360.700] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   360.700] (--) NVIDIA(GPU-0): 
[   360.700] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   360.700] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   360.700] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   360.700] (--) NVIDIA(GPU-0): 
[   360.700] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   360.700] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   360.700] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   360.700] (--) NVIDIA(GPU-0): 
[   360.700] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   360.700] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   360.700] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   360.700] (--) NVIDIA(GPU-0): 
[   360.708] (--) NVIDIA(GPU-0): DFP-4: disconnected
[   360.708] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[   360.708] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[   360.708] (--) NVIDIA(GPU-0): 
[   360.708] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   360.708] (--) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[   360.708] (--) NVIDIA(GPU-0): DFP-5: 2670.0 MHz maximum pixel clock
[   360.708] (--) NVIDIA(GPU-0): 
[   360.709] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   360.709] (--) NVIDIA(GPU-0): DFP-6: Internal TMDS
[   360.709] (--) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[   360.709] (--) NVIDIA(GPU-0): 
[   360.773] (II) NVIDIA(G0): Setting mode "NULL"
[   360.802] (II) NVIDIA(G0): ACPI: failed to connect to the ACPI event daemon; the daemon
[   360.802] (II) NVIDIA(G0):     may not be running or the "AcpidSocketPath" X
[   360.802] (II) NVIDIA(G0):     configuration option may not be set correctly.  When the
[   360.802] (II) NVIDIA(G0):     ACPI event daemon is available, the NVIDIA X driver will
[   360.802] (II) NVIDIA(G0):     try to use it to receive ACPI event notifications.  For
[   360.802] (II) NVIDIA(G0):     details, please see the "ConnectToAcpid" and
[   360.802] (II) NVIDIA(G0):     "AcpidSocketPath" X configuration options in Appendix B: X
[   360.802] (II) NVIDIA(G0):     Config Options in the README.
[   360.817] (II) event2  - Power Button: is tagged by udev as: Keyboard
[   360.817] (II) event2  - Power Button: device is a keyboard
[   360.818] (II) event10 - Video Bus: is tagged by udev as: Keyboard
[   360.818] (II) event10 - Video Bus: device is a keyboard
[   360.818] (II) event11 - Video Bus: is tagged by udev as: Keyboard
[   360.818] (II) event11 - Video Bus: device is a keyboard
[   360.818] (II) event1  - Power Button: is tagged by udev as: Keyboard
[   360.819] (II) event1  - Power Button: device is a keyboard
[   360.819] (II) event4  - Razer Razer Blade: is tagged by udev as: Keyboard
[   360.819] (II) event4  - Razer Razer Blade: device is a keyboard
[   360.820] (II) event5  - Razer Razer Blade Keyboard: is tagged by udev as: Keyboard
[   360.820] (II) event5  - Razer Razer Blade Keyboard: device is a keyboard
[   360.821] (II) event7  - Razer Razer Blade: is tagged by udev as: Mouse
[   360.821] (II) event7  - Razer Razer Blade: device is a pointer
[   360.822] (II) event8  - 1A582012:00 06CB:CD73 Mouse: is tagged by udev as: Mouse Pointingstick
[   360.822] (II) event8  - 1A582012:00 06CB:CD73 Mouse: device is a pointer
[   360.823] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: is tagged by udev as: Touchpad
[   360.824] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: device is a touchpad
[   364.150] (II) event2  - Power Button: device removed
[   364.183] (II) event10 - Video Bus: device removed
[   364.243] (II) event11 - Video Bus: device removed
[   364.287] (II) event1  - Power Button: device removed
[   364.303] (II) event4  - Razer Razer Blade: device removed
[   364.330] (II) event7  - Razer Razer Blade: device removed
[   364.373] (II) event8  - 1A582012:00 06CB:CD73 Mouse: device removed
[   364.407] (II) event9  - 1A582012:00 06CB:CD73 Touchpad: device removed
[   364.460] (II) event5  - Razer Razer Blade Keyboard: device removed
[   364.490] (II) AIGLX: Suspending AIGLX clients for VT switch
[   964.419] (WW) NVIDIA(G0): Failed to set the display configuration
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 0 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 1 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 2 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 3 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0): Failed to set the display configuration
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 0 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 1 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 2 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 3 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0): Failed to set DPMS to off

Last edited by RandomRanger (2023-12-02 22:17:23)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#4 2023-12-02 22:03:51

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

Please use [code][/code] tags. Edit your post in this regard.

You're running the i915 chip on the modesetting driver, the nvidia chip is available for prime offload.

The only weird thing is

[   964.419] (WW) NVIDIA(G0): Failed to set the display configuration
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 0 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 1 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 2 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 3 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0): Failed to set the display configuration
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 0 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 1 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 2 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0):  - Setting a mode on head 3 failed: Insufficient permissions
[   964.419] (WW) NVIDIA(G0): Failed to set DPMS to off

If you're concerned about the xorg process showing up in nvidia-smi, that's normal and doesn't mean the chip draws any power. Only that the process "occupies" the driver.
Ampére should also default to https://wiki.archlinux.org/title/PRIME# … Management - do not run nvidia-smi when testing the power_state, it'll activate the chip to poll it.

Offline

#5 2023-12-02 22:27:47

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

Thanks, I wasn't sure what the formatting was for code.

I have a powerdraw metric running through polybar, so I know the GPU is drawing power without running nvidia-smi / nvtop, and I can see it not draw power if the laptop boots initially with the eGPU.

Last edited by RandomRanger (2023-12-02 22:28:14)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#6 2023-12-02 22:38:54

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

What "powerdraw metric" - do you *know* it's the GPU or just that *something's* drawing power (could be the iGPU, could be the eDP)
Please check the D3 runtime_status and runtime_suspended_time first.
Then check nvidia-smi to see whether some other process might generate side-load, "printenv" to see whether you globaly enabled DRI_PRIME

If none of that is the case but the D3 isn't "suspended", explicitly add udev rule and kernel parameter.

Offline

#7 2023-12-03 00:45:05

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

Polybar and powertop can read the draw from battery, so I was referencing that. I can see a noticable +10-20W draw over the expected draw when I disable the nvidia gpu by other less user friendly means.
It would appear that my D3 status is as follows, and doesn't seem to change. It's my understanding that should say suspended, not active.

Runtime D3 status:          Enabled (fine-grained)

Admittedly, I am uncertain how to check runtime_suspended_time

printenv does not show any DRI_PRIME parameters (

printenv | grep DRI

returned no results)

I'll look into the udev rules as you suggested

Edit, found how to get the suspended time. It's not changing.

Last edited by RandomRanger (2023-12-03 00:57:44)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#8 2023-12-03 01:08:10

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

I've followed the guides here to add udev rules, and my D3 status is still active and suspended time is not incrementing consistently.
https://wiki.archlinux.org/title/PRIME# … er_offload

It looks like I may fall into this category of users:
"Some users with hybrid graphics are reporting that their discrete NVIDIA Ampere GPUs are failing to remain in the D3Cold power state after upgrading to newer NVIDIA drivers (seemingly >525) [1]."

My gpu goes from D3cold while on AC to D0 while on battery, as described in the bug report. I'm pretty sure that note wasn't on there last time I looked. I looked at the logs from when I connected the eGPU as well, and saw it was simply unmounting the nvidia devices because I didn't have "AllowEGPUS" turned on, so I'm guessing it was turning the gpu off... but only because it was unusable. Thanks for trying to help Seth.

Last edited by RandomRanger (2023-12-03 01:51:02)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#9 2023-12-03 08:05:10

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

You can get the (dkms version of) older driver versions from https://wiki.archlinux.org/title/Arch_Linux_Archive

But even if not completely powered down, 20W is WAY too much for an inactive GPU.
What does nvidia-smi report and what does your xorg log look like?
Probably also your system journal (all w/o the eGPU not not complicate the data)

https://wiki.archlinux.org/title/Xorg#General

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#10 2023-12-09 20:04:43

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

On a hunch, I shut down my display manager (sddm) and ran the following to watch my gpu state

watch -n cat /sys/class/drm/card1/device/power_state

What I saw was that on battery it would stay in D0, except about every 21-22 seconds it would go into D3hot -> D3cold for a moment then return to D0. Having killed the sddm service, I believe this means that my issue has nothing to do with sddm, xorg, wayland, kde, or other aspects of the graphical environment. The nvidia persistanced documentation says that the gpu enters D3cold once all processes have closed their connection to the gpu's device file. I'm not exactly certain which "file" that is, or if I can check what processes have it open, but I think that's the course forwards. Unless you have further insights @seth. I'm doing my best to take your feedback and not waste your time.


It's possible I'm misunderstanding this bit regarding the nvidia drivers, but this is the quote.
https://docs.nvidia.com/deploy/driver-p … index.html

On Linux systems running the NVIDIA GPU driver, clients attach a GPU by opening its device file. Conversely, the GPU is detached by closing the device file. The GPU state remains loaded in the driver whenever one or more clients have the device file open. Once all clients have closed the device file, the GPU state will be unloaded unless persistence mode is enabled.

Last edited by RandomRanger (2023-12-09 20:07:06)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#11 2023-12-10 13:57:47

seth
Member
Registered: 2012-09-03
Posts: 59,882

Offline

#12 2023-12-10 15:48:55

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

I have driver persistence enabled, yes
As an experiment I tried disabling it while the dGPU was in various states: e.g. plugging in to ac to get D3cold and then disabling persistence and unplugging ac but the experimentation had no effect on my sleep states.

Last edited by RandomRanger (2023-12-10 15:50:25)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#13 2023-12-10 16:15:07

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

Did you test the behavior after rebooting w/ the persistenced disabled?
https://docs.nvidia.com/deploy/driver-p … tence-mode is certainly not enabled on top of that?

Offline

#14 2023-12-10 16:37:39

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

It would seam that the command

nvidia-smi -i <target gpu> -q

will report the persistence state for both the legacy and the new persist daemon, so it's not clear by the output of that command which version you are running. To know for sure I used combinations of disabling the nvidia-persistenced systemd service and the nvidia provided command

nvidia-smi -i <target gpu> -pm ENABLED

With those, I tested both legacy and new persistence methods (applying a reboot in-between) and found that neither affected the dGPU's sleep state.
I wish I knew what was significant about that 20s interval in which it does manage to enter D3cold on battery.


Any sufficiently advanced magic is indistinguishable from science.

Offline

#15 2023-12-10 17:31:47

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

If the D3cold state was linked to a process attaching and deattaching to the gpu, then I thought iti may show up via this command

watch -n 1 lsof /dev/dri/card*

However, processes only seem to be attaching to /dev/dri/card0 which I believe to be the integrated gpu. Interestingly, the xorg process that appears in nvidia-smi does not appear here.
I don't know for sure that command will do what I want it to, but it was the best I could think up.

Last edited by RandomRanger (2023-12-10 17:48:08)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#16 2023-12-10 20:08:54

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

nvidia-smi should™ tell you what process uses what aspect of the GPU?
(It's not gonna power down, because nvidia-smi is polling it, but at least you can get that information)

The device nodes you're interested in are probably /dev/nvidia*

I wish I knew what was significant about that 20s interval in which it does manage to enter D3cold on battery.

Some status widget (conky and the likes)?

Offline

#17 2023-12-10 21:00:03

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

Ah yes, this output looks more like what I was looking for, thanks. It says Xwayland is attached to the dGPU, which is consistentish with nvidia-smi's output (which reports Xorg as an attached process, but I'm on wayland and using sddm on xorg ). Unfortunately, when unplugging and replugging the AC adapter there is no changes on the lsof output.

COMMAND   PID   USER FD   TYPE DEVICE SIZE/OFF NODE NAME
Xwayland 1051 myuser  6u   CHR  195,0      0t0  819 /dev/nvidia
Xwayland 1051 myuser  7u   CHR  195,0      0t0  819 /dev/nvidia
Xwayland 1051 myuser  8u   CHR  195,0      0t0  819 /dev/nvidia
Xwayland 1051 myuser  10u   CHR  195,0      0t0  819 /dev/nvidia

Last edited by RandomRanger (2023-12-10 21:11:02)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#18 2023-12-10 21:14:29

seth
Member
Registered: 2012-09-03
Posts: 59,882

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

Disable SDDM, remove xwayland and start your wayland session directly. Then see what process acts up b/c of the missing xwayland (browser? conky, some xrandr script?)
Alternatively you could run xrestop and see what processes show up there.

Offline

#19 2023-12-10 21:41:21

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

I took it one step and ran lsof in the TTY without any graphical environment. nvtop, nvidia-smi, and lsof all agreed that there were no process running on either gpu, however the 20 second D0 -> D3cold behavior remained.
sad

Last edited by RandomRanger (2023-12-10 22:13:03)


Any sufficiently advanced magic is indistinguishable from science.

Offline

#20 2023-12-12 02:35:14

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: [SOLVED] SDDM loads before iGPU / uses dGPU

On the bright side, it would appear that the turnoffgpu.sh script from https://wiki.archlinux.org/title/Hybrid_graphics works, it just has to be done manually. This can be a suitable work around until nvidia fixes the driver.

#!/bin/bash

usage="Usage: ./graphic_card [option] \nOPTION: \n- off \n- on"

if [ $# -ne 1 ]; then
    echo -e $usage
else
    if lsmod | grep -q acpi_call; then
	echo 'acpi_call found'
    else
	echo 'acpi_call found, importing it'
	sudo insmod /home/sush/dev/c/acpi_call/acpi_call.ko
    fi
    if [ $1 = 'on' ]; then
	echo '\_SB.PCI0.PEG0.PEGP._ON' > /proc/acpi/call
	echo 'Discrete graphic card ENABLED !'
    elif [ $1 = 'off' ]; then
	echo '\_SB.PCI0.PEG0.PEGP._OFF' > /proc/acpi/call
	echo 'Discrete graphic card DISABLED !'
    else
	echo -e $usage
    fi
fi

It would appear this comes at the cost of complicating the sleep/resume functionality though.

Last edited by RandomRanger (2023-12-12 14:09:26)


Any sufficiently advanced magic is indistinguishable from science.

Offline

Board footer

Powered by FluxBB