You are not logged in.

#1 2022-11-11 14:08:58

fermino
Member
Registered: 2022-11-11
Posts: 1

Can't change resolution on hidpi display - configure crtc 0 failed

Hi! First post here so if anything's wrong let me know, I'll try to be as specific as I can!
I recently bought a laptop, it is an Asus Zenbook (Model UX3402) with an OLED display. I have two monitors besides the laptop and I would like to configure the display to almost match the resolution in those (1920x1080). I say almost because the aspect ratio in this one is 16:10 so I could use 1920x1200. The display's native resolution is 2880x1800. The reason behind this is that the scaling is global under X.org and wayland is not an option (I mean, it is, but that brings a whole new set of issues like migrating from i3 to sway, screenshots and whatnot), so after trying every possible combination of drivers, WMs and window servers I went back to the original idea of lowering the resolution. It is an Intel i5-1240P.

But when I try to change it with xrandr I get the following error:

$ xrandr --output eDP-1 --mode 1920x1200 --verbose
crtc 0: disable
screen 0: 6720x1200 1777x317 mm  96.05dpi
crtc 0:    1920x1200  59.88 +0+0 "eDP-1"
xrandr: Configure crtc 0 failed
crtc 0: disable
crtc 1: disable
crtc 2: disable
crtc 3: disable
screen 0: revert
crtc 0: revert
crtc 1: revert
crtc 2: revert
crtc 3: revert

And the following in the X.org log

[  1871.579] (II) modeset(0): Allocate new frame buffer 6720x1200 stride
[  1871.717] (EE) modeset(0): failed to set mode: No such file or directory
[  1871.829] (II) modeset(0): Allocate new frame buffer 6720x1800 stride

If I try installing the package xf86-video-intel I can actually change the resolution, but that brings a lot of other issues like heavy flickering.

I end up on this topic https://bbs.archlinux.org/viewtopic.php?id=274530, which seems to be the closest thing to what I'm experiencing right now; so I was wondering, I could create an edid file with the desired resolution based on the original one and boot with that instead. The thing is that I'm not sure how to do that (already installed wxedid and played around a little bit with it, but I'm not sure about some of the values I should set).

edid-decode output:

$ edid-decode < /sys/class/drm/card0-eDP-1/edid 
edid-decode (hex):

00 ff ff ff ff ff ff 00 4c 83 71 41 00 00 00 00
23 1e 01 04 b5 1e 13 78 02 0c f1 ae 52 3c b9 23
0c 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 a4 c3 40 50 b0 08 50 70 08 20
88 00 2e bd 10 00 00 1b a4 c3 40 50 b0 08 fc 73
08 20 88 00 2e bd 10 00 00 1b 00 00 00 0f 00 ff
0a 5a ff 0a 3c 28 80 00 00 00 00 00 00 00 00 fe
00 41 54 4e 41 34 30 59 4b 30 37 2d 30 20 01 83

02 03 0f 00 e3 05 80 00 e6 06 05 01 74 60 07 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 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 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 00 b7

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

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: SDC
    Model: 16753
    Made in: week 35 of 2020
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 10
    DisplayPort interface
    Maximum image size: 30 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.6796, 0.3203
    Green: 0.2373, 0.7226
    Blue : 0.1396, 0.0498
    White: 0.3125, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  2880x1800   90.001438 Hz   8:5    169.203 kHz    500.840000 MHz (302 mm x 189 mm)
                 Hfront    8 Hsync  32 Hback   40 Hpol P
                 Vfront    8 Vsync   8 Vback   64 Vpol N
    DTD 2:  2880x1800   60.000958 Hz   8:5    169.203 kHz    500.840000 MHz (302 mm x 189 mm)
                 Hfront    8 Hsync  32 Hback   40 Hpol P
                 Vfront    8 Vsync   8 Vback 1004 Vpol N
    Manufacturer-Specified Display Descriptor (0x0f): 00 0f 00 ff 0a 5a ff 0a 3c 28 80 00 00 00 00 00 '.....Z..<(......'
    Alphanumeric Data String: 'ATNA40YK07-0 '
  Extension blocks: 1
Checksum: 0x83

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

Block 1, CTA-861 Extension Block:
  Revision: 3
  Native detailed modes: 0
  Colorimetry Data Block:
    BT2020RGB
  HDR Static Metadata Data Block:
    Electro optical transfer functions:
      Traditional gamma - SDR luminance range
      SMPTE ST2084
    Supported static metadata descriptors:
      Static metadata type 1
    Desired content max luminance: 116 (616.884 cd/m^2)
    Desired content max frame-average luminance: 96 (400.000 cd/m^2)
    Desired content min luminance: 7 (0.005 cd/m^2)
Checksum: 0xb7  Unused space in Extension Block: 112 bytes

Any suggestion is appreciated, wheter related to the edid idea or the main resolution issue, thanks!
Kind regards!

Last edited by fermino (2022-11-11 14:11:36)

Offline

Board footer

Powered by FluxBB