您的位置:首页 > 其它

修改Ubuntu console控制台显示器分辨率

2011-03-10 18:39 288 查看
1、修改文件/etc/default/grub

sudo vim /etc/default/grub

# If you change this file, run 'update-grub' afterwards to update

# /boot/grub/grub.cfg.

GRUB_DEFAULT=0

GRUB_HIDDEN_TIMEOUT=0

GRUB_HIDDEN_TIMEOUT_QUIET=true

GRUB_TIMEOUT=10

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

#mjk 2010-10-26 mask

#--------------------------------------------

#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

#--------------------------------------------

#GRUB_CMDLINE_LINUX=""

#mjk 2010-10-26 add

#--------------------------------------------

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap"

GRUB_GFXMODE=1280x1024

#--------------------------------------------

# Uncomment to disable graphical terminal (grub-pc only)

GRUB_TERMINAL=console

# The resolution used on graphical terminal

# note that you can use only modes which your graphic card supports via VBE

# you can see them in real GRUB with the command `vbeinfo'

GRUB_GFXMODE=1280x1024

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux

#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries

#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start

#GRUB_INIT_TUNE="480 440 1"

2、修改文件/etc/initramfs-tools/modules

sudo vim /etc/initramfs-tools/modules

# List of modules that you want to include in your initramfs.

#

# Syntax: module_name [args ...]

#

# You must run update-initramfs(8) to effect this change.

#

# Examples:

#

# raid1

# sd_mod

uvesafb mode_option=1280x1024-24 mtrr=3 scroll=ywrap

3、更新(update)

sudo update-grub

sudo update-initramfs -u

4、重启机器(reboot)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: