Advertisement Jump to content
Sign in to follow this  

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

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

If you intended to correct an error in the post then please contact us.

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
   touch /tmp/blinkme
   rm /tmp/blinkme

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 this post

Link to post
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 this post

Link to post
Share on other sites

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. :)

Again, thanks for your time!


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!