×

解决Android-x86无法进入图形界面的问题

hqy hqy 发表于2022-12-20 12:04:38 浏览506 评论0

抢沙发发表评论

在安装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,输入


mount –o remount,rw /mnt

再输入



vi /mnt/grub/menu.lst

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



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保存退出。

重启后即可进入图形界面。



方法二:开机进入GRUB界面,直接按键盘E键,然后又会进入一个新的选择界面,不用理会,接着按键盘E键。



接着会进入到一个可以编辑的界面,只有一行字符串,然后找到 quiet root字符串,将其增加一个nomodeset,然后回车,按B键,然后自动进入图形界面。

缺点是每次启动都要进行该操作。


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/3357.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客