Linux Kernel & OS

SDL adds controller mappings for Nintendo Switch 2 hardware on Linux

Key Takeaway

The Simple DirectMedia Layer (SDL) has integrated mappings and report format support for Nintendo Switch 2 controllers to complement the Linux 7.4 kernel driver.

Summary

The SDL library has merged new code to provide hardware abstraction and mappings for Nintendo Switch 2 controllers. This update follows the introduction of a dedicated driver in the Linux 7.4 kernel, which was developed by Valve to handle the specific connectivity requirements of the new hardware.

Users planning to use Joy-Con 2, Pro Controller 2, or GameCube NSO controllers on Linux will benefit from this integration. The update ensures that games utilizing SDL can recognize and correctly interpret the input from these devices through both USB and Bluetooth interfaces.

Technical implementation of Switch 2 support

  • Driver Integration: The support builds upon the Linux 7.4 kernel driver designed to manage the split-interface architecture used by Switch 2 controllers.
  • Connectivity Handling: The implementation addresses specific nuances regarding Bluetooth and USB connectivity protocols unique to the new hardware.
  • Input Mapping: New mappings have been merged into the SDL Git repository to translate device inputs into usable game commands.
  • Report Formats: A dedicated patch provides support for standard Switch 2 input report formats, ensuring data consistency between the hardware and the software layer.

Why it matters

This development ensures a seamless out-of-the-box experience for Linux gaming enthusiasts using Nintendo's next-generation peripherals. By aligning the kernel driver with SDL mappings, Valve and the open-source community are facilitating immediate compatibility for Steam and other Linux-based gaming platforms.

What to do

  • Wait for the next SDL release if you plan to use Nintendo Switch 2 controllers on Linux.
  • Use Joy-Con 2, Pro Controller 2, or GameCube NSO controllers with Linux 7.4 or later for out-of-the-box support.

Original reference: www.phoronix.com →