[Boot/Shutdown] 为何我的DEEPIN25 关机时间竟长达2分钟,这正常吗?
Tofloor
poster avatar
182******37
deepin
2025-05-24 10:29
Author

为何我的DEEPIN25 关机时间竟长达2分钟,这正常吗?

Reply Favorite View the author
All Replies
大多时候吃素
deepin
2025-05-24 12:27
#1

不正常,是不是可以看下/var/log/message或者/var/log/lightdm日志

Reply View the author
182******37
deepin
2025-05-24 14:52
#2

/var/log/lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=698
[+0.00s] DEBUG: Loading configuration dirs from /var/lib/linglong/entries/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-deepin.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-deepin.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/90-deepin-upgrade.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating user session
[+0.02s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.06s] DEBUG: Seat seat0: Creating display server of type x
[+0.06s] DEBUG: Deactivating Plymouth
[+6.12s] DEBUG: Using VT 1
[+6.12s] DEBUG: Seat seat0: Starting local X display on VT 1
[+6.12s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+6.12s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+6.12s] DEBUG: XServer 0: Launching X Server
[+6.12s] DEBUG: Launching process 850: /usr/bin/X -background none :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
[+6.12s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+6.12s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+6.12s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+8.06s] DEBUG: Got signal 10 from process 850
[+8.06s] DEBUG: XServer 0: Got signal from X server :0
[+8.06s] DEBUG: XServer 0: Connecting to XServer :0
[+8.06s] DEBUG: Quitting Plymouth; retaining splash
[+8.08s] DEBUG: Launching process 1312: /var/lib/lastore/scripts/gen_upgrade_check_config.sh
[+8.08s] DEBUG: Process 1312 exited with return value 0
[+8.08s] DEBUG: Seat seat0: Exit status of /var/lib/lastore/scripts/gen_upgrade_check_config.sh: 0
[+8.08s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+8.08s] DEBUG: Session pid=1316: Started with service 'deepin-lightdm-autologin', username 'qianzhihong'
[+8.24s] DEBUG: Session pid=1316: Authentication complete with return value 0: 成功
[+8.24s] DEBUG: Seat seat0: Session authenticated, running command
[+8.24s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+8.24s] DEBUG: Session pid=1316: Running command /etc/X11/Xsession /usr/bin/dde-session
[+8.24s] DEBUG: Creating shared data directory /var/lib/lightdm/data/qianzhihong
[+8.24s] DEBUG: Session pid=1316: Logging to .xsession-errors
[+8.83s] DEBUG: Activating VT 1
[+8.83s] DEBUG: Activating login1 session 1
[+8.84s] DEBUG: Seat seat0 changes active session to 1
[+8.84s] DEBUG: Session 1 is already active

Reply View the author
tacat
deepin
2025-05-24 15:01
#3

'/etc/systemd/user.conf'
'/etc/systemd/system.conf'

将上面两个文件里的DefaultTimeoutStopSec设置为9秒

DefaultTimeoutStopSec=9s

然后

sudo systemctl daemon-reload

再关机看看是否快了

Reply View the author
tagerw
deepin
2025-05-24 16:08
#4
It has been deleted!
buyike
deepin
2025-05-24 17:30
#5

肯定不正常,等更新吧。

Reply View the author
a1124258836
deepin
2025-05-26 17:55
#6
182******37

/var/log/lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=698
[+0.00s] DEBUG: Loading configuration dirs from /var/lib/linglong/entries/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-deepin.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-deepin.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/90-deepin-upgrade.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating user session
[+0.02s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.06s] DEBUG: Seat seat0: Creating display server of type x
[+0.06s] DEBUG: Deactivating Plymouth
[+6.12s] DEBUG: Using VT 1
[+6.12s] DEBUG: Seat seat0: Starting local X display on VT 1
[+6.12s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+6.12s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+6.12s] DEBUG: XServer 0: Launching X Server
[+6.12s] DEBUG: Launching process 850: /usr/bin/X -background none :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
[+6.12s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+6.12s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+6.12s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+8.06s] DEBUG: Got signal 10 from process 850
[+8.06s] DEBUG: XServer 0: Got signal from X server :0
[+8.06s] DEBUG: XServer 0: Connecting to XServer :0
[+8.06s] DEBUG: Quitting Plymouth; retaining splash
[+8.08s] DEBUG: Launching process 1312: /var/lib/lastore/scripts/gen_upgrade_check_config.sh
[+8.08s] DEBUG: Process 1312 exited with return value 0
[+8.08s] DEBUG: Seat seat0: Exit status of /var/lib/lastore/scripts/gen_upgrade_check_config.sh: 0
[+8.08s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+8.08s] DEBUG: Session pid=1316: Started with service 'deepin-lightdm-autologin', username 'qianzhihong'
[+8.24s] DEBUG: Session pid=1316: Authentication complete with return value 0: 成功
[+8.24s] DEBUG: Seat seat0: Session authenticated, running command
[+8.24s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+8.24s] DEBUG: Session pid=1316: Running command /etc/X11/Xsession /usr/bin/dde-session
[+8.24s] DEBUG: Creating shared data directory /var/lib/lightdm/data/qianzhihong
[+8.24s] DEBUG: Session pid=1316: Logging to .xsession-errors
[+8.83s] DEBUG: Activating VT 1
[+8.83s] DEBUG: Activating login1 session 1
[+8.84s] DEBUG: Seat seat0 changes active session to 1
[+8.84s] DEBUG: Session 1 is already active

https://bbs.deepin.org/post/262108 以前的时候我的遇见过这个问题,但是现在正常了

Reply View the author
a1124258836
deepin
2025-05-26 17:55
#7
tagerw It has been deleted!

https://bbs.deepin.org/post/262108 刚开始的时候我的遇见过这个问题,但是23现在正常了啊

Reply View the author
182******37
deepin
2025-06-12 08:08
#8

感谢楼上各位帮助,升级DEEPIN25 beta版后已正常

Reply View the author