# Picade Hat volume buttons not working

**URL:** <https://forums.pimoroni.com/t/picade-hat-volume-buttons-not-working/9373>\
**Category:** Support\
**Created:** [December 17, 2018, 10:10am UTC](https://forums.pimoroni.com/t/picade-hat-volume-buttons-not-working/9373 "2018-12-17T10:10:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nimbo77](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nimbo77](https://forums.pimoroni.com/u/nimbo77)\
**Post date:** [December 17, 2018, 10:10am UTC](https://forums.pimoroni.com/t/picade-hat-volume-buttons-not-working/9373/1 "2018-12-17T10:10:30Z")

</div>

Hi. I’m building a cabinet around a Pi 3B and a Picade Hat (original version, not X). So far everything is working fine except the volume buttons. I soldered pushbuttons to the GPIO 13 and 26 pads on the Hat (and ground ofc).  
Audio works fine through the Hat, but the volume controls do not. They have no effect in Emulationstation or within Retroarch (lr-mame2003). I am using Retropie 4.4

Any idea what to check/how to fix?

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [December 17, 2018, 10:24am UTC](https://forums.pimoroni.com/t/picade-hat-volume-buttons-not-working/9373/2 "2018-12-17T10:24:36Z")

</div>

You should install the legacy Python driver in lieu of the newer one for Picade X HAT. I’d completely forgotton that it supported volume control on 13/26.

There may be a way to add support without going for full-on driver replacement, though.

Try adding this to `/boot/config.txt`

```auto
dtoverlay=gpio-key,gpio=13,keycode=114,label="Volume Down"
dtoverlay=gpio-key,gpio=16,keycode=115,label="Volume Up"

```

---

<div class="post-metadata">

**Author:** ![nimbo77](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nimbo77](https://forums.pimoroni.com/u/nimbo77)\
**Post date:** [December 17, 2018, 1:57pm UTC](https://forums.pimoroni.com/t/picade-hat-volume-buttons-not-working/9373/3 "2018-12-17T13:57:08Z")

</div>

Thanks for the quick reply. I tried adding those overlays to boot/config, still doesn’t work.  
I installed the HAT using:

curl -sS [https://get.pimoroni.com/picadehat](https://get.pimoroni.com/picadehat) | bash

How would I go about installing the legacy driver?

---

<div class="post-metadata">

**Author:** ![nimbo77](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nimbo77](https://forums.pimoroni.com/u/nimbo77)\
**Post date:** [December 17, 2018, 4:51pm UTC](https://forums.pimoroni.com/t/picade-hat-volume-buttons-not-working/9373/4 "2018-12-17T16:51:58Z")

</div>

I figured it out. Here is the process for others experiencing the same problem:

**Uninstall the new driver:**

> cd /home/pi/Pimoroni/picade/picade-hat  
> sudo ./uninstall.sh  
> sudo reboot

_Make note of the changes this makes to your /boot/config.txt in case it breaks something you did purposefully._

**Install the legacy driver**

> cd /home/pi/Pimoroni/picade/picade-hat/legacy-python-driver  
> sudo ./setup.sh  
> sudo reboot

Worked like a charm for me:)

---

<div class="post-metadata">

**Author:** ![willinliv](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@willinliv](https://forums.pimoroni.com/u/willinliv)\
**Post date:** [April 20, 2020, 9:51pm UTC](https://forums.pimoroni.com/t/picade-hat-volume-buttons-not-working/9373/5 "2020-04-20T21:51:33Z")

</div>

Hi, I also had this problem, but can’t install the old legacy script because the original Picade HAT installer does not work on Buster. Would there be anychance to get this looked at, or any pointers on how to fix it? I notice in the code you suggested gadgetoid that the second gpio said 16 but I think you meant 26, but it didn’t work anyway. Thanks, Will
