Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
powerbook (alu): keycodes for keyboard backlit keys
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
brainatwork
n00b
n00b


Joined: 09 Jul 2002
Posts: 1
Location: Germany

PostPosted: Sun Jun 20, 2004 8:04 pm    Post subject: powerbook (alu): keycodes for keyboard backlit keys Reply with quote

hi
using the pbbuttonsd-0.6.1 the keyboard backlit works almost perfectly.
but as the autoajustment using the integrated light sensor of my pb doesn't give me
to best results (illuminated on a medium level the keyboard is almost unreadable) ,
i want to activate the illumination control keys (like the feature in macos x) to control the keyboard backlit myself.
unfortunately "showkey" doesn't give me any keycodes back for "fn+f8 fn+f9 fn+f10".

hints ? anyone ?
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Wed Jun 23, 2004 3:12 am    Post subject: Reply with quote

Are the function key modes reversed?
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
blubbfisch
n00b
n00b


Joined: 19 Oct 2003
Posts: 55
Location: World->Pacific->New Zealand->Hamilton

PostPosted: Wed Jun 23, 2004 4:31 am    Post subject: Reply with quote

No, the problem is that the input device subsystem does not generate keycodes for those keys. My current workaround is using the plain functions keys for that, as I am not using F8-10 for anything anyway.

Any Kernel-hackers out there care to add those keycodes?

Have fun*

Niklas
Back to top
View user's profile Send private message
bcarnazzi
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Reunion Island

PostPosted: Tue Feb 01, 2005 10:18 am    Post subject: Reply with quote

how did you get keyboard backlit works ? This does not works for me... I don't also get keycode with fn+f[8-10] (I use french keymap + iso-8859 -> utf8 console translation)
Back to top
View user's profile Send private message
MiniMoose
n00b
n00b


Joined: 22 Sep 2004
Posts: 33
Location: Seattle, WA

PostPosted: Wed Feb 02, 2005 7:53 pm    Post subject: Reply with quote

Well, I was mucking around in the kernel (2.6.9-gentoo-r9) last night to see if I could create a patch to get the Fn+F8-F10 keys to work but I couldn't figure it out on first attempt.

I was in the adbhid.c file found under drivers/macintosh/ but it seems as though the keys don't make it that far when the Fn key is being held down.

I added some printk() calls to adbhid_keyboard_input() and adbhid_input_keycodes() but I couldn't get any messages while holding down the Fn key and hiting F8, F9 or F10. Actually I couldn't get any messages while typing Fn + F1 for that matter.

The Fn key itself is handled in adbhid_input_keycode() by toggling the FLAG_FN_KEY_PRESSED flag. The Fn + F-key combos look to be handled elsewhere.

I'm going to take another look this evening see what I can find. If anybody has any ideas, please post a reply. If I can figure this out, I'll make the change against the latest 2.6 kernel and submit the patch for consideration. I'll also post the patch here for everybody.
Back to top
View user's profile Send private message
bcarnazzi
n00b
n00b


Joined: 31 Jan 2005
Posts: 25
Location: Reunion Island

PostPosted: Thu Feb 03, 2005 3:42 am    Post subject: Reply with quote

In fact, it seems to be an hardware desease: when I use showkey and press fn + f[8-10], keyboard do not send any scancode... Oh, but maybe this is not a raw keycode but an unhandled key combination of the keyboard driver that by the way, do not send any code...

In my case, I can't use nor the keyboard backlit nor the ambient light sensor with pbbuttonsd (not detected). Does yours works ? Where is the kernel sensor driver (I use Gentoo dev-sources 2.6.10) ?
_________________
Jabber: bcarnazzi@jabber.fr
Back to top
View user's profile Send private message
MiniMoose
n00b
n00b


Joined: 22 Sep 2004
Posts: 33
Location: Seattle, WA

PostPosted: Thu Feb 03, 2005 6:49 pm    Post subject: Reply with quote

My ambient light sensor works and I can adjust the keyboard backlight levels using other keys that I define in the pbbuttonsd.conf file.

The reason showkeys doesn't report the code is because the kernel driver doesn't report them. Showkeys is a user-level application and it won't report anything that the kernel ignores. I'm trying to fix the adbhid driver so that it correctly reports the Fn+F8-10 combos so that showkeys and pbbuttonsd can see them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum