Results 1 to 8 of 8

Thread: Keyboard backlight on MacBookPro Penryn with Hardy Heron

  1. #1
    Join Date
    Oct 2008
    Location
    France
    Beans
    3
    Distro
    Ubuntu 8.04 Hardy Heron

    Question Keyboard backlight on MacBookPro Penryn with Hardy Heron

    Hi everybody,

    Since few days I've decided to test Ubuntu Hardy Heron on my MacbookPro Penryn.

    Thanks to this forum, and others web pages, I manage to install it without any problems, and I've now a triple boot (with MS Vista too), fully fonctionnal.
    All MacBookPro's features works very well, except one of them : the keyboard backlight.

    I install "pommed" which is supposed to active it, but it's not works. Yet the keyboard backlight is fonctionnal because if I tape this in a terminal :
    Code:
    sudo ./keyboard_brigthness toggle
    ...when I'm in the mactel-linux-tools folder, the keyboard backlight switch on!

    But, impossible to active it automatically, like it's normally works.
    Have you any ideas or suggestions to help me ? It's a kind frustating since it's the last things which doesn't work...


    Thanks for any helps, and sorry if my post seems weird, I'm french and not totally fluent in english (I already posted in french forums, but no answers...).

  2. #2
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: Keyboard backlight on MacBookPro Penryn with Hardy Heron

    Quote Originally Posted by BikerNiK View Post
    All MacBookPro's features works very well, except one of them : the keyboard backlight.

    I install "pommed" which is supposed to active it, but it's not works. Yet the keyboard backlight is fonctionnal because if I tape this in a terminal :
    Code:
    sudo ./keyboard_brigthness toggle
    ...when I'm in the mactel-linux-tools folder, the keyboard backlight switch on!

    But, impossible to active it automatically, like it's normally works.
    Have you any ideas or suggestions to help me ? It's a kind frustating since it's the last things which doesn't work...
    There are many, many fixes for this sort of stuff but I think they are only applicable in Intrepid. See the recent threads related to this:
    http://ubuntuforums.org/showthread.php?t=959992

    The Mactel-Support PPA (which contains many of the patched packages) can be found here:
    https://edge.launchpad.net/~mactel-support/+archive

  3. #3
    Join Date
    May 2008
    Beans
    745

    Re: Keyboard backlight on MacBookPro Penryn with Hardy Heron

    Since you are running Hardy, there are a few additional things to test, besides the suggestions on the links provided by cyberdork:

    1. Is your keyboard backlight keys registered as X events? Have a look using the 'xev' application.

    2. Is your machine listed in /usr/share/hal/fdi/policy/10osvendor/10-macbookpro-utils.fdi or /etc/hal/fdi/policy/10osvendor/10-macbookpro-utils.fdi?

    You might also want to run pommed with debug output (check pommed -h), to determine if the key presses are being registered.

  4. #4
    Join Date
    May 2008
    Beans
    745

    Re: Keyboard backlight on MacBookPro Penryn with Hardy Heron

    ... and one more thing: if you are going for the intrepid-style way of adding keyboard backlight, you may want to check

    1. The path to your sysfs leds device
    Code:
    find /sys/class/leds/
    2. The path in /usr/share/hal/fdi/information/10freedesktop/10-applesmc.fdi
    Code:
    grep sysfs /usr/share/hal/fdi/information/10freedesktop/10-applesmc.fdi
    This method was not really done for intrepid, but if it works for you, with a modified 10-applesmc.fdi, we can update the hal-applesmc package to work for both distributions.

  5. #5
    Join Date
    Oct 2008
    Location
    France
    Beans
    3
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Keyboard backlight on MacBookPro Penryn with Hardy Heron

    Hi kosumi68 and first, thanks for your help,

    I've few questions about your answers, because I'm not an Ubuntu specialist... When you said :
    Quote Originally Posted by kosumi68 View Post
    1. Is your keyboard backlight keys registered as X events? Have a look using the 'xev' application.
    How can I know if my keyboard backlights keys are registered or not ? When I'm launch "xev", the results isn't very clear for me... It's only launch an application which is report in the terminal the coordinates of my mouse...

    Quote Originally Posted by kosumi68 View Post
    You might also want to run pommed with debug output (check pommed -h), to determine if the key presses are being registered.
    Here's the result of this command :
    Code:
    pommed configuration:
     + General settings:
        fnmode: 1
     + ATI X1600 backlight control:
        initial level: -1
        step: 10
        on_batt: 80
     + Intel GMA950 backlight control:
        initial level: 0xffffffff
        step: 0xf
        on_batt: 0x40
     + nVidia GeForce 8600M GT backlight control:
        initial level: -1
        step: 1
        on_batt: 6
     + Audio volume control:
        card: default
        initial volume: -1
        step: 10%
        beep: yes
        volume element: PCM
        speaker element: Front
        headphones element: Headphone
     + Keyboard backlight control:
        default level: 255
        step: 50
        auto on threshold: 40
        auto off threshold: 80
        auto enable: yes
        idle timer: 60s
     + CD eject:
        enabled: yes
        device: /dev/dvd
     + Beep:
        enabled: no
        beepfile: /usr/share/pommed/goutte.wav
     + Apple Remote IR Receiver:
        enabled: no

    Sorry, but it seems to be too complicated for my level for now...

  6. #6
    Join Date
    May 2008
    Beans
    745

    Re: Keyboard backlight on MacBookPro Penryn with Hardy Heron

    Quote Originally Posted by BikerNiK View Post
    Sorry, but it seems to be too complicated for my level for now...
    Not to worry. There are several threads about these things floating around currently, chances are it will be resolved anyways. Thanks for reporting!

  7. #7
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: Keyboard backlight on MacBookPro Penryn with Hardy Heron

    Quote Originally Posted by BikerNiK View Post
    How can I know if my keyboard backlights keys are registered or not ? When I'm launch "xev", the results isn't very clear for me... It's only launch an application which is report in the terminal the coordinates of my mouse...
    xev will report output to the terminal when you hit a particular key. To check that the key is "doing something", run xev, hit the key you want to check, then stop it (Ctrl+C will kill the current running item). Then you can copy and paste any output from the key presses here.

  8. #8
    Join Date
    Oct 2008
    Location
    France
    Beans
    3
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Keyboard backlight on MacBookPro Penryn with Hardy Heron

    Ok, thanks cyberdork33.
    Here's the result when I press the two buttons supposed to activate or desactivate the keyboard backlight.

    Code:
    KeyPress event, serial 31, synthetic NO, window 0x2800001,
        root 0x13b, subw 0x0, time 184216, (-208,639), root:(466,690),
        state 0x0, keycode 71 (keysym 0xffc2, F5), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyRelease event, serial 31, synthetic NO, window 0x2800001,
        root 0x13b, subw 0x0, time 184336, (-208,639), root:(466,690),
        state 0x0, keycode 71 (keysym 0xffc2, F5), same_screen YES,
        XLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyPress event, serial 31, synthetic NO, window 0x2800001,
        root 0x13b, subw 0x0, time 184847, (-208,639), root:(466,690),
        state 0x0, keycode 72 (keysym 0xffc3, F6), same_screen YES,
        XLookupString gives 0 bytes: 
        XmbLookupString gives 0 bytes: 
        XFilterEvent returns: False
    
    KeyRelease event, serial 31, synthetic NO, window 0x2800001,
        root 0x13b, subw 0x0, time 184959, (-208,639), root:(466,690),
        state 0x0, keycode 72 (keysym 0xffc3, F6), same_screen YES,
        XLookupString gives 0 bytes: 
        XFilterEvent returns: False

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
  •