Thread (14 messages) flat view 14 messages, 5 authors, 2005-02-19

Re: [PATCH] Heartbeat LED for iBook

From: Nico Schottelius <hidden>
Date: 2005-02-08 07:55:18

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:
quoted
Joerg Dorchain [Tue, Jan 18, 2005 at 10:42:16AM +0100]:
quoted
[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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help