更新后使用电池待机失效了
Tofloor
poster avatar
pq12344321
deepin
2020-11-15 18:56
Author

使用1002的版本待机无法唤醒,想着更新后能够解决这个bug,但是更新1003后现在待机变成了锁屏,这又是新的bug么

Reply Favorite View the author
All Replies
Ziggy
deepin
2020-11-15 19:22
#1

没有设置好吧,内核版本不对?

Reply View the author
dongfeng
deepin
2020-11-15 21:35
#2
Ziggy

没有设置好吧,内核版本不对?

我的E495上也是这样。

本来待机是对的,更新到1003,合盖或按电源键,待机变成了锁屏。

这个对笔记本影响太大了。

Reply View the author
Ziggy
deepin
2020-11-16 02:22
#3
dongfeng

我的E495上也是这样。

本来待机是对的,更新到1003,合盖或按电源键,待机变成了锁屏。

这个对笔记本影响太大了。

你的内核版本多少?双显卡?说具体点

Reply View the author
SamLukeYes
deepin
2020-11-16 03:09
#4
cat /etc/systemd/logind.conf


Reply View the author
pq12344321
deepin
2020-11-16 06:23
#5
Ziggy

没有设置好吧,内核版本不对?

菜单里电池和电源都选择待机了。。内核不是升级后自动更新的么,需要手动选择吗

Reply View the author
pq12344321
deepin
2020-11-16 06:23
#6
SamLukeYes
cat /etc/systemd/logind.conf


[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

Reply View the author
SamLukeYes
deepin
2020-11-16 06:26
#7
pq12344321

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

用文本编辑器以 root 权限编辑这个文件,把前面没 # 的两行 ignore 改成 suspend,重启之后应该就可以按照你的预期待机了

Reply View the author
Ziggy
deepin
2020-11-16 07:11
#8
pq12344321

菜单里电池和电源都选择待机了。。内核不是升级后自动更新的么,需要手动选择吗

不排除新内核不兼容的问题

Reply View the author
SamLukeYes
deepin
2020-11-16 07:39
#9
Ziggy

不排除新内核不兼容的问题

应该是 deepin 的 bug。logind.conf 中的设置不正确。

Reply View the author
aiwen
deepin
2020-12-04 06:07
#10

不是失效了,是你电池5分钟就耗干了

Reply View the author
SamLukeYes
deepin
2020-12-04 07:04
#11
aiwen

不是失效了,是你电池5分钟就耗干了

楼主的问题和你的不一样。楼主说的是一个现在已经修复的 bug。

Reply View the author