Commands for adjusting screen brightness for N810

Commands for adjusting screen brightness for N810

Jey Han Lau

2009-12-16 06:13 UTC
Hi all,

I know there's an built-in application for managing the display
(brightness, etc), although I am curious if there are any commands (I am
guessing it'll be D-BUS commands if there's any) to manipulate the
screen brightness directly, or commands to manipulate all the display
settings for that matter.

If there's none, are there any ways run the built-in display program (at
Control panel) via commands?


Thanks,
Jey Han
  •  Reply

Re: Commands for adjusting screen brightness for N810

David Weinehall
Karma: 54
2009-12-16 08:10 UTC
On ons, 2009-12-16 at 07:13 +0100, ext Jey Han Lau wrote:
> Hi all,
>
> I know there's an built-in application for managing the display
> (brightness, etc), although I am curious if there are any commands (I am
> guessing it'll be D-BUS commands if there's any) to manipulate the
> screen brightness directly, or commands to manipulate all the display
> settings for that matter.
>
> If there's none, are there any ways run the built-in display program (at
> Control panel) via commands?

The display brightness control panel uses GConf for its brightness
setting. You can simply change the relevant GConf key and have the
brightness change immediately.

The relevant GConf key in question is:

/system/osso/dsm/display/display_brightness

and valid values are 1-5.


Regards: David

  •  Reply

Re: Commands for adjusting screen brightness for N810

Frantisek Dufka
Karma: 642
2009-12-16 12:23 UTC
David Weinehall wrote:
> The relevant GConf key in question is:
>
> /system/osso/dsm/display/display_brightness
>
> and valid values are 1-5.

There is also a kind of hack used by advanced brightness applet. The
system below (=dsme daemon) has finer granularity. Brignthess can be
changed (as root user) via command
chroot /mnt/initfs dsmetest -l n
n = 0-255
The hardware itself has only 127 levels so for dsmetest you need to
multiply by two. Also running dsmetest with no paremeter prints a help,
you might find -d,-b,-x useful too.

All this is valid for OS2008 only (N8x0). Also when playing with
brightness on this level it is useful to disable ambient light sensor or
it will change it. This can be done by removing filter-brightness-als
from Module line in /etc/mce/mce.ini (this works for N900 too).

Frantisek
  •  Reply

Re: Commands for adjusting screen brightness for N810

Jey Han Lau

2009-12-22 22:10 UTC
Thanks guys, both works beautifully.


Cheers,
Jey Han

Frantisek Dufka wrote:
> David Weinehall wrote:
>> The relevant GConf key in question is:
>>
>> /system/osso/dsm/display/display_brightness
>>
>> and valid values are 1-5.
>
> There is also a kind of hack used by advanced brightness applet. The
> system below (=dsme daemon) has finer granularity. Brignthess can be
> changed (as root user) via command
> chroot /mnt/initfs dsmetest -l n
> n = 0-255
> The hardware itself has only 127 levels so for dsmetest you need to
> multiply by two. Also running dsmetest with no paremeter prints a
> help, you might find -d,-b,-x useful too.
>
> All this is valid for OS2008 only (N8x0). Also when playing with
> brightness on this level it is useful to disable ambient light sensor
> or it will change it. This can be done by removing
> filter-brightness-als from Module line in /etc/mce/mce.ini (this works
> for N900 too).
>
> Frantisek

  •  Reply

Re: Commands for adjusting screen brightness for N810

Marcin Juszkiewicz
Karma: 630
2009-12-30 22:15 UTC
You can also check /sys/class/backlight/*/* entries to control screen
brightness without any software between you and kernel ;D

Regards,
--
JID: hrw@jabber.org
Website: http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz


  •  Reply

Re: Commands for adjusting screen brightness for N810

Marcin Juszkiewicz
Karma: 630
2009-12-30 22:15 UTC
You can also check /sys/class/backlight/*/* entries to control screen
brightness without any software between you and kernel ;D

Regards,
--
JID: hrw@jabber.org
Website: http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz


  •  Reply