linux 4.10内核不支持Intel HD Graphics 630 核显???

前几天安装Ubuntu的时候从官网下载了Ubuntu 16.04.3,安装的时候一直有问题,问题太多就不一一描述了,在百度上搜索了好多关键字,我记得是在某个帖子中看到了有人说16.04.3使用的4.10的内核,4.10内核不支持7代i5的核显,于是重新下载16.04.2版本安装,安装过程一切顺利。

然后用了几天,装了不少软件,然后实现了双显卡的切换 传送门:Ubuntu双显卡切换
切换成使用核显以后,重启一切正常,upgrade了几次后,今天开机突然发现屏幕上一直显示下面这个东西
/dev/sda1: clean, 131838/991232 files, 1193255/3933482 blocks
经过搜索发现,别人都是一会就进入系统了 传送门:/dev/sda1: clean, / files, / blocks,而我一直卡在这里。

然后在grub界面按e,编辑启动参数,去掉quiet,F10开始引导,然后报出can't request region for resource。这时候想到,刚才编辑grub的时候内核是4.10的,难道是我upgrade的时候升级了???

重启,选择【Ubuntu 高级选项】,然后选择【Ubuntu,Linux 4.8.0-36-generic】,回车,成功启动系统并进入桌面。

切换成使用独显,重启系统,发现也能进入系统了。

所以我决定改成4.8的内核。

执行grep menuentry /boot/grub/grub.cfg
输出:

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
  menuentry_id_option=""
export menuentry_id_option
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-68038017-9423-438d-9b3d-b314c4c53832' {
submenu 'Ubuntu 高级选项' $menuentry_id_option 'gnulinux-advanced-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu,Linux 4.10.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-37-generic-advanced-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu, with Linux 4.10.0-37-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-37-generic-init-upstart-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu, with Linux 4.10.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-37-generic-recovery-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu,Linux 4.8.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-36-generic-advanced-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu, with Linux 4.8.0-36-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-36-generic-init-upstart-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu, with Linux 4.8.0-36-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-36-generic-recovery-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu,Linux 4.4.0-97-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-97-generic-advanced-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu, with Linux 4.4.0-97-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-97-generic-init-upstart-68038017-9423-438d-9b3d-b314c4c53832' {
    menuentry 'Ubuntu, with Linux 4.4.0-97-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-97-generic-recovery-68038017-9423-438d-9b3d-b314c4c53832' {
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-E020-B7B7' {
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-68038017-9423-438d-9b3d-b314c4c53832' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt6'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  3717b6e2-a412-428c-a5fb-70e0761ffbf9
    else
      search --no-floppy --fs-uuid --set=root 3717b6e2-a412-428c-a5fb-70e0761ffbf9
    fi
    linux   /vmlinuz-4.10.0-37-generic.efi.signed root=UUID=68038017-9423-438d-9b3d-b314c4c53832 ro  quiet splash $vt_handoff
    initrd  /initrd.img-4.10.0-37-generic
}

替换成

   menuentry 'Ubuntu,Linux 4.8.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-36-generic-advanced-68038017-9423-438d-9b3d-b314c4c53832' {
       recordfail
       load_video
       gfxmode $linux_gfx_mode
       insmod gzio
       if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
       insmod part_gpt
       insmod ext2
       set root='hd0,gpt6'
       if [ x$feature_platform_search_hint = xy ]; then
         search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  3717b6e2-a412-428c-a5fb-70e0761ffbf9
       else
         search --no-floppy --fs-uuid --set=root 3717b6e2-a412-428c-a5fb-70e0761ffbf9
       fi
       echo    '载入 Linux 4.8.0-36-generic ...'
       linux   /vmlinuz-4.8.0-36-generic.efi.signed root=UUID=68038017-9423-438d-9b3d-b314c4c53832 ro  quiet splash $vt_handoff
       echo    '载入初始化内存盘...'
       initrd  /initrd.img-4.8.0-36-generic
   }

就好了,然后改一下显示的名称,去除三条echo语句。
但是最好不要对/boot/grub/grub.cfg进行直接修改,该怎么办呢???
/etc/grub.d目录中????
知道的请告诉我

你可能感兴趣的:(linux 4.10内核不支持Intel HD Graphics 630 核显???)