MagicBook 2018版deepin 15.11升级内核到5.1.20版 休眠终于工作了!
Tofloor
poster avatar
geno
deepin
2019-07-27 18:17
Author
之前各种不正常,休眠后启功黑屏或卡死,手动编译内核测试了4.19.60 4.19.61 5.1.19 均不能解决问题,昨天内核5.1.20更新,编译成功后休眠终于正常工作了!5.2内核编译不能启动,不知道原因。
具体编译过程如下:
0.配置编译环境
  1. sudo apt-get install build-essential kernel-package libncurses5-dev fakeroot libssl-dev
Copy the Code


1.下载5.1.20内核
https://www.kernel.org/

2. 在home目录下建立一个linux目录,并将内核文件解压其中


  1. tar xfv linux-5.1.20.tar.xz
Copy the Code
3.进入解压目录,运行以下命令:
  1. make mrproper
Copy the Code
4.拷贝现内核配置文件到编译目录的.config
  1. cp /boot/config-`uname -r`* .config
Copy the Code
5. 依据现有配置文件配置新内核,新设置用缺省值
  1. make olddefconfig
Copy the Code
6.根据自己的需要修改配置参数,此步骤本人省略了
  1. make menuconfig
Copy the Code
7. 开始编译deb包
  1. make -j8 deb-pkg
Copy the Code
8.编译完成后,deb包会在上一级目录上,安装就可以
  1. sudo dpkg -i linux-*.deb
Copy the Code
9. 重启完事

10.卸载你安装的内核包可用下面的命令
  1. sudo dpkg --purge linux-image-NNN
Copy the Code
其中NNN为你编译的内核版本号,如5.1.20

Reply Favorite View the author
All Replies
1 / 2
To page
avatar
走钢丝
deepin
2019-07-27 18:26
#1
不错,学习了
Reply View the author
avatar
咿呀
deepin
2019-07-27 18:30
#2
其实可以在Ubuntu的仓库下载通用的内核deb包,双击安装更简单点
Reply View the author
avatar
jianguo922
deepin
2019-07-27 19:00
#3
楼主动手能力很强,鼓掌!
Reply View the author
avatar
WENWEN
deepin
2019-07-27 19:00
#4
sudo apt install ukuu
Reply View the author
avatar
geno
deepin
2019-07-27 19:04
#5
还是在自己机器上自己编译的内核靠谱,速度也快
Reply View the author
avatar
isunny
deepin
2019-07-28 01:02
#6
厉害  收藏了
Reply View the author
avatar
浩然
deepin
2019-07-28 01:20
#7
不错。。
Reply View the author
avatar
173******47
deepin
2019-10-12 02:57
#8
make olddefconfig什么意思
Reply View the author
avatar
173******47
deepin
2019-10-12 03:39
#9
geno 发表于 2019-7-27 11:04
还是在自己机器上自己编译的内核靠谱,速度也快

大神,我的小米Pro使用deepin的config怎么生成了5个deb包,除了header和image包,还有两个dbg包和libc-dev包
Reply View the author
avatar
geno
deepin
2019-10-13 00:21
#10
https://bbs.deepin.org/post/181245
大神,我的小米Pro使用deepin的config怎么生成了5个deb包,除了header和image包,还有两个dbg包和libc-de ...

一般应该是4各,header, lib, image,安装这三个就可以了,dbg的不用安装,如果不想要dbg,可以在make menuconfig 中关闭。
Reply View the author
avatar
173******47
deepin
2019-10-13 01:52
#11
geno 发表于 2019-10-12 16:21
一般应该是4各,header, lib, image,安装这三个就可以了,dbg的不用安装,如果不想要dbg,可以在make  ...

嗯嗯,是我看错了,感觉用默认deepin的配置编译的4.19lts不如4.15deepin内核流畅啊?怎么回事,有没有详细的中文配置教程
Reply View the author
avatar
zicheqingluo
deepin
2019-11-03 23:43
#12
请问亮度可以调节吗,包括系统的亮度条和键盘上的按键
Reply View the author
avatar
lxflhy
deepin
2019-11-04 07:05
#13
https://bbs.deepin.org/post/181245
请问亮度可以调节吗,包括系统的亮度条和键盘上的按键

我把内核升级到了5.38,亮度可调,包括亮度条和按键
Reply View the author
avatar
zicheqingluo
deepin
2019-11-04 18:08
#14
https://bbs.deepin.org/post/181245
我把内核升级到了5.38,亮度可调,包括亮度条和按键

你也是amd的cpu吗,可否分享下内核安装包,我自己试了好多都无法开机。
Reply View the author
avatar
sloopsss
deepin
2019-11-04 20:17
#15
大佬支持一波
Reply View the author
avatar
lxflhy
deepin
2019-11-04 21:01
#16
本帖最后由 lxflhy 于 2019-11-4 13:14 编辑
https://bbs.deepin.org/post/181245
你也是amd的cpu吗,可否分享下内核安装包,我自己试了好多都无法开机。

我的是intel的CPU,AMD的独显
我升级的是5.38版的内核,5.4rc的好多软件安装不了
5.3.8的内核文件网址
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.3.8/
需要下载的文件看下面那个帖子主帖的那个图
https://bbs.deepin.org/post/175411

Reply View the author
avatar
zicheqingluo
deepin
2019-11-04 22:53
#17
https://bbs.deepin.org/post/181245
我的是intel的CPU,AMD的独显
我升级的是5.38版的内核,5.4rc的好多软件安装不了
5.3.8的内核文件网址

我自己编译了5.3.8的内核,启动时选了这个内核,然后就卡住了,显示1.395936 fb0: switching to amdgpudrmfb  from efi vga,你编译好重启时时很快就进入了吗
Reply View the author
avatar
zicheqingluo
deepin
2019-11-05 05:09
#18

这是啥,能解决这个问题吗
Reply View the author
avatar
zhaozhendong
deepin
2019-11-05 05:29
#19
自已装了高版本的内核,
、将来deepin 更新时如果有内核更新,会不会被deepin的更新覆盖掉?
Reply View the author
avatar
lxflhy
deepin
2019-11-05 20:54
#20
https://bbs.deepin.org/post/181245
这是啥,能解决这个问题吗

那是个软件,升级内核的软件,可以试试
Reply View the author
1 / 2
To page