mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Shem Multinymous" <multinymous@gmail.com>
To: "Victor Porton,,," <porton@ex-code.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Feature request: HDD status
Date: Wed, 1 Mar 2006 01:55:30 +0200	[thread overview]
Message-ID: <41840b750602281555q493323c1y37d3d3fb25e3d087@mail.gmail.com> (raw)
In-Reply-To: <E1FEESA-0002vG-00@porton.narod.ru>

On 3/1/06, Victor Porton,,, <porton@ex-code.com> wrote:
> Linux would be able (if this is possible for software) to
> deliver to the user the state of the HDD, whether it is
> active.
>
> I mean that Linux would have a module which would export to
> user space a boolean flag (probably a semaphore) which would
> be true while the HDD red lamp is shining and false while it
> is dark.

You can get a fair approximation of that information by monitoring
/proc/diskstats or the relevant counter files under /sys. Simply turn
on the logical LED if the IO counter has been incremented in the last
(say) 30ms. The only time this is likely to be noticable different
than the physical LED is when the drive is in some initialization
state or error condition.

For an amusing ready-made graphical version, try the gkhdplop plugin of gkrellm.

  Shem

  reply	other threads:[~2006-02-28 23:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28 23:40 Victor Porton,,,
2006-02-28 23:55 ` Shem Multinymous [this message]
2006-03-01  6:16 ` shogunx

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=41840b750602281555q493323c1y37d3d3fb25e3d087@mail.gmail.com \
    --to=multinymous@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=porton@ex-code.com \
    /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

all inboxes | Powered by JetHome®