You are not logged in.

#1 2023-09-14 04:59:36

botsunny
Member
Registered: 2022-03-14
Posts: 9

Changing resolution on my laptop has been broken since 6.5.2

I am currently facing a problem where my laptop screen becomes glitched when changing my resolution to anything below the laptop's native resolution (2880x1800). Here is a picture.

Current kernel: 6.5.3-arch1-1
DE: Plasma 5.27.8
Device: Lenovo Yoga Slim 7 Pro
Graphics: AMD Ryzen 7 4800H iGPU

This issue occurs in both X11 and Wayland. Connected external monitors can change to any resolution just fine. I missed a few updates before 6.5.2 so I am not sure at which point the problem begins. I am not even sure if it is an Arch issue, or a DE issue. I have no idea where to start and my eyes have been hurting from reading tiny text on a 14-inch 2.8K screen for a few days now lol.

Any help is appreciated!

Offline

#2 2023-09-14 07:16:51

seth
Member
Registered: 2012-09-03
Posts: 52,317

Re: Changing resolution on my laptop has been broken since 6.5.2

I have no idea where to start and my eyes have been hurting from reading tiny text on a 14-inch 2.8K screen for a few days now lol.

https://wiki.archlinux.org/title/Hidpi

Connected external monitors can change to any resolution just fine.

The panel might be unable to handle any other resolution

for OUT in /sys/class/drm/card0*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

Offline

#3 2023-09-14 07:55:24

botsunny
Member
Registered: 2022-03-14
Posts: 9

Re: Changing resolution on my laptop has been broken since 6.5.2

seth wrote:

I have no idea where to start and my eyes have been hurting from reading tiny text on a 14-inch 2.8K screen for a few days now lol.

https://wiki.archlinux.org/title/Hidpi

Connected external monitors can change to any resolution just fine.

The panel might be unable to handle any other resolution

for OUT in /sys/class/drm/card0*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

Thanks.

Running `ll` in `/sys/class/drm` returns

total 0
lrwxrwxrwx 1 root root    0 Sep 14 09:40 card1 -> ../../devices/pci0000:00/0000:00:08.1/0000:03:00.0/drm/card1/
lrwxrwxrwx 1 root root    0 Sep 14 09:40 card1-DP-1 -> ../../devices/pci0000:00/0000:00:08.1/0000:03:00.0/drm/card1/card1-DP-1/
lrwxrwxrwx 1 root root    0 Sep 14 09:40 card1-DP-2 -> ../../devices/pci0000:00/0000:00:08.1/0000:03:00.0/drm/card1/card1-DP-2/
lrwxrwxrwx 1 root root    0 Sep 14 09:40 card1-eDP-1 -> ../../devices/pci0000:00/0000:00:08.1/0000:03:00.0/drm/card1/card1-eDP-1/
lrwxrwxrwx 1 root root    0 Sep 14 09:40 renderD128 -> ../../devices/pci0000:00/0000:00:08.1/0000:03:00.0/drm/renderD128/
-r--r--r-- 1 root root 4.0K Sep 14 15:42 version

So I replaced `card0` with `card1`, and ran

for OUT in /sys/class/drm/card1*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

, which gives me

/sys/class/drm/card1
=================
/sys/class/drm/card1-DP-1
edid-decode (hex):

00 ff ff ff ff ff ff 00 4c 2d 0e 71 58 34 4a 34
05 1f 01 04 b5 3c 21 78 3b b6 e0 a3 56 50 a0 27
0e 50 54 bf ef 00 81 80 81 bc 95 00 95 3c b3 00
b3 3c d1 c0 d1 fc 02 3a 80 18 71 38 2d 40 58 2c
45 00 58 4a 21 00 00 1e 00 00 00 ff 00 48 34 43
52 31 30 30 31 35 37 4b 00 20 00 00 00 fd 00 30
90 b4 b4 22 01 0a 20 20 20 20 20 20 00 00 00 fc
00 46 32 37 47 33 78 54 46 0a 20 20 20 20 01 5b

