eliasjonsson023/lidshutsleep

This may not work as intended.

Closed this issue · 2 comments

data = fs::read_to_string("/proc/acpi/button/lid/LID0/state").expect("Unable to read file").trim().to_string();

On my system, "/proc/acpi/button/lid/LID0/state" should be "/proc/acpi/button/lid/LID/state" ("LID" without "0")

Forgot to add text to the review so adding it here instead:
It works! How about removing the debug output? After that I think we are good to merge.

Forgot to add text to the review so adding it here instead:
It works! How about removing the debug output? After that I think we are good to merge.

I removed debug output.