this post was submitted on 06 Oct 2023
83 points (97.7% liked)

Linux

48186 readers
1365 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I am running Pop_OS! and want to set up an old WiiMote I have lying around as a mouse. I have a USB-sensor bar, and I don't have any issues connecting the remote to the computer, and the inputs seems to register just fine when running xwiishow 1 after the remote is connected. I am also able to use it perfectly fine as a WiiMote in the Dolphin emulator.

Now, I want it to function as a mouse, and being a fairly new Linux user, this is where I get confused. I am not entirely sure what I need to have happen in order to make this work, but I realize there must be some translation of the IR-sensor data and some way for Pop_OS! to understand that this should be a mouse.

When searching for it, a lot of different names are thrown around, so I am not entirely sure what I should be looking for. However, from the ArchWiki (https://wiki.archlinux.org/title/Wiimote) it seems I have three choices:

  1. MoltenGamepad (https://github.com/jgeumlek/MoltenGamepad), but this seems to only handle button presses? This is also something I would like, i.e. mapping buttons to Pause/Play media. But it is not the only thing I want, and mouse movement + clicks is higher in priority.

  2. An X11 input driver - this I have tried to install according to the instructions on their GitHub-page (https://github.com/xwiimote/xf86-input-xwiimote), but failed to do so. The last commit to this project was back in 2014. The ArchWiki states:

"xf86-input-xwiimote has support for mouse-emulation via IR using the Option "MotionSource" "ir""

... which is what I want, but then also directly underneath:

"There is currently no user-space application that enables mouse-emulation with the IR-sensor. If you need that, you should consider using the no longer supported cwiid approach. However, the xwiimote tools are under heavy development and will soon support IR mouse-emulation, too. "

... which confuses me.

  1. cwiid is also listed as an approach on the ArchWiki, but they also say that it should not be used since it is discontinued.

I'm sure the main issue here is a knowledge gap on my part, so if there is a solution that seems obvious to any of you, I would greatly appreciate the help in both getting this to work and in understanding my system better.

top 11 comments
sorted by: hot top controversial new old
[–] Prunebutt@feddit.de 28 points 1 year ago (2 children)

The dolphinbar has that feature and you should note, that the wiimote sensor has quite a low resolution (I'm guessing 640x480). That was fine for an SD console. For 1080p/4K mouse control: not so much.

Just as a warning.

[–] cyberwolfie@lemmy.ml 11 points 1 year ago

Ah, that didn't occur to me... good to know. I will use it mainly to navigate the Jellyfin UI, so hopefully it will be sufficient as it mostly consists of large images.

Good to know the feature is included in the Dolphinbar - I have been thinking about getting it in order to get the Wiimote working with Retroarch. But on the hardware I am running it on now, Wii-games are unplayable in Retroarch, so I have delayed that purchase.

[–] hydroel@lemmy.world 2 points 1 year ago

Might be enough for touch-based interfaces though, or fingers don't have a 4K resolution either.

[–] smorks@lemmy.ca 12 points 1 year ago (1 children)

it sounds to me according to https://wiki.archlinux.org/title/XWiimote that you might just need to run modprobe hid-wiimote and it just might work?

The second sentence says:

This driver is part of upstream Linux since version 3.1.

[–] cyberwolfie@lemmy.ml 4 points 1 year ago* (last edited 1 year ago)

I tried that, but nothing really happened (i.e. no output). hid-wiimote is one of several things I couldn't fit into the whole picture I was trying to create for myself. I figured that, since I got it connected and could see the sensor data from the xwiishow command from xwiimote, that the module was loaded and I didn't need to pay more attention to it.

[–] SpaceNoodle@lemmy.world 7 points 1 year ago* (last edited 1 year ago) (1 children)

Why wouldn't you call it a "WiiMouse?"

[–] cyberwolfie@lemmy.ml 1 points 1 year ago

Hehe, I will from now on!

[–] Jumuta@sh.itjust.works 1 points 1 year ago (2 children)

With KDE connect, you can do something similar but with a smartphone rather than a wiimote

[–] downhomechunk@midwest.social 6 points 1 year ago

Kde connect is so underrated.

[–] cyberwolfie@lemmy.ml 4 points 1 year ago (1 children)

Yeah, I already have KDE Connect already setup, and it is quite nice. However, since this is for navigating a media station I would prefer to avoid having my smartphone nearby, as I will end up scrolling mindlessly like the drone I am. Getting the Wiimote working is also not entirely a project of utility, but something I consider to be an interesting and fun project, so while having options are good, I still want to accomplish this.

[–] Jumuta@sh.itjust.works 1 points 1 year ago

I see, very nice.