You are not logged in.

#1 2009-11-13 02:50:52

crocowhile
Member
Registered: 2009-10-18
Posts: 56

keyboard light on mbp 5,5

Hi,
any idea of how I can get keyboard retroillumination to work on my MBP?

According to this page https://wiki.edubuntu.org/MactelSupportTeam/PPA
everything I need should be in the hal-applesmc pkg.
I compiled the sources in hal-applesmc.deb (simply make; sudo make
install) but could not get the thing working.
Display retro-illumination works fine using a patched kernel. Keyboard
light works with pommed or with sysfs.

Yet gnome-power-manager doesn't seem to be associating the right
action to F5 and F6.
Any suggestion?


Here some logs:

gg@mercurio:~$ sudo dmidecode -s system-product-name
MacBookPro5,5

gg@mercurio:~$ uname -a
Linux mercurio 2.6.32-rc6-custom #4 SMP PREEMPT Thu Nov 12 09:02:09
CST 2009 i686 Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz GenuineIntel
GNU/Linux

gg@mercurio:~$ ls /sys/class/leds/smc\:\:kbd_backlight
brightness  device  max_brightness  power  subsystem  uevent

gg@mercurio:~/devel/abs/hal-applesmc$ sudo make install
Password:
install -d "/usr/lib/hal"
install -d "/usr/share/hal/fdi/information/10freedesktop"
install -m 755 bin/hald-addon-generic-kbd-backlight
bin/hald-addon-generic-light-sensor "/usr/lib/hal"
install -m 644 fdi/10-applesmc.fdi
"/usr/share/hal/fdi/information/10freedesktop"


Pressing F5
XEV:

FocusOut event, serial 35, synthetic NO, window 0x6200001,
   mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 35, synthetic NO, window 0x6200001,
   mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 35, synthetic NO, window 0x0,
   keys:  4294967292 0   0   0   0   0   0   0   0   0   0   0   0
0   0   0
          0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

TI:17:27:43     TH:0x8c32968    FI:gpm-button.c FN:gpm_button_filter_x_events,121
- Key 237 mapped to key kbd-illum-down
TI:17:27:43     TH:0x8c32968    FI:gpm-button.c FN:gpm_button_emit_type,81
- emitting button-pressed : kbd-illum-down
TI:17:27:43     TH:0x8c32968    FI:gpm-manager.c        FN:gpm_manager_button_pressed_cb,748
- Button press event type=kbd-illum-down
TI:17:27:43     TH:0x8c32968    FI:gpm-backlight.c      FN:gpm_backlight_button_pressed_cb,346
- Button press event type=kbd-illum-down


Pressing F6
XEV:

FocusOut event, serial 35, synthetic NO, window 0x6200001,
   mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 35, synthetic NO, window 0x6200001,
   mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 35, synthetic NO, window 0x0,
   keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
          0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

TI:17:27:25     TH:0x8c32968    FI:gpm-button.c FN:gpm_button_filter_x_events,121
- Key 238 mapped to key kbd-illum-up
TI:17:27:25     TH:0x8c32968    FI:gpm-button.c FN:gpm_button_emit_type,81
- emitting button-pressed : kbd-illum-up
TI:17:27:25     TH:0x8c32968    FI:gpm-manager.c        FN:gpm_manager_button_pressed_cb,748
- Button press event type=kbd-illum-up
TI:17:27:25     TH:0x8c32968    FI:gpm-backlight.c      FN:gpm_backlight_button_pressed_cb,346
- Button press event type=kbd-illum-up

Offline

#2 2009-11-13 10:43:39

txus
Member
Registered: 2008-01-23
Posts: 78

Re: keyboard light on mbp 5,5

Install pommed, try again. Don't forget to report back! wink

Edit: Interesting link --> https://help.ubuntu.com/community/MacBookPro5-5/Karmic

Last edited by txus (2009-11-13 10:52:46)

Offline

#3 2009-11-13 18:50:35

crocowhile
Member
Registered: 2009-10-18
Posts: 56

Re: keyboard light on mbp 5,5

As I said, pommed works (although not perfectly).
I would rather have it working through gnome-power-manager though.

Offline

#4 2009-11-13 21:44:11

txus
Member
Registered: 2008-01-23
Posts: 78

Re: keyboard light on mbp 5,5

Sorry, didn't see that. My bad!

In this case, the only thing I can do for you is give you yet another link with a guide, sorry!

http://forum.notebookreview.com/showthread.php?t=418403

Offline

Board footer

Powered by FluxBB