Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Function key disfunction.
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
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Wed Feb 27, 2008 2:22 am    Post subject: Function key disfunction. Reply with quote

Hello all. I'm been quirked by this and adjusting to it's behavior hasn't worked. Fn works as always on for function keys F1 fo F6 on the iBook. Meaning pushing F3 lowers the volume like in Mac OS. But I wold like the linux way where F3 means just that F3 and have it be the same for all the different computer i use. I remember the MacBook I had used /dev/mac_hid(?) where the function "always on" could be disabled. Can I do this on an iBook?

Here's my xorg.conf settings.
Code:
Section "InputDevice"
    Identifier  "Generic Keyboard"
    Driver      "kbd"
    Option      "CoreKeyboard"
#   Option      "XkbRules"      "pc104"     
    Option      "XkbLayout"     "us"
    Option      "XkbLayout"     "en_US"
    Option      "XkbModel"      "macintosh"
#   Option      "XkbVariant"    "apple"
EndSection

_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Feb 28, 2008 6:48 am    Post subject: Reply with quote

It's a feature of pbbuttonsd, which you probably should be running on your iBook if you're not already.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Sat Mar 01, 2008 3:21 am    Post subject: Reply with quote

JoseJX wrote:
It's a feature of pbbuttonsd, which you probably should be running on your iBook if you're not already.


Josex, the function key is the only variable that I would use pbbuttonsd for. I've never emerged it because I wanted as light as system as possible and I worried about hardware/software conflicts. I also thought that it may not be developed anymore, but after looking at the website it does look it is.

Up until now, I used "trackpad notap" to disable tracking, "fblevel 15" for the brightness, and the pmu command line for sleep, I just didn't need pbbuttonsd, but, I decided to try it anyway. :o

It doesn't look like it uses a bunch resources so I guess so thats good. I thinking to get regular function keys would require a modification of the keyboard file which would probably be quite a bit of tinkering.

Thanks alot, works nice.
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Fri Mar 07, 2008 3:01 am    Post subject: Reply with quote

Remapping the keys could be a realpain in the !@#$?? I thought I could find the keymap and edit it but it appears to be more complicated than this. I used xev to map F1 and F2 and got 67 and 68, when I looked in /usr/share/keymaps/mac/all/mac-us.map.gz it refers to the function mappings in /usr/share/keymaps/mac/include/mac-linux-keys-bare.inc. These file mappings though don't match the function mappings that xev is giving.

So I check other keymapping and didn't find one that matched:
Code:
egrep -wr 'F1|67' /usr/share/keymaps/


I'd like to do this because pbbuttonsd at times will do a random sleep. If the keymap file isn't binding the keys, what is?
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Fri Mar 07, 2008 11:53 pm    Post subject: Reply with quote

I looked into this and now I can say that I finally do have the function keys working as expected (fn always off) and the Apple key working. It's a bit odd though as I thought that setting the keyboard to "macintosh" fixed my fn keys always being on. I think the installing pbbuttonsd did this. I've since un-installed pbbuttonsd yet the fn keys behavior of fn always off remains. I'm not complaining, thats how I like it, but I am unsure why this is happening.

I wrote about it on the blog:

http://linuxtidbits.wordpress.com/2008/03/07/ppc-how-i-got-the-left-side-of-my-keyboard-back/
_________________
Helpful Linux Tidbits
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