我的笔记本电脑上刚刚安装了 Lunar Legion 5i Pro Gen 7 (16" Intel) (12700h + 3070ti)
。插入的外接显示器甚至没有显示在设置中。分辨率选择卡在 2560 * 1600,刷新率也锁定在 93Hz(最高为 165hz)
使用:nvidia-driver-535
,x11
和内核版本6.2.0-24-generic
。
xrandr:
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 2560 x 1600, current 2560 x 1600, maximum 2560 x 1600
default connected primary 2560x1600+0+0 0mm x 0mm
2560x1600 93.00*
我尝试使用 和 进行编辑/etc/default/grub
以GRUB_GFXMODE=2560x1600
修复update-grub
,xrandr: Failed to get size of gamma for output default
但没有效果。还尝试启动到 grub 菜单,然后按 C 进入命令行并运行vbeinfo
,videoinfo
但收到一条错误消息,提示无法使用安全启动运行该命令。
有没有办法在设置中获取支持的分辨率/刷新率,以及如何让我的外接显示器被识别和显示?
提前致谢
dmesg
:https://pastebin.com/4iChrxXC
sudo dmesg | grep -iF error
[ 0.010384] [Firmware Bug]: TSC ADJUST differs within socket(s), fixing all errors
[ 0.936865] RAS: Correctable Errors collector initialized.
[ 1.970400] EDAC igen6 MC1: HANDLING IBECC MEMORY ERROR
[ 1.970404] EDAC igen6 MC0: HANDLING IBECC MEMORY ERROR
[ 4.264887] ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.ETMD], AE_NOT_FOUND (20221020/psargs-330)
[ 4.264921] ACPI Error: Aborting method \_SB.IETM._OSC due to previous error (AE_NOT_FOUND) (20221020/psparse-529)
[ 13.375194] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PC00.LPCB.EC0._Q37.PNOT], AE_NOT_FOUND (20221020/psargs-330)
[ 13.375232] ACPI Error: Aborting method \_SB.PC00.LPCB.EC0._Q37 due to previous error (AE_NOT_FOUND) (20221020/psparse-529)
sudo nvidia-xconfig
Using X configuration file: "/etc/X11/xorg.conf".
VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
Device section "Device0" must have a Driver line.
ERROR: Unable to find any GPUs in the system.
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.nvidia-xconfig-original'
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
sudo nvidia-settings
ERROR: NVIDIA driver is not loaded
(nvidia-settings:93160): GLib-GObject-CRITICAL **: 19:15:32.657: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** (nvidia-settings:93160): CRITICAL **: 19:15:32.658: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed
ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have been installed along with this driver at /usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will
continue to work, but values cannot be prepopulated or validated, and will not be listed in the help text. Please see the README for possible values and descriptions.
** Message: 19:15:32.682: PRIME: Requires offloading
** Message: 19:15:32.682: PRIME: is it supported? yes
** Message: 19:15:32.700: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 19:15:32.700: PRIME: on-demand mode: "1"
** Message: 19:15:32.700: PRIME: is "on-demand" mode supported? yes
答案1
我必须使用由 nvidia-xconfig 生成的配置文件,因为我不知道您的配置,所以我将分享我的配置:(由 生成nvidia-xconfig
)
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 470.86
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
...your own stuff here
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "COMPOSITE" "Enable"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
目前该文件位于 /etc/X11/xorg.conf.d/90-mhwd.conf。如果生成的文件位于其他位置,您可以将其链接到ln -s
请注意,由于非常特殊的配置(旧硬件),我删除了部分输入部分
答案2
由于启动速度慢,我通过随机调整系统来解决这个问题
systemd-analyze blame
给了我 20 秒的时间plymouth-quit-wait.service
#old line
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset noplymouth"
#new line
GRUB_CMDLINE_LINUX_DEFAULT="fsck.mode=skip quiet"
令人惊讶的是,经过更快的启动后,我的系统具有了屏幕支持的所有分辨率和刷新率。