You are not logged in.

#1 2025-01-25 10:06:23

patrick.bucher
Member
From: Switzerland
Registered: 2016-10-15
Posts: 21
Website

[SOLVED] startx slow with dwm

I use dwm as a window manager and invoke startx manually from tty after logging in. Here's my .xinitrc:

exec dwm

From entering startx, it takes roughly 8 seconds until I can see the desktop. Here's my log file (~/.local/share/xorg/Xorg.0.log):

[    40.225] 
X.Org X Server 1.21.1.15
X Protocol Version 11, Revision 0
[    40.225] Current Operating System: Linux thinkcentre 6.12.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000 x86_64
[    40.225] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=6ba592d4-e65b-a945-8357-49deabf7a8a8 rw
[    40.225]  
[    40.226] Current version of pixman: 0.44.2
[    40.226] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    40.226] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    40.226] (==) Log file: "/home/patrick/.local/share/xorg/Xorg.0.log", Time: Sat Jan 25 10:56:22 2025
[    40.227] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    40.229] (==) No Layout section.  Using the first Screen section.
[    40.229] (==) No screen section available. Using defaults.
[    40.229] (**) |-->Screen "Default Screen Section" (0)
[    40.229] (**) |   |-->Monitor "<default monitor>"
[    40.229] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    40.229] (**) Allowing byte-swapped clients
[    40.229] (==) Automatically adding devices
[    40.229] (==) Automatically enabling devices
[    40.229] (==) Automatically adding GPU devices
[    40.229] (==) Automatically binding GPU devices
[    40.229] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    40.229] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[    40.229] 	Entry deleted from font path.
[    40.229] 	(Run 'mkfontdir' on "/usr/share/fonts/misc").
[    40.230] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[    40.230] 	Entry deleted from font path.
[    40.230] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[    40.230] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/OTF".
[    40.230] 	Entry deleted from font path.
[    40.230] 	(Run 'mkfontdir' on "/usr/share/fonts/OTF").
[    40.230] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    40.230] 	Entry deleted from font path.
[    40.230] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    40.230] 	Entry deleted from font path.
[    40.230] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    40.230] 	Entry deleted from font path.
[    40.230] (==) FontPath set to:
	
[    40.230] (==) ModulePath set to "/usr/lib/xorg/modules"
[    40.230] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    40.230] (II) Module ABI versions:
[    40.230] 	X.Org ANSI C Emulation: 0.4
[    40.230] 	X.Org Video Driver: 25.2
[    40.230] 	X.Org XInput driver : 24.4
[    40.230] 	X.Org Server Extension : 10.0
[    40.231] (++) using VT number 1

[    40.232] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    40.234] (II) xfree86: Adding drm device (/dev/dri/card1)
[    40.234] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/drm/card1
[    40.235] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 13 paused 0
[    40.245] (--) PCI:*(3@0:0:0) 1002:15d8:17aa:3151 rev 218, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xfcc00000/524288, I/O @ 0x0000e000/256
[    40.245] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    40.245] (II) LoadModule: "glx"
[    40.248] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    40.253] (II) Module glx: vendor="X.Org Foundation"
[    40.253] 	compiled for 1.21.1.15, module version = 1.0.0
[    40.253] 	ABI class: X.Org Server Extension, version 10.0
[    40.253] (II) Applying OutputClass "AMDgpu" to /dev/dri/card1
[    40.253] 	loading driver: amdgpu
[    40.254] (==) Matched amdgpu as autoconfigured driver 0
[    40.254] (==) Matched ati as autoconfigured driver 1
[    40.254] (==) Matched modesetting as autoconfigured driver 2
[    40.254] (==) Matched fbdev as autoconfigured driver 3
[    40.254] (==) Matched vesa as autoconfigured driver 4
[    40.254] (==) Assigned the driver to the xf86ConfigLayout
[    40.254] (II) LoadModule: "amdgpu"
[    40.254] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[    40.255] (II) Module amdgpu: vendor="X.Org Foundation"
[    40.255] 	compiled for 1.21.1.11, module version = 23.0.0
[    40.255] 	Module class: X.Org Video Driver
[    40.255] 	ABI class: X.Org Video Driver, version 25.2
[    40.255] (II) LoadModule: "ati"
[    40.255] (WW) Warning, couldn't open module ati
[    40.255] (EE) Failed to load module "ati" (module does not exist, 0)
[    40.255] (II) LoadModule: "modesetting"
[    40.255] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    40.256] (II) Module modesetting: vendor="X.Org Foundation"
[    40.256] 	compiled for 1.21.1.15, module version = 1.21.1
[    40.256] 	Module class: X.Org Video Driver
[    40.256] 	ABI class: X.Org Video Driver, version 25.2
[    40.256] (II) LoadModule: "fbdev"
[    40.256] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    40.257] (II) Module fbdev: vendor="X.Org Foundation"
[    40.257] 	compiled for 1.21.1.14, module version = 0.5.1
[    40.257] 	Module class: X.Org Video Driver
[    40.257] 	ABI class: X.Org Video Driver, version 25.2
[    40.257] (II) LoadModule: "vesa"
[    40.257] (WW) Warning, couldn't open module vesa
[    40.257] (EE) Failed to load module "vesa" (module does not exist, 0)
[    40.257] (II) AMDGPU: Driver for AMD Radeon:
	All GPUs supported by the amdgpu kernel driver
[    40.257] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    40.257] (II) FBDEV: driver for framebuffer: fbdev
[    40.267] (WW) Falling back to old probe method for modesetting
[    40.267] (EE) open /dev/dri/card0: No such file or directory
[    40.267] (WW) Falling back to old probe method for fbdev
[    40.267] (II) Loading sub module "fbdevhw"
[    40.267] (II) LoadModule: "fbdevhw"
[    40.267] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    40.267] (II) Module fbdevhw: vendor="X.Org Foundation"
[    40.267] 	compiled for 1.21.1.15, module version = 0.0.2
[    40.267] 	ABI class: X.Org Video Driver, version 25.2
[    40.267] (EE) open /dev/fb0: Permission denied
[    40.268] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    40.268] (II) AMDGPU(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    40.268] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[    40.268] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[    40.268] (==) AMDGPU(0): Default visual is TrueColor
[    40.268] (II) Applying OutputClass "AMDgpu" options to /dev/dri/card1
[    40.268] (==) AMDGPU(0): RGB weight 888
[    40.268] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[    40.268] (--) AMDGPU(0): Chipset: "AMD Radeon Vega 11 Graphics" (ChipID = 0x15d8)
[    40.268] (II) Loading sub module "fb"
[    40.268] (II) LoadModule: "fb"
[    40.268] (II) Module "fb" already built-in
[    40.268] (II) Loading sub module "dri2"
[    40.268] (II) LoadModule: "dri2"
[    40.268] (II) Module "dri2" already built-in
[    40.416] (II) Loading sub module "glamoregl"
[    40.416] (II) LoadModule: "glamoregl"
[    40.416] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    40.421] (II) Module glamoregl: vendor="X.Org Foundation"
[    40.421] 	compiled for 1.21.1.15, module version = 1.0.1
[    40.421] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    40.438] (II) AMDGPU(0): glamor X acceleration enabled on AMD Radeon Vega 11 Graphics (radeonsi, raven, LLVM 19.1.7, DRM 3.59, 6.12.10-arch1-1)
[    40.438] (II) AMDGPU(0): glamor detected, initialising EGL layer.
[    40.438] (==) AMDGPU(0): TearFree property default: auto
[    40.438] (==) AMDGPU(0): VariableRefresh: disabled
[    40.438] (==) AMDGPU(0): AsyncFlipSecondaries: disabled
[    40.438] (II) AMDGPU(0): KMS Pageflipping: enabled
[    40.438] (II) AMDGPU(0): Output DisplayPort-0 has no monitor section
[    40.441] (II) AMDGPU(0): Output HDMI-A-0 has no monitor section
[    40.441] (II) AMDGPU(0): Output DisplayPort-1 has no monitor section
[    40.441] (II) AMDGPU(0): Output DisplayPort-2 has no monitor section
[    40.445] (II) AMDGPU(0): EDID for output DisplayPort-0
[    40.448] (II) AMDGPU(0): EDID for output HDMI-A-0
[    40.448] (II) AMDGPU(0): Manufacturer: DEL  Model: 40e1  Serial#: 892809804
[    40.448] (II) AMDGPU(0): Year: 2015  Week: 38
[    40.448] (II) AMDGPU(0): EDID Version: 1.3
[    40.448] (II) AMDGPU(0): Digital Display Input
[    40.448] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 55  vert.: 31
[    40.448] (II) AMDGPU(0): Gamma: 2.20
[    40.448] (II) AMDGPU(0): DPMS capabilities: Off
[    40.448] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    40.448] (II) AMDGPU(0): First detailed timing is preferred mode
[    40.448] (II) AMDGPU(0): redX: 0.685 redY: 0.310   greenX: 0.200 greenY: 0.720
[    40.448] (II) AMDGPU(0): blueX: 0.147 blueY: 0.043   whiteX: 0.313 whiteY: 0.329
[    40.448] (II) AMDGPU(0): Supported established timings:
[    40.448] (II) AMDGPU(0): 720x400@70Hz
[    40.448] (II) AMDGPU(0): 640x480@60Hz
[    40.448] (II) AMDGPU(0): 640x480@75Hz
[    40.448] (II) AMDGPU(0): 800x600@60Hz
[    40.448] (II) AMDGPU(0): 800x600@75Hz
[    40.448] (II) AMDGPU(0): 1024x768@60Hz
[    40.448] (II) AMDGPU(0): 1024x768@75Hz
[    40.448] (II) AMDGPU(0): 1280x1024@75Hz
[    40.448] (II) AMDGPU(0): Manufacturer's mask: 0
[    40.448] (II) AMDGPU(0): Supported standard timings:
[    40.448] (II) AMDGPU(0): #0: hsize: 1152  vsize 864  refresh: 75  vid: 20337
[    40.448] (II) AMDGPU(0): #1: hsize: 1600  vsize 1200  refresh: 60  vid: 16553
[    40.448] (II) AMDGPU(0): #2: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[    40.448] (II) AMDGPU(0): #3: hsize: 1920  vsize 1080  refresh: 60  vid: 49361
[    40.448] (II) AMDGPU(0): Supported detailed timing:
[    40.448] (II) AMDGPU(0): clock: 241.5 MHz   Image Size:  553 x 311 mm
[    40.448] (II) AMDGPU(0): h_active: 2560  h_sync: 2608  h_sync_end 2640 h_blank_end 2720 h_border: 0
[    40.448] (II) AMDGPU(0): v_active: 1440  v_sync: 1443  v_sync_end 1448 v_blanking: 1481 v_border: 0
[    40.448] (II) AMDGPU(0): Serial No: 3JV4059I572L
[    40.448] (II) AMDGPU(0): Monitor name: DELL UP2516D
[    40.448] (II) AMDGPU(0): Ranges: V min: 50 V max: 75 Hz, H min: 30 H max: 88 kHz, PixClock max 255 MHz
[    40.448] (II) AMDGPU(0): Supported detailed timing:
[    40.448] (II) AMDGPU(0): clock: 148.5 MHz   Image Size:  553 x 311 mm
[    40.448] (II) AMDGPU(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    40.448] (II) AMDGPU(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    40.448] (II) AMDGPU(0): Supported detailed timing:
[    40.448] (II) AMDGPU(0): clock: 147.2 MHz   Image Size:  553 x 311 mm
[    40.448] (II) AMDGPU(0): h_active: 2048  h_sync: 2096  h_sync_end 2128 h_blank_end 2208 h_border: 0
[    40.448] (II) AMDGPU(0): v_active: 1080  v_sync: 1083  v_sync_end 1093 v_blanking: 1111 v_border: 0
[    40.448] (II) AMDGPU(0): Supported detailed timing:
[    40.448] (II) AMDGPU(0): clock: 74.2 MHz   Image Size:  553 x 311 mm
[    40.448] (II) AMDGPU(0): h_active: 1280  h_sync: 1390  h_sync_end 1430 h_blank_end 1650 h_border: 0
[    40.448] (II) AMDGPU(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[    40.448] (II) AMDGPU(0): Supported detailed timing:
[    40.448] (II) AMDGPU(0): clock: 58.2 MHz   Image Size:  553 x 311 mm
[    40.448] (II) AMDGPU(0): h_active: 2048  h_sync: 2096  h_sync_end 2128 h_blank_end 2208 h_border: 0
[    40.448] (II) AMDGPU(0): v_active: 1080  v_sync: 1083  v_sync_end 1093 v_blanking: 1099 v_border: 0
[    40.448] (II) AMDGPU(0): Number of EDID sections to follow: 1
[    40.448] (II) AMDGPU(0): EDID (in hex):
[    40.448] (II) AMDGPU(0): 	00ffffffffffff0010ace1404c323735
[    40.448] (II) AMDGPU(0): 	2619010380371f782a55c5af4f33b825
[    40.448] (II) AMDGPU(0): 	0b5054a54b00714fa9408180d1c00101
[    40.448] (II) AMDGPU(0): 	010101010101565e00a0a0a029503020
[    40.448] (II) AMDGPU(0): 	350029372100001a000000ff00334a56
[    40.448] (II) AMDGPU(0): 	34303539493537324c0a000000fc0044
[    40.448] (II) AMDGPU(0): 	454c4c20555032353136440a000000fd
[    40.448] (II) AMDGPU(0): 	00324b1e5819000a202020202020019a
[    40.448] (II) AMDGPU(0): 	020324f14f9005040302071601061112
[    40.448] (II) AMDGPU(0): 	1513141f23091f078301000067030c00
[    40.448] (II) AMDGPU(0): 	1000383e023a801871382d40582c4500
[    40.448] (II) AMDGPU(0): 	29372100001e7e3900a080381f403020
[    40.448] (II) AMDGPU(0): 	3a0029372100001a011d007251d01e20
[    40.448] (II) AMDGPU(0): 	6e28550029372100001ebf1600a08038
[    40.448] (II) AMDGPU(0): 	134030203a0029372100001a00000000
[    40.448] (II) AMDGPU(0): 	00000000000000000000000000000082
[    40.448] (--) AMDGPU(0): HDMI max TMDS frequency 310000KHz
[    40.448] (II) AMDGPU(0): Printing probed modes for output HDMI-A-0
[    40.448] (II) AMDGPU(0): Modeline "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz eP)
[    40.448] (II) AMDGPU(0): Modeline "1920x1200"x60.0  241.50  1920 2608 2640 2720  1200 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "2048x1080"x60.0  147.18  2048 2096 2128 2208  1080 1083 1093 1111 +hsync -vsync (66.7 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "2048x1080"x24.0   58.23  2048 2096 2128 2208  1080 1083 1093 1099 +hsync -vsync (26.4 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1920x1080"x50.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1920x1080"x59.9  148.35  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1680x1050"x60.0  241.50  1680 2608 2640 2720  1050 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1440x900"x60.0  241.50  1440 2608 2640 2720  900 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1280x800"x60.0  241.50  1280 2608 2640 2720  800 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1280x720"x50.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "720x576"x50.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "720x480"x60.0   27.03  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "720x480"x59.9   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    40.448] (II) AMDGPU(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    40.448] (II) AMDGPU(0): EDID for output DisplayPort-1
[    40.448] (II) AMDGPU(0): EDID for output DisplayPort-2
[    40.448] (II) AMDGPU(0): Output DisplayPort-0 disconnected
[    40.448] (II) AMDGPU(0): Output HDMI-A-0 connected
[    40.448] (II) AMDGPU(0): Output DisplayPort-1 disconnected
[    40.448] (II) AMDGPU(0): Output DisplayPort-2 disconnected
[    40.448] (II) AMDGPU(0): Using exact sizes for initial modes
[    40.448] (II) AMDGPU(0): Output HDMI-A-0 using initial mode 2560x1440 +0+0
[    40.449] (II) AMDGPU(0): mem size init: gart size :1b1e44000 vram size: s:7da22000 visible:7da22000
[    40.449] (==) AMDGPU(0): DPI set to (96, 96)
[    40.449] (==) AMDGPU(0): Using gamma correction (1.0, 1.0, 1.0)
[    40.449] (II) Loading sub module "ramdac"
[    40.449] (II) LoadModule: "ramdac"
[    40.449] (II) Module "ramdac" already built-in
[    40.449] (II) UnloadModule: "modesetting"
[    40.449] (II) Unloading modesetting
[    40.449] (II) UnloadModule: "fbdev"
[    40.449] (II) Unloading fbdev
[    40.449] (II) UnloadSubModule: "fbdevhw"
[    40.449] (II) Unloading fbdevhw
[    40.449] (II) AMDGPU(0): [DRI2] Setup complete
[    40.449] (II) AMDGPU(0): [DRI2]   DRI driver: radeonsi
[    40.449] (II) AMDGPU(0): [DRI2]   VDPAU driver: radeonsi
[    40.522] (II) AMDGPU(0): Front buffer pitch: 10240 bytes
[    40.523] (II) AMDGPU(0): SYNC extension fences enabled
[    40.523] (II) AMDGPU(0): Present extension enabled
[    40.523] (==) AMDGPU(0): DRI3 enabled
[    40.523] (==) AMDGPU(0): Backing store enabled
[    40.523] (II) AMDGPU(0): Direct rendering enabled
[    40.535] (II) AMDGPU(0): Use GLAMOR acceleration.
[    40.535] (II) AMDGPU(0): Acceleration enabled
[    40.535] (==) AMDGPU(0): DPMS enabled
[    40.535] (==) AMDGPU(0): Silken mouse enabled
[    40.535] (II) AMDGPU(0): Set up textured video (glamor)
[    40.546] (WW) AMDGPU(0): Option "HotplugDriver" is not used
[    40.546] (II) Initializing extension Generic Event Extension
[    40.546] (II) Initializing extension SHAPE
[    40.546] (II) Initializing extension MIT-SHM
[    40.546] (II) Initializing extension XInputExtension
[    40.546] (II) Initializing extension XTEST
[    40.546] (II) Initializing extension BIG-REQUESTS
[    40.546] (II) Initializing extension SYNC
[    40.546] (II) Initializing extension XKEYBOARD
[    40.547] (II) Initializing extension XC-MISC
[    40.547] (II) Initializing extension SECURITY
[    40.547] (II) Initializing extension XFIXES
[    40.547] (II) Initializing extension RENDER
[    40.547] (II) Initializing extension RANDR
[    40.547] (II) Initializing extension COMPOSITE
[    40.547] (II) Initializing extension DAMAGE
[    40.547] (II) Initializing extension MIT-SCREEN-SAVER
[    40.547] (II) Initializing extension DOUBLE-BUFFER
[    40.547] (II) Initializing extension RECORD
[    40.547] (II) Initializing extension DPMS
[    40.548] (II) Initializing extension Present
[    40.548] (II) Initializing extension DRI3
[    40.548] (II) Initializing extension X-Resource
[    40.548] (II) Initializing extension XVideo
[    40.548] (II) Initializing extension XVideo-MotionCompensation
[    40.548] (II) Initializing extension GLX
[    40.556] (II) AIGLX: Loaded and initialized radeonsi
[    40.556] (II) GLX: Initialized DRI2 GL provider for screen 0
[    40.556] (II) Initializing extension XFree86-VidModeExtension
[    40.556] (II) Initializing extension XFree86-DGA
[    40.556] (II) Initializing extension XFree86-DRI
[    40.556] (II) Initializing extension DRI2
[    40.557] (II) AMDGPU(0): Setting screen physical size to 677 x 381
[    40.649] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    40.649] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    40.649] (II) LoadModule: "libinput"
[    40.649] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    40.652] (II) Module libinput: vendor="X.Org Foundation"
[    40.652] 	compiled for 1.21.1.13, module version = 1.5.0
[    40.652] 	Module class: X.Org XInput Driver
[    40.652] 	ABI class: X.Org XInput driver, version 24.4
[    40.652] (II) Using input driver 'libinput' for 'Power Button'
[    40.653] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 26 paused 0
[    40.653] (**) Power Button: always reports core events
[    40.653] (**) Option "Device" "/dev/input/event1"
[    40.661] (II) event1  - Power Button: is tagged by udev as: Keyboard
[    40.661] (II) event1  - Power Button: device is a keyboard
[    40.661] (II) event1  - Power Button: device removed
[    40.661] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[    40.661] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    40.662] (II) event1  - Power Button: is tagged by udev as: Keyboard
[    40.662] (II) event1  - Power Button: device is a keyboard
[    40.663] (II) config/udev: Adding input device Video Bus (/dev/input/event2)
[    40.663] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    40.663] (II) Using input driver 'libinput' for 'Video Bus'
[    40.664] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 29 paused 0
[    40.664] (**) Video Bus: always reports core events
[    40.664] (**) Option "Device" "/dev/input/event2"
[    40.665] (II) event2  - Video Bus: is tagged by udev as: Keyboard
[    40.665] (II) event2  - Video Bus: device is a keyboard
[    40.665] (II) event2  - Video Bus: device removed
[    40.665] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:11/LNXVIDEO:01/input/input2/event2"
[    40.665] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    40.666] (II) event2  - Video Bus: is tagged by udev as: Keyboard
[    40.666] (II) event2  - Video Bus: device is a keyboard
[    40.667] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[    40.667] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    40.667] (II) Using input driver 'libinput' for 'Power Button'
[    40.668] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 30 paused 0
[    40.668] (**) Power Button: always reports core events
[    40.668] (**) Option "Device" "/dev/input/event0"
[    40.668] (II) event0  - Power Button: is tagged by udev as: Keyboard
[    40.668] (II) event0  - Power Button: device is a keyboard
[    40.669] (II) event0  - Power Button: device removed
[    40.669] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[    40.669] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[    40.669] (II) event0  - Power Button: is tagged by udev as: Keyboard
[    40.669] (II) event0  - Power Button: device is a keyboard
[    40.670] (II) config/udev: Adding input device HD-Audio Generic HDMI/DP,pcm=3 (/dev/input/event7)
[    40.670] (II) No input driver specified, ignoring this device.
[    40.670] (II) This device may have been added with another device file.
[    40.671] (II) config/udev: Adding input device HD-Audio Generic HDMI/DP,pcm=7 (/dev/input/event8)
[    40.671] (II) No input driver specified, ignoring this device.
[    40.671] (II) This device may have been added with another device file.
[    40.671] (II) config/udev: Adding input device HD-Audio Generic HDMI/DP,pcm=8 (/dev/input/event9)
[    40.671] (II) No input driver specified, ignoring this device.
[    40.671] (II) This device may have been added with another device file.
[    40.672] (II) config/udev: Adding input device Metadot - Das Keyboard Das Keyboard 4 (/dev/input/event3)
[    40.672] (**) Metadot - Das Keyboard Das Keyboard 4: Applying InputClass "libinput keyboard catchall"
[    40.672] (II) Using input driver 'libinput' for 'Metadot - Das Keyboard Das Keyboard 4'
[    40.673] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 31 paused 0
[    40.673] (**) Metadot - Das Keyboard Das Keyboard 4: always reports core events
[    40.673] (**) Option "Device" "/dev/input/event3"
[    40.675] (II) event3  - Metadot - Das Keyboard Das Keyboard 4: is tagged by udev as: Keyboard
[    40.675] (II) event3  - Metadot - Das Keyboard Das Keyboard 4: device is a keyboard
[    40.675] (II) event3  - Metadot - Das Keyboard Das Keyboard 4: device removed
[    40.675] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3.3/1-3.3.2/1-3.3.2:1.0/0003:24F0:204A.0001/input/input3/event3"
[    40.675] (II) XINPUT: Adding extended input device "Metadot - Das Keyboard Das Keyboard 4" (type: KEYBOARD, id 9)
[    40.676] (II) event3  - Metadot - Das Keyboard Das Keyboard 4: is tagged by udev as: Keyboard
[    40.677] (II) event3  - Metadot - Das Keyboard Das Keyboard 4: device is a keyboard
[    40.678] (II) config/udev: Adding input device Metadot - Das Keyboard Das Keyboard 4 System Control (/dev/input/event4)
[    40.678] (**) Metadot - Das Keyboard Das Keyboard 4 System Control: Applying InputClass "libinput keyboard catchall"
[    40.678] (II) Using input driver 'libinput' for 'Metadot - Das Keyboard Das Keyboard 4 System Control'
[    40.679] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 32 paused 0
[    40.679] (**) Metadot - Das Keyboard Das Keyboard 4 System Control: always reports core events
[    40.679] (**) Option "Device" "/dev/input/event4"
[    40.680] (II) event4  - Metadot - Das Keyboard Das Keyboard 4 System Control: is tagged by udev as: Keyboard
[    40.681] (II) event4  - Metadot - Das Keyboard Das Keyboard 4 System Control: device is a keyboard
[    40.681] (II) event4  - Metadot - Das Keyboard Das Keyboard 4 System Control: device removed
[    40.681] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3.3/1-3.3.2/1-3.3.2:1.1/0003:24F0:204A.0002/input/input4/event4"
[    40.681] (II) XINPUT: Adding extended input device "Metadot - Das Keyboard Das Keyboard 4 System Control" (type: KEYBOARD, id 10)
[    40.682] (II) event4  - Metadot - Das Keyboard Das Keyboard 4 System Control: is tagged by udev as: Keyboard
[    40.682] (II) event4  - Metadot - Das Keyboard Das Keyboard 4 System Control: device is a keyboard
[    40.683] (II) config/udev: Adding input device Metadot - Das Keyboard Das Keyboard 4 Consumer Control (/dev/input/event5)
[    40.683] (**) Metadot - Das Keyboard Das Keyboard 4 Consumer Control: Applying InputClass "libinput keyboard catchall"
[    40.683] (II) Using input driver 'libinput' for 'Metadot - Das Keyboard Das Keyboard 4 Consumer Control'
[    40.685] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 33 paused 0
[    40.685] (**) Metadot - Das Keyboard Das Keyboard 4 Consumer Control: always reports core events
[    40.685] (**) Option "Device" "/dev/input/event5"
[    40.686] (II) event5  - Metadot - Das Keyboard Das Keyboard 4 Consumer Control: is tagged by udev as: Keyboard
[    40.686] (II) event5  - Metadot - Das Keyboard Das Keyboard 4 Consumer Control: device is a keyboard
[    40.687] (II) event5  - Metadot - Das Keyboard Das Keyboard 4 Consumer Control: device removed
[    40.687] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3.3/1-3.3.2/1-3.3.2:1.1/0003:24F0:204A.0002/input/input5/event5"
[    40.687] (II) XINPUT: Adding extended input device "Metadot - Das Keyboard Das Keyboard 4 Consumer Control" (type: KEYBOARD, id 11)
[    40.688] (II) event5  - Metadot - Das Keyboard Das Keyboard 4 Consumer Control: is tagged by udev as: Keyboard
[    40.688] (II) event5  - Metadot - Das Keyboard Das Keyboard 4 Consumer Control: device is a keyboard
[    40.689] (II) config/udev: Adding input device Logitech Wireless Mouse (/dev/input/event6)
[    40.689] (**) Logitech Wireless Mouse: Applying InputClass "libinput pointer catchall"
[    40.689] (**) Logitech Wireless Mouse: Applying InputClass "libinput keyboard catchall"
[    40.689] (II) Using input driver 'libinput' for 'Logitech Wireless Mouse'
[    40.691] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 34 paused 0
[    40.691] (**) Logitech Wireless Mouse: always reports core events
[    40.691] (**) Option "Device" "/dev/input/event6"
[    40.693] (II) event6  - Logitech Wireless Mouse: is tagged by udev as: Keyboard Mouse
[    40.693] (II) event6  - Logitech Wireless Mouse: device is a pointer
[    40.693] (II) event6  - Logitech Wireless Mouse: device is a keyboard
[    40.693] (II) event6  - Logitech Wireless Mouse: device removed
[    40.693] (II) libinput: Logitech Wireless Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    40.693] (II) libinput: Logitech Wireless Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    40.693] (II) libinput: Logitech Wireless Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    40.693] (II) libinput: Logitech Wireless Mouse: needs a virtual subdevice
[    40.693] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3.3/1-3.3.3/1-3.3.3:1.1/0003:046D:C534.0004/0003:046D:4054.0005/input/input17/event6"
[    40.693] (II) XINPUT: Adding extended input device "Logitech Wireless Mouse" (type: MOUSE, id 12)
[    40.693] (**) Option "AccelerationScheme" "none"
[    40.693] (**) Logitech Wireless Mouse: (accel) selected scheme none/0
[    40.693] (**) Logitech Wireless Mouse: (accel) acceleration factor: 2.000
[    40.693] (**) Logitech Wireless Mouse: (accel) acceleration threshold: 4
[    40.695] (II) event6  - Logitech Wireless Mouse: is tagged by udev as: Keyboard Mouse
[    40.695] (II) event6  - Logitech Wireless Mouse: device is a pointer
[    40.695] (II) event6  - Logitech Wireless Mouse: device is a keyboard
[    40.696] (II) config/udev: Adding input device Logitech Wireless Mouse (/dev/input/mouse0)
[    40.696] (II) No input driver specified, ignoring this device.
[    40.696] (II) This device may have been added with another device file.
[    40.696] (II) config/udev: Adding input device HD-Audio Generic Mic (/dev/input/event10)
[    40.696] (II) No input driver specified, ignoring this device.
[    40.696] (II) This device may have been added with another device file.
[    40.697] (II) config/udev: Adding input device HD-Audio Generic Front Mic (/dev/input/event11)
[    40.697] (II) No input driver specified, ignoring this device.
[    40.697] (II) This device may have been added with another device file.
[    40.697] (II) config/udev: Adding input device HD-Audio Generic Front Headphone (/dev/input/event12)
[    40.697] (II) No input driver specified, ignoring this device.
[    40.697] (II) This device may have been added with another device file.
[    40.703] (**) Logitech Wireless Mouse: Applying InputClass "libinput pointer catchall"
[    40.703] (**) Logitech Wireless Mouse: Applying InputClass "libinput keyboard catchall"
[    40.703] (II) Using input driver 'libinput' for 'Logitech Wireless Mouse'
[    40.703] (II) systemd-logind: returning pre-existing fd for /dev/input/event6 13:70
[    40.703] (**) Logitech Wireless Mouse: always reports core events
[    40.703] (**) Option "Device" "/dev/input/event6"
[    40.703] (II) libinput: Logitech Wireless Mouse: is a virtual subdevice
[    40.703] (II) libinput: Logitech Wireless Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    40.703] (II) libinput: Logitech Wireless Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    40.703] (II) libinput: Logitech Wireless Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    40.703] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3.3/1-3.3.3/1-3.3.3:1.1/0003:046D:C534.0004/0003:046D:4054.0005/input/input17/event6"
[    40.703] (II) XINPUT: Adding extended input device "Logitech Wireless Mouse" (type: KEYBOARD, id 13)

