public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Fischer Tibor <fishy-RTHRExztqpST9ig0jae3mg@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Asus m6n mail LED
Date: Thu, 02 Sep 2004 21:21:37 +0200	[thread overview]
Message-ID: <413772C1.9080405@freemind.hu> (raw)
In-Reply-To: <413614EE.4000802-RTHRExztqpST9ig0jae3mg@public.gmane.org>

hi,

i made it work, so if someone interested here is the solution.
it works with other types too
i made a file /root/mailcheck.sh with content:
#!/bin/bash
old=$(cat /tmp/size)
new=$(du -s /home/fishy/.thunderbird/default/sgzo838b.slt/Mail | cut -f 1)

du -s /home/fishy/.thunderbird/default/sgzo838b.slt/Mail |cut -f 1 
 >/tmp/size
if [ "$old" == "$new" ]; then
       echo 0 >/proc/acpi/asus/mled
else
       echo 1 >/proc/acpi/asus/mled
fi


and put */2 * * * * /root/mailcheck.sh into /etc/crontab
crontab /etc/crontab

it checks mail dir's size in 2 mins, and the led will also lighht for 2 
min's
exchange the directory names to yours

BR,
Fishy

Fischer Tibor wrote:

> Hi,
>
> i us gentoo on my asus m6800n. i would like mozilla thunderbird, to 
> turn on my mail led, when new mail arrrives, and turn it off, when i 
> made it read.
> is it possible somehow ?
>
> thx,
> Fishy
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
>
>


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

      parent reply	other threads:[~2004-09-02 19:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-01 18:29 Asus m6n mail LED Fischer Tibor
     [not found] ` <413614EE.4000802-RTHRExztqpST9ig0jae3mg@public.gmane.org>
2004-09-02 19:21   ` Fischer Tibor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=413772C1.9080405@freemind.hu \
    --to=fishy-rthrexztqpst9ig0jae3mg@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox