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

My joystick does not show up under Linux mint 22. #48

Open
Supermagnum opened this issue Aug 27, 2024 · 6 comments
Open

My joystick does not show up under Linux mint 22. #48

Supermagnum opened this issue Aug 27, 2024 · 6 comments

Comments

@Supermagnum
Copy link

Both lsusb and dmesg says:
input: Thrustmaster T.16000M as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-4/1-4:1.0/0003:044F:B10A.0008/input/input23
[ 56.834161] hid-generic 0003:044F:B10A.0008: input,hidraw6: USB HID v1.00 Joystick [Thrustmaster T.16000M] on usb-0000:02:00.0-4/input0
Bus 001 Device 007: ID 044f:b10a ThrustMaster, Inc. T.16000M Joystick

libSDL2 is installed (libSDL2-2.0),
Still my joystick doesn't show up in ksp.

@archiecarrot123
Copy link

I've been using the same joystick fine on gentoo, I think I once had a similar problem that was fixed by replugging the joystick and restarting the game, but try checking the more recent comments on #36 as mint might not have the libSDL2.so symlink.

@Supermagnum
Copy link
Author

apt-file find libSDL2-2
libsdl2-2.0-0: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
libsdl2-2.0-0: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.3000.0
libsdl2-dev: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so

from ksp.log:
DllNotFoundException: libSDL2
KSPAdvancedFlyByWire.SDLController.InitializeSDL () (at :0)
KSPAdvancedFlyByWire.SDLController.SDLUpdateState () (at :0)
KSPAdvancedFlyByWire.AdvancedFlyByWire.Update () (at :0)
[EXC 11:39:50.277] DllNotFoundException: libSDL2
KSPAdvancedFlyByWire.SDLController.InitializeSDL () (at :0)
KSPAdvancedFlyByWire.SDLController.SDLUpdateState () (at :0)
KSPAdvancedFlyByWire.AdvancedFlyByWire.Update () (at :0)

There seems to be symlinks,- but they are like this:
dpkg -L libsdl2-2.0-0 | grep -E 'lib/..so.' | xargs ls -lh
lrwxrwxrwx 1 root root 23 juli 29 17:18 /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.3000.0
-rw-r--r-- 1 root root 1,9M april 7 09:16 /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.3000.0

@archiecarrot123
Copy link

archiecarrot123 commented Aug 30, 2024

I have a PR (#47) that will fix this, but in the mean time you can symlink /usr/lib/x86_64-linux-gnu/libSDL2.so to /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.3000.0 like this:
sudo ln -s -T libSDL2-2.0.so.0.3000.0 /usr/lib/libSDL2.so

@Supermagnum
Copy link
Author

That worked!
Note to others:
This needs to be done before symlinking:
sudo apt-get install libsdl2-2.0

and for installing everything necessary to build programs that use SDL:

sudo apt-get install libsdl2-dev

@Supermagnum
Copy link
Author

fixed.

@Supermagnum
Copy link
Author

Figured it out, issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants