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

[MERGED] udev: Update Nntendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (default-off).cfg #1153

Closed
wants to merge 41 commits into from

Conversation

davidhedlund
Copy link
Contributor

@davidhedlund davidhedlund commented Jul 29, 2024

No description provided.

@davidhedlund davidhedlund changed the title udev/Nintendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Nintendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (default-off).cfg udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Nintendo Co., Ltd. Pro Controller (default-off).cfg Jul 29, 2024
@davidhedlund davidhedlund changed the title udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Nintendo Co., Ltd. Pro Controller (default-off).cfg udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Nintendo Co., Ltd. Pro Controller (default-off).cfg Jul 29, 2024
Added top comments:

# The file name was changed from "Nintendo Co., Ltd. Pro Controller.cfg" to "Nintendo Co., Ltd. Pro Controller (default-off).cfg":
#   - "(default-off)" indicates that the autoconfig file is not active by default. See comments for input_vendor_id and input_product_id.
* input_l_x_plus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed.
* input_r_x_plus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed.
* input_r_y_minus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed.
…Controller (default-off).cfg`

Retroarch generates `Pro Controller.cfg` not `Nintendo Co., Ltd. Pro Controller.cfg` for udev
@davidhedlund davidhedlund changed the title udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Nintendo Co., Ltd. Pro Controller (default-off).cfg udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Pro Controller (default-off).cfg Jul 29, 2024
input_device = "Pro Controller"
added "(default-off)" to input_device_display_name = "Nintendo Switch Pro Controller (default-off)"
removed "(default-off)" from input_device_display_name
# Due to the uncommon nature of this device, the autoconfig file is not active by default. This precaution is taken to avoid potential conflicts with the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file. Button layouts are not compatible. To activate this configuration:
#   1) Comment out the input_vendor_id and input_product_id lines in the "Nintendo Co.,Ltd. Pro Controller.cfg" file.
#   2) Uncomment the input_vendor_id and input_product_id lines below:
# This file uses the legacy controller name "Pro Controller" (generated by RetroArch on Linux 5.15)
# "(default-off)" was added to the file name to indicate that the autoconfig file is not active by default. See comments for input_vendor_id and input_product_id.
@davidhedlund davidhedlund changed the title udev/Nintendo Co., Ltd. Pro Controller (old).cfg renamed to udev/Pro Controller (default-off).cfg udev/Nintendo Co., Ltd. Pro Controller (old).cfg updated Aug 1, 2024
# Comparison with other non-HID autoconfig versions for the left thumbstick functionality:
#   linuxraw/Pro Controller (default-off).cfg: Yes
#   sdl2/Pro Controller (default-off).cfg: Yes
#   udev/Pro Controller (default-off).cfg: No
@davidhedlund davidhedlund changed the title udev/Nintendo Co., Ltd. Pro Controller (old).cfg updated udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg Aug 1, 2024
# input_l_x_plus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed.
# input_r_x_plus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed.
# input_r_y_minus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed.
@davidhedlund davidhedlund changed the title udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg Aug 20, 2024
# This autoconfig file was generated using RetroArch via the Flathub package.
# Please refrain from updating it with an autoconfig created by the AppImage: The SDL2 controller driver utilizes UDEV rather than SDL2 - hizzlekizzle/RetroArch-AppImage#12
# The input_l_x_plus_axis is manually set here since RetroArch can't auto-detect it in Linux , but manual adjustments make it functional.
Removed thumb-stick status. it is working with all controller drivers when the thumb stick input variables have been added manually, I've tested them!
# The input_l_x_plus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15 if the controller is connected over BlueTooth, but manual adjustments make it functional.
# input_l_x_plus_axis is generated when the controller is connected via USB, but not via BlueTooth. However, it is working for both protocols.
The udev driver depends on input_device, rather than input_vendor_id and input_product_id.
udev automatically utilize the autoconfig file that corresponds to the name used by the active Linux kernel.
@davidhedlund davidhedlund changed the title [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller.cfg Aug 21, 2024
# Remove input_vendor_id and input_product_id once this issue has been solved: [IMPORTANT] Unnecessary input_vendor_id, and input_product_id in autoconfig files generated by udev - libretro/RetroArch#16904
input_vendor_id = "1406"
input_product_id = "8201"
Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - libretro/RetroArch#16905
input_device_display_name = "Nintendo Switch Pro Controller (non-HID) (Bluetooth)"
It seems more straightforward for a single pull request to remove input_vendor_id from all udev files once we reach a consensus on the issue discussed in: libretro/RetroArch#16907
input_device = "Nintendo Switch Pro Controller (Linux 5.15, non-HID) (Bluetooth)"
input_device_display_name = "Nintendo Switch Pro Controller (Linux 5.15, non-HID) (Bluetooth)"
Unnecessary input_vendor_id, and input_product_id in autoconfig files generated by udev - libretro/RetroArch#16904
Removed the final comments
@davidhedlund davidhedlund changed the title [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller.cfg [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (default-off).cfg Aug 26, 2024
@davidhedlund davidhedlund changed the title [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (default-off).cfg [READY] udev: Update Nintendo Co., Ltd. Pro Controller.cfg Aug 26, 2024
@davidhedlund davidhedlund reopened this Aug 26, 2024
@davidhedlund
Copy link
Contributor Author

davidhedlund commented Aug 26, 2024

@davidhedlund davidhedlund changed the title [READY] udev: Update Nintendo Co., Ltd. Pro Controller.cfg [READY] udev: Update Nntendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (default-off).cfg Aug 26, 2024
@davidhedlund davidhedlund changed the title [READY] udev: Update Nntendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (default-off).cfg [MERGED] udev: Update Nntendo Co., Ltd. Pro Controller (old).cfg to Nintendo Co., Ltd. Pro Controller (default-off).cfg Aug 26, 2024
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

Successfully merging this pull request may close these issues.

1 participant