LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Please help: using Fn buttons on laptop keyboard. KDE (https://www.linuxquestions.org/questions/slackware-14/please-help-using-fn-buttons-on-laptop-keyboard-kde-626233/)

Chaves 03-06-2008 03:21 PM

Please help: using Fn buttons on laptop keyboard. KDE
 
Hi everyone.

Just migrated to Slackware 12 from KUbuntu a week ago and found some problems using the Fn buttons on my laptop.

when I was using ubuntu, my Fn buttons were configured automatically, so I had no problems with them.
However, Slack did not configure them, so I searched for some howtos on this topic.
I've used xev to determine the key codes for +-sound. Unfortunately it gave no output for brightness, mute sound and sleep mode buttons at all, however these are not as important for me as sound control.

Then I edited /etc/X11/xinit/.Xmodmap with
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume

The next step is to edit the window manager keyboard config file, but I can't find any info on where it is for KDE wm. The howtos I found were only for icewm and fluxbox and were not of help to me =\

thank you for your help

Roman

BCarey 03-06-2008 03:38 PM

I'm not in KDE, but you should be able to configure shortcuts from the Settings->Regional & Accessibility->Keyboard Shortcuts (or something similar). A whole list of actions should be there such as mute and volume control. Select an action and the press the key(s) you want to associate with that action.

In order for the screen brightness to work you will need the "video" module. "lsmod | grep video" to see if you have it and "modprobe video" to load it if you don't (and then add it/uncomment it in /etc/rc.d/rc.modules so that it loads automatically if you reboot).

Brian

Chaves 03-06-2008 03:54 PM

Thanks Brian.
I'll try to set the video up.

The sound Fn buttons can't be set up with Settings tab in KDE, since the system is not recognizing the Fn button combination. For instance, I can set the shortcut for Win+F5 to increase volume, but it does not assign Fn+F5.

That's why i tried to xev it. xev's output gave 174 and 176 keycodes as stated before, but had no output for Fn+F7/8 for brightness/sleepmode.

What i'm trying to do now is to assign these keycodes to +-sound, but can't find the right config file.
For icewm it is supposed ot be in ~/.icewm/keys but its different from kde =(

BCarey 03-06-2008 04:12 PM

Perhaps you need to change the keyboard layout. It should be in the same general area of the kde settings.

Brian

C-Sniper 03-06-2008 04:47 PM

tried that with my Hp zv6000. doesn't work.

BCarey 03-06-2008 04:52 PM

Quote:

Originally Posted by C-Sniper (Post 3080461)
tried that with my Hp zv6000. doesn't work.

Very strange. Which layout did you choose? I've got a hp zv5000 and the Fn key works fine with the Generic 105-key intl layout.

Brian

C-Sniper 03-06-2008 07:21 PM

i did not try the generic 105-intl, i went digging through all of the laptop versions for HP.

Chaves 03-07-2008 07:49 AM

Ok, problem solved.

I just changed 104 to 105 in xorg.conf

Thanks for help

MrAexo 03-17-2008 07:33 PM

Quote:

Originally Posted by Chaves (Post 3080421)
Thanks Brian.
I'll try to set the video up.

The sound Fn buttons can't be set up with Settings tab in KDE, since the system is not recognizing the Fn button combination. For instance, I can set the shortcut for Win+F5 to increase volume, but it does not assign Fn+F5.

That's why i tried to xev it. xev's output gave 174 and 176 keycodes as stated before, but had no output for Fn+F7/8 for brightness/sleepmode.

What i'm trying to do now is to assign these keycodes to +-sound, but can't find the right config file.
For icewm it is supposed ot be in ~/.icewm/keys but its different from kde =(

I'm trying to set my Gateway laptop (with the same 174/176 codes)

I'm using fluxbox, and there's a ~/.fluxbox/keys file, but I'm not sure what I'm doing once in the file. Could you explain what you were intending to put there? Was it those two lines in the first post? They don't work for me, gives a command not found when just entering "XF86AudioRaiseVolume" on the term window.


All times are GMT -5. The time now is 10:00 PM.