You are not logged in.

#1 2023-03-06 17:10:11

kStor2poche
Member
Registered: 2023-03-06
Posts: 6

[Solved] Unable to set custom resolution on Xorg with intel HD 620

Here's an issue I haven't been able to solve in the two years I've used my arch system.

Some time ago, I used custom resolution utility (cru) on windows to make a custom 1366x768 90Hz mode for my screen which works perfectly with no dropped frames despite using timings tighter than the conventional ones.

Sometime later, I recalculated the timings so as to have a correct input for a new, similar xrandr mode. trying to set this resolution outputs :

xrandr: Configure crtc 0 failed

Driver used seems to be the modesetting driver (from what my Xorg log and config say, even if xf86_video_intel is installed) and setting any other mode gives no error. All of this seems to point either to some weird kernel issue happening, or to me having made a really dumb oversight.

If there ever is a something I missed here, the commands I used to set the mode and output it are :

$ xrandr --newmode "1366x768_90.00" 110.15 1366 1414 1446 1526 768 771 776 802 +hsync -vsync
$ xrandr --addmode eDP1 '1366x768_90.00'
$ xrandr --output eDP1 --mode '1366x768_90.00'

and the timings used in cru are :

Active : 1366 Horizontal 768 Vertical
Front porch : 48 H 3 V
Sync width : 32 H 5 V
Back porch : 80 H 26 V
sync polarity : +hsync -vsync
Refresh rate : 90.000 Hz (actual : 90.002 Hz)

After that, the output of  $ xrandr is

Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1366x768      60.00*+  40.00  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   680x384       60.00  
   640x360       59.84    59.32    60.00  
   1366x768_90.00  90.00  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis

and for good measure, here's the Xorg config for my screen :

Section "Monitor"
	Identifier "eDP1"
	Option "PreferredMode" "1366x768"
EndSection

Section "Screen"
	Identifier "Screen 0"
	Monitor "eDP1"
	DefaultDepth 24
	SubSection "Display"
		Modes "1366x768"
	EndSubSection
EndSection

Section "Device"
	Identifier "Intel Graphics"
	Driver "intel"
EndSection

and my Xorg.0.log file :

[     9.508] 
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[     9.508] Current Operating System: Linux archleo 6.2.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 03 Mar 2023 15:58:31 +0000 x86_64
[     9.508] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=bebc7c5c-3292-40ec-8db5-dbd8825deca0 rw loglevel=3 quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 psmouse.synaptics_intertouch=1
[     9.508]  
[     9.508] Current version of pixman: 0.42.2
[     9.508] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     9.508] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     9.508] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar  6 17:36:34 2023
[     9.513] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     9.513] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     9.516] (==) No Layout section.  Using the first Screen section.
[     9.517] (**) |-->Screen "Screen 0" (0)
[     9.517] (**) |   |-->Monitor "eDP1"
[     9.518] (==) No device specified for screen "Screen 0".
	Using the first device section listed.
[     9.518] (**) |   |-->Device "Intel Graphics"
[     9.518] (==) Automatically adding devices
[     9.518] (==) Automatically enabling devices
[     9.518] (==) Automatically adding GPU devices
[     9.518] (==) Automatically binding GPU devices
[     9.518] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     9.521] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     9.521] 	Entry deleted from font path.
[     9.524] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[     9.524] (==) ModulePath set to "/usr/lib/xorg/modules"
[     9.524] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     9.524] (II) Module ABI versions:
[     9.524] 	X.Org ANSI C Emulation: 0.4
[     9.525] 	X.Org Video Driver: 25.2
[     9.525] 	X.Org XInput driver : 24.4
[     9.525] 	X.Org Server Extension : 10.0
[     9.527] (++) using VT number 7

[     9.527] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     9.529] (II) xfree86: Adding drm device (/dev/dri/card0)
[     9.529] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[     9.544] (--) PCI:*(0@0:2:0) 8086:5916:103c:8231 rev 2, Mem @ 0x1ff0000000/16777216, 0x1fe0000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[     9.544] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     9.544] (II) LoadModule: "glx"
[     9.547] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     9.559] (II) Module glx: vendor="X.Org Foundation"
[     9.559] 	compiled for 1.21.1.7, module version = 1.0.0
[     9.559] 	ABI class: X.Org Server Extension, version 10.0
[     9.559] (II) LoadModule: "intel"
[     9.560] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[     9.566] (II) Module intel: vendor="X.Org Foundation"
[     9.566] 	compiled for 1.21.1.6, module version = 2.99.917
[     9.566] 	Module class: X.Org Video Driver
[     9.566] 	ABI class: X.Org Video Driver, version 25.2
[     9.566] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[     9.567] (II) intel: Driver for Intel(R) HD Graphics
[     9.567] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[     9.567] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[     9.568] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20201103
[     9.568] (II) intel(0): SNA compiled from 2.99.917-923-gb74b67f0
[     9.570] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 620
[     9.570] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 2 threads
[     9.570] (**) intel(0): Depth 24, (--) framebuffer bpp 32
[     9.570] (==) intel(0): RGB weight 888
[     9.570] (==) intel(0): Default visual is TrueColor
[     9.571] (II) intel(0): Output eDP1 using monitor section eDP1
[     9.571] (**) intel(0): Option "PreferredMode" "1366x768"
[     9.572] (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[     9.572] (II) intel(0): Enabled output eDP1
[     9.572] (II) intel(0): Output HDMI1 has no monitor section
[     9.572] (II) intel(0): Enabled output HDMI1
[     9.572] (II) intel(0): Output DP1 has no monitor section
[     9.572] (II) intel(0): Enabled output DP1
[     9.572] (II) intel(0): Output HDMI2 has no monitor section
[     9.572] (II) intel(0): Enabled output HDMI2
[     9.572] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[     9.572] (II) intel(0): Output VIRTUAL1 has no monitor section
[     9.572] (II) intel(0): Enabled output VIRTUAL1
[     9.572] (--) intel(0): Output eDP1 using initial mode 1366x768 on pipe 0
[     9.573] (==) intel(0): TearFree enabled
[     9.573] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[     9.573] (==) intel(0): DPI set to (96, 96)
[     9.573] (II) Loading sub module "dri3"
[     9.573] (II) LoadModule: "dri3"
[     9.573] (II) Module "dri3" already built-in
[     9.573] (II) Loading sub module "dri2"
[     9.573] (II) LoadModule: "dri2"
[     9.573] (II) Module "dri2" already built-in
[     9.573] (II) Loading sub module "present"
[     9.573] (II) LoadModule: "present"
[     9.573] (II) Module "present" already built-in
[     9.577] (II) intel(0): SNA initialized with Kabylake (gen9) backend
[     9.577] (==) intel(0): Backing store enabled
[     9.577] (==) intel(0): Silken mouse enabled
[     9.577] (II) intel(0): HW Cursor enabled
[     9.577] (==) intel(0): DPMS enabled
[     9.577] (==) intel(0): Display hotplug detection enabled
[     9.578] (II) intel(0): [DRI2] Setup complete
[     9.578] (II) intel(0): [DRI2]   DRI driver: i965
[     9.578] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[     9.578] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[     9.578] (II) intel(0): hardware support for Present enabled
[     9.578] (WW) intel(0): Option "PreferredMode" is not used
[     9.578] (II) Initializing extension Generic Event Extension
[     9.578] (II) Initializing extension SHAPE
[     9.579] (II) Initializing extension MIT-SHM
[     9.579] (II) Initializing extension XInputExtension
[     9.580] (II) Initializing extension XTEST
[     9.580] (II) Initializing extension BIG-REQUESTS
[     9.580] (II) Initializing extension SYNC
[     9.580] (II) Initializing extension XKEYBOARD
[     9.581] (II) Initializing extension XC-MISC
[     9.581] (II) Initializing extension SECURITY
[     9.581] (II) Initializing extension XFIXES
[     9.581] (II) Initializing extension RENDER
[     9.582] (II) Initializing extension RANDR
[     9.582] (II) Initializing extension COMPOSITE
[     9.582] (II) Initializing extension DAMAGE
[     9.583] (II) Initializing extension MIT-SCREEN-SAVER
[     9.583] (II) Initializing extension DOUBLE-BUFFER
[     9.583] (II) Initializing extension RECORD
[     9.583] (II) Initializing extension DPMS
[     9.584] (II) Initializing extension Present
[     9.584] (II) Initializing extension DRI3
[     9.584] (II) Initializing extension X-Resource
[     9.584] (II) Initializing extension XVideo
[     9.584] (II) Initializing extension XVideo-MotionCompensation
[     9.584] (II) Initializing extension GLX
[     9.585] (EE) AIGLX error: dlopen of /usr/lib/dri/i965_dri.so failed (/usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory)
[     9.585] (EE) AIGLX error: unable to load driver i965
[     9.901] (II) IGLX: Loaded and initialized swrast
[     9.901] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[     9.901] (II) Initializing extension XFree86-VidModeExtension
[     9.901] (II) Initializing extension XFree86-DGA
[     9.901] (II) Initializing extension XFree86-DRI
[     9.902] (II) Initializing extension DRI2
[     9.908] (II) intel(0): switch to mode 1366x768@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[     9.924] (II) intel(0): Setting screen physical size to 361 x 203
[    10.063] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    10.063] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    10.063] (**) Power Button: Applying InputClass "system-keyboard"
[    10.063] (II) LoadModule: "libinput"
[    10.063] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    10.069] (II) Module libinput: vendor="X.Org Foundation"
[    10.069] 	compiled for 1.21.1.3, module version = 1.2.1
[    10.069] 	Module class: X.Org XInput Driver
[    10.069] 	ABI class: X.Org XInput driver, version 24.4
[    10.069] (II) Using input driver 'libinput' for 'Power Button'
[    10.069] (**) Power Button: always reports core events
[    10.069] (**) Option "Device" "/dev/input/event3"
[    10.082] (II) event3  - Power Button: is tagged by udev as: Keyboard
[    10.082] (II) event3  - Power Button: device is a keyboard
[    10.082] (II) event3  - Power Button: device removed
[    10.107] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[    10.107] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    10.107] (**) Option "xkb_layout" "be"
[    10.146] (II) event3  - Power Button: is tagged by udev as: Keyboard
[    10.146] (II) event3  - Power Button: device is a keyboard
[    10.147] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[    10.147] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    10.147] (**) Video Bus: Applying InputClass "system-keyboard"
[    10.147] (II) Using input driver 'libinput' for 'Video Bus'
[    10.147] (**) Video Bus: always reports core events
[    10.147] (**) Option "Device" "/dev/input/event4"
[    10.149] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[    10.149] (II) event4  - Video Bus: device is a keyboard
[    10.149] (II) event4  - Video Bus: device removed
[    10.193] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input4/event4"
[    10.193] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    10.193] (**) Option "xkb_layout" "be"
[    10.195] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[    10.195] (II) event4  - Video Bus: device is a keyboard
[    10.195] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    10.195] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    10.195] (**) Power Button: Applying InputClass "system-keyboard"
[    10.195] (II) Using input driver 'libinput' for 'Power Button'
[    10.195] (**) Power Button: always reports core events
[    10.195] (**) Option "Device" "/dev/input/event2"
[    10.196] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    10.196] (II) event2  - Power Button: device is a keyboard
[    10.196] (II) event2  - Power Button: device removed
[    10.230] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2/event2"
[    10.230] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[    10.230] (**) Option "xkb_layout" "be"
[    10.233] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    10.233] (II) event2  - Power Button: device is a keyboard
[    10.235] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[    10.235] (II) No input driver specified, ignoring this device.
[    10.235] (II) This device may have been added with another device file.
[    10.237] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[    10.237] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    10.237] (**) Sleep Button: Applying InputClass "system-keyboard"
[    10.237] (II) Using input driver 'libinput' for 'Sleep Button'
[    10.237] (**) Sleep Button: always reports core events
[    10.237] (**) Option "Device" "/dev/input/event0"
[    10.240] (II) event0  - Sleep Button: is tagged by udev as: Keyboard
[    10.240] (II) event0  - Sleep Button: device is a keyboard
[    10.240] (II) event0  - Sleep Button: device removed
[    10.287] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0/event0"
[    10.287] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[    10.287] (**) Option "xkb_layout" "be"
[    10.290] (II) event0  - Sleep Button: is tagged by udev as: Keyboard
[    10.290] (II) event0  - Sleep Button: device is a keyboard
[    10.294] (II) config/udev: Adding input device HP HD Camera: HP HD Camera (/dev/input/event14)
[    10.294] (**) HP HD Camera: HP HD Camera: Applying InputClass "libinput keyboard catchall"
[    10.294] (**) HP HD Camera: HP HD Camera: Applying InputClass "system-keyboard"
[    10.294] (II) Using input driver 'libinput' for 'HP HD Camera: HP HD Camera'
[    10.294] (**) HP HD Camera: HP HD Camera: always reports core events
[    10.294] (**) Option "Device" "/dev/input/event14"
[    10.298] (II) event14 - HP HD Camera: HP HD Camera: is tagged by udev as: Keyboard
[    10.298] (II) event14 - HP HD Camera: HP HD Camera: device is a keyboard
[    10.298] (II) event14 - HP HD Camera: HP HD Camera: device removed
[    10.340] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input23/event14"
[    10.340] (II) XINPUT: Adding extended input device "HP HD Camera: HP HD Camera" (type: KEYBOARD, id 10)
[    10.340] (**) Option "xkb_layout" "be"
[    10.344] (II) event14 - HP HD Camera: HP HD Camera: is tagged by udev as: Keyboard
[    10.345] (II) event14 - HP HD Camera: HP HD Camera: device is a keyboard
[    10.346] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event9)
[    10.346] (II) No input driver specified, ignoring this device.
[    10.346] (II) This device may have been added with another device file.
[    10.347] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event10)
[    10.348] (II) No input driver specified, ignoring this device.
[    10.348] (II) This device may have been added with another device file.
[    10.349] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event11)
[    10.349] (II) No input driver specified, ignoring this device.
[    10.349] (II) This device may have been added with another device file.
[    10.350] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event12)
[    10.350] (II) No input driver specified, ignoring this device.
[    10.350] (II) This device may have been added with another device file.
[    10.351] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event13)
[    10.351] (II) No input driver specified, ignoring this device.
[    10.351] (II) This device may have been added with another device file.
[    10.353] (II) config/udev: Adding input device Synaptics TM3246-001 (/dev/input/event15)
[    10.353] (**) Synaptics TM3246-001: Applying InputClass "libinput touchpad catchall"
[    10.353] (**) Synaptics TM3246-001: Applying InputClass "touchpad catchall"
[    10.353] (**) Synaptics TM3246-001: Applying InputClass "Default clickpad buttons"
[    10.353] (**) Synaptics TM3246-001: Applying InputClass "touchpad catchall"
[    10.353] (**) Synaptics TM3246-001: Applying InputClass "touchpad"
[    10.353] (**) Synaptics TM3246-001: Applying InputClass "Default clickpad buttons"
[    10.354] (II) LoadModule: "synaptics"
[    10.354] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
[    10.357] (II) Module synaptics: vendor="X.Org Foundation"
[    10.357] 	compiled for 1.21.1.3, module version = 1.9.2
[    10.357] 	Module class: X.Org XInput Driver
[    10.357] 	ABI class: X.Org XInput driver, version 24.4
[    10.357] (II) Using input driver 'synaptics' for 'Synaptics TM3246-001'
[    10.357] (**) Synaptics TM3246-001: always reports core events
[    10.357] (**) Option "Protocol" "auto-dev"
[    10.357] (**) Option "Device" "/dev/input/event15"
[    10.393] (II) synaptics: Synaptics TM3246-001: found clickpad property
[    10.394] (--) synaptics: Synaptics TM3246-001: x-axis range 0 - 2352 (res 20)
[    10.394] (--) synaptics: Synaptics TM3246-001: y-axis range 0 - 1252 (res 20)
[    10.394] (--) synaptics: Synaptics TM3246-001: pressure range 0 - 255
[    10.394] (II) synaptics: Synaptics TM3246-001: device does not report finger width.
[    10.394] (--) synaptics: Synaptics TM3246-001: buttons: left double triple
[    10.394] (--) synaptics: Synaptics TM3246-001: Vendor 0x6cb Product 0
[    10.394] (--) synaptics: Synaptics TM3246-001: invalid finger width range.  defaulting to 0 - 15
[    10.394] (**) Option "HorizHysteresis" "1"
[    10.394] (**) Option "VertHysteresis" "1"
[    10.394] (**) Option "MaxTapMove" "10"
[    10.394] (**) Option "VertScrollDelta" "-225"
[    10.394] (**) Option "HorizScrollDelta" "-225"
[    10.394] (**) Option "HorizTwoFingerScroll" "on"
[    10.394] (**) Option "TapButton1" "1"
[    10.394] (**) Option "TapButton2" "3"
[    10.394] (**) Option "TapButton3" "2"
[    10.394] (**) Option "MinSpeed" "0.75"
[    10.394] (**) Option "MaxSpeed" "0.85"
[    10.394] (**) Option "AccelFactor" "0.025"
[    10.394] (**) Option "CoastingSpeed" "0.1"
[    10.394] (**) Option "CoastingFriction" "35"
[    10.394] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[    10.394] (--) synaptics: Synaptics TM3246-001: touchpad found
[    10.394] (**) Synaptics TM3246-001: always reports core events
[    10.427] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1f.4/i2c-5/5-002c/rmi4-00/input/input22/event15"
[    10.427] (II) XINPUT: Adding extended input device "Synaptics TM3246-001" (type: TOUCHPAD, id 11)
[    10.427] (**) synaptics: Synaptics TM3246-001: (accel) MinSpeed is now constant deceleration 1.3
[    10.427] (**) synaptics: Synaptics TM3246-001: (accel) MaxSpeed is now 1.13
[    10.427] (**) synaptics: Synaptics TM3246-001: (accel) AccelFactor is now 0.025
[    10.427] (**) Synaptics TM3246-001: (accel) keeping acceleration scheme 1
[    10.427] (**) Synaptics TM3246-001: (accel) acceleration profile 1
[    10.427] (**) Synaptics TM3246-001: (accel) acceleration factor: 2.000
[    10.427] (**) Synaptics TM3246-001: (accel) acceleration threshold: 4
[    10.427] (--) synaptics: Synaptics TM3246-001: touchpad found
[    10.429] (II) config/udev: Adding input device Synaptics TM3246-001 (/dev/input/mouse0)
[    10.429] (**) Synaptics TM3246-001: Ignoring device from InputClass "touchpad ignore duplicates"
[    10.431] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[    10.431] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    10.431] (**) AT Translated Set 2 keyboard: Applying InputClass "system-keyboard"
[    10.431] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    10.431] (**) AT Translated Set 2 keyboard: always reports core events
[    10.431] (**) Option "Device" "/dev/input/event5"
[    10.434] (II) event5  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[    10.434] (II) event5  - AT Translated Set 2 keyboard: device is a keyboard
[    10.436] (II) event5  - AT Translated Set 2 keyboard: device removed
[    10.453] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input5/event5"
[    10.454] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 12)
[    10.454] (**) Option "xkb_layout" "be"
[    10.457] (II) event5  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[    10.457] (II) event5  - AT Translated Set 2 keyboard: device is a keyboard
[    10.460] (II) config/udev: Adding input device ST LIS3LV02DL Accelerometer (/dev/input/event7)
[    10.460] (II) No input driver specified, ignoring this device.
[    10.460] (II) This device may have been added with another device file.
[    10.461] (II) config/udev: Adding input device ST LIS3LV02DL Accelerometer (/dev/input/js0)
[    10.461] (II) No input driver specified, ignoring this device.
[    10.461] (II) This device may have been added with another device file.
[    10.470] (II) config/udev: Adding input device Wireless hotkeys (/dev/input/event6)
[    10.470] (**) Wireless hotkeys: Applying InputClass "libinput keyboard catchall"
[    10.470] (**) Wireless hotkeys: Applying InputClass "system-keyboard"
[    10.470] (II) Using input driver 'libinput' for 'Wireless hotkeys'
[    10.470] (**) Wireless hotkeys: always reports core events
[    10.470] (**) Option "Device" "/dev/input/event6"
[    10.472] (II) event6  - Wireless hotkeys: is tagged by udev as: Keyboard
[    10.472] (II) event6  - Wireless hotkeys: device is a keyboard
[    10.472] (II) event6  - Wireless hotkeys: device removed
[    10.507] (**) Option "config_info" "udev:/sys/devices/virtual/input/input10/event6"
[    10.507] (II) XINPUT: Adding extended input device "Wireless hotkeys" (type: KEYBOARD, id 13)
[    10.507] (**) Option "xkb_layout" "be"
[    10.509] (II) event6  - Wireless hotkeys: is tagged by udev as: Keyboard
[    10.509] (II) event6  - Wireless hotkeys: device is a keyboard
[    10.511] (II) config/udev: Adding input device HP WMI hotkeys (/dev/input/event8)
[    10.511] (**) HP WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[    10.511] (**) HP WMI hotkeys: Applying InputClass "system-keyboard"
[    10.511] (II) Using input driver 'libinput' for 'HP WMI hotkeys'
[    10.511] (**) HP WMI hotkeys: always reports core events
[    10.511] (**) Option "Device" "/dev/input/event8"
[    10.513] (II) event8  - HP WMI hotkeys: is tagged by udev as: Keyboard Switch
[    10.513] (II) event8  - HP WMI hotkeys: device is a keyboard
[    10.513] (II) event8  - HP WMI hotkeys: device removed
[    10.533] (**) Option "config_info" "udev:/sys/devices/virtual/input/input15/event8"
[    10.533] (II) XINPUT: Adding extended input device "HP WMI hotkeys" (type: KEYBOARD, id 14)
[    10.533] (**) Option "xkb_layout" "be"
[    10.536] (II) event8  - HP WMI hotkeys: is tagged by udev as: Keyboard Switch
[    10.536] (II) event8  - HP WMI hotkeys: device is a keyboard
[    11.578] (II) intel(0): EDID vendor "CMN", prod id 5573
[    11.578] (II) intel(0): Printing DDC gathered Modelines:
[    11.578] (II) intel(0): Modeline "1366x768"x0.0   76.42  1366 1434 1479 1592  768 772 779 800 +hsync -vsync (48.0 kHz eP)
[    11.578] (II) intel(0): Modeline "1366x768"x0.0   50.95  1366 1434 1479 1592  768 772 779 800 +hsync -vsync (32.0 kHz e)

