xerpi / ds4vita

Use a DS4 on your PSVita
177 stars 34 forks source link

Touchscreen is disabled with this plugin active and Bluetooth headphones connected #4

Closed parkerlreed closed 7 years ago

parkerlreed commented 7 years ago

When I connect a pair of Bluetooth headphones, even with DS4 disconnected, the touchscreen stops functioning. Only after turning off the headphones and waiting a second am I able to control the system.

ghost commented 7 years ago

ds4vita verify vendor and product id

Vendor ID-->value: 0x054C (Sony Corp.) Product ID-->value: 0x05C4 (Sony Computer Entertainment Wireless Controller)

It is weird that your bluetooth headset has the same identifier

parkerlreed commented 7 years ago

It doesn't as far as I'm aware. I think it's an edge case where nobody has used the plugin while using Bluetooth headphones. With the DS4 controller connected BOTH the touchscreen and touchpad work. For the touchscreen to not respond at all, it's a bug. This happens with both DS4 connected and not connected.

xerpi commented 7 years ago

Yeah I've checked the code and there's definitely this bug, I should check for the MAC of the received BT events to match the DS4 MAC before processing them.

EDIT: Well checking more closely, I actually skip events if they are not coming from the DS4, so it's weird that this bug exists, I'd need you to try a debug version of ds4vita to check what's going on.

EDIT 2: Could you check if it still happens on the latest version: https://github.com/xerpi/ds4vita/releases ?

parkerlreed commented 7 years ago

Transferred, rebooted, applied taiHen, Settings > Devices > Tap on device name > Connect, it connects fine but lockscreen still gets locked out. And the unresponsive touchscreen sometimes even sticks after turning off the Bluetooth headphones.

parkerlreed commented 7 years ago

Interestingly enough if I have the headphones connected before applying taihen, everything works afterwards. Bluetooth audio stays connected and controller acts as expected..

xerpi commented 7 years ago

It's not needed to tap on device name. Once you have connected for the first time using PS+SHARE, the DS4 gets paired, and it will connect automatically by simply pressing PS, no matter where in the Vita menus you are as long as Bluetooth is enabled.

parkerlreed commented 7 years ago

That tapping on device name was to connect the Bluetooth audio. I already knew about the anywhere DS4 connect. :)

parkerlreed commented 7 years ago

Beta 2.2 still showing the same behavior.

EDIT: Video https://www.youtube.com/watch?v=QKvEeK54lO0

xerpi commented 7 years ago

Cool, thanks for the video, I'll work on that asap.

xerpi commented 7 years ago

Fixed with f12c1fa80611f95d9b7f86bbf13ab182e9ec7879.