02 03 26 f1 4b 01 03 05 14 04 13 1f 12 02 11 90
23 09 07 07 83 01 00 00 6d 1a 00 00 02 01 30 90
00 00 00 00 00 00 86 6f 80 a0 70 38 40 40 30 20
35 00 58 4a 21 00 00 1e fb 7e 80 72 70 38 1e 40
18 20 35 00 58 4a 21 00 00 1e 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 27

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

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: SAM
    Model: 28942
    Serial Number: 877278296
    Made in: week 5 of 2021
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 10
    DisplayPort interface
    Maximum image size: 60 cm x 33 cm
    Gamma: 2.20
    DPMS levels: Off
    Supported color formats: RGB 4:4:4, YCrCb 4:4:4, YCrCb 4:2:2
    First detailed timing includes the native pixel format and preferred refresh rate
    Display is continuous frequency
  Color Characteristics:
    Red  : 0.6386, 0.3388
    Green: 0.3134, 0.6269
    Blue : 0.1552, 0.0566
    White: 0.3125, 0.3281
  Established Timings I & II:
    IBM     :   720x400    70.081663 Hz   9:5     31.467 kHz     28.320000 MHz
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    Apple   :   640x480    66.666667 Hz   4:3     35.000 kHz     30.240000 MHz
    DMT 0x05:   640x480    72.808802 Hz   4:3     37.861 kHz     31.500000 MHz
    DMT 0x06:   640x480    75.000000 Hz   4:3     37.500 kHz     31.500000 MHz
    DMT 0x08:   800x600    56.250000 Hz   4:3     35.156 kHz     36.000000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x0a:   800x600    72.187572 Hz   4:3     48.077 kHz     50.000000 MHz
    DMT 0x0b:   800x600    75.000000 Hz   4:3     46.875 kHz     49.500000 MHz
    Apple   :   832x624    74.551266 Hz   4:3     49.726 kHz     57.284000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
    DMT 0x11:  1024x768    70.069359 Hz   4:3     56.476 kHz     75.000000 MHz
    DMT 0x12:  1024x768    75.028582 Hz   4:3     60.023 kHz     78.750000 MHz
    DMT 0x24:  1280x1024   75.024675 Hz   5:4     79.976 kHz    135.000000 MHz
  Standard Timings:
    DMT 0x23:  1280x1024   60.019740 Hz   5:4     63.981 kHz    108.000000 MHz
    GTF     :  1280x1024  120.000185 Hz   5:4    131.640 kHz    233.793000 MHz
    DMT 0x2f:  1440x900    59.887445 Hz  16:10    55.935 kHz    106.500000 MHz
    GTF     :  1440x900   119.999896 Hz  16:10   115.800 kHz    229.747000 MHz
    DMT 0x3a:  1680x1050   59.954250 Hz  16:10    65.290 kHz    146.250000 MHz
    GTF     :  1680x1050  120.000000 Hz  16:10   135.000 kHz    313.200000 MHz
    DMT 0x52:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
    GTF     :  1920x1080  119.999987 Hz  16:9    138.840 kHz    368.759000 MHz
  Detailed Timing Descriptors:
    DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (600 mm x 330 mm)
                 Hfront   88 Hsync  44 Hback  148 Hpol P
                 Vfront    4 Vsync   5 Vback   36 Vpol P
    Display Product Serial Number: 'H4CR100157K'
    Display Range Limits:
      Monitor ranges (Bare Limits): 48-144 Hz V, 180-180 kHz H, max dotclock 340 MHz
    Display Product Name: 'F27G3xTF'
  Extension blocks: 1
Checksum: 0x5b

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

Block 1, CTA-861 Extension Block:
  Revision: 3
  Underscans IT Video Formats by default
  Basic audio support
  Supports YCbCr 4:4:4
  Supports YCbCr 4:2:2
  Native detailed modes: 1
  Video Data Block:
    VIC   1:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    VIC   3:   720x480    59.940060 Hz  16:9     31.469 kHz     27.000000 MHz
    VIC   5:  1920x1080i  60.000000 Hz  16:9     33.750 kHz     74.250000 MHz
    VIC  20:  1920x1080i  50.000000 Hz  16:9     28.125 kHz     74.250000 MHz
    VIC   4:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    VIC  19:  1280x720    50.000000 Hz  16:9     37.500 kHz     74.250000 MHz
    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz
    VIC  18:   720x576    50.000000 Hz  16:9     31.250 kHz     27.000000 MHz
    VIC   2:   720x480    59.940060 Hz   4:3     31.469 kHz     27.000000 MHz
    VIC  17:   720x576    50.000000 Hz   4:3     31.250 kHz     27.000000 MHz
    VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (native)
  Audio Data Block:
    Linear PCM:
      Max channels: 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
  Vendor-Specific Data Block (AMD), OUI 00-00-1A:
    Version: 2.1
    Minimum Refresh Rate: 48 Hz
    Maximum Refresh Rate: 144 Hz
    Flags 1.x: 0x00
    Flags 2.x: 0x00
    Maximum luminance: 0 (50.000 cd/m^2)
    Minimum luminance: 0 (0.000 cd/m^2)
    Unknown: 0x00 0x00
  Detailed Timing Descriptors:
    DTD 2:  1920x1080  119.982181 Hz  16:9    137.260 kHz    285.500000 MHz (600 mm x 330 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   56 Vpol P
    DTD 3:  1920x1080  143.980263 Hz  16:9    159.818 kHz    325.070000 MHz (600 mm x 330 mm)
                 Hfront   24 Hsync  32 Hback   58 Hpol P
                 Vfront    3 Vsync   5 Vback   22 Vpol P
Checksum: 0x27  Unused space in Extension Block: 53 bytes
=================
/sys/class/drm/card1-DP-2
EDID of '/sys/class/drm/card1-DP-2/edid' was empty.
=================
/sys/class/drm/card1-eDP-1
edid-decode (hex):

00 ff ff ff ff ff ff 00 0e 6f 02 14 00 00 00 00
00 1e 01 04 b5 1e 13 78 02 ee 95 a3 54 4c 99 26
0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 b6 c8 40 a0 b0 08 4e 70 30 20
36 00 2e bc 10 00 00 18 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 18 00 00 00 fe 00 43
53 4f 54 20 54 33 0a 20 20 20 20 20 00 00 00 fe
00 4d 4e 45 30 30 37 5a 41 31 2d 31 0a 20 00 d3

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

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: CSO
    Model: 5122
    Made in: 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.6396, 0.3300
    Green: 0.2998, 0.5996
    Blue : 0.1503, 0.0595
    White: 0.3134, 0.3291
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:  2880x1800   89.999860 Hz  16:10   169.020 kHz    513.820000 MHz (302 mm x 188 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol N
                 Vfront    3 Vsync   6 Vback   69 Vpol N
    Manufacturer-Specified Display Descriptor (0x00): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 18 '................'
    Alphanumeric Data String: 'CSOT T3'
    Alphanumeric Data String: 'MNE007ZA1-1'
Checksum: 0xd3
=================

`card1-DP-1` should be my external 1080p monitor while `card1-eDP-1` is my laptop panel.

Offline

#4 2023-09-14 08:09:13

seth
Member
Registered: 2012-09-03
Posts: 52,317

Re: Changing resolution on my laptop has been broken since 6.5.2

So I replaced `card0` with `card1`, and ran

Please post your complete system journal for the boot:

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

Try to add

initcall_blacklist=simpledrm_platform_driver_init

https://wiki.archlinux.org/title/Kernel_parameters

However, the edid shows that the eDP advertises only one mode,

DTD 1:  2880x1800   89.999860 Hz  16:10   169.020 kHz    513.820000 MHz (302 mm x 188 mm)

so quite likely you'll have to use that and either fix the DPI or scale the framebuffer.

Offline

#5 2023-09-14 23:37:11

botsunny
Member
Registered: 2022-03-14
Posts: 9

Re: Changing resolution on my laptop has been broken since 6.5.2

seth wrote:

So I replaced `card0` with `card1`, and ran

Please post your complete system journal for the boot:

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

Try to add

initcall_blacklist=simpledrm_platform_driver_init

https://wiki.archlinux.org/title/Kernel_parameters

However, the edid shows that the eDP advertises only one mode,

DTD 1:  2880x1800   89.999860 Hz  16:10   169.020 kHz    513.820000 MHz (302 mm x 188 mm)

so quite likely you'll have to use that and either fix the DPI or scale the framebuffer.

Here's the journal without the blacklist kernel parameter: https://0x0.st/HOsP.txt
And here's the journal with it (issue still persists): https://0x0.st/HOsm.txt

I have always been able to change the screen resolution on my laptop. Is there likely an update to some software that has broken it?

Offline

#6 2023-09-15 00:21:19

botsunny
Member
Registered: 2022-03-14
Posts: 9

Re: Changing resolution on my laptop has been broken since 6.5.2

I believe I have found an issue thread connected to my problem:
https://gitlab.freedesktop.org/drm/amd/-/issues/2693

Offline

#7 2023-09-15 06:57:48

seth
Member
Registered: 2012-09-03
Posts: 52,317

Re: Changing resolution on my laptop has been broken since 6.5.2

Still/again https://bbs.archlinux.org/viewtopic.php … 8#p2109348 ?
How many "few" tongue  updates did you miss?
Does the LTS kernel still work as expected?

Offline

#8 2023-09-15 08:55:05

GARN3K
Member
Registered: 2023-09-14
Posts: 1

Re: Changing resolution on my laptop has been broken since 6.5.2

I'm also an owner of Lenovo Yoga Slim 7 Pro, however I have a different display - 2.2k 60Hz - and mine just turns black but with backlight on. I've encountered the issue while upgrading from kernel 6.4.12 -> 6.5.3. Downgrading to 6.4.12 fixes the issue, so It has occured between 6.5-6.5.2.

The second display is detected by WM (sway). You can move workspaces there, and it's detected by Wdisplays - and the preview there is also working and you see what's on that screen. For me the screen is just black - but turned on. On kernel 6.4.12 edid only shows only one mode but different resolutions still work.

Last edited by GARN3K (2023-09-15 11:00:28)

Offline

#9 2023-09-16 04:31:29

botsunny
Member
Registered: 2022-03-14
Posts: 9

Re: Changing resolution on my laptop has been broken since 6.5.2

seth wrote:

Still/again https://bbs.archlinux.org/viewtopic.php … 8#p2109348 ?
How many "few" tongue  updates did you miss?
Does the LTS kernel still work as expected?

I only remember not having updated in a month or so as I was working on a major assignment hahaha. But yeah the LTS kernel works. Guess the only solution now is to wait for a patch on the default kernel?

Offline

#10 2023-09-16 07:08:08

seth
Member
Registered: 2012-09-03
Posts: 52,317

Re: Changing resolution on my laptop has been broken since 6.5.2

Yes, the patch discussed in https://gitlab.freedesktop.org/drm/amd/-/issues/2693 is not in the current master and acording to A. Deucher was reverted for the initial 6.5
https://git.kernel.org/pub/scm/linux/ke … 1a6b8dcc29 looks interesting

You might want to try the state of https://aur.archlinux.org/packages/linux-drm-tip-git

Offline

#11 2023-09-22 13:43:08

Crispy24
Member
Registered: 2015-04-23
Posts: 10

Re: Changing resolution on my laptop has been broken since 6.5.2

I was experiencing the same issue, and this thread helped me figure it out. The fix for me was to install the LTS kernel.

I'm on an ASUS Vivobook M7400 that had kernel 6.5.3-arch1-1. The preferred resolution of the display was 2880x1800, and trying to set it to anything else with xrandr would just cause it to go black.

After installing linux-lts and regenerating the grub config, changing the resolution of the display with xrandr works fine, now (only works for resolutions of the same aspect ratio as the preferred 2880x1800).

Offline

Board footer

Powered by FluxBB