You are not logged in.

#1 2006-08-30 17:09:51

Ole Erik
Member
Registered: 2006-08-06
Posts: 85

How to get multimedia buttons working?

How do I get the multimedia buttons to work?

With xev:
Volume down button = XF86AudioLowerVolume
Volume up buttnu = XF86AudioRaiseVolume
Play = XF86AudioPlay
Stop = XF86AudioStop
Prevous = XF86AudioPrev
Next = XF86AudioNext

Now.. How do I get those working? Do I have to use obtuner? How do I do it in obtuner?

I am using Audacious.

Thank you

Offline

#2 2006-08-30 17:22:34

firedance
Member
From: Stockholm, Sweden
Registered: 2005-04-18
Posts: 131

Re: How to get multimedia buttons working?

what i had to do was:
   add to .Xmodmap:
        keycode 174 = XF86AudioLowerVolume
        keycode 176 = XF86AudioRaiseVolume
        keycode 153 = XF86AudioNext
        keycode 144 = XF86AudioPrev
        keycode 164 = XF86AudioStop
        keycode 160 = XF86AudioMute
        keycode 162 = XF86AudioPause
   and run xmodmap ~/.Xmodmap from .xinitrc
but i think the keycodes may vary, i found my keycodes with 'xev'

Offline

#3 2006-08-30 17:28:31

Ole Erik
Member
Registered: 2006-08-06
Posts: 85

Re: How to get multimedia buttons working?

and run xmodmap ~/.Xmodmap from .xinitrc

What did u mean with that?

I have done the stuff with keycodes.

Offline

#4 2006-08-30 17:32:29

firedance
Member
From: Stockholm, Sweden
Registered: 2005-04-18
Posts: 131

Re: How to get multimedia buttons working?

Ole Erik wrote:

and run xmodmap ~/.Xmodmap from .xinitrc

What did u mean with that?

I have done the stuff with keycodes.

To make the buttons work when X starts you have to run xmodmap <file> where file is where you stored your buttons (in my case ~/.Xmodmap. to do this i added

usermodmap=$HOME/.Xmodmap
if [ -f $usermodmap ]; then
        xmodmap $usermodmap
fi

To my .xinitrc file.

Offline

#5 2006-08-30 18:10:15

Ole Erik
Member
Registered: 2006-08-06
Posts: 85

Re: How to get multimedia buttons working?

Where is the xinitrc file?

Offline

#6 2006-08-30 18:26:16

firedance
Member
From: Stockholm, Sweden
Registered: 2005-04-18
Posts: 131

Re: How to get multimedia buttons working?

Ole Erik wrote:

Where is the xinitrc file?

In your home directory. and it's .xinitrc  - don't forget the dot (you may have to show hidden files)

Offline

#7 2006-08-30 18:32:58

Ole Erik
Member
Registered: 2006-08-06
Posts: 85

Re: How to get multimedia buttons working?

Thank you.. It still does not work.. I tought I had to do something in obtuner!?

Offline

#8 2006-08-30 19:34:58

firedance
Member
From: Stockholm, Sweden
Registered: 2005-04-18
Posts: 131

Re: How to get multimedia buttons working?

Ole Erik wrote:

Thank you.. It still does not work.. I tought I had to do something in obtuner!?

I have never used Openbox so i can't really tell you. Does xev say the right button name? What application are you trying to use the buttons in?

Offline

#9 2006-08-30 19:38:06

Ole Erik
Member
Registered: 2006-08-06
Posts: 85

Re: How to get multimedia buttons working?

Audacious.. (and alsamixer)

xev says the right button names yes..

Offline

#10 2006-08-30 19:47:38

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: How to get multimedia buttons working?

Errrrr


in .Xmodmap

keycode 174=F30

the bit after keybind key = F30 does not show up .... anyway

<keybind>
      <action><execute>mpc volume -10</execute></action>
  </keybind>


Audacious never used it....


Mr Green

Offline

#11 2006-08-30 19:51:01

Ole Erik
Member
Registered: 2006-08-06
Posts: 85

Re: How to get multimedia buttons working?

I fixed it.. Used obtuner to bind XF86AudioRaiseVolume to command amixer Master 5+ or something.. almost same on lower volume..

The playbuttons i fixed with binding the keys to:
Play/pause: audacious -t
Stop: audacious -s
Next:audacious -f
Prev: audacious -r

Thanks to everyone! smile

Offline

#12 2006-08-30 19:52:53

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: How to get multimedia buttons working?

Well done ..... 8)


Mr Green

Offline

Board footer

Powered by FluxBB