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

udev/Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues #899

Closed
davidhedlund opened this issue Jun 6, 2023 · 5 comments

Comments

@davidhedlund
Copy link
Contributor

davidhedlund commented Jun 6, 2023

Sony Interactive Entertainment Wireless Controller.cfg

input_driver = "udev"
input_device = "Sony Interactive Entertainment Wireless Controller"
input_device_display_name = "DualSense"
input_vendor_id = "1356"
input_product_id = "3302"
input_l2_axis = "+2"
input_r2_axis = "+5"

L2, and R2 is not working, see the March 2023 PR that replaced:

input_l2_axis = "6"
input_r2_axis = "7"

with:

input_l2_axis = "+2"
input_r2_axis = "+5"

Potentially firmware depenent config

I have updated the firmware in the controller with Sonys firmware updater. This configuration does not work for my DualSense. It would be useful to add the firmware version in input_device_display_name.

Working configuration

When I open retroarch: Main Menu -> Input -> Input User Binds

  • User 1 R2 button (trigger). Reconfigure the button, press R2, the value 6 is added
  • User 1 R2 button (trigger). Reconfigure the button, press R2, the value 7 is added

So the correct variables in Sony Interactive Entertainment Wireless Controller.cfg for me is:

input_l2_axis = "6"
input_r2_axis = "7"

Note: These values are also used in Sony-PlayStation4-DualShock4v2-Wireless-Crystal-Controller.cfg but the variables are called input_l2_btn, and input_r2_btn

@davidhedlund davidhedlund changed the title PlayStation 5 DualSense Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues Jun 7, 2023
@davidhedlund davidhedlund changed the title Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues PlayStation 5 DualSense: input_l2_axis, and input_r2_axis issues Jun 7, 2023
@davidhedlund davidhedlund changed the title PlayStation 5 DualSense: input_l2_axis, and input_r2_axis issues Sony Interactive Entertainment Wireless Controller.cfg: Specify firmware version in the file name Jun 7, 2023
@davidhedlund
Copy link
Contributor Author

davidhedlund commented Jun 7, 2023

@MatiasFernandez Hello! lsusb gives me 054c:0ce6 (VID:PID) for my DualSense. As you can see the values are a mixture of 4 numbers/letters.

In the .cfg files, the input_vendor_id, and the input_product_id variable, consists of 4-5 numbers only. Do you know how they are obtained?

@offalynne
Copy link
Contributor

offalynne commented Jun 7, 2023

convert from hex to decimal

@davidhedlund
Copy link
Contributor Author

davidhedlund commented Jun 8, 2023

convert from hex to decimal

Thank you. I filed:

@davidhedlund davidhedlund changed the title Sony Interactive Entertainment Wireless Controller.cfg: Specify firmware version in the file name udev/Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues. Potentially firmware issue Jun 8, 2023
@davidhedlund davidhedlund changed the title udev/Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues. Potentially firmware issue udev/Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues. Potentially firmware depenent config Jun 8, 2023
davidhedlund added a commit to davidhedlund/retroarch-joypad-autoconfig that referenced this issue Dec 11, 2023
…cfg to Sony DualSense.cfg

Changed L2 and R2. My controller uses the latest DualSense firmware at this writing (0402). 

I mentioned the firmware version in the file to avoid confusion.

See libretro#899 for more information.
@davidhedlund
Copy link
Contributor Author

davidhedlund commented Dec 11, 2023

I submitted a PR that includes firmware version, specific model number, etc.

RobLoach added a commit that referenced this issue Jan 25, 2024
…ller.cfg to udev/Sony Interactive Entertainment DualSense Wireless Controller.cfg (#1068)

* Update and rename Sony Interactive Entertainment Wireless Controller.cfg to Sony DualSense.cfg

Changed L2 and R2. My controller uses the latest DualSense firmware at this writing (0402). 

I mentioned the firmware version in the file to avoid confusion.

See #899 for more information.

* Update Sony DualSense.cfg

# Trisquel GNU/Linux 11 in live mode (Linux 5.15.0-67-generic)

* Update Sony DualSense.cfg

Linux-libre

* Update Sony DualSense.cfg

uname -a

* Update Sony DualSense.cfg

# Required Linux kernel version for both USB and Bluetooth: 5.15
#   Source: https://linuxiac.com/linux-kernel-5-12-released-with-many-essential-additions/

* Update Sony DualSense.cfg

* Update Sony DualSense.cfg

* Update Sony DualSense.cfg

input_device = "Sony Corp. DualSense Wireless Controller" # $ lsusb
input_device_display_name = "Sony DualSense"

* Update Sony DualSense.cfg

* Update Sony DualSense.cfg

* Update Sony DualSense.cfg

* Update Sony DualSense.cfg

input_l_x_plus_axis_label = "Left Analog X+ (right)"
input_l_x_minus_axis_label = "Left Analog X- (left)"
input_l_y_plus_axis_label = "Left Analog Y+ (down)"
input_l_y_minus_axis_label = "Left Analog Y- (up)"
input_r_x_plus_axis_label = "Right Analog X+ (right)"
input_r_x_minus_axis_label = "Right Analog X- (left)"
input_r_y_plus_axis_label = "Right Analog Y+ (down)"
input_r_y_minus_axis_label = "Right Analog Y- (up)"

* Update and rename Sony DualSense.cfg to Sony Interactive Entertainment DualSense Wireless Controller.cfg

"Settings -> Input -> RetroPad Binds -> Port 1 Controls -> Save Controller Profile" generates a file with:

input_device = "Sony Interactive Entertainment DualSense Wireless Controller"

---------

Co-authored-by: Rob Loach <robloach@gmail.com>
@davidhedlund davidhedlund changed the title udev/Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues. Potentially firmware depenent config udev/Sony Interactive Entertainment Wireless Controller.cfg: input_l2_axis, and input_r2_axis issues Aug 1, 2024
@davidhedlund
Copy link
Contributor Author

davidhedlund commented Aug 1, 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

No branches or pull requests

2 participants