I have a ThinkCentre with a AMD Ryzen 5 PRO 3400GE w/ Radeon Vega Graphics.

Starting X took less than a second until recently. Any hints on how to nail down the problem?

Last edited by patrick.bucher (2025-01-25 16:02:04)

Offline

#2 2025-01-25 10:54:32

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [SOLVED] startx slow with dwm

No idea about the delay but your ~/.xinitrc is configured incorrectly, see the relevant ArchWiki page for details on correct configuration.

The log is finished after about half a second so the delay happens before or after that. Have you checked the journal?

Last edited by Head_on_a_Stick (2025-01-25 10:54:49)


Jin, Jîyan, Azadî

Offline

#3 2025-01-25 14:54:53

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

Re: [SOLVED] startx slow with dwm

xinitrc aside, more of https://bbs.archlinux.org/viewtopic.php?id=301798&p=11 ?
There're also PSR issues w/ recent amdgpu versions "amdgpu.dcdebugmask=0x10"

Offline

#4 2025-01-25 15:53:04

patrick.bucher
Member
From: Switzerland
Registered: 2016-10-15
Posts: 21
Website

Re: [SOLVED] startx slow with dwm

Head_on_a_Stick wrote:

No idea about the delay but your ~/.xinitrc is configured incorrectly, see the relevant ArchWiki page for details on correct configuration.

The log is finished after about half a second so the delay happens before or after that. Have you checked the journal?

I had a similar .xinitrc for 16 years now and it never was an issue. I checked the Wiki article, and copying/adjusting the default script doesn't change a thing.

seth wrote:

xinitrc aside, more of https://bbs.archlinux.org/viewtopic.php?id=301798&p=11 ?
There're also PSR issues w/ recent amdgpu versions "amdgpu.dcdebugmask=0x10"

This looks more promising; I also had those freeze issues recently!

EDIT: I added the following line to my .bash_profile:

export MESA_SHADER_CACHE_DISABLE=true

And dwm now starts instantly again.

Thanks for pointing me in that direction!

Last edited by patrick.bucher (2025-01-25 16:01:27)

Offline

#5 2025-01-25 16:33:48

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

Re: [SOLVED] startx slow with dwm

Make sure the slow down isn't because of slow IO because your disk is falling apart.

Your previous xinitrc leads to a degenerated session, lacking logind and session-bus integration and you cannot perform actions like suspending or shutting down the system w/o elevating privileges.
It is also known to slow things down because of failing dbus calls causing 25s stalls, so that wasn't just a wild guess from HoaS and you're much better off w/ a properly configured xinitrc.

Offline

#6 2025-03-27 13:55:58

patrick.bucher
Member
From: Switzerland
Registered: 2016-10-15
Posts: 21
Website

Re: [SOLVED] startx slow with dwm

seth wrote:

Make sure the slow down isn't because of slow IO because your disk is falling apart.

Your previous xinitrc leads to a degenerated session, lacking logind and session-bus integration and you cannot perform actions like suspending or shutting down the system w/o elevating privileges.
It is also known to slow things down because of failing dbus calls causing 25s stalls, so that wasn't just a wild guess from HoaS and you're much better off w/ a properly configured xinitrc.

You are right. Now I merged in the default script from /etc/X11/xinit/xinitrc. Since I have neither .Xresources nor .Xmodmap defined (neither system-wide nor for my user), the only thing it does is starting the scripts in /etc/X11/xinit/xinitrc.d, of which 50-systemd-user.sh is the only relevant one.

This is my .xinitrc now:

#!/bin/sh

xinitdir="/etc/X11/xinit"

if [ -d "$xinitdir"/xinitrc.d ] ; then
    for f in "$xinitdir/xinitrc.d"/?*.sh ; do
        [ -x "$f" ] && . "$f"
    done
    unset f
fi

xset -b
xset -dpms
numlockx
setxkbmap -option compose:caps
exec slstatus &
exec dwm

So, this makes systemd aware of my DISPLAY and XAUHTORITY, right?

Offline

#7 2025-03-27 15:15:38

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

