Author Topic: Control volume by the buttons ?! RPI  (Read 13161 times)

Maouu

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Control volume by the buttons ?! RPI
« on: October 29, 2016, 10:20:10 AM »
Hello, it is possible to control the volume by pressing buttons ?! for example 1 button for Volume Up (+) and 1 button for Volume Down (-) ?!!

Thanks you
« Last Edit: October 29, 2016, 12:17:57 PM by Maouu »

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Control volume by the buttons ?!
« Reply #1 on: October 29, 2016, 12:13:12 PM »
Set your encoder to windows volume keys.

Maouu

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Control volume by the buttons ?!
« Reply #2 on: October 29, 2016, 12:17:10 PM »
Thanks you but I'm on raspberry pi!

Maouu

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #3 on: October 30, 2016, 04:36:13 AM »
Anyone can help me ?!! thanks you

YouBaxter

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #4 on: October 31, 2016, 08:00:17 PM »
Interested in this as well. 

Assuming you are talking the same thing...  But, I want to hold down a hot key, and push UP for volume increase and DOWN for volume decrease.

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #5 on: November 01, 2016, 05:28:39 AM »
Do what i said and see if it wrks. Else, try xbindkeys.

Maouu

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #6 on: November 01, 2016, 10:32:43 AM »
How do you do for Raspberry pi.?! Xbindkeys is for Windows right?
Thanks

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #7 on: November 01, 2016, 03:15:19 PM »
How do you do for Raspberry pi.?! Xbindkeys is for Windows right?
Thanks

i already told you how to for rpi. Are you using an encoder? The X in xbindkeys stands for x window system.

Maouu

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #8 on: November 02, 2016, 03:23:11 AM »
I don't know if I use an encoder because I use a floob image which I downloaded on the attract mode website!
I boot directly under attract mode when I start my raspberry pi

Thanks you very much for your help!

Maouu

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #9 on: November 02, 2016, 03:32:27 AM »
Ok sorry!! I use an USB encoder but I don't know how to do for configure the buttons on the sound on this encoder.. Because I don't have a software to configure it. He just emulate keyboard... Maybe in the attract mode configuration menu.?!! But I don't find it :(

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #10 on: November 02, 2016, 05:27:37 AM »
Ok sorry!! I use an USB encoder but I don't know how to do for configure the buttons on the sound on this encoder.. Because I don't have a software to configure it. He just emulate keyboard... Maybe in the attract mode configuration menu.?!! But I don't find it :(

Which encoder and i can help you out.

Maouu

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #11 on: November 02, 2016, 06:31:01 AM »
There is zero delay USB encoder!

Zero Delay Arcade USB Encoder to Joystick for MAME Multicade Keyboard Encoder PC Fighting Games, USB to Jamma AC425
 http://s.aliexpress.com/FvEJnyYz
(from AliExpress Android)

YouBaxter

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Control volume by the buttons ?! RPI
« Reply #12 on: November 05, 2016, 11:11:44 PM »
Okay...here is what I did...assuming you are wanting to do the same as me. . .


My Goal:     Control volume by controlboard/controller/joystick.

Change:      Modify the RetroPie JoyPad file

/opt/retropie/configs/all/retroarch-joypads
......Modify your controller file (backup first) (mine is snes30snes30joy.cfg for example)

Added the following lines to tie up and down DPAD Actions to volume increase/decrease.
input_volume_up_axis = -1
input_volume_down_axis = +1

This will map the action to your HOTKEY


I BELIEVE, you can also edit the "retroarch.cfg" file as well in the /opt/retropie/config/all directory, but I haven't modified that since the pi1 days.


-bax