Thanks in advance for your answers and sorry if this is the wrong place to post this, I'm new to this forum !

Last edited by kStor2poche (2023-03-07 12:38:01)

Offline

#2 2023-03-06 19:20:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,093

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

Everything in that log suggests xf86-video-intel is in use, remove it and the reference to it from the config and retry

Offline

#3 2023-03-06 19:44:47

kStor2poche
Member
Registered: 2023-03-06
Posts: 6

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

V1del wrote:

Everything in that log suggests xf86-video-intel is in use, remove it and the reference to it from the config and retry

Sorry, my mistake there, it has been quite some time since I last dived into this.
However, deleting the package xf86-video-intel and re-doing all the xrandr commands (with eDP-1 instead of eDP1 as the naming changes between drivers)  still results in the "xrandr: Configure crtc 0 failed" error.

Offline

#4 2023-03-06 21:30:01

seth
Member
Registered: 2012-09-03
Posts: 53,250

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

edid-decode -X /sys/class/drm/card0-eDP1/edid

https://aur.archlinux.org/packages/edid-decode-git

The output name might have changed from eDP1 w/ teh modesetting driver, so adjust that if necessary.

Offline

#5 2023-03-07 00:20:10

kStor2poche
Member
Registered: 2023-03-06
Posts: 6

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

