Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spacenav module does not work in Blender #230295

Closed
TheSirC opened this issue May 6, 2023 · 8 comments · Fixed by #263120
Closed

Spacenav module does not work in Blender #230295

TheSirC opened this issue May 6, 2023 · 8 comments · Fixed by #263120
Labels
0.kind: bug Something is broken

Comments

@TheSirC
Copy link

TheSirC commented May 6, 2023

Describe the bug

With the spacenavd module active, the 3D mouse is not working.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Set hardware.spacenavd.enable = true
  2. Open Blender
  3. The 3D Mouse is not working

Expected behavior

With the module is active, the mouse should be detected and working in Blender

Additional context

If you start the binary spacenavd with sudo seems to be enough for Blender to be enough for it to work.

When the blender binary detects the mouse the first line is
sh: line 1: lsusb : command not found weirdly

Notify maintainers

@Sohalt

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
 - host os: `Linux 6.1.15, NixOS, 23.05 (Stoat), 23.05pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.14.1`
 - channels(root): `"nix-ld, nixos"`
 - channels(sirc): `""`
 - nixpkgs: `/nix/store/vnymyf1cja5h41zlg9bxg6a9sq5chgs5-nixos-unstable-2023-03-06`
@TheSirC TheSirC added the 0.kind: bug Something is broken label May 6, 2023
@flosse
Copy link
Contributor

flosse commented Aug 27, 2023

I also tried hardware.spacenavd.enable = true and it does not work, no matter in which application.
Running sudo spacenavd solves the problem, but I actually expect the mouse to work the moment i plug it in.

@Sohalt could you help?

@the-furry-hubofeverything
Copy link
Contributor

the-furry-hubofeverything commented Oct 13, 2023

It looks like spacenavd is supposed to run on a system level, instead of a user unit like @Sohalt outlined?

systemd.user.services.spacenavd = {

see https://github.com/FreeSpacenav/spacenavd#running-spacenavd

Spacenavd is designed to run during startup as a system daemon.

and FreeSpacenav/spacenavd#88 (comment)

spacenavd is a daemon, which is supposed to run as root.
spacenavd being a daemon, is started by init before X has even started.

@Sohalt
Copy link
Contributor

Sohalt commented Oct 13, 2023

Ah, sorry. It used to work as a user service, until @gebner removed the patch in 3a4f71d

@the-furry-hubofeverything
Copy link
Contributor

Ah, sorry. It used to work as a user service, until @gebner removed the patch in 3a4f71d

I thought you fixed the patch in #118617?

Maybe it needs an update

@Sohalt
Copy link
Contributor

Sohalt commented Oct 13, 2023

Ah sorry. I didn't look closely enough. 🙈
I'll update all the spacenavd related packages.

@Sohalt
Copy link
Contributor

Sohalt commented Oct 24, 2023

Sorry, I didn't get around to finishing this yet. Here's my work in progress: #263120

@deftdawg
Copy link
Contributor

Trying to get SpaceMouse going for my Podman Wine SketchUp container build, need to get the mouse working on my NixOS host first to pass /var/run/spnav.sock in as a volume.

Was about to file an issue about spacenavd needing an update from 0.8 to 1.2, but looks like @Sohalt is working on it, so I'll just hang out here... 🍻

@Sohalt
Copy link
Contributor

Sohalt commented Nov 26, 2023

#263120 works with Blender 3.5.1. You can either pull in the changes from there or wait until it's merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants