老习惯,先来看内核:
Linux arnyek 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Mon Jun 24 13:21:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
安装Ubuntu 16.04卡住的话,可以看https://blog.csdn.net/Dod_Jdi/article/details/78635126
安装Ubuntu 16.04后关机或重启出现卡死的话可以看下面,
修改Ubuntu 16.04的/etc/default/grub:
改grub中的GRUB_CMDLINE_LINUX_DEFAULT="quiet slpash nomodeset"
修改grub中的GRUB_CMDLINE_LINUX="noacpi acpi=off acpi=force apm power_off=1"
# 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'
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`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" //修改这儿
GRUB_CMDLINE_LINUX="noacpi acpi=off acpi=force apm power_off=1" //修改这儿
# 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
# 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"
然后修改/etc/moprobe.d/black.conf,在文件的末尾添加:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist rivatv
blacklist nvidiafb
修改之后的配置文件长这个样子:
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.
# evbug is a debug tool that should be loaded explicitly
blacklist evbug
# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd
# replaced by e100
blacklist eepro100
# replaced by tulip
blacklist de4x5
# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394
# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m
# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2
# Causes trackpads to stop working on Lenovo 11e 2nd gen (Ubuntu: #1802135)
# and Lenovo x240 to hang on boot (Ubuntu: #1802689)
blacklist i2c_i801
# replaced by p54pci
blacklist prism54
# replaced by b43 and ssb.
blacklist bcm43xx
# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps
# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi
# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp
# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr
# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist rivatv
blacklist nvidiafb
最后记得sudo update-grub
在配置完这些之后安装一下显卡驱动,可以参考https://www.cnblogs.com/xiaojianliu/p/9292680.html这篇。
如果在做了以上配置之后还是卡住不动的话,可以采用下面的方法:
1、更换内核,更换新一点或者是旧一点的版本
2、使用命令sync,sudo pkill Xorg,然后右上角关机
3、修改数值
/etc/systemd/user.conf
/etc/systemd/system.conf
//把这两个文件里面的DefaultTimeoutStopSec数值调整到较小数值试试看.
4、修改文件,sudo vim /etc/modules,后面加上 apm power_off=1,然后update-grub
5、开机进入Ubuntu 高级模式,找到recovery mode,然后,找到以'linux'开头的那行,把'ro'后面的内容全部删除,添加'nouveau.modeset=0',F10保存重启,修改grub配置文件,找到'GRUB_CMDLINE_LINUX_DEFAULT' 将GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 改为 ==>GRUB_CMDLINE_LINUX_DEFAULT="nouveau.modeset=0"
后面会持续更新,如果有侵权的地方麻烦联系我,删除此博客
本博客只是自己的笔记,大佬勿喷