OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: craigtyson on June 28, 2004, 07:40:30 pm
-
Anyone have a ipkg for a OZ compatable Brightness applett. I have tried several Sharp based feeds all of which install and run and crash out to the command line when I click on them. Im guesing the Brigtness settings are some what diffrent in OZ to a 3.1 Sharp based ROM.
Any pointers / ideas / abuse welcome
-
Opie has its own hardware independent API to access brightness. Someone would need to port the brightnessapplet to that new API. Could I talk you into doing that?
-
Unfortunatly Im not a programmer. Or I would take you up on the problem
-
That's strange. I've just had a look at the brightness-applet sources (http://my-zaurus.narod.ru/downloads/brightness-1.0.1.tar.gz) and I quote:
void
BrightnessApplet::sliderMoved(int /* value */)
{
#ifndef QT_NO_COP
QCopEnvelope e("QPE/System", "setBacklight(int)");
e << calcBrightnessValue();
#endif // QT_NO_COP
Then I looked at the Opie Settings > Light & Power panel's source (http://dudu.dyn.2-h.org/nist/doxydoc/allOpie/light_8cpp-source.html) and I quote again:void LightSettings::setBacklight ( int bright )
{
QCopEnvelope e ( "QPE/System", "setBacklight(int)" );
e << bright;
Either I'm completely missing the point or the mechanism they use is indeed the same. Also, when I go to konsole and type
qcop QPE/System "setBacklight(int)" 0
it turns off the backlight like a charm (that's Opie 1.0.3). If brightness-applet doesn't work under Opie (and I cannot try it now - I don't have the USB cradle with me), it's probably due to something else than a difference in APIs.
z.
-
It's also possible that the brightness-applet (http://my-zaurus.narod.ru/opie.html#brightness) I looked at actually does work under Opie and wouldn't work under a 3.1-based ROM. So you should maybe try it if you haven't .
z.
-
I have tried this one and unfortunatly it doesnt work.
Is it possable to create a link to the main power/light settings from the applet directory?
-
Is it possable to create a link to the main power/light settings from the applet directory?
No, as far as I know. One very silly question: are you aware of the Menu button trick? When you push & hold the Menu key (above the OK key) it will turn off the backlight. If you hold the button again, the backlight will turn back on. This has been sufficient for me so far, I never felt the need for a brightness appliet.
Having read your post, I did install the applet and yes it doesn't show up at all, even though it seems to be installed in the proper place. I have no idea how to debug an Opie applet but I may have a look at it sometimes (don't hold your breath though).
z.
-
warning, this is an off-topic sharp ROM reply --
I use the Zaurus in good light most of the time, and don't want the backlight on.
It should 'remember' the backlight state it was in when it is turned off, but does not. Therefore I have to turn off the backlight every time I turn on the Z to save battery consumption.
My workaround for this is:
In the morning: enter light and power application and unselect the 'dim light after' and 'light off after' timers, and set the backlight to 0%
In the evening: set the 'light off after' back on, and set backlight to 25%
I'd like to be able to use it in darkness without a flashlight even if I forget to set the backlight back up to 25%. (You have to have SOME light to be able to see the backlight setting GUI).
Any ideas? Is there an applet for my situation?
Does OZ work like I'm describing?
Thanks.
sl-5500 w/ Sharp 3.13 ROM
-
OZ works just like Sharp ROMs in this respect. I think what you want is simply to have the backlight state preserved on suspend/resume. That way, you would never need to go to Settings > Light & Power. You would simply hold the Menu button in the morning and then again in the evening.
I can think of only one reason for the way it is done now: a newbie might freak out if they resume in the dark & the display doesn't light up. Maybe the Light & Power panel should have a "preserve backlight state on suspend/resume" checkbox.
z.