[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to configure UPS options



On 25/01/2015 03:00, Melvin Call wrote:
On 1/24/15, mrr <mireero@free.fr> wrote:
On 24/01/2015 03:50, Melvin Call wrote:
...
So yeah, if you have some udev rule writing help that you can point me to, I
will try that avenue.

Hi Melvin,

I'll be pleased to develop a bit how I settled up a udev rule for the battery. The idea were to trigger an action every time the battery appeared as a kernel/udev event. Maybe tomorrow, if I have some free time!

In the battery case, the udev triggering (used to happen every about 10 seconds on my laptop) were just kind of an exercise for me because I could have used cron with the same result and even more freedom (you can choose the delay).

But once you understand (a bit) udev you can easily do nice things like triggering a rsync script every time you plug in your usb disk and only that one!

I'll try to develop a bit my understanding of udev soon (novice perspective!).

Cheers

--
mrr


Reply to: