Re: pxaregs and backlight control

From: Patrick Steiner <patrick.steiner_at_a1.net>
Date: Wed, 14 Mar 2007 22:02:10 +0100

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 <mbarclay_at_gmail.com> 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 <patrick.steiner_at_a1.net> 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 | patrick.steiner_at_a1.net
> > > 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
> > > Aximx50-port_at_handhelds.org
> > > https://www.handhelds.org/mailman/listinfo/aximx50-port

-- 
Patrick Steiner | patrick.steiner_at_a1.net
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
Received on Wed Mar 14 2007 - 16:02:13 EST

This archive was generated by hypermail 2.2.0 : Wed Mar 14 2007 - 16:02:26 EST