From: Michael R. <re...@eu...> - 2004-08-29 20:17:07
|
Hi Joco, >>Could you please thest the driver? > > Tested and ok! Great! >>Another thing: the RouterBoard LCD Header is capable of controlling the >>backlight, right? That's what the LCD_BACKLIGHT=0x0800 is about? At the >>moment, you have the backlight hardcoded/hardwired to "on". You should >>make this one configurable! Have a look at the BeckmannEgle driver how >>to do so. The "initial" backlight state should be read from the config >>file, and the driver should register a function which allows querying >>and setting the backlight. > > Added, here is the patch. Great again, thanks! Patch applied an checked in! I modified it so that the "default" (no "Backlight" entry in the config) is enabled (the call to cfg_number()) Just one thing: you rely on the fact that the backloisht state will be applied with the next LCD update. This is not that good, because if there's static content, and lcd4linux does a lot of double buffering, the next update may be delayed. Is it possible to update the backlight immediately? Just in case you didn't know: you can test your backlight control by entering the "interactive mode" with "lcd4linux -i". Then you can call your new function by entering "LCD::backlight(1)" or "LCD::backlight(0)", and query the current setting with "LCD::backlight()" Another thing: are you interested in a developer account at SourceForge? You could apply patches to your driver yourself... All I'd need is your sourceforge account name. and, finally, me being curious: where are you from? I got two different email addresses, one ending in .hu (hungaria?), one .ro (romania?) bye, Michael (trying to catch some sleep now, need to get up at 5:00 tomorrow :-( -- Michael Reinelt ICQ #288386781 e-mail: re...@eu... Tel: +43 676 3079941 Geisslergasse 4, A-8045 Graz, Austria GPG/PGP-Key: 0xDF13BA50 |