ubuntu 黑屏和分辨率不能改变的问题

ctrl+alt+f1:
vim /etc/default/grub
将 GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” 修改为
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset”
更新GRUB:
sudo update-grub
sudo reboot

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'
# vim /etc/default/grub
GRUB_DEFAULT=0 #->设置默认启动项(0:第一个菜单),按menuentry顺序。比如要默认从第2个菜单项启动,数字改为1。
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10 #10s
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX=""
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"   #默认的

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"  #黑屏
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text" #无GUI界面,文本行显示
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# 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=640x480
GRUB_GFXMODE=1920x1080 #修改显示分辨率
# 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_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
~                                                                                                                                                                                                            
~    

ubuntu14.04 用了不就终端黑屏了,全黑色,输入文字啥也看不到,其他的程序边框黑色。 GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset” #黑屏
GRUB_GFXMODE=1920x1080 #修改显示分辨率

These are instructions passed to the kernel during the boot time. In Ubuntu, they are managed by the GNU GRUB (GRand Unified Bootloader).

. quiet - this option tells the kernel to NOT produce any output (a.k.a. Non verbose mode). If you boot without this option, you’ll see lots of kernel messages such as drivers/modules activations, filesystem checks and errors. Not having the quiet parameter may be useful when you need to find an error.
. splash - this option is used to start an eye-candy “loading” screen while all the core parts of the system are loaded in the background. If you disable it and have quiet enable you’ll get a blank screen.
. nomodeset - tells the kernel to not start video drivers until the system is up and running.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值