seth wrote:
edid-decode -X /sys/class/drm/card0-eDP1/edid

https://aur.archlinux.org/packages/edid-decode-git

The output name might have changed from eDP1 w/ teh modesetting driver, so adjust that if necessary.

Yes, it indeed changed, as I said in my last message, and as such, running this command lead to

edid-decode (hex):

00 ff ff ff ff ff ff 00 0d ae c5 15 00 00 00 00
27 18 01 04 95 22 13 78 02 c3 c5 91 55 54 94 28
24 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 da 1d 56 e2 50 00 20 30 44 2d
47 00 58 c1 10 00 00 1a e7 13 56 e2 50 00 20 30
44 2d 47 00 58 c1 10 00 00 1a 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02
00 0c 42 ff 0c 3c 6e 0f 0e 1a 73 00 00 00 00 4d

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: CMN
    Model: 5573
    Made in: week 39 of 2014
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 6
    DisplayPort interface
    Maximum image size: 34 cm x 19 cm
    Gamma: 2.20
    Supported color formats: RGB 4:4:4
    First detailed timing includes the native pixel format and preferred refresh rate
  Color Characteristics:
    Red  : 0.5693, 0.3320
    Green: 0.3281, 0.5810
    Blue : 0.1591, 0.1406
    White: 0.3134, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  1366x768    60.003141 Hz 683:384   48.003 kHz     76.420000 MHz (344 mm x 193 mm)
      Modeline "1366x768_60.00" 76.420  1366 1434 1479 1592  768 772 779 800  +HSync -VSync
    DTD 2:  1366x768    40.004711 Hz 683:384   32.004 kHz     50.950000 MHz (344 mm x 193 mm)
      Modeline "1366x768_40.00" 50.950  1366 1434 1479 1592  768 772 779 800  +HSync -VSync
    Empty Descriptor
    Manufacturer-Specified Display Descriptor (0x02): 00 02 00 0c 42 ff 0c 3c 6e 0f 0e 1a 73 00 00 00 '....B..<n...s...'
Checksum: 0x4d

Which doesn't include 1366x768 90Hz, though that's to be expected as this isn't a resolution originally within the monitor's specs, but one that it can be driven to with custom timings (which I validated work on windows, with no problem). Unless there's something less obvious with the edid that I missed here, or something about how crtc works on linux.

Offline

#6 2023-03-07 06:59:42

seth
Member
Registered: 2012-09-03
Posts: 53,250

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

See whether driver and output allow the cvt12 modeline:

# 1366x768 @ 90.000 Hz Reduced Blank (CVT) field rate 90.000 Hz; hsync: 72.180 kHz; pclk: 104.37 MHz
Modeline "1366x768_90.00_rb2"  104.37  1366 1374 1406 1446  768 788 796 802 +hsync -vsync

Though the output modelines are completely non-standard.
You might have to extend the edid, https://wiki.archlinux.org/title/Kernel … s_and_EDID

Offline

#7 2023-03-07 11:35:03

kStor2poche
Member
Registered: 2023-03-06
Posts: 6

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

seth wrote:

See whether driver and output allow the cvt12 modeline:

# 1366x768 @ 90.000 Hz Reduced Blank (CVT) field rate 90.000 Hz; hsync: 72.180 kHz; pclk: 104.37 MHz
Modeline "1366x768_90.00_rb2"  104.37  1366 1374 1406 1446  768 788 796 802 +hsync -vsync

Though the output modelines are completely non-standard.
You might have to extend the edid, https://wiki.archlinux.org/title/Kernel … s_and_EDID

Okay, thanks for the lead ! I didn't know how I could know if the driver and output allow your cvt12 modeline other than by trying to add this mode and output it. This resulted in the same "Configure crtc 0 failed" error.

So I tried to make a custom edid with that mode, first replacing one of the default modes

edid-decode (hex):

00 ff ff ff ff ff ff 00 0d ae c5 15 00 00 00 00
27 18 01 04 95 22 13 78 02 c3 c5 91 55 54 94 28
24 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 da 1d 56 e2 50 00 20 30 44 2d
47 00 58 c1 10 00 00 1a c5 28 56 50 50 00 22 30
08 20 48 04 58 c1 10 00 00 1a 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: CMN
    Model: 5573
    Made in: week 39 of 2014
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 6
    DisplayPort interface
    Maximum image size: 34 cm x 19 cm
    Gamma: 2.20
    Supported color formats: RGB 4:4:4
    First detailed timing includes the native pixel format and preferred refresh rate
  Color Characteristics:
    Red  : 0.5693, 0.3320
    Green: 0.3281, 0.5810
    Blue : 0.1591, 0.1406
    White: 0.3134, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  1366x768    60.003141 Hz 683:384   48.003 kHz     76.420000 MHz (344 mm x 193 mm)
      Modeline "1366x768_60.00" 76.420  1366 1434 1479 1592  768 772 779 800  +HSync -VSync
    DTD 2:  1366x768    89.998034 Hz 683:384   72.178 kHz    104.370000 MHz (344 mm x 193 mm)
      Modeline "1366x768_90.00" 104.370  1366 1374 1406 1446  768 788 796 802  +HSync -VSync
    Empty Descriptor
    Empty Descriptor
Checksum: 0xdd

and adding another detailed mode in an empty slot

edid-decode (hex):

00 ff ff ff ff ff ff 00 0d ae c5 15 00 00 00 00
27 18 01 04 95 22 13 78 02 c3 c5 91 55 54 94 28
24 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 da 1d 56 e2 50 00 20 30 44 2d
47 00 58 c1 10 00 00 1a e7 13 56 e2 50 00 20 30
44 2d 47 00 58 c1 10 00 00 1a c5 28 56 50 50 00
22 30 08 20 48 04 58 c1 10 00 00 1a 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: CMN
    Model: 5573
    Made in: week 39 of 2014
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 6
    DisplayPort interface
    Maximum image size: 34 cm x 19 cm
    Gamma: 2.20
    Supported color formats: RGB 4:4:4
    First detailed timing includes the native pixel format and preferred refresh rate
  Color Characteristics:
    Red  : 0.5693, 0.3320
    Green: 0.3281, 0.5810
    Blue : 0.1591, 0.1406
    White: 0.3134, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  1366x768    60.003141 Hz 683:384   48.003 kHz     76.420000 MHz (344 mm x 193 mm)
      Modeline "1366x768_60.00" 76.420  1366 1434 1479 1592  768 772 779 800  +HSync -VSync
    DTD 2:  1366x768    40.004711 Hz 683:384   32.004 kHz     50.950000 MHz (344 mm x 193 mm)
      Modeline "1366x768_40.00" 50.950  1366 1434 1479 1592  768 772 779 800  +HSync -VSync
    DTD 3:  1366x768    89.998034 Hz 683:384   72.178 kHz    104.370000 MHz (344 mm x 193 mm)
      Modeline "1366x768_90.00" 104.370  1366 1374 1406 1446  768 788 796 802  +HSync -VSync
    Empty Descriptor
Checksum: 0x10

It seems to have loaded correctly since, upon booting, /sys/modulte/drm/parameters/edid_firmware reads

eDP-1:edid/edid_custom.bin

and /usr/lib/firmware/edid/edid_custom.bin does indeed contain the edid data that I showed earlier (both were tried)

However, xrandr still doesn't have that mode as a default one (don't know if that's expected behavior or not) and adding your modeline and trying to output it still results in the same error.

Wiki talks about including the custom edid file in the initramfs though doesn't talk about how to do it, and a tutorial I found seems to roughly cover what the wiki covers, with some additionnal help for edid editing, so I don't know if by that, they mean what I just did, or if there is something I am missing.

Offline

#8 2023-03-07 12:11:14

seth
Member
Registered: 2012-09-03
Posts: 53,250

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

However, xrandr still doesn't have that mode as a default one

Please post an updated xorg log and xrandr output.

Wiki talks about including the custom edid file in the initramfs though doesn't talk about how to do it

https://wiki.archlinux.org/title/Mkinit … _and_FILES

Offline

#9 2023-03-07 12:37:38

kStor2poche
Member
Registered: 2023-03-06
Posts: 6

Re: [Solved] Unable to set custom resolution on Xorg with intel HD 620

seth wrote:

However, xrandr still doesn't have that mode as a default one

Please post an updated xorg log and xrandr output.

Wiki talks about including the custom edid file in the initramfs though doesn't talk about how to do it

https://wiki.archlinux.org/title/Mkinit … _and_FILES

Ok, thank you very much ! Adding the edid file to the initramfs did indeed solve the issue ! Will try to modify the wiki so as to make it more clear and mark the topic as solved.

Offline

Board footer

Powered by FluxBB