[Swlug] G-Mouse
Alice Mitchell
alice at discordia.org.uk
Sat Feb 12 15:50:55 UTC 2022
On Sat, 2022-02-12 at 14:55 +0000, Rhys Sage via Swlug wrote:
> I've not yet tried the G-Mouse on my Pi. I'm trying it on my laptop
> first. It comes up on my laptop running Mint 20.1 Cinnamon as this
> Bus 001 Device 005: ID 1546:01a7 U-Blox AG [u-blox 7]
U-blox make GPS chips. this is not your mouse.
look for a device with a logitech id
e.g. Bus 001 Device 006: ID 046d:c534 Logitech, Inc. Unifying Receiver
for my logitech wireless mouse
>
> On my other laptop running Raspbian Buster, it doesn't show up at
> all, which is rather unfortunate as that's the laptop I had several
> free hours to work on during my now non-existent work breaks. Yup -
> they keep me busy. I'm now doing overtime for the next few months.
>
> Where the problem I'm getting lies is that on my Mint laptop, running
> the Python code comes up with
>
> ModuleNotFoundError: No module named 'serial'
This is a python library for talking to serial port devices.
usually called py-serial or PySerial, look through your package manager
for it
>
> I'm thinking that might be a Pi specific library that might not be
> replicatable on my Mint laptop. I'm using the sample code from
> here. https://content.instructables.com/ORIG/FVN/X6U3/JLCKH7EE/FVNX6U
> 3JLCKH7EE.py
>
> If I can get the Mint laptop to access the G-Mouse then I can get to
> work on code to read the output and parse it into a usable format
> (meanwhile learning Python as I go).
I don't understand what the python code has to do with the mouse at
all, usually your X/Wayland desktop deals with talking to the mouse,
its not something you ever write user software to do.
>
> As far as the other laptop goes, I put Raspbian on it so that I have
> a duplicate of my Pi but that seems not to be the case if it won't
> act like a Pi for reading common stuff like USB ports. I might end up
> replacing Raspbian Buster with MX in that case, just to make the
> laptop more usable.
>
> Is the seriel library likely a Raspbian only thing that can't be
> applied to Mint or is
no, its a generic python module, and will have nothing to do with the
mouse working on your system or not.
-Alice
More information about the Swlug
mailing list