小蜗熊的蜂蜜罐
解决Android-x86无法进入图形界面的问题
发布于: 2019-06-26 更新于: 2020-06-26 分类于: 技术 > Linux 阅读次数: 

在安装Android-x86后,由于nVidia显卡驱动的原因启动过程中可能会卡住无法进入图形界面。此时在需要在启动参数中添加nomodeset选项来禁用显卡。其他Linux系统中遇到同样的问题也可以使用此方法解决。

产生原因

The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesnt work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.

某些显卡下Linux内核无法正常工作导致黑屏。

解决方法

开机后在grub界面选择第二项Debug mode,输入

1
mount –o remount,rw /mnt

再输入

1
vi /mnt/grub/menu.lst

在第七行的root前加入quiet nomodeset,修改后内容如下:

1
2
3
4
5
...
title Android-x86 8.1-r5
kernel /android-8. 1-r5/kernel quiet nomodeset root=/dev/ram0 SRC=/android-8. 1-r5
initrd /android-8. 1-r5/ initrd. img
...

ESC退出编辑,并输入:wq保存退出。
重启后即可进入图形界面。

参考资料

--- 本文结束 The End ---