Unable to set uncommon screen resolution with Arc 380
I have got a 1920x860 screen. Have an iGPU (Intel Iris Pro II) and dedicated GPU (Intel Arc 380) and I can use only HDMI connection. Every time I connect the display to the iGPU (Iris Pro II) the 1920x860 resolution is set automatically with no issues. But every time I connect the display to the GPU (Arc 380) i only have the standard resolution 1024x768 available; this is not the screen resolution and does not respect the screen ratio (display results stretched); also I cannot set the correct one: 1920x860.
I have got my monitor edid.bin, put it in /usr/lib/firmware/edid/ and loaded it via mkinitcpio.conf:
MODULES=(i915)
FILES="/usr/lib/firmware/edid/edid.bin")
and KMS on boot:
drm.edid_firmware=HDMI-1:edid/edid.bin drm.edid_firmware=HDMI-A-1:edid/edid.bin
(I specified both HDMI-1 and HDMI-A-1 since the first is the monitor id assigned by X11 and the second is the id assigned by Wayland).
Updated mkinitcpio and grub:
# mkdinitcpio -P
# grub-mkconfig -o /boot/grub/grub.cfg
But unfortunately, using Arc 380 and i915 I still get only one resolution: 1024x768.
(Lately I also added to KMS: initcall_blacklist=simpledrm_platform_driver_init video=HDMI-A-1:1920x860@60 video=HDMI-1:1920x860@60
, but nothing changed).
There is no way I can set 1920x860 when i use the Arc 380. I also added the monitor native modesetting ("1920x860" 110.680 1920 1968 2000 2106 860 863 868 876 +hsync +vsync) (took it from edid file) via xrandr while using X11:
xrandr --newmode "1920x860" 110.680 1920 1968 2000 2106 860 863 868 876 +hsync +vsync
xrandr --addmode HDMI-A-1 1920x860
xrandr --addmode HDMI-1 1920x860
This way I can see this resolution in the Display Settings menu of KDE Plasma 6, XFCE and xrandr, but when I select it nothing changes (or everything goes black for a moment); this way the only resolutions I can set are the standard 1024x768 and the manually added 1920x1080, but both does not respect my screen ratio and the image results stretched.
Got two interesting parts of two dmesg (thanks to user seth from archlinux bbs):
Under Intel Iris Pro II (fine):
[ 82.498062] i915 0000:00:02.0: [drm:drm_dp_dual_mode_detect [drm_display_helper]] DP dual mode HDMI ID: (err -6)
[ 82.498124] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:87:HDMI-A-2] probed modes :
[ 82.498128] [drm:drm_mode_debug_printmodeline] Modeline "1920x860": 60 110680 1920 1968 2000 2106 860 863 868 876 0x48 0x5
Under Intel Arc 380 (bad):
[ 366.034865] i915 0000:03:00.0: [drm:drm_dp_dual_mode_detect [drm_display_helper]] DP dual mode HDMI ID: (err -6)
[ 366.034920] i915 0000:03:00.0: [drm] User-defined mode not supported: "1920x860": 60 110680 1920 1968 2000 2106 860 863 868 876 0x68 0x5
[ 366.034923] [drm:drm_mode_debug_printmodeline] Modeline "1920x860": 60 110680 1920 1968 2000 2106 860 863 868 876 0x68 0x5
[ 366.034937] [drm:drm_mode_prune_invalid] Not using 1920x860 mode: CLOCK_RANGE
Will give you some system infos:
Used both those kernels:
- 6.8.2.artix1-1
- 6.9.0-rc2-1-drm-tip-git-gd9a8dd807149 (using this actually).
$ glxinfo | grep "OpenGL version"
OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.3-arch1.2
My iGPU is actually disabled via bios, so I can see only se my dedicated GPU, the Intel Arc 380.
$ lspci -vnn -d :*:0300
03:00.0 VGA compatible controller [0300]: Intel Corporation DG2 [Arc A380] [8086:56a5] (rev 05) (prog-if 00 [VGA controller])
Subsystem: ASRock Incorporation DG2 [Arc A380] [1849:6006]
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at f6000000 (64-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
When the iGPU is not disabled via BIOS tho:
$ lspci -vnn -d :*:0300
00:02.0 VGA compatible controller [0300]: Intel Corporation Iris Pro Graphics 6200 [8086:1622] (rev 0a) (prog-if 00 [VGA controller])
DeviceName: Onboard IGD
Subsystem: ASUSTeK Computer Inc. Iris Pro Graphics 6200 [1043:8534]
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at f5000000 (64-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
03:00.0 VGA compatible controller [0300]: Intel Corporation DG2 [Arc A380] [8086:56a5] (rev 05) (prog-if 00 [VGA controller])
Subsystem: ASRock Incorporation DG2 [Arc A380] [1849:6006]
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at f6000000 (64-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Expansion ROM at f7000000 [disabled] [size=2M]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
Motherboard is Asus H97M Plus.
Attaching the complete dmesg after addinge "drm.debug=0xe log_buf_len=4M ignore_loglevel" as KMS. dmesg.txt
I am completely available to give you more logs, infos and to make tests on your indication.
Thank you for you time, attention and patience, greetings from Sicily.