Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-04-2004, 04:23 PM   #1
LQ Newbie
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
KMail, flashing LEDs and the problems therein.

Hi everybody,

I'm using KMail 3.1.3 running on Mandrake 9.2, and I've got a filter set up to notify me of incoming mail via a sound and an application called "ledcontrol" which starts the scroll-lock LED flashing when I've got new mail. It works just great.

The problem is that the LED doesn't stop blinking until a command is send to ledcontrol via command line. I can't figure out an elegant way of doing this without having to literally open a term window and execute the command each time.

Here are some other options I have considered:

1) create a cron job to check the ~/mail/inbox/new folder every couple minutes, and if no files exist (meaning I've read all new mail), it executes the command to kill the LED. Problem is that KMail doesn't appear to put unread messages in this folder, and shoves everything into /cur instead. Frankly, I don't know what the /new folder is even for.
2) Figure out some other measurable difference between read and unread maildir files for a cron job, similar to 1).
3) Create a key shortcut in KMail to execute the ledcontrol command. KMail doesn't seem to offer key shortcuts for anything but KMail internal commands, unless I'm missing the obvious.
4) Something else I haven't thought of yet.

Any advice? I am very picky about it being simple (the ideal is automatic, like option 1), which I understand limits my possibilities.

Thanks for any help you can offer.

Old 02-04-2004, 06:10 PM   #2
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel
Posts: 331

Rep: Reputation: 30
I have no experience with KMail or that LED thingie but here's one thing you could do.
Bind a certain keystroke to execute that command through your window manager(KDE?).
Old 02-04-2004, 06:47 PM   #3
LQ Newbie
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for your idea. I was just messing around with that solution as you replied, and, although it seems to get the job done, it's kind of an ugly fix. I created a shell script with the "turn off LED" command in it, added that to the KDE menu, and then mapped the Scroll Lock key to that menu item.

It works, but then the shell script sits in the task bar for 30 seconds or so, while KDE attempts to "load" it as an application. Is there a way to do this while keeping it as an invisible background task, or am I missing something obvious again?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard leds flashing.. what does it mean? rohan208 Programming 7 02-03-2007 02:49 PM
VMWARE AND LEDs san_rees Linux - Software 0 07-14-2004 02:29 AM
crash -> blinking leds dnla Linux - Software 2 04-26-2004 03:13 PM
3c940 with 3c2000 drivers: LEDs are off. dadim Linux - Networking 1 12-16-2003 07:12 AM
Turning on Keyboard LEDs on startup ganninu Linux - Newbie 5 08-04-2003 03:23 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration