streetpea / chiaki-ng

Next-Generation of Chiaki (the open-source remote play client for PlayStation)
https://streetpea.github.io/chiaki-ng/
GNU Affero General Public License v3.0
1.08k stars 68 forks source link

[BUG]open chiaki and connect the console first and then insert the controller, and the controller produces strange vibrations #417

Open qazwsdc opened 1 day ago

qazwsdc commented 1 day ago

Describe the bug When the controller is plugged in while the console is already connected, the controller will produce intermittent and abnormal vibrations when the game triggers the vibration effect

To Reproduce Steps to reproduce the behavior:

  1. connect to ps5 and don't plug in dualsense
  2. then connect dualsense using USB
  3. if game triggers vibration then issue happen

Desktop (please complete the following information):

Additional context If connect the controller before open chiaki everything works fine

streetpea commented 18 hours ago

@qazwsdc I can't reproduce. Can you check the sound settings on your computer and make sure sound isn't getting pumped into your DualSense microphone in addition to the haptics. That could cause the weird vibrations you are experiencing.

qazwsdc commented 18 hours ago

@streetpea It must be triggered by a specific vibration. do you have GTA?take a car can directly trigger this issue. By the way,this bug also existed in previous chiaki versions.

streetpea commented 18 hours ago

Do you mean trigger vibrations or haptics?

qazwsdc commented 18 hours ago

@streetpea maybe haptic I'm not sure the difference between the two.

streetpea commented 16 hours ago

Are the triggers vibrating or just the base of the DualSense?

qazwsdc commented 16 hours ago

Are the triggers vibrating or just the base of the DualSense?

the base

streetpea commented 15 hours ago

@qazwsdc can you please post a log of this happening with verbose logging enabled

qazwsdc commented 15 hours ago

@streetpea [2024-09-27 11:31:20:333333] [I] Controller 1 opened: "DualSense Edge Wireless Controller (0300e0274c050000f20d000000016800)" [2024-09-27 11:31:21:334334] [W] DualSense features were enabled and a DualSense is connected, but could not find the DualSense audio device! [2024-09-27 11:31:23:080080] [I] CTRL RECEIVED [2024-09-27 11:31:23:080080] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:23:080080] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:23:080080] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:31:28:080080] [I] CTRL RECEIVED [2024-09-27 11:31:28:080080] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:28:080080] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:28:080080] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:31:33:080080] [I] CTRL RECEIVED [2024-09-27 11:31:33:080080] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:33:080080] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:33:080080] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:31:38:079079] [I] CTRL RECEIVED [2024-09-27 11:31:38:079079] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:38:079079] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:38:079079] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:31:43:081081] [I] CTRL RECEIVED [2024-09-27 11:31:43:081081] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:43:081081] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:43:081081] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:31:48:080080] [I] CTRL RECEIVED [2024-09-27 11:31:48:080080] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:48:080080] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:48:080080] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:31:53:080080] [I] CTRL RECEIVED [2024-09-27 11:31:53:080080] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:53:080080] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:53:080080] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:31:58:080080] [I] CTRL RECEIVED [2024-09-27 11:31:58:080080] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:31:58:080080] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:31:58:080080] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:32:03:080080] [I] CTRL RECEIVED [2024-09-27 11:32:03:080080] [I] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-09-27 11:32:03:080080] [I] 0 00 00 00 00 00 fe 00 00 ........
[2024-09-27 11:32:03:080080] [I] Ctrl received Heartbeat, sending reply [2024-09-27 11:32:06:159159] [I] StreamConnection is disconnecting [2024-09-27 11:32:06:159159] [I] StreamConnection sending Disconnect [2024-09-27 11:32:06:159159] [I] StreamConnection was requested to stop [2024-09-27 11:32:06:160160] [I] StreamConnection closed takion [2024-09-27 11:32:06:160160] [I] StreamConnection completed successfully [2024-09-27 11:32:06:160160] [I] Ctrl requested to stop [2024-09-27 11:32:06:160160] [I] Ctrl stopped [2024-09-27 11:32:06:160160] [I] Session has quit

streetpea commented 15 hours ago

@qazwsdc haptics are not being enabled in the logs you posted because it can’t find the dualsense audio device. You are experiencing the haptic rumble that doesn’t work very well on DualSense compared to other controllers bc it’s rumble it’s terrible when not using haptics. You can verify this by changing haptic rumble intensity to off in the settings and see if the vibrations go away. You say they are being enabled when you launch without hotplugging?

They work fine for me when hot plugging but I’m using a regular dualsense. It’s possible it takes longer for the haptics device to become available for the DualSense edge. Right now we are waiting 10s. Can you try with a regular DualSense and see if it has the same issue?

qazwsdc commented 14 hours ago

@streetpea yes.If plug in dualsense before open chiaki,everything is normal

streetpea commented 14 hours ago

@qazwsdc can you try the things I mentioned?

streetpea commented 14 hours ago

@qazwsdc

  1. Go into settings and turn haptic rumble intensity to Off
  2. If you have one try with a regular DualSense instead of a DualSense edge.
qazwsdc commented 13 hours ago

@streetpea yes you are right. the regular DualSense is normal. So how to solve problem with DS edge ?

streetpea commented 4 hours ago

@qazwsdc can you try going in your sound settings and seeing how long it takes for the DualSense edge speaker to appear after plugging in the controller? It must be longer than 10s. I can change the value to add a new wait time for DualSense edge and then it should work.

qazwsdc commented 4 hours ago

@streetpea it's about 11 second. I think 15 second is enough. maybe you can set it to 15 and try