Author Topic: Brightness Applett  (Read 3713 times)

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Brightness Applett
« 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
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Brightness Applett
« Reply #1 on: June 28, 2004, 08:00:20 pm »
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?
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Brightness Applett
« Reply #2 on: July 01, 2004, 06:08:35 pm »
Unfortunatly Im not a programmer.  Or I would take you up on the problem
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Brightness Applett
« Reply #3 on: July 02, 2004, 08:46:16 am »
That's strange. I've just had a look at the brightness-applet sources and I quote:
Code: [Select]
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 and I quote again:
Code: [Select]
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.
« Last Edit: July 02, 2004, 08:48:37 am by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Brightness Applett
« Reply #4 on: July 02, 2004, 08:52:09 am »
It's also possible that the brightness-applet 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.
« Last Edit: July 02, 2004, 08:53:30 am by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Brightness Applett
« Reply #5 on: July 06, 2004, 07:43:26 pm »
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?
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Brightness Applett
« Reply #6 on: July 07, 2004, 06:57:10 am »
Quote
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.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

rjohnson1969

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • http://
Brightness Applett
« Reply #7 on: July 07, 2004, 01:20:45 pm »
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
sl-5500 with Sharp 3.13 ROM
using stock PIM
generic 512MB SD
Pretec CF Wi-Fi

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Brightness Applett
« Reply #8 on: July 07, 2004, 08:04:42 pm »
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.
« Last Edit: July 07, 2004, 08:06:40 pm by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)