May
23
1 day ago
Activity icon
issue

willf668 issue comment DanielOgorchock/joycond

willf668
willf668

Incorrect pathing for device

Joycond has incorrect pathing for the device;

Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: driver_name: Nintendo Co., Ltd. Pro Controller
Aug 29 20:52:23 tohru joycond[1173423]: MAC: 000000000001
Aug 29 20:52:23 tohru joycond[1173423]: adding epoll_subscriber: fd=5

Why is there a double / in /sys//devices ?? This shouldn't be like that. How do I edit this to correct the path?

willf668
willf668

I changed the source to replace "/sys/" with "/sys" in the devpath and recompiled, but the result was the same. This seems to be unrelated to the double slash.

Activity icon
issue

willf668 issue comment DanielOgorchock/joycond

willf668
willf668

Incorrect pathing for device

Joycond has incorrect pathing for the device;

Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: driver_name: Nintendo Co., Ltd. Pro Controller
Aug 29 20:52:23 tohru joycond[1173423]: MAC: 000000000001
Aug 29 20:52:23 tohru joycond[1173423]: adding epoll_subscriber: fd=5

Why is there a double / in /sys//devices ?? This shouldn't be like that. How do I edit this to correct the path?

willf668
willf668

Also having this issue.

May
22
2 days ago
Activity icon
fork

JaydenK0102 forked DanielOgorchock/joycond

⚡ userspace daemon to combine joy-cons from the hid-nintendo kernel driver
JaydenK0102 GNU General Public License v3.0 Updated
fork time in 2 days ago
May
20
4 days ago
Activity icon
issue

zen253230 issue comment DanielOgorchock/joycond

zen253230
zen253230

How to work on system doesn't use systemd?

I'm using MX Linux KDE version, by default it boot without systemd, and this way is recommended by developers from MX team. Could you make joycond working on such system?

zen253230
zen253230

Here is a script I adapted from the internet which runs well on my devuan You have to make it executable and copy to /etc/init.d

`` #! /bin/sh

Using the lsb functions to perform the operations.

. /lib/lsb/init-functions

Process name ( For display )

NAME=joycond

Daemon

DAEMON=/usr/sbin/joycond

pid file for the daemon

PIDFILE=/var/run/joycond.pid

If the daemon is not there, then exit.

test -r "$DAEMON" || exit 5

case $1 in start)

Checked the PID file exists and check the actual status of process

if [ -e $PIDFILE ]; then status_of_proc -p $PIDFILE $DAEMON "$NAME process" && status="0" || status="$?"

If the status is SUCCESS then don't need to start again.

if [ $status = "0" ]; then exit # Exit fi fi

Start the daemon.

log_daemon_msg "Starting the process" "$NAME"

Start the daemon with the help of start-stop-daemon

Log the message appropriately

if start-stop-daemon --start --quiet --oknodo --make-pidfile --pidfile $PIDFILE --exec $DAEMON --background; then log_end_msg 0 else log_end_msg 1 fi ;; stop)

Stop the daemon.

if [ -e $PIDFILE ]; then status_of_proc -p $PIDFILE $DAEMON "Stoppping the $NAME process" && status="0" || status="$?" if [ "$status" = 0 ]; then start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE /bin/rm -rf $PIDFILE fi else log_daemon_msg "$NAME process is not running" log_end_msg 0 fi ;; restart)

Restart the daemon.

$0 stop && sleep 2 && $0 start ;; status)

Check the status of the process.

if [ -e $PIDFILE ]; then status_of_proc -p $PIDFILE $DAEMON "$NAME process" && exit 0 || exit $? else log_daemon_msg "$NAME Process is not running" log_end_msg 0 fi ;; reload)

Reload the process. Basically sending some signal to a daemon to reload

it configurations.

if [ -e $PIDFILE ]; then start-stop-daemon --stop --signal USR1 --quiet --pidfile $PIDFILE --name $NAME log_success_msg "$NAME process reloaded successfully" else log_failure_msg "$PIDFILE does not exists" fi ;; *)

For invalid arguments, print the usage message.

echo "Usage: $0 {start|stop|restart|reload|status}" exit 2 ;; esac

May
19
5 days ago
started
started time in 5 days ago
May
18
6 days ago
Activity icon
issue

n00mkrad issue comment DanielOgorchock/joycond

n00mkrad
n00mkrad

How to install on Steam Deck (SteamOS 3.0)?

Hello, are there any instructions on how to install and use this on the Steam Deck?

I've tried to get it working but the Arch-based SteamOS 3 does not come with apt or dnf which made it impossible to follow the guide in the readme.

n00mkrad
n00mkrad

Nah didn't seem to work, I still get /usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory.

Activity icon
issue

n00mkrad issue comment DanielOgorchock/joycond

n00mkrad
n00mkrad

How to install on Steam Deck (SteamOS 3.0)?

Hello, are there any instructions on how to install and use this on the Steam Deck?

I've tried to get it working but the Arch-based SteamOS 3 does not come with apt or dnf which made it impossible to follow the guide in the readme.

n00mkrad
n00mkrad

Installing hid-nintendo-dkms shows some errors but they are in grey, not red, so idk if it worked or not?

(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> ERROR: Missing home kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing sys kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing srv kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing opt kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing tmp kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing efi kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing usr kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing run kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing sbin kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing var kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing esp kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing gpu-trace.log kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing lib64 kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing dev kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing bin kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing boot kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing etc kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing lib kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing root kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing mnt kernel headers for module hid-nintendo/3.2.
==> ERROR: Missing proc kernel headers for module hid-nintendo/3.2.
Activity icon
issue

n00mkrad issue comment DanielOgorchock/joycond

n00mkrad
n00mkrad

How to install on Steam Deck (SteamOS 3.0)?

Hello, are there any instructions on how to install and use this on the Steam Deck?

I've tried to get it working but the Arch-based SteamOS 3 does not come with apt or dnf which made it impossible to follow the guide in the readme.

n00mkrad
n00mkrad

Yeah no.

Odd... it installs just flawlessly in my pure Arch Linux distro (my computer that is, I don't have a Steam Deck). Make sure you have got libevdev. If so, reinstall it. Could it be your Linux kernel...? For 5.15 ones and before, it's a must to manually install the install hid-nintendo-dkms before everything else, either through AUR or its respective Github page.

And did you recall yourself to input sudo steamos-readonly disable? It's for disabling altogether the shields lifted up impending you from accessing deeper the system, allowing writing up into their read-only allowed OS.

If nothing else, this is likely on SteamOS's end, something of matter on its internal changed core system. Query the issue to Valve, if you haven't already. This link should hopefully aid you on. https://steamcommunity.com/app/1675200/discussions/0/3186864498792143401/

Ah yeah SteamOS uses an older kernel it seems: 5.13.0-valve14-1-neptune-02195-g5b0f749d00fa. Will report back

May
17
1 week ago
Activity icon
issue

n00mkrad issue comment DanielOgorchock/joycond

n00mkrad
n00mkrad

How to install on Steam Deck (SteamOS 3.0)?

Hello, are there any instructions on how to install and use this on the Steam Deck?

I've tried to get it working but the Arch-based SteamOS 3 does not come with apt or dnf which made it impossible to follow the guide in the readme.

n00mkrad
n00mkrad

@n00mkrad

yay -Sy joycond

You have forgotten to append "-git" into package's name, hence the not found output. You must type the full name of a package always! Moreover, just -S is good enough.

yay -S joycond-git

You should do away from this other "nicman23" package, since it's been outdated for two years, and aims for more specific matters and controllers.

-- Build files have been written to: /home/deck/.cache/yay/joycond-git/src/joycond [ 9%] Building CXX object CMakeFiles/joycond.dir/src/main.cpp.o In file included from /usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/c++config.h:571, from /usr/include/c++/11.1.0/iostream:38, from /home/deck/.cache/yay/joycond-git/src/joycond/src/main.cpp:1: /usr/include/c++/11.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory 39 | #include <features.h> | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/joycond.dir/build.make:76: CMakeFiles/joycond.dir/src/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/joycond.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

May
16
1 week ago
Activity icon
issue

infirit issue comment DanielOgorchock/joycond

infirit
infirit

Switch controller buttons are mismatched

Distro: EndeavorOS | Arch-based Kernel: linux-xanmod 5.14.15 Installed hid-nintendo-dkms and joycond-git through AUR

Tested with combined Joycons, a first party Switch Pro Controller over Bluetooth and USB, and an 8bitdo SN30 Pro connected via USB (is not detected by joycond over BT).

In connecting controllers to the host, every button is mapped appropriately except for two, which seems to depend on input method.

  • When dual Joycons, ProCon, and SN30 Pro are paired as a normal Switch controller w/ ZL&ZR, the bottom-most and right-most buttons (Switch-B/Switch-A) are mapped as Xbox B & Xbox A, while the left-most and top-most buttons (Switch-Y/Switch-X) are Xbox X & Xbox Y, respectively.
  • When the Pro Controller and SN30 Pro are paired as a Virtual Switch controller for Steam w/ Minus&Plus, the left-most and top-most buttons (Switch-Y/Switch-X) are mapped to Xbox-Y & Xbox-X, while the bottom-most and right-most buttons (Switch-B/Switch-A) are Xbox-A & Xbox-B, respectively.

This effects every game in Linux, but especially in the case of using as a Steam-compatible gamepad, this makes playing games confusing or unintuitive when two of the four face buttons are erroneously swapped with respect to a typical Xinput controller. I'm only able to mitigate this in Steam by remapping the suspect inputs back to what their physical orientation should be in Steam's controller configuration, and the Yuzu Switch emulator requires a manual remapping from the autoconfig for the Switch/emulated Pro Controller.

infirit
infirit

The combined joycon device exposes the proper direction, X-> North, Y-> West, A -> East, B-> South. You will need to this in Steam. I think you can define your layout somewhere.

Previous