What kind of Linux? GNU or BSD-Like?
-
-
-
Alpine Linux.
-
I've never used Alpine outside of containers but does it have /etc/acpi/events or /etc/api? I know it probably would have udev but I don't remember if udev can track lid, I'd have to check the API really quickly but with ACPI you can easily launch a background script to do that.
-
Yeah I think I know how it could be done. The issue is just annoying enough for me to want a solution but not annoying enough for me to want to script it myself. ;-)
-
this works on my machine :) i=0 while sleep 1; do if grep -q open /proc/acpi/button/lid/LID0/state; then i=0 else if [[
$i -ge 5 ]]; then aplay --duration=1 < /dev/urandom else let i++ fi fi done -
Yeah but that's more like a daemon that constantly polls. My LID script in /etc/acpi is currently just exec pm-suspend. Probably should run it in bg, sleep 5, check if lid is still closed, then alarm.
-
https://gist.github.com/envygeeks/462881bf979af8448f4b2c2eb1935f05 … should in theory work, it takes advantage of /etc/acpi to launch a script on the fly, then kills it once the computer comes back up.
End of conversation
New conversation -
-
-
Wouldn’t it be better for SW to just suspend in the first place? /ducks
-
It means the suspend failed for some reason (kernel bugs).
-
sometimes when this happens the fan is so loud it serves as sort of a crappy alarm
End of conversation
New conversation -
-
-
uhm. if tbat happens. Does that not mean the suspend is not configured well ?
-
It seems to happen infrequently due to kernel bugs getting some driver in a state where it will accept the suspend.
-
woh. That is discomforting.
End of conversation
New conversation -
-
-
it's actually good to have laptop lid shut without suspend but it would also be good to have an audible notification if you are _expecting_ suspend and it doesn't
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
You could probably hook a script up with acpid on lid close event
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This happened to me on an earlier version of macOS that sometimes didn’t suspend if the OS was running VMWare Fusion. I would then always put my ear near the fan and wait for it to stop before putting it in my laptop bag. Very annoying.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.