You are not logged in.

#1 2012-03-22 19:51:30

archie0
Member
Registered: 2012-02-26
Posts: 144

Understanding acpi - /etc/acpi/handler.sh

So I don't really get how it works.

I tried to configure it so when I close the lid of the laptop I get into sleep mode, but it does not work; pm_suspend works just fine.

Here's how it looks like: http://pastie.org/private/daee9u2xzrcppdex2v2fww

So, like I said, it did not work that way but, I've found this thread: https://bbs.archlinux.org/viewtopic.php?id=71971 (post 3 + ) which helped me with getting the laptop suspended when I close  the lid. Everything is okay except that I am not prompted with SLiM when I resume from the suspension. How can I do that?

Something else. That stuff inside handler.sh is predefined, right? I mean it's not automatically generated after the coputer's specs and "buttons"?!

Since it does not work for me, is it safe to remove the content of handler.sh? It would be even better for me to get the suspend thing to work directly from there, but it does not. Also, what's up with that "case" thing? Like "case $3" etc. I don't get it.


Thanks!

Offline

#2 2012-03-22 21:06:49

magicalChicken
Member
From: in the sky
Registered: 2012-03-03
Posts: 73
Website

Re: Understanding acpi - /etc/acpi/handler.sh

First off, I would not recommend deleting the stuff in handler.sh, not a good idea. This is simply a script that is executed when an acpi event occurs, the case thing is simply comparing the event that happened with certain options. The script that you showed did look alright, one thing I would suggest is before pm_suspend do the lock screen thing, because this will have locked screen when it is opened back up. Also I may suggest using something like xscreensaver instead of slim lock, simply because slim is sort of old and not as cool.

Last edited by magicalChicken (2012-03-22 21:08:17)

Offline

Board footer

Powered by FluxBB