您尚未登录。

#1 2014-06-18 14:19:24

jouyouyun
会员
注册时间: 2011-10-10
帖子: 268

N卡闭源驱动,如何设置控制台分辨率?(已解决)

如题,在 grub.cfg 中设置 vga=845 参数可以设置控制台分辨率,但更新 grub.cfg 文件后,设置会被清除,有没有配置文件可以设置?

最近编辑记录 jouyouyun (2014-06-20 09:07:28)

离线

#2 2014-06-18 14:25:06

cuihao
所在地: USTC, Hefei
注册时间: 2011-08-19
帖子: 1,223
个人网站

Re: N卡闭源驱动,如何设置控制台分辨率?(已解决)

grub 不是有个啥设置默认参数的东西,好像在 /etc/default?
话说 Arch 为什么会有经常更新 grub.cfg 的需求呢……


Site: CVHC.CC   Twitter: @cuihaoleo   Org: LUG@USTC
AD:  ~欢迎参与志愿计算~

离线

#3 2014-06-18 14:31:15

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: N卡闭源驱动,如何设置控制台分辨率?(已解决)

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)

离线

#4 2014-06-19 09:08:31

jouyouyun
会员
注册时间: 2011-10-10
帖子: 268

Re: N卡闭源驱动,如何设置控制台分辨率?(已解决)

设置 GRUB_GFXMODE 没效果

离线

#5 2014-06-19 10:49:34

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: N卡闭源驱动,如何设置控制台分辨率?(已解决)

jouyouyun 说:

设置 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)

离线

#6 2014-06-20 09:07:06

jouyouyun
会员
注册时间: 2011-10-10
帖子: 268

Re: N卡闭源驱动,如何设置控制台分辨率?(已解决)

Thanks!

离线

页脚