Re: [SOLVED] startx slow with dwm

Among others, yes.

exec slstatus &

This is nonsense and if it wasn't, your xinitrc would not work.
Remove the "exec".

Offline

#8 2025-03-29 07:18:20

patrick.bucher
Member
From: Switzerland
Registered: 2016-10-15
Posts: 21
Website

Re: [SOLVED] startx slow with dwm

seth wrote:

Among others, yes.

exec slstatus &

This is nonsense and if it wasn't, your xinitrc would not work.
Remove the "exec".

You're absolutely right; that was a residue of a failed test. I tried to use

exec slstatus

, and didn't see my Desktop. So I added the

&

at the end, but left the

exec

in place.

Offline

#9 2025-03-29 11:01:51

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,403

Re: [SOLVED] startx slow with dwm

I'm also having an amd card and having sometimes the freezing issue, and also a dwm user. But I don't have your problem, also I use ROCm because I do machine learning stuff in the amd card. But my dwm is very functional and only have 8 patches applied. So probably your main issue is your .xinitrc file. As for me this works fine, just copy the defualt xinitrc as arch wiki says https://wiki.archlinux.org/title/Xinit

cp /etc/X11/xinit/xinitrc ~/.xinitrc

Do a backup before of your xinitrc if you love it so much, but try that and then delete the programs that came by default in the xinitrc and replace with your desire configuration. For example this is my last part of my xinit file:

picom -b &
dwmblocks &
dwm

try that but with your programs and let us know if that improves your xinit start. Nothing of what you said happens to me, and also I have computers with radeon vega gpu and radeon discrete gpu for ML.

Last edited by Succulent of your garden (2025-03-29 11:02:04)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Offline

Board footer

Powered by FluxBB