页次: 1
如题,在 grub.cfg 中设置 vga=845 参数可以设置控制台分辨率,但更新 grub.cfg 文件后,设置会被清除,有没有配置文件可以设置?
最近编辑记录 jouyouyun (2014-06-20 09:07:28)
离线
grub 不是有个啥设置默认参数的东西,好像在 /etc/default?
话说 Arch 为什么会有经常更新 grub.cfg 的需求呢……
Site: CVHC.CC Twitter: @cuihaoleo Org: LUG@USTC
AD: ~欢迎参与志愿计算~
离线
If you are using GRUB, a possible solution is to edit the GRUB_GFXMODE line of /etc/default/grub with desired display resolutions. Multiple resolutions can be specified, including the default auto, so it is recommended that you edit the line to resemble GRUB_GFXMODE=<desired resolution>,<fallback such as 1024x768>,auto. For more information, refer to the GRUB gfxmode documentation.
(Sorce)
离线
设置 GRUB_GFXMODE 没效果
离线
设置 GRUB_GFXMODE 没效果
Setting the framebuffer resolution
GRUB can set the framebuffer for both GRUB itself and the kernel. The old vga= way is deprecated. The preferred method is editing /etc/default/grub as the following sample:GRUB_GFXMODE=1024x768x32 GRUB_GFXPAYLOAD_LINUX=keep
To generate the changes, run:
# grub-mkconfig -o /boot/grub/grub.cfg
The gfxpayload property will make sure the kernel keeps the resolution.
Note:
If this example does not work for you try to replace gfxmode="1024x768x32" by vbemode="0x105". Remember to replace the specified resolution with one suitable for your screen
To show all the modes you can use # hwinfo --framebuffer (hwinfo is available in [community]), while at GRUB prompt you can use the vbeinfo command
If this method does not work for you, the deprecated vga= method will still work. Just add it next to the "GRUB_CMDLINE_LINUX_DEFAULT=" line in /etc/default/grub for example: "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vga=792" will give you a 1024x768 resolution.
You can choose one of these resolutions: 640×480, 800×600, 1024×768, 1280×1024, 1600×1200, 1920×1200
(source)
离线
Thanks!
离线
页次: 1