You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the version of hid-switchcon used in L4T-Switch(https://gitlab.com/switchroot/l4t-kernel-4.9) has the option to link joycons as 1 controller in the driver. Unfortunatly, this is needed if you want to use 2 joycons as one using kodi-game-libretro, and retroarch. Is there any chance we can get a patch for that feature for hid-joycon, which supports rumble, battery, and led changes? It would be nice to get all of these features in 1 driver, without having to have a complicated userspace application as a go between.
The folks on the kernel mailing list preferred userspace handling the joycon pairing. That said, if I get a chance to work on the driver this weekend I can add a patch that re-adds the kernel-side pairing support. Just know that that patch is unlikely to make it's way to mainline. I'm also hoping to get around to adding gyro support soon.
That is fine, for l4t, I dont think we care. lol. I havnt found a way to pair them in userspace as of yet, on my kodi gentoo build for my switch, and figured it would be easier to ask you to reapply the patch, then me trying to figure out what is going on with hid-switchcon, vs the latest version of hid-joycon. lol. Gyro support would be cool as well. I get if you dont post the pairing patch here, but if you could create the patch, I will get it to the L4T devs, so we can update the driver there back to hid-joycon, and keep the functionallity that is already there, and get back the functionallity that was added in hid-joycon.
I've looked at adding that functionality back tonight, and it seems like it would create quite a mess of things (there's so many more places now that special checks would be necessary with the rumble support and whatnot). I think the way to go is to have a userspace daemon which handles all the pairing using libevdev. When joy-cons are paired, it can create a virtual input device using libevdev's uinput support. I might take a stab at implementing something like that if I have the time. I think it will be much cleaner than having it in the driver, and it would also be useful for people using the mainline driver (assuming I finish it and actually get it mainlined sometime).
I'm also currently working in such a user space driver. It is in its early stages and thus not public yet, but I can link it in this issue when it's ready.
It will combine two joy-cons into a single uinput device. There's instructions on how to use it in its README. Be sure to use the latest version of the hid-joycon kernel driver from this repo if you want to try it out.
If this seems like something you'll want for the switch l4t project, I can look into creating an aur package or a .deb or something.
Note that I haven't gotten rumble working with the combined joy-cons yet, but I'll look into doing that soon.
This seems more than suitable to me. I can make it work, I dont use systemd in my build, but 1 script isnt much to contend with. lol. I am sure bylaws would also appreciate a deb file for the switchroot repo.
Activity
DanielOgorchock commentedon May 30, 2019
The folks on the kernel mailing list preferred userspace handling the joycon pairing. That said, if I get a chance to work on the driver this weekend I can add a patch that re-adds the kernel-side pairing support. Just know that that patch is unlikely to make it's way to mainline. I'm also hoping to get around to adding gyro support soon.
GavinDarkglider commentedon May 30, 2019
That is fine, for l4t, I dont think we care. lol. I havnt found a way to pair them in userspace as of yet, on my kodi gentoo build for my switch, and figured it would be easier to ask you to reapply the patch, then me trying to figure out what is going on with hid-switchcon, vs the latest version of hid-joycon. lol. Gyro support would be cool as well. I get if you dont post the pairing patch here, but if you could create the patch, I will get it to the L4T devs, so we can update the driver there back to hid-joycon, and keep the functionallity that is already there, and get back the functionallity that was added in hid-joycon.
DanielOgorchock commentedon May 31, 2019
I've looked at adding that functionality back tonight, and it seems like it would create quite a mess of things (there's so many more places now that special checks would be necessary with the rumble support and whatnot). I think the way to go is to have a userspace daemon which handles all the pairing using libevdev. When joy-cons are paired, it can create a virtual input device using libevdev's uinput support. I might take a stab at implementing something like that if I have the time. I think it will be much cleaner than having it in the driver, and it would also be useful for people using the mainline driver (assuming I finish it and actually get it mainlined sometime).
nicokoch commentedon Jun 2, 2019
I'm also currently working in such a user space driver. It is in its early stages and thus not public yet, but I can link it in this issue when it's ready.
DanielOgorchock commentedon Jun 3, 2019
I've written a userspace daemon called joycond which you can find here: https://github.com/DanielOgorchock/joycond
It will combine two joy-cons into a single uinput device. There's instructions on how to use it in its README. Be sure to use the latest version of the hid-joycon kernel driver from this repo if you want to try it out.
If this seems like something you'll want for the switch l4t project, I can look into creating an aur package or a .deb or something.
Note that I haven't gotten rumble working with the combined joy-cons yet, but I'll look into doing that soon.
DanielOgorchock commentedon Jun 13, 2019
@GavinDarkglider Does this seem like a suitable solution, or do you think support for it in the kernel is still needed?
GavinDarkglider commentedon Jun 15, 2019
This seems more than suitable to me. I can make it work, I dont use systemd in my build, but 1 script isnt much to contend with. lol. I am sure bylaws would also appreciate a deb file for the switchroot repo.
isdn/capi: check message length in capi_write()
Btrfs: fix unwritten extent buffers and hangs on future writeback att…
drm/amd/display: Don't replace the dc_state for fast updates
IB/hfi1: Define variables as unsigned long to fix KASAN warning
s390/cio: exclude subchannels with no parent from pseudo check
powerpc/pseries: Fix cpu_hotplug_lock acquisition in resize_hpt()
perf tools: Fix segfault in cpu_cache_level__read()
2 remaining items
btrfs: allocate new inode in NOFS context
scsi: zfcp: fix reaction on bit error threshold notification
drm/i915/userptr: Never allow userptr into the mappable GGTT
mm/slub: fix a deadlock in show_slab_objects()
sctp: Don't add the shutdown timer if its already been added
net: dsa: declare lockless TX feature for slave ports
firmware: arm_scmi: Fix SCMI genpd domain probing
btrfs: fix lockdep splat from btrfs_dump_space_info
net/mlx5: Delete extra dump stack that gives nothing
io_uring: Fix NULL pointer dereference in loop_rw_iter()
btrfs: open device without device_list_mutex
btrfs: move the chunk_mutex in btrfs_read_chunk_tree
btrfs: sysfs: use NOFS for device creation
perf record: Skip side-band event setup if HAVE_LIBBPF_SUPPORT is not…
ALSA: echoaudio: Fix potential Oops in snd_echo_resume()