Creating basic ACPI event makes the system unusably slow

Posted by skerit on Ask Ubuntu See other posts from Ask Ubuntu or by skerit
Published on 2011-02-11T20:16:47Z Indexed on 2011/02/11 23:33 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

I want to change a few settings on my laptop when I switch to battery power.

I created a new event in /etc/acpi/events/cust-battery and it looks like this:

event=battery
action=/home/skerit/power.sh

I put a simple command in the power.sh file:

echo This is a test >> /home/skerit/powertest

Now, when I tail this file it shows "This is a test" 4-5 times upon switching to battery power.

However, the system becomes totally unstable. It slows down significantly. I can't change anything in the terminal.

The terminal and certain parts of the screen (like the gnome system monitor applet) go blank from time to time.

What can be the cause of that? It's a simple echo that gets executed a few times!

© Ask Ubuntu or respective owner

Related posts about bash

Related posts about acpi