-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

moinmoin,
Am 05.03.2009 um 08:19 schrieb g...@ergoarte.ch:

On Wed, Mar 04, 2009 at 09:19:56PM -0500, Stefan Monnier wrote:
The brightness setting in openmoko-panel-plugins has never worked
for me.  Does it work for anybody else?

By "doesn't work" I mean that, while changing the screen brightness with
openmoko-panel-plugins does indeed appear to work at first, the
brightness is brought right back to 100% soon afterwards, typically when
Zhone is raised or something like that.

Yes, that's right. Never got round to changing it, but the cause seems
to be /etc/freesmartphone/oevents/rules.yaml that uses constants instead
of asking somewhere how bright bright should be and using that value:

        #
        # Idleness Brightness Handling
        #
        trigger: IdleState()
        filters: HasAttr(status, "busy")
        actions: SetDisplayBrightness("0", 90)
        -
        trigger: IdleState()
        filters: HasAttr(status, "idle_dim")
        actions: SetDisplayBrightness("0", 20)
        -
        trigger: IdleState()
        filters: HasAttr(status, "idle_prelock")
        actions: SetDisplayBrightness("0", 0)

The brightness-plugin gets overrulled as soon as these rules are
triggered.

Gyelt

you're right .. i have some ideas regarding these rules .. maybe give them names
like 'idlestate_busy', 'idlestate_dim', [..].
it would then look like this:

- ---- snip ----
        #
        # Idleness Brightness Handling
        #
        name: 'idlestate_busy'
        trigger: IdleState()
        filters: HasAttr(status, "busy")
        actions: SetDisplayBrightness("0", 90)
        -
        name: 'idlestate_dim'
        trigger: IdleState()
        filters: HasAttr(status, "idle_dim")
        actions: SetDisplayBrightness("0", 20)
        -
- ---- snap ----

then o-p-p would be able to directly address these rules and set new values accordingly

@mickey: comments? suggestions?
are there plans for something like org.freesmartphone.Events.GetRule ( s:name ) ?
        (could be helpful ..)

cheers,
        christian (morlac) adams
- --
- -----BEGIN CONTACT BLOCK-----
  eMail:        mor...@morlac.de
  Jabber:       mor...@skavaer.homelinux.org
- ------END CONTACT BLOCK------

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS$/IT;d-;s:;a?;C++(+++)>++++;UL++++;P++(+++)>++++;
L++(+++);E---;W++;N(+);o?;K?;!w;!O;!M+>;!V;PS(+);PE;
Y+;PGP++;t+(++);5(+)>++;X(+);R*;tv->+;b++(+++);DI++;
D++(+++)>++++;G(+)>++;e+>+++;h-()>++;r++;y++;
- ------END GEEK CODE BLOCK------

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFJr7fur81gVylJyzERAiLnAKDs/Dedqf/1yK7+k2fOHLiiAHlKUQCgsJ2y
FCMu+Hc/3o/Ko56ZiOPmMg0=
=/P7f
-----END PGP SIGNATURE-----

_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to