ubuntu 不能启动,怀疑显卡设置问题.直接删掉xorg.conf可以么

2022-08-11 科技 108阅读
启动黑屏后可以按Ctrl-Alt-F1进入命令行界面。这个是基础知识,需连网。进入cli模式后,sudoapt-getinstallppa-purgesudoppa-purgexorg-edgerssudoapt-getpurgenvidia-*创建一个临时文件夹如mkdir~/tmpcp/etc/X11/xorg.conf*~/tmpsudoapt-getautoremovesudoapt-getupdatesudoapt-getupgradesudoreboot重启后还是C+A+F1进命令行sudoapt-getinstallnvidia-331nvidia-primesudocp~/tmp/xorg.conf.nvidia-xconfig-original/etc/X11/xorg.confsudovi/etc/X11/xorg.conf确保内容如下Section"ServerLayout"Identifier"layout"Screen0"nvidia"Inactive"intel"EndSectionSection"Device"Identifier"intel"Driver"intel"BusID"PCI:0@0:2:0"Option"AccelMethod""SNA"EndSectionSection"Screen"Identifier"intel"Device"intel"EndSectionSection"Device"Identifier"nvidia"Driver"nvidia"BusID"PCI:1@0:0:0"Option"ConstrainCursor""off"EndSectionSection"Screen"Identifier"nvidia"Device"nvidia"Option"AllowEmptyInitialConfiguration""on"Option"IgnoreDisplayDevices""CRT"EndSection最后重启,解决。最后启动完成可能会报错,这个用一下dpkg-reconfigurenvidia-331nvidia-331-uvmnvidia-settings就可以了。再重启应该就没事了。
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com