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

zzz reports zzz: another instance of zzz is running with mounted external hard drive because /sys/power cannot be locked #127

Open
MIvanchev opened this issue Oct 12, 2024 · 0 comments

Comments

@MIvanchev
Copy link

I have a setup with a 2TB Intenso HDD connected externally and when the disk is mounted, zzz will report

sudo zzz
zzz: another instance of zzz is running

Unmounting the disk through a /etc/zzz.d/suspend script has no effect because zzz never gets there, it fails to get the lock on /sys/power. Unmounting the disk prior to executing zzz allows the lock to be acquired.

Changing the script to

echo "yawn."
) 9>/var/lock/zzz.lock

always works and there are no issues. I also do not understand the very specific choice of /sys/power as a lock target.

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

1 participant