OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => OpenZaurus/Opie/Qtopia => Topic started by: gfdsa on March 26, 2005, 12:21:17 pm

Title: Backlight Level Applet
Post by: gfdsa on March 26, 2005, 12:21:17 pm
Hi, All
The QPE/System", "setBacklight(int)" does not work on tosa, so as i am lazy, and didnt want to look into opie/qtopia/qt code, i've modified applete from here to do the changes through procfs http://zefamily.org/ZaurusProjects.html (http://zefamily.org/ZaurusProjects.html).
I'm not a c++ programmer, so all that QT stuff makes me dizzy a little, but anyway it is working and does what i need:
http://www.gfdsa.org/~gfdsa/liblightswitch-tosa.so.1.0.0 (http://www.gfdsa.org/~gfdsa/liblightswitch-tosa.so.1.0.0)
http://www.gfdsa.org/~gfdsa/lightswitchapplet-tosa.cpp (http://www.gfdsa.org/~gfdsa/lightswitchapplet-tosa.cpp)
lightswitchapplet-tosa.cpp
compiled for OZ/3.5.2

Any comments are welcome
Title: Backlight Level Applet
Post by: Mickeyl on March 26, 2005, 12:55:54 pm
Nice. Note that brightness control in Opie has been fixed to work with Tosa some months ago in CVS. It will be part of OZ 3.5.3 due pretty soon.