Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Hard Drive Activity Light

Hard Drive Activity Light

Scheduled Pinned Locked Moved Hardware & Devices
algorithmshelpquestion
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ricecake
    wrote on last edited by
    #1

    I am working on an application service that will be running on a PC with no monitor attached to it. Is there a way to force the hard drive activity light to blink (maybe like 1 second on, then 1 second off) so that we can tell whether or not the service is running without attaching a monitor? The normal disk activity that occurs while the service is running happens so fast that the light just flickers so dimly that it is hard to see if it is even on. Thanks for any help, or pointers to resources that may be useful. The only things I could find from searching are people asking why their activity light constantly blinks.

    -- Marcus Kwok

    J S 2 Replies Last reply
    0
    • R ricecake

      I am working on an application service that will be running on a PC with no monitor attached to it. Is there a way to force the hard drive activity light to blink (maybe like 1 second on, then 1 second off) so that we can tell whether or not the service is running without attaching a monitor? The normal disk activity that occurs while the service is running happens so fast that the light just flickers so dimly that it is hard to see if it is even on. Thanks for any help, or pointers to resources that may be useful. The only things I could find from searching are people asking why their activity light constantly blinks.

      -- Marcus Kwok

      J Offline
      J Offline
      Johpoke
      wrote on last edited by
      #2

      I would not think that there is any way to directly control weather the HDD LED is on or off, but simply replacing a file with a large amount of data at certain intervals would work. Or if you are lucky your computers still have their PC speakers installed, meaning you could use Beep(int freq, int duration); (duration in ms) Or maybe you could use inpout32(); to control the binary outputs on a LPT/printer port, and then connect a LED and resistor to make it blink... [^]

      //Johannes

      R 1 Reply Last reply
      0
      • J Johpoke

        I would not think that there is any way to directly control weather the HDD LED is on or off, but simply replacing a file with a large amount of data at certain intervals would work. Or if you are lucky your computers still have their PC speakers installed, meaning you could use Beep(int freq, int duration); (duration in ms) Or maybe you could use inpout32(); to control the binary outputs on a LPT/printer port, and then connect a LED and resistor to make it blink... [^]

        //Johannes

        R Offline
        R Offline
        ricecake
        wrote on last edited by
        #3

        Johannes, Thanks for your reply.

        Johpoke wrote:

        simply replacing a file with a large amount of data at certain intervals would work.

        This probably would work, but my concern with this method is that it might contribute to the hard drive failing sooner than otherwise. In this application, the device is intended to be in service for many years with minimal user intervention. For the units that we are replacing with this new unit, the hard drives were the most common point of failure.

        Johpoke wrote:

        you could use Beep(int freq, int duration);

        This method might be a little too intrusive/annoying for the people working in the room.

        Johpoke wrote:

        Or maybe you could use inpout32(); to control the binary outputs on a LPT/printer port, and then connect a LED and resistor to make it blink...

        However, this idea is very interesting. Thanks for the pointer!

        -- Marcus Kwok

        J 1 Reply Last reply
        0
        • R ricecake

          Johannes, Thanks for your reply.

          Johpoke wrote:

          simply replacing a file with a large amount of data at certain intervals would work.

          This probably would work, but my concern with this method is that it might contribute to the hard drive failing sooner than otherwise. In this application, the device is intended to be in service for many years with minimal user intervention. For the units that we are replacing with this new unit, the hard drives were the most common point of failure.

          Johpoke wrote:

          you could use Beep(int freq, int duration);

          This method might be a little too intrusive/annoying for the people working in the room.

          Johpoke wrote:

          Or maybe you could use inpout32(); to control the binary outputs on a LPT/printer port, and then connect a LED and resistor to make it blink...

          However, this idea is very interesting. Thanks for the pointer!

          -- Marcus Kwok

          J Offline
          J Offline
          Johpoke
          wrote on last edited by
          #4

          ricecake wrote:

          This method might be a little too intrusive/annoying for the people working in the room.

          I was thinking the room might be like the server rooms ive been in. If that where the case you would have to put you ear to the case to hear the beeping. (or *overclock* the speaker ) Glad I could help :)

          //Johannes

          R 1 Reply Last reply
          0
          • J Johpoke

            ricecake wrote:

            This method might be a little too intrusive/annoying for the people working in the room.

            I was thinking the room might be like the server rooms ive been in. If that where the case you would have to put you ear to the case to hear the beeping. (or *overclock* the speaker ) Glad I could help :)

            //Johannes

            R Offline
            R Offline
            ricecake
            wrote on last edited by
            #5

            Well, it's kind of like a server room in that there will be a large amount of equipment in there, but I believe people will be working in there for a significant part of the time as well.

            -- Marcus Kwok

            1 Reply Last reply
            0
            • R ricecake

              I am working on an application service that will be running on a PC with no monitor attached to it. Is there a way to force the hard drive activity light to blink (maybe like 1 second on, then 1 second off) so that we can tell whether or not the service is running without attaching a monitor? The normal disk activity that occurs while the service is running happens so fast that the light just flickers so dimly that it is hard to see if it is even on. Thanks for any help, or pointers to resources that may be useful. The only things I could find from searching are people asking why their activity light constantly blinks.

              -- Marcus Kwok

              S Offline
              S Offline
              Sebastian Schneider
              wrote on last edited by
              #6

              Well, the keyboard LEDs would work. You can control those with an interrupt, IIRC. Did that in TurboPascal once. As for the HD-LED: difficult.

              Cheers, Sebastian -- "If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton

              D R 2 Replies Last reply
              0
              • S Sebastian Schneider

                Well, the keyboard LEDs would work. You can control those with an interrupt, IIRC. Did that in TurboPascal once. As for the HD-LED: difficult.

                Cheers, Sebastian -- "If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #7

                I don't think you can mess with them that way in a modern OS. My turboPascal keyboard light toggler crashed under NT4(3.5????). There's got to be an API way to do it though.

                -- Join the Campaign to Help Stamp Out and Abolish Redundancy The preceding is courtesy of the Bureau of Unnecessarily Redundant Repetition Department.

                1 Reply Last reply
                0
                • S Sebastian Schneider

                  Well, the keyboard LEDs would work. You can control those with an interrupt, IIRC. Did that in TurboPascal once. As for the HD-LED: difficult.

                  Cheers, Sebastian -- "If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton

                  R Offline
                  R Offline
                  ricecake
                  wrote on last edited by
                  #8

                  Thanks for the suggestion; however, I forgot to mention in my original post that the keyboard and mouse will also be disconnected under normal use; they only get connected for maintenance.

                  -- Marcus Kwok

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups