# How to control computer HDD-led from Linux...?

This topic is 3629 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi! I'm wondering if any of you fine people have tried gaining control over the computer LED that shows disk-activity..? What I'm trying to do is to simply blink the light when a certain condition occurs, to give an visual clue when not using a monitor. Unfortunaly, I can't use the parallel-port for this since there is none. I've tried a simple script that does the trick (somewhat) but it seems like a really "cheap" way of doing it...
while [ 1 ]; do
{
sync
}
done


Also, I don't know the effect of the sync-command if the computer gets turned off whilst running - as the computer is likely to be from time to time. So, does anyone have a couple of pointers or an idea of any kind? :) Thanks in advance! /Robert

##### Share on other sites
Motherboards generally hard-wire that thing to the data-push pins of the IDE/SATA controllers (plus some circutry to make the pulse last long enough to be visible, of course).

However, if you have an LED, you could wire together something to make it glow when you send data out a serial connection. But it'll be safer to get a kit for that sort of thing.

##### Share on other sites
It looks like you can control your keyboard LEDs from Linux.

##### Share on other sites
Hi!

Thanks for the tips, but unfortunally this particular solution/problem doesn't allow me to use a keyboard or external ports for communication. Just the two leds on the front, power and hdd. The product is primarly accessed via ssh/telnet and I can't really modify it either since that would take to much time in production. :)

/Robert

• 32
• 12
• 10
• 9
• 9
• ### Forum Statistics

• Total Topics
631352
• Total Posts
2999483
×