devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)

Home Page:https://libctru.devkitpro.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suspended apps don't let the system sleep correctly. (?)

AdmiralCurtiss opened this issue · comments

I don't actually know if this is a ctrulib issue or not, but I suspect it is, so I'm reporting it here.

Programs compiled with ctrulib 1.2.0 don't seem to correctly let the 3DS sleep when putting the 3DS to sleep while the program is suspended and the system is in the Home menu. Specifically,

  • Start an app.
  • Press Home to return the Home menu, but don't close the app.
  • Shut the 3DS.

If you do this on an official app or game, the power light will start pulsing slowly, and the Wifi light will dim. However, on programs compiled with ctrulib 1.2.0, the power light stays fully lit and the Wifi light does not dim.

I don't know exactly if this means that some process isn't put to sleep correctly, or if it just means that someone neglected to send commands to the LED for this situation, but it seems concerning.

Putting an app to sleep while it's not suspended behaves like an official app/game, with the pulsing and dimmed lights.

Oh, and perhaps I should mention this, I was testing this on an European New 3DS with A9LH/Luma on firmware 11.3.0. Just in case it's relevant.

confirmed with 11.3.0, b9s/Luma & 11.5 on o3ds

commented

I believe this should be fixed as of 7171a87. The cause of this was forgetting to call APT_ReplySleepNotificationComplete when the application was suspended.