# Is there any hardware test code for encoders/switches?

**URL:** <https://discourse.zynthian.org/t/is-there-any-hardware-test-code-for-encoders-switches/226>\
**Category:** Building Zynthian\
**Created:** [November 7, 2016, 3:20pm UTC](https://discourse.zynthian.org/t/is-there-any-hardware-test-code-for-encoders-switches/226 "2016-11-07T15:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjbaines](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@sjbaines](https://discourse.zynthian.org/u/sjbaines)\
**Post date:** [November 7, 2016, 3:20pm UTC](https://discourse.zynthian.org/t/is-there-any-hardware-test-code-for-encoders-switches/226/1 "2016-11-07T15:20:59Z")

</div>

So, the switches on my encoders seem to be being unreliable for some reason. Is there any test code that will just display what input events are happening?

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [November 8, 2016, 9:56am UTC](https://discourse.zynthian.org/t/is-there-any-hardware-test-code-for-encoders-switches/226/2 "2016-11-08T09:56:50Z")

</div>

Hi Steve!

Yes. You have 2 options:

- Stop and restart de zynthian software from command line:

> $ sudo /etc/init.d/zynthian stop  
> $ sudo /etc/init.d/zynthian start

- Run the zyncoder test utility, that you will find in the zyncoder directory.

Anyway, can you be a little more specific with your problems? What switches are failing and how?

Good luck!
