derr....  yeah, good thing its GPL, eh?  :)

cp h2200_bl.c aximx50_bl.c
emacs aximx50_bl.c
   Esc-x query-replace h2200 aximx50
Ctrl-x, Ctrl-s

done....

On 3/14/07, Patrick Steiner <[EMAIL PROTECTED]> wrote:
On Wednesday, 14. March 2007 21:48:59 Matt Barclay wrote:
> whoa, that was insanely easy.  I've posted the driver here:
>
> http://axim.openfbo.com/kernel/backlight/

i toke a quick look into your source code
(http://axim.openfbo.com/kernel/backlight/aximx50_bl.c)

iPAQ AXIMX50 ? its a Dell Aximx50 ;-)

regards,
 patrick
>
> Control the backlight by writing to:
>
> /sys/class/backlight/corgi-bl/brightness
>
> e.g.
>
> for i in `seq 0 10 1030`; do echo $i >
> /sys/class/backlight/corgi-bl/brightness ; usleep 100; done
>
> Cheers,
> Matt
>
> On 3/14/07, Matt Barclay <[EMAIL PROTECTED]> wrote:
> > There is a backlight controller interface and drivers in:
> >
> > drivers/video/backlight/
> >
> > Actually, it looks like h2200_bl.c is very close to what the aximx50
> > needs.  I'm playing with it right now...
> >
> > On 3/14/07, Patrick Steiner <[EMAIL PROTECTED]> wrote:
> > > On Wednesday, 14. March 2007 20:32:05 Matt Barclay wrote:
> > > > Hello,
> > > >
> > > > pxaregs is a tool for reading and setting PXA2xx registers.  It
> > > > originally comes from here:
> > > >
> > > > http://www.mn-logistik.de/unsupported/pxa250/
> > > >
> > > > I've modified it slightly to compile with the angstrom gcc 4.1.1
> > > > compiler.  The source can be found here:
> > > >
> > > > http://axim.openfbo.com/pxaregs.c
> > > >
> > > > And a binary here:
> > > >
> > > > http://axim.openfbo.com/pxaregs-axim
> > > >
> > > > You can use it to control the LCD backlight:
> > > >
> > > > Backlight Off:
> > > > ./pxaregs-axim PWMDUTY0_DCYCLE 0
> > > >
> > > > Backlight On full intensity:
> > > > ./pxaregs-axim PWMDUTY0_DCYCLE 1023
> > >
> > > wow nice now someone should write a kernel driver for that.
> > >
> > > or is there already a std pxa backlight driver?
> > >
> > > > Or anything in between.  I don't notice much change in intensity
> > > > beyond 600 or so.
> > > >
> > > > The Axim is using a pulse width modulation (PWM) pin to control
> > > > brightness.
> > > >
> > > > Cheers,
> > > > Matt
> > >
> > > patrick
> > >
> > > --
> > > Patrick Steiner | [EMAIL PROTECTED]
> > > ICQ: 128261350
> > > WWW: http://helmsdeep.homelinux.net/~pat
> > >
> > > working on (tux4u.skynet):
> > > Fedora Core release 6 (Zod)
> > > GNU/Linux 2.6.19-1.2911.6.5.fc6
> > > --
> > > _______________________________________________
> > > Aximx50-port mailing list
> > > [email protected]
> > > https://www.handhelds.org/mailman/listinfo/aximx50-port



--
Patrick Steiner | [EMAIL PROTECTED]
ICQ: 128261350
WWW: http://helmsdeep.homelinux.net/~pat

working on (tux4u.skynet):
Fedora Core release 6 (Zod)
GNU/Linux 2.6.19-1.2911.6.5.fc6
--
_______________________________________________
Aximx50-port mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/aximx50-port

--
_______________________________________________
Aximx50-port mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/aximx50-port

Reply via email to