Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd-inhibit 与 suspend 冲突的问题 #10

Open
tsieyy opened this issue Nov 13, 2024 · 1 comment
Open

systemd-inhibit 与 suspend 冲突的问题 #10

tsieyy opened this issue Nov 13, 2024 · 1 comment

Comments

@tsieyy
Copy link

tsieyy commented Nov 13, 2024

唤醒休眠后systemd运行pacroller会出现该错误:
failed to inhibit: the operation inhibition has been requested for is already running

该问题在我的机器上出现的原因是笔记本合盖之后会休眠,再次开盖启动时pacroller会在systemd-suspend.service结束之前启动,导致出现了该问题。

参考该issue,一个可行的简单解决办法是在pacroller.service中添加ExecStartPre=/bin/sleep 1m在pacroller启动之前延迟一段时间。

@isjerryxiao
Copy link
Owner

I wouldn't ship sleep 1 into pacroller.
I believe this problem should be solved by declaring additional unit dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants