Subject: Re: wscons and XFree keyboard problems on SPARCbook 3TX
To: None <>
From: Michael <>
List: port-sparc
Date: 10/31/2005 18:14:24
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable


> - more LCD stuff, like the spinning thingie when accessing the disk or
>   ethernet link status, modem and so on. Hacking this into existing
>   code is easy but a more generic solution would be desirable. Maybe I
>   should abuse one indicator to show wether serial ports are powered
>   up, or scroll panic messages through the LCD, or blink the ethernet
>   indicator depending on traffic - nobody said it has to behave=20
>   exactly the same as under Solaris ;)

I've got something to make some of this work, but I'm not overly sure
it's the right way to do it. Here's what I did:

It's starting a kernel thread from tctrl_attach which looks for sd0 and
le0. When it finds them it keeps checking the disk's transfer counters
and lance_softc's sc_havecarrier every half second and updates the
LCD when necessary.=20

The devices watched could be made configurable, via kernel config or
userland, I should probably look for a device-independent way to check
the network status. It could for instance watch a wireless card which
would be more interesting than the carrier on the built-in interface,
but then it would have to cope with devices getting added and removed.
Offloading the whole thing into userspace seems a bit over the top, at
least for the disk spinner.

have fun

Content-Type: application/pgp-signature

Version: GnuPG v1.4.0 (NetBSD)