Skip to content

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

@MIvanchev

Description

@MIvanchev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions