[PATCH] Heartbeat LED for iBook

Nico Schottelius nico-linux-ppc at schottelius.org
Tue Feb 8 18:54:21 EST 2005


Good morning!

Benjamin Herrenschmidt [Thu, Jan 27, 2005 at 12:42:26AM +1100]:
> One can always control the led by sending PMU command directly
> via /dev/adb :) Ok, that sort-of sucks, especially since the command is
> only supported by some versions of the PMU. On the other hand, I dislike
> cluttering /dev ... maybe I can find some better mecanism via sysfs...

Well, if /dev would fit best, imho, as it represents a device.
And I don't think 'not having enough major/minor numbers' is an argument
not to implement something. We have udev (and before devfs), which 
should clear the old problem.

Btw, howto control it via /dev/adb? Can you point me to a document
which explains that?

Joerg Dorchain [Thu, Jan 27, 2005 at 05:36:06PM +0100]:
> On Wed, Jan 26, 2005 at 12:35:54PM +0100, Nico Schottelius wrote:
> > Joerg Dorchain [Tue, Jan 18, 2005 at 10:42:16AM +0100]:
> > > [heartbeat blink patch]
> > 
> > Well, wouldn't it make much more sense to write a
> > /dev/frontled to access it via userspace? 
> 
> Well, only some hardware supports something that can be used as a HB
> LED, so IMHO yet another (misc-) device node is not completely
> justified.

Imho it would be a nice feature, for testing and for fun.

If someone gives me some pointers on howto do that, I would try to
write a driver/interface to it.

Nico

-- 
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20050208/6051445d/attachment.pgp>


More information about the Linuxppc-dev mailing list