plutooo / nx-btred

257 stars 12 forks source link

Crashes while going to sleep mode #10

Open HolidayOugi opened 3 years ago

HolidayOugi commented 3 years ago

Hi there!

I've tried version 0.9.3 of this new homebrew and it works perfectly with my AUKEY EP-B40S!

I'm having a small issue tho. With it installed, whether I'm connected to my headphones or not, whenever I go to sleep mode the console either locks up or reboots.

I can affirm the problem is within nx-btred because it doesn't happen with MissionControl by itself. These two are also the only sysmodules I've installed.

I'm using the latest version of Hekate and Atmosphere. Here are also the logs and dumps of the crashes

dumps.zip

Again, thanks again for your effort and I hope this project develops further :D

jhonathas commented 3 years ago

Here the same problem occurred, but I noticed that if we click on power, after he hibernates, after a while, about 10 seconds, he comes back - he is not always able to come back, but sometimes it works.

ndeadly commented 3 years ago

@plutooo this sort of thing happens when redirected events aren't returned to the system before it tries to sleep. You may need to call appletLockExit/appletUnlockExit in btpair so that users aren't able to force-terminate with the home button before you've had a chance to disable the redirection.

JonJaded commented 3 years ago

@plutooo this sort of thing happens when redirected events aren't returned to the system before it tries to sleep. You may need to call appletLockExit/appletUnlockExit in btpair so that users aren't able to force-terminate with the home button before you've had a chance to disable the redirection.

I get this, but this crash happens even at start up, without opening the app. How would that be implemented in the sys module?

ndeadly commented 3 years ago

@JonJaded you'd have to post the error report to know what was actually failing.

I know with controllers at least, if the console goes to sleep and a controller hasn't been disconnected, btm will abort. Normally they're disconnected automatically prior to sleep, but since headphones are being paired unofficially they might not be getting managed properly. Do you still experience the crash if you've turned your headphones off manually before putting the console to sleep?

JonJaded commented 3 years ago

@JonJaded you'd have to post the error report to know what was actually failing.

I know with controllers at least, if the console goes to sleep and a controller hasn't been disconnected, btm will abort. Normally they're disconnected automatically prior to sleep, but since headphones are being paired unofficially they might not be getting managed properly. Do you still experience the crash if you've turned your headphones off manually before putting the console to sleep?

I have crashes instantly with paired headphones.

If I have my headset (SoDrop 2.0) paired in the app, (not even connected, just paired), the second I put the switch to sleep it fatals with the screen off. I mentioned more here at #22.

The app that crashes is the bluetooth app. Specifically 010000000000000b according to my fatal logs. The only way to stop the crash when going to sleep is to either delete the settings.bin, or before system goes to sleep, unpair the headphones in the BT-Pair app.

fatal_reports.zip