当我第一次在我的系统上安装Xubuntu时,它会在设置空闲期后自动挂起,没有问题。但我似乎改变了一些东西,它不再起作用了。
我检查了常见的嫌疑人,首先是我在xfce4电源管理器中正确地设置了它,我认为我是这样做的:

当我运行systemd-inhibit --list --mode=block时,我得到以下信息:
WHO UID USER PID COMM WHAT WHY MODE
xfce4-power-manager 1000 doctor_ew 1192 xfce4-power-man handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch xfce4-power-manager handles these events block
xfce4-power-manager 1000 doctor_ew 1071 xfce4-screensav idle Inhibit requested block
2 inhibitors listed.但我不确定我是否应该看到这个。是否有人可以推荐其他故障排除步骤,我不确定在这一点上我还能检查什么。
发布于 2020-07-21 18:18:10
在我的仪表板中启用电源管理小部件的“表示模式”时,我会显示相同的抑制剂。你可能已经激活了。

发布于 2020-06-20 23:13:50
第一种抑制剂没问题,但第二种不应该在那里。如果我检查ps ax | grep screen,我得到:
1135 ? Sl 0:00 /usr/bin/xfce4-screensaver --no-daemon所以我们的结构必须不同。我和你一样设置了我的电源经理。应该在所有条目中禁用/etc/systemd/logind.conf:
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#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这已经被讨论过了,这里
https://askubuntu.com/questions/1252017
复制相似问题