Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: [SOLVED] How to configure screen and keyboard backlight in Intrepid?

  1. #21
    Join Date
    May 2005
    Location
    Chicago
    Beans
    130

    Re: How to configure screen and keyboard backlight in Intrepid?

    Quote Originally Posted by kosumi68 View Post
    Thank you. I believe I found the problem in gnome-power-manager. I have uploaded new versions of hal-applesmc and gnome-power-manager to the mactel PPA, they should be available within half an hour. Please test them

    Here are values I changed in the apps/gnome-power-manager/ambient section, using gconf-editor. They work well for me.
    Code:
    correction_factor: 50 (how much in percent the ambient sensor should influence the brightness)
    correction_scale: 1000 (how much in percent to scale the reading of the ambient sensor. readings are fairly low, so ten times seems ok)
    dim_policy: none (unchanged)
    enable: checked
    poll_timeout: 30 (seconds: reasonable value. dont set too low)
    OK, I have the new versions installed and have changed my apps/gnome-power-manager/ambient section, using gconf-editor, to match your values.

    Bu this still isn't working on the MBP 4,1. Nothing happens in response to ambient light changes, as far as I can tell. Thanks for trying, by the way.
    Ubuntu 10.04

  2. #22
    Join Date
    May 2008
    Beans
    745

    Re: How to configure screen and keyboard backlight in Intrepid?

    Quote Originally Posted by hyperboloid View Post
    OK, I have the new versions installed and have changed my apps/gnome-power-manager/ambient section, using gconf-editor, to match your values.

    Bu this still isn't working on the MBP 4,1. Nothing happens in response to ambient light changes, as far as I can tell. Thanks for trying, by the way.
    I think it will work, it should be some little thing we missed.

    1. light readings ok? what do they look like?
    Code:
    cat /sys/devices/platform/applesmc.768/light
    2. hal device detection seemed ok from before.
    Code:
    hal-find-by-capability --capability light_sensor
    Code:
    hal-find-by-capability --capability keyboard_backlight
    3. double-check version of hal-applesmc
    Code:
    dpkg-query -W hal-applesmc
    4. double-check version of gnome-power-manager
    Code:
    dpkg-query -W gnome-power-manager
    5. rebooting, just to make sure

  3. #23
    Join Date
    May 2005
    Location
    Chicago
    Beans
    130

    Re: How to configure screen and keyboard backlight in Intrepid?

    Quote Originally Posted by kosumi68 View Post
    I think it will work, it should be some little thing we missed.

    1. light readings ok? what do they look like?
    Code:
    cat /sys/devices/platform/applesmc.768/light
    2. hal device detection seemed ok from before.
    Code:
    hal-find-by-capability --capability light_sensor
    Code:
    hal-find-by-capability --capability keyboard_backlight
    3. double-check version of hal-applesmc
    Code:
    dpkg-query -W hal-applesmc
    4. double-check version of gnome-power-manager
    Code:
    dpkg-query -W gnome-power-manager
    5. rebooting, just to make sure
    OK, this does seem to be working for the display backlight now, although it is not very sensitive to ambient changes at the moment. It seems that I need to cover up a sensor to make it go pretty close to zero before I see any change in display backlight intensity, and then it is a fairly small change. After uncovering, the intensity goes back up again. This is fairly unpredictable so far - sometimes it seems to miss the change altogether.

    There does not seem to be any effect on the keyboard backlight from this. One might expect to see it turn on when the ambient light is low, but I do not get that at all.

    Just for the record, here are the answers to kosumi's questions:

    Question 1. Various readings with one or both sensors covered up.
    Code:
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (216,177)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (0,176)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (216,177)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (216,175)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (216,10)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (215,4)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (216,4)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (179,29)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (190,23)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (1,173)
    me@laptop:~$ cat /sys/devices/platform/applesmc.768/light 
    (0,14)
    Questions 2 - 4.
    Code:
    me@laptop:~$ hal-find-by-capability --capability light_sensor
    /org/freedesktop/Hal/devices/applesmc_light_sensor
    
    me@laptop:~$ hal-find-by-capability --capability keyboard_backlight
    /org/freedesktop/Hal/devices/applesmc_keyboard_backlight
    
    me@laptop:~$ dpkg-query -W hal-applesmc
    hal-applesmc	0.14
    
    me@laptop:~$ dpkg-query -W gnome-power-manager
    gnome-power-manager	2.24.0-1mactel4
    I wouldn't mind experimenting with the settings to see if I can get the keyboard backlight to come on when the ambient light gets low enough. Do you have any suggestions where to look?
    Ubuntu 10.04

  4. #24
    Join Date
    May 2008
    Beans
    745

    Re: How to configure screen and keyboard backlight in Intrepid?

    Quote Originally Posted by hyperboloid View Post
    OK, this does seem to be working for the display backlight now, although it is not very sensitive to ambient changes at the moment. It seems that I need to cover up a sensor to make it go pretty close to zero before I see any change in display backlight intensity, and then it is a fairly small change.
    Your light readings (only the left sensor is in effect currently) are fairly high, so the correction_scale value of 1000% will hit max quickly. Changing the value to 100% should make a difference. Also, tchanging the correction_factor to 90% will give a much greater impact on the brightness. With 99%, its a huge difference.
    Last edited by kosumi68; November 12th, 2008 at 01:37 AM.

  5. #25
    Join Date
    May 2005
    Location
    Chicago
    Beans
    130

    Re: How to configure screen and keyboard backlight in Intrepid?

    Quote Originally Posted by kosumi68 View Post
    Your light readings (only the left sensor is in effect currently) are fairly high, so the correction_scale value of 1000% will hit max quickly. Changing the value to 100% should make a difference. Also, tchanging the correction_factor to 90% will give a much greater impact on the brightness. With 99%, its a huge difference.
    A correction_factor of 99% seems to be too high for my model - has no effect at all. Maybe it exceeds some threshold somewhere. But 80% seems pretty decent. I've also set the correction_scale to 100 as suggested.

    These settings make the display backlight response to ambient light changes really noticeable.

    Still no idea how to do same with the keyboard backlight. That will have to wait, I suppose. Anyway, I'm marking this thread "solved" so we can move on to more important things.
    Ubuntu 10.04

  6. #26
    Join Date
    Apr 2007
    Location
    San Francisco
    Beans
    30

    Re: How to configure screen and keyboard backlight in Intrepid?

    http://ubuntuforums.org/showthread.php?t=1022619 fixed my keyboard backlight issue. Different model Macbook; might work though.
    Blawrgiddy blawrgiddy blawr, Ubuntu.

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •