Skip to content

Commit 43ac48a

Browse files
committed
qtm: document reproduced QTMSP_NotifyTopLcdPowerOff bug
1 parent 5540d81 commit 43ac48a

File tree

1 file changed

+7
-1
lines changed
  • libctru/include/3ds/services

1 file changed

+7
-1
lines changed

libctru/include/3ds/services/qtm.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,13 @@ Result QTMSP_IsExpanderInUse(bool *outActive);
555555
/**
556556
* @brief Called by GSP's LCD driver during top LCD power-on to signal to QTM that it needs to
557557
* switch the parallax barrier state to a 2D state (all-transparent mask). Causes QTM's
558-
* expander thread to exit, relinquishing its `i2c::QTM` session with it.
558+
* expander thread to exit, relinquishing its `i2c::QTM` session with it...
559+
* @bug ... except that it never does, because QTM only checks the flag this function set
560+
* when handling the "shell open" (0x213) notification, which incidentally would also
561+
* cause GSP to turn LCD and backlights all back on. This doesn't matter anyway: manually
562+
* calling the GSPLCD function that turns both backlights and LCD off will always cause the
563+
* GSPLCD thread to hang as a result on N3DS and N3DSXL (non-manually is fine, both GSP and
564+
* QTM listen to the same notifications in that regard).
559565
* @return Always 0 (success).
560566
*/
561567
Result QTMSP_NotifyTopLcdPowerOff(void);

0 commit comments

Comments
 (0)