[Boot/Shutdown] 笔记本使用电池的情况平衡模式启动超慢或无法启动
Tofloor
poster avatar
zqygsd
deepin
2021-03-17 05:02
Author

本人联想小新2019青春版 ,配置R5 3500U、三星12G内存,三星M2 256G固态硬盘,系统最后更新时间是3.16日21点;不插电源的情况,启动非常慢,一开始实在想不通哪里问题,后来突然想到是否和电源使用模式有关,改了高性能模式后,问题解决,不知是否只有我有此问题,还是系统BUG。如果通用是通用问题,且不好解决建议新装系统默认模式就为高性能模式,省得不知道对系统体验不好。

Reply Favorite View the author
All Replies
zqygsd
deepin
2021-03-17 05:09
#1

反复又试了几次,发现我的结论有些不严谨,在此补充一下,改了高性能模式后启动速度依旧慢,但是没有进不去系统的情况了(不知之前是非常慢还是什么情况,等久了我就硬关机了)。

Reply View the author
Ziggy
deepin
2021-03-17 06:07
#2

哪个内核?可以看看BIOS设置有没有设置相关限制PCIe速度的选项

Reply View the author
widon1104
deepin
2021-03-17 06:31
#3

1)建议楼主装最新的内核,再试一次开机启动时间

2)如果还是启动慢,楼主在终端运行一下这3个命令:

systemd-analyze

systemd-analyze blame

systemd-analyze critical-chain

然后把结果贴上来,让大家看看是什么地方耗时最多

Reply View the author
zqygsd
deepin
2021-03-18 16:46
#4
Ziggy

哪个内核?可以看看BIOS设置有没有设置相关限制PCIe速度的选项

内核是5.4.70的,机器设置没有问题,之前就装着了,后来调整分区搞的启动不起来了,又从重新装的,现在还是有时开机开不起来,我这是双系统,这次安装就一个分区,之前那个系统的/home是单独挂了一个区?和这个又影响么?

谢谢版主大大,抱拳了。

Reply View the author
zqygsd
deepin
2021-03-18 16:49
#5
widon1104

1)建议楼主装最新的内核,再试一次开机启动时间

2)如果还是启动慢,楼主在终端运行一下这3个命令:

systemd-analyze

systemd-analyze blame

systemd-analyze critical-chain

然后把结果贴上来,让大家看看是什么地方耗时最多

zqygsd@zqygsd-PC:~$ systemd-analyze critical-chain

The time after the unit is active or started is printed after the "@" character.

The time the unit takes to start is printed after the "+" character.

 

graphical.target @1min 32.064s

└─multi-user.target @1min 32.063s

  └─smbd.service @1min 31.936s +126ms

    └─network-online.target @1.787s

      └─NetworkManager-wait-online.service @1.542s +240ms

        └─NetworkManager.service @1.390s +141ms

          └─dbus.service @1.383s

            └─basic.target @1.364s

              └─paths.target @1.363s

                └─cups.path @1.363s

                  └─sysinit.target @1.360s

                    └─systemd-timesyncd.service @1.280s +77ms

                      └─systemd-tmpfiles-setup.service @1.250s +27ms

                        └─local-fs.target @1.247s

                          └─media-zqygsd-Windows.mount @10.645s

                            └─clean-mount-point@media-zqygsd-Windows.service @10.664s +377us

                              └─system-clean\x2dmount\x2dpoint.slice @10.522s

                                └─system.slice @198ms

                                  └─-.slice @198ms

zqygsd@zqygsd-PC:~$ systemd-analyze

Startup finished in 5.150s (firmware) + 3.596s (loader) + 3.322s (kernel) + 1min 32.079s (userspace) = 1min 44.149s 

graphical.target reached after 1min 32.064s in userspace

第二个命令显示出来的太长了,贴上来说敏感字符,放不上来。

今天电脑启动到deepin界面上就不动了,鼠标箭头一直闪闪,过了一会就硬关机,再进就好了。。

真是不知道啥问题,犯愁,先谢谢大神,在这抱拳了。

Reply View the author
widon1104
deepin
2021-03-18 17:27
#6
zqygsd

zqygsd@zqygsd-PC:~$ systemd-analyze critical-chain

The time after the unit is active or started is printed after the "@" character.

The time the unit takes to start is printed after the "+" character.

 

graphical.target @1min 32.064s

└─multi-user.target @1min 32.063s

  └─smbd.service @1min 31.936s +126ms

    └─network-online.target @1.787s

      └─NetworkManager-wait-online.service @1.542s +240ms

        └─NetworkManager.service @1.390s +141ms

          └─dbus.service @1.383s

            └─basic.target @1.364s

              └─paths.target @1.363s

                └─cups.path @1.363s

                  └─sysinit.target @1.360s

                    └─systemd-timesyncd.service @1.280s +77ms

                      └─systemd-tmpfiles-setup.service @1.250s +27ms

                        └─local-fs.target @1.247s

                          └─media-zqygsd-Windows.mount @10.645s

                            └─clean-mount-point@media-zqygsd-Windows.service @10.664s +377us

                              └─system-clean\x2dmount\x2dpoint.slice @10.522s

                                └─system.slice @198ms

                                  └─-.slice @198ms

zqygsd@zqygsd-PC:~$ systemd-analyze

Startup finished in 5.150s (firmware) + 3.596s (loader) + 3.322s (kernel) + 1min 32.079s (userspace) = 1min 44.149s 

graphical.target reached after 1min 32.064s in userspace

第二个命令显示出来的太长了,贴上来说敏感字符,放不上来。

今天电脑启动到deepin界面上就不动了,鼠标箭头一直闪闪,过了一会就硬关机,再进就好了。。

真是不知道啥问题,犯愁,先谢谢大神,在这抱拳了。

这个命令的结果贴出来看看,

systemd-analyze blame

不用贴全,有前几个就行

Reply View the author
zqygsd
deepin
2021-03-19 23:36
#7
widon1104

这个命令的结果贴出来看看,

systemd-analyze blame

不用贴全,有前几个就行

好的。谢谢,现在又正常了,啥也没动,就是一直插着电呢。

Reply View the author