有联想小新pro14 i9朋友装ubuntu的吗,交流下
发表于 : 2023-11-09 15:44
我的目前升级到了 6.2.0-36-generic 内核。一直都不能设置刷新率到120hz,只能固定60hz.
其它功能正常
其它功能正常
可惜,我看不懂astolia 写了: ↑2023-11-14 16:03 提供点线索:
https://bbs.archlinux.org/viewtopic.php?id=289701 这篇帖子6楼里面提到小新pro14锐龙版的海外版本Ideapad Pro 5 14APH8,它的显示器的edid数据有错误。而从德国论坛的原始帖子看,出错的地方正好是120hz显示的配置。那个帖子的楼主也正是手动修正了错误数据后,恢复了120hz的显示功能
如果你确认和他是同样的原因,那么可以按同样的方式处理,在mkinitcpio之前的步骤应该都是一样的。ubuntu上没有mkinitcpio,用update-initramfs代替,
如果需要在initramfs里包含,在/etc/initramfs-tools/hooks下面创建个可执行shell脚本,内容可以参考/usr/share/initramfs-tools/hooks下面的kbd文件,不要PREREQ,用copy_exec把文件复制进去
看不懂你早说啊。
代码: 全选
sudo apt install edid-decode
代码: 全选
edid-decode < /sys/class/drm/card1-eDP-1/edid
代码: 全选
Block 1, DisplayID Extension Block:
Version: 1.3
Extension Count: 0
Display Product Type: Extension Section
Video Timing Modes Type 1 - Detailed Timings Data Block:
DTD: 2880x1800 120.000207 Hz 16:10 228.720 kHz 695.310000 MHz (aspect 16:10, no 3D stereo)
Hfront 48 Hsync 32 Hback 80 Hpol N
Vfront 3 Vsync 6 Vback 97 Vpol N
Checksum: 0xf0 (should be 0xf8)
Checksum: 0x98
代码: 全选
00 ff ff ff ff ff ff 00 0e 6f 16 14 00 00 00 00
00 20 01 04 b5 1e 13 78 03 21 15 a8 53 49 9c 25
0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 ce 87 40 a0 b0 08 6a 70 30 20
36 00 2d bc 10 00 00 18 00 00 00 fd 00 28 78 e5
e5 46 01 0a 20 20 20 20 20 20 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 35 0a 20 01 af
70 13 79 00 00 03 01 14 9a 0f 01 05 3f 0b 9f 00
2f 00 1f 00 07 07 69 00 02 00 05 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 f0 98
代码: 全选
xxd -p /sys/class/drm/card1-eDP-1/edid | sed -E 's/f098$/f890/g' | xxd -p -r > edid_new.bin
代码: 全选
edid-decode < edid_new.bin
代码: 全选
sudo cp edid_new.bin /lib/firmware/
代码: 全选
GRUB_CMDLINE_LINUX="drm.edid_firmware=eDP-1:edid_new.bin"
代码: 全选
sudo update-grub
代码: 全选
#!/bin/sh
cp --parents /lib/firmware/edid_new.bin ${DESTDIR}
代码: 全选
sudo chmod 755 /etc/initramfs-tools/hooks/edid
代码: 全选
sudo update-initramfs -u -k all
❯ edid-decode < /sys/class/drm/card1-eDP-1/edid
edid-decode (hex):
00 ff ff ff ff ff ff 00 0e 6f 16 14 00 00 00 00
00 20 01 04 b5 1e 13 78 03 21 15 a8 53 49 9c 25
0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 d3 87 40 a0 b0 08 6a 70 30 20 -- 这里不一样
36 00 2d bc 10 00 00 18 00 00 00 fd 00 28 78 e5
e5 46 01 0a 20 20 20 20 20 20 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 35 0a 20 01 aa -- 这里不一样
70 13 79 00 00 03 01 14 9a 0f 01 05 3f 0b 9f 00
2f 00 1f 00 07 07 69 00 02 00 05 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 f0 98
----------------
Block 0, Base EDID:
EDID Structure Version & Revision: 1.4
Vendor & Product Identification:
Manufacturer: CSO
Model: 5142
Made in: 2022
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
Display is continuous frequency
Color Characteristics:
Red : 0.6562, 0.3261
Green: 0.2851, 0.6103
Blue : 0.1445, 0.0595
White: 0.3134, 0.3291
Established Timings I & II: none
Standard Timings: none
Detailed Timing Descriptors:
DTD 1: 2880x1800 60.009596 Hz 8:5 114.378 kHz 347.710000 MHz (301 mm x 188 mm)
Hfront 48 Hsync 32 Hback 80 Hpol N
Vfront 3 Vsync 6 Vback 97 Vpol N
Display Range Limits:
Monitor ranges (Bare Limits): 40-120 Hz V, 229-229 kHz H, max dotclock 700 MHz
Alphanumeric Data String: 'CSOT T3'
Alphanumeric Data String: 'MNE007ZA1-5'
Extension blocks: 1
Checksum: 0xaa
----------------
Block 1, DisplayID Extension Block:
Version: 1.3
Extension Count: 0
Display Product Type: Extension Section
Video Timing Modes Type 1 - Detailed Timings Data Block:
DTD: 2880x1800 120.000207 Hz 16:10 228.720 kHz 695.310000 MHz (aspect 16:10, no 3D stereo)
Hfront 48 Hsync 32 Hback 80 Hpol N
Vfront 3 Vsync 6 Vback 97 Vpol N
Checksum: 0xf0 (should be 0xf8)
Checksum: 0x98
运气不错,不同的地方只有前面这段,也没有f098结尾的,你可以接着执行5楼的那些命令了zax0zax 写了: ↑2024-07-17 15:52 00 ff ff ff ff ff ff 00 0e 6f 16 14 00 00 00 00
00 20 01 04 b5 1e 13 78 03 21 15 a8 53 49 9c 25
0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 d3 87 40 a0 b0 08 6a 70 30 20 -- 这里不一样
36 00 2d bc 10 00 00 18 00 00 00 fd 00 28 78 e5
e5 46 01 0a 20 20 20 20 20 20 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 35 0a 20 01 aa -- 这里不一样