# Raspberry Pi issues

**URL:** <https://forums.maslowcnc.com/t/raspberry-pi-issues/3304>\
**Category:** Troubleshooting\
**Created:** [April 12, 2018, 2:01pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304 "2018-04-12T14:01:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jake/32/4742_2.png) [@jake](https://forums.maslowcnc.com/u/jake)\
**Post date:** [April 12, 2018, 2:01pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/1 "2018-04-12T14:01:29Z")

</div>

Ok, this is a dumb question, but my mouse doesn’t work on my Raspberry Pi… I tried two, a wireless, and a wired, which work on my laptop.  
A) am I supposed to do something special to get a mouse to work?  
B) there are no keyboard inputs for ground control?

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [April 12, 2018, 2:32pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/2 "2018-04-12T14:32:36Z")

</div>

What OS are you using on the Pi? Is the mouse not working with the Pi desktop or just Ground Control? Which model of the Pi do you have?

Thank you

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [April 12, 2018, 2:51pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/3 "2018-04-12T14:51:24Z")

</div>

I wonder if [this thread](https://forums.maslowcnc.com/t/raspberry-pi-cursor/2019?u=blurfl) has info that would apply? You haven’t missed anything in GC, there currently aren’t keyboard inputs for many of the functions in GC.

---

<div class="post-metadata">

**Author:** ![jake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jake/32/4742_2.png) [@jake](https://forums.maslowcnc.com/u/jake)\
**Post date:** [April 12, 2018, 3:43pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/4 "2018-04-12T15:43:34Z")

</div>

It is a B+, I erased the SD card, and followed the instructions on the GitHub page, so I installed the latest version of Kivie Pi, which I thought was the OS. Is that the problem? (That I should have another OS running?)

Glancing at that thread, it does look like I might have a few things to try. Won’t be able to troubleshoot until later though, probably.

Thanks for helping! I appreciate it!

---

<div class="post-metadata">

**Author:** ![jake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jake/32/4742_2.png) [@jake](https://forums.maslowcnc.com/u/jake)\
**Post date:** [April 12, 2018, 3:45pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/5 "2018-04-12T15:45:16Z")

</div>

Oh, it’s probably clear, but I don’t have the Pi desktop installed, to answer your question.

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [April 12, 2018, 4:09pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/6 "2018-04-12T16:09:10Z")

</div>

There are know issues with Kivy Pi and the mouse pointer. The thread mentioned above addresses it. I did lots of testing on the Pi. As documented with a Pi3 and the Pi foundation touch display all works. There are a few folks here that got it working on a Pi without the display. I ended up using Ubuntu Mate and found it to be stable, reliable and repeatable. They don’t have an image for 3B+ and they are planing on porting V18 next in about 4 moths is the ETA.

Here are a few posts -

Raspberry Pi with KDE Window Manager, Wayland ver

> [@Raspberry Pi with KDE Window Manager, Wayland ver](https://forums.maslowcnc.com/t/raspberry-pi-with-kde-window-manager-wayland-ver/2213):
>
> Raspberry Pi running in KDE Window Manager, wayland version This is a solution, I came up with for running GroundControl or kivy python apps inside an X11 window manager while using a mouse or touchpad. If you are using a touchscreen then running KivyPie is probably the safe choice or running kivypie with the trapped cursor mod that was discussed and uploaded by Kingley in this earlier [forum thread](https://forums.maslowcnc.com/t/raspberry-pi-cursor/2019). [Disclaimer] As of this writing I have not yet received my Maslow kit, and I have only been able…

KivyPie w/o touchscreen and responsive cursor

> [@KivyPie w/o touchscreen and responsive cursor](https://forums.maslowcnc.com/t/kivypie-w-o-touchscreen-and-responsive-cursor/2665/3):
>
> EDIT [This may be unstable in Raspbian Jessie, which Kivy Pie 1.0 is built on, use caution.] My Hardware Raspberry Pi 3 b Samsung 32GB EVO Plus Class 10 MicroSDHC card Acer LCD monitor connected to HDMI Logitech K400r keyoard with bultin touchpad 5V 2.5 power supply Beginning with a fresh install of KivyPie, 1.0 See the Download and FAQ section at [kivypie.org](http://kivypie.mitako.eu/kivy-pie.html) for more information on getting it copied to an SD card. Boot up the system and do the the following updates. sudo apt-get update su…

Thank you

---

<div class="post-metadata">

**Author:** ![Jamtek](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jamtek/32/12604_2.png) [@Jamtek](https://forums.maslowcnc.com/u/Jamtek)\
**Post date:** [April 12, 2018, 4:44pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/7 "2018-04-12T16:44:03Z")

</div>

The easiest thing to get cursor in KivyPie is pass Kivy enviornment variable before python like this.

`KIVY_WINDOW=sdl2 python main.py`

You can then comment out the touchring in .kivy/config.ini, if of corse you are not using touch screen.

---

<div class="post-metadata">

**Author:** ![jake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jake/32/4742_2.png) [@jake](https://forums.maslowcnc.com/u/jake)\
**Post date:** [April 12, 2018, 9:30pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/8 "2018-04-12T21:30:53Z")

</div>

@Jamtek

I’ll try that one first! Thanks!

---

<div class="post-metadata">

**Author:** ![jake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jake/32/4742_2.png) [@jake](https://forums.maslowcnc.com/u/jake)\
**Post date:** [April 12, 2018, 9:33pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/9 "2018-04-12T21:33:02Z")

</div>

@Bee

I didn’t know there was a Pi3 B+… I am using a Pi2 B+, if that makes any difference.

---

<div class="post-metadata">

**Author:** ![Jamtek](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jamtek/32/12604_2.png) [@Jamtek](https://forums.maslowcnc.com/u/Jamtek)\
**Post date:** [April 12, 2018, 9:57pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/10 "2018-04-12T21:57:44Z")

</div>

I start GC with a script like this.

```
#!/bin/bash
#
cd /home/sysop/GroundControl-1.10
KIVY_WINDOW=sdl2 python main.py
cd ~

```

CPU is steady at 30% while cutting on my Rpi 3b. My longest cut so far is just over one hour!  
Also, Im no longer using OpenGL, to many freezes…☹ So when moving screens in GC, I do see CPU spikes, since you have to render screen in software.

---

<div class="post-metadata">

**Author:** ![jake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jake/32/4742_2.png) [@jake](https://forums.maslowcnc.com/u/jake)\
**Post date:** [April 13, 2018, 1:25am UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/11 "2018-04-13T01:25:36Z")

</div>

@Jamtek

So now I get errors, including:  
XDG\_RUNTIME\_DIR not set in the environment.

I’m running this as sysop, and prefaced the command with “sudo” FYI.

---

<div class="post-metadata">

**Author:** ![Jamtek](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jamtek/32/12604_2.png) [@Jamtek](https://forums.maslowcnc.com/u/Jamtek)\
**Post date:** [April 13, 2018, 1:36am UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/12 "2018-04-13T01:36:56Z")

</div>

> [@jake](#):
>
> XDG\_RUNTIME\_DIR not set in the environment

You should not run it as root with `sudo`.

You should just be able to just run the command from the Groundcontol dir as the user you logged in as.

`KIVY_WINDOW=sdl2 python main.py`

Also you need to be in an Xwindow manager.

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [April 13, 2018, 1:52am UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/13 "2018-04-13T01:52:15Z")

</div>

A Pi3 would give you a performance bump. I’m not sure if the current Kivy Pi image would boot on the 3B+.

Thank you

---

<div class="post-metadata">

**Author:** ![BlueManRising](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@BlueManRising](https://forums.maslowcnc.com/u/BlueManRising)\
**Post date:** [September 29, 2018, 12:41pm UTC](https://forums.maslowcnc.com/t/raspberry-pi-issues/3304/14 "2018-09-29T12:41:27Z")

</div>

Hey everyone, I finally got my Maslow up and running, and I have had success controlling the x and y motor from the pi 3b+ using the touch screen from pi. Only last issue I’m having is z axis. I haven’t calibrated the machine and I’m out of date currently on the software, so I’m going to update accordingly. I did find out that if you add the definitions to the main.py it overrides the kivy config.ini file, so on a pi you just update maslow main.py file at the beginning. I’ll update here this weekend if my success or failure, but I have noticed if I run from the startx it background clicks buttons with the touch screen, so I had to boot my pi to comandline first in order to fix that issue. Also I tried to add the mouse config to the main.py but I eventually time out and the program closes. I have been working on this for 3 weeks now so I’m definitely making progress. Once I finish getting it working I’m gonna add a separate wiki on how I got it to work on my pi with no other need for a computer or making the window smaller.
