You are not logged in.

#1 2007-09-13 10:53:34

fiod
Member
Registered: 2007-04-02
Posts: 205

Script when plugging in and out

Hey

I want to run two different scripts whenever I plug in or out my laptop.

How can I know when the computer is plugged in or out?
Is there a program that already does that?

tnx
fiod

Offline

#2 2007-09-13 11:02:43

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Script when plugging in and out

I think you can do this with acpi, but I don't know the details.

Offline

#3 2007-09-13 11:27:24

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Script when plugging in and out

install acpid, and look at /etc/acpid. I think there's some example scripts there, or at least something you can work with.

Offline

Board footer

Powered by FluxBB