You are not logged in.

#1 2008-10-05 11:40:44

dan653
Member
Registered: 2008-09-29
Posts: 10

Volume up/down/mute keys (Fn + F9/F8/F3) - Getting them working (HAL?)

hi, i'm trying to get my the volume keys working on on my fujitsu siemens lifebook s7020 running openbox but am running up against alot of conflicting information about how to do it and i can seem to get either to work...

in xev the keypresses are detected as follows..

mute...

KeyPress event, serial 32, synthetic NO, window 0x1400001,
    root 0x76, subw 0x0, time 2413680, (-274,419), root:(567,733),
    state 0x0, keycode 160 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x1400001,
    root 0x76, subw 0x0, time 2413765, (-274,419), root:(567,733),
    state 0x0, keycode 160 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

volume down...

KeyPress event, serial 35, synthetic NO, window 0x1400001,
    root 0x76, subw 0x0, time 2414482, (-274,419), root:(567,733),
    state 0x0, keycode 174 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x1400001,
    root 0x76, subw 0x0, time 2414596, (-274,419), root:(567,733),
    state 0x0, keycode 174 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

volume up...

KeyPress event, serial 35, synthetic NO, window 0x1400001,
    root 0x76, subw 0x0, time 2414882, (-274,419), root:(567,733),
    state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x1400001,
    root 0x76, subw 0x0, time 2414967, (-274,419), root:(567,733),
    state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

method 1...

an fdi(?) file using HAL (which i already have up and running detecting my usb drives). writing one of these seems easy enough (its just xml) however i dont know what codes to use for each key as no errors are generated in dmesg.

http://people.freedesktop.org/~hughsien … index.html

method 2...

using xmodmap/xbindkeys, however i have no idea how to do this as all the guides i've found have been far too specilised for a particular model of notebook or keyboard, and the just assume you allready know how it works. i tried to adapt one of the guides but all i managed to do was disable my keyboard

please help, if theres any info you need me to post just ask


Fujitsu Siemens Lifebook S7020 - 2.0ghz Centrino | 2gig RAM | 80gig SATA HDD

Offline

#2 2008-10-05 14:32:11

sessy
Member
Registered: 2006-01-20
Posts: 104

Re: Volume up/down/mute keys (Fn + F9/F8/F3) - Getting them working (HAL?)

The easyest way is to use keytouch (pacman -S keytouch, http://keytouch.sourceforge.net/).

For xbindkeys, put this in your ~/.xbindkeysrc for mute:

"amixer sset Master toggle"
c:160

(160 is the keycode xev reported)

Kill and start xbindkeys -v in a terminal and it should work.

Offline

#3 2008-10-05 14:40:10

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: Volume up/down/mute keys (Fn + F9/F8/F3) - Getting them working (HAL?)

And for the volume:

# vol up
"amixer set Master 2dB+ unmute"
  c:176

# vol down
"amixer set Master 2dB- unmute"
  c:174

smile

Offline

#4 2008-10-05 14:50:35

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Volume up/down/mute keys (Fn + F9/F8/F3) - Getting them working (HAL?)

Have you tried changing your keymap?

Offline

#5 2008-10-05 16:13:22

dan653
Member
Registered: 2008-09-29
Posts: 10

Re: Volume up/down/mute keys (Fn + F9/F8/F3) - Getting them working (HAL?)

ok so i installed keytouch via

pacman -S keytouch

however when i run it with

keytouch

i get a dialogue saying no keyboard was specified, how do i select one (i have a fujitsu .bin file from the keytouch site, where do i put it)

SkonesMickLoud wrote:

Have you tried changing your keymap?

do you mean in my xorg.conf, if so yes to gb, that sorted £ signs and what not


Fujitsu Siemens Lifebook S7020 - 2.0ghz Centrino | 2gig RAM | 80gig SATA HDD

Offline

#6 2008-10-05 18:30:30

dan653
Member
Registered: 2008-09-29
Posts: 10

Re: Volume up/down/mute keys (Fn + F9/F8/F3) - Getting them working (HAL?)

sorted, just had to install gksu (don't know why pacman didn't install it) then followed this article....

http://wiki.archlinux.org/index.php/Ext … ch_Program

any help with my power button (keycode 222) recognised in xev but not in keytouch, guess its because it from a different device than the keyboard????

fixed - http://wiki.archlinux.org/index.php/Ace … wer_button

Last edited by dan653 (2008-10-06 00:06:25)


Fujitsu Siemens Lifebook S7020 - 2.0ghz Centrino | 2gig RAM | 80gig SATA HDD

Offline

Board footer

Powered by FluxBB