# Can't get Trackball breakout to work as mouse on rasbian

**URL:** <https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702>\
**Category:** Support\
**Created:** [January 21, 2022, 8:55pm UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702 "2022-01-21T20:55:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjgt1974](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pjgt1974](https://forums.pimoroni.com/u/pjgt1974)\
**Post date:** [January 21, 2022, 8:55pm UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/1 "2022-01-21T20:55:33Z")

</div>

Hi I want to use trackball as a mouse on my raspberry pi, ive tried to follow instructions on github but i can’t get it to work, Im new to raspberry pi and I don’t have any knowledge of programming, im trying to learn bits as i go along.  
If anyone can help me with easy to follow instructions i would be grateful thanks.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 23, 2022, 8:30pm UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/2 "2022-01-23T20:30:39Z")

</div>

What version of Pi OS, Bullseye, Buster, etc?  
A link to the guide your following would help.  
I have gotten mine to work in Buster, having issues in Bullseye though.  
Mouse.py works for me but sudo ./install-service.sh gets me errors.  
[trackball-python/examples at master · pimoroni/trackball-python (github.com)](https://github.com/pimoroni/trackball-python/tree/master/examples)

---

<div class="post-metadata">

**Author:** ![pjgt1974](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pjgt1974](https://forums.pimoroni.com/u/pjgt1974)\
**Post date:** [January 24, 2022, 8:56am UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/3 "2022-01-24T08:56:19Z")

</div>

Hi I tried instructions on github, then i tried your instructions from another post on these forums [Tryinng to run trackball python file on boot up - #8 by alphanumeric](https://forums.pimoroni.com/t/tryinng-to-run-trackball-python-file-on-boot-up/13083/8), just checked my os and its Bullseye, so i presume thats the reason im having trouble?.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 24, 2022, 9:47am UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/4 "2022-01-24T09:47:00Z")

</div>

I’m thinking Bullseye is part of the issue. Running sudo ./install-service.sh gets me an evdev error. And if I manually install evdev I get a modprob error. I think it was modprob?

Forgot all about that other thread, will have to have a look at it to see what I did then.

mouse.py works for me and I may just try loading it on bootup with crontab, and see it that works this time around.

---

<div class="post-metadata">

**Author:** ![pjgt1974](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pjgt1974](https://forums.pimoroni.com/u/pjgt1974)\
**Post date:** [January 24, 2022, 11:00am UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/5 "2022-01-24T11:00:39Z")

</div>

Hi, yeah i was getting same error (evdev), thanks for you help

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 24, 2022, 11:46am UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/6 "2022-01-24T11:46:02Z")

</div>

I’ll confirm latter, but I think what I did was edit the **install-service.sh** file.  
and changed  
`sudo apt install python-evdev`  
to  
`sudo apt install python3-evdev`

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 24, 2022, 7:42pm UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/7 "2022-01-24T19:42:51Z")

</div>

That was the edit I made. I’m going backwards now though, mouse.py was working (even after that edit) but fails now with a chip ID error. Something like that? i2cdetect is showing the right address though? Looks like I have it really messed up now?

---

<div class="post-metadata">

**Author:** ![pjgt1974](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pjgt1974](https://forums.pimoroni.com/u/pjgt1974)\
**Post date:** [January 24, 2022, 8:40pm UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/8 "2022-01-24T20:40:18Z")

</div>

Thanks I will try that, sorry you have messed up yours trying to help.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 24, 2022, 9:22pm UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/9 "2022-01-24T21:22:53Z")

</div>

Looks like my latest issue is because I didn’t wire up the INT pin. If I jumper that pin mouse.py works. It was plugged into my Breakout Garden, and worked Ok. Stopped working when I soldered it to a Proto Zero. Going to be a PITA to fix this now that’s its soldered in place. It would have happened anyway, regardless. Live and learn.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 24, 2022, 9:58pm UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/10 "2022-01-24T21:58:46Z")

</div>

Got it working. Mouse.py worked once i wired up the INT pin.  
And adding the following via `sudo crontab -e`  
`@reboot python3 /home/pi/trackball-python/examples/mouse.py &`  
Gets it working on boot up.

---

<div class="post-metadata">

**Author:** ![pjgt1974](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pjgt1974](https://forums.pimoroni.com/u/pjgt1974)\
**Post date:** [January 25, 2022, 10:08am UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/11 "2022-01-25T10:08:21Z")

</div>

Thanks I’ll have a look the weekend as I’m away from home at the moment, I’ll let you know how I get on.

---

<div class="post-metadata">

**Author:** ![Col82293](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@Col82293](https://forums.pimoroni.com/u/Col82293)\
**Post date:** [February 8, 2023, 1:33am UTC](https://forums.pimoroni.com/t/cant-get-trackball-breakout-to-work-as-mouse-on-rasbian/18702/12 "2023-02-08T01:33:42Z")

</div>

Any progress on Bullseye?
