QTM Services

QTM Services

QTM is the New_3DS system module in charge of handling head tracking. A maximum of three (only two until 9.3.0-21) sessions for *all* QTM services combined.

Head tracking is not usable when any other process is using any of the cameras, QTM returns error 0xC8A18008 for this.

QTM only tracks the position of the user’s two eyes, but does not track the area they are focusing at. Hence, “eye-tracking” is sometimes used to refer to this feature on 3DS, even though it means something else outside the 3DS hacking scene.

Refer to this libctru commit for more details: 🔗 https://github.com/devkitPro/libctru/commit/8e55cdf05d1f2c07f350ec678d0f0d6a7a2df214

QTM services #

QTM user service “qtm:u” #

Command IDDescription
0x00010080GetRawTrackingDataEx
0x00020080GetTrackingDataEx
0x00030000EnableManualIrLedControl
0x00040000DisableManualIrLedControl
0x00050040SetIrLedStatus
0x00060000IsCurrentAppBlacklisted

QTM system service “qtm:s” #

“qtm:s” has access to all “qtm:u” commands and more:

Command IDDescription
0x04010040SetCentralBarrierPosition
0x04020000GetCameraLuminance
0x04030000EnableAutoBarrierControl
0x04040000DisableAutoBarrierControl
0x04050040SetBarrierPosition
0x04060000GetCurrentBarrierPosition
0x04070040SetIrLedStatusOverride
0x040801C0SetCalibrationData
0x04090000GetQtmStatus
0x040A0040SetQtmStatus

QTM service “qtm:sp” #

qtm:sp has access to all “qtm:u”, “qtm:s” commands and more:

Command IDDescription
0x08010040NotifyTopLcdModeChange
0x08020000NotifyTopLcdPowerOn
0x08030000IsExpanderInUse
0x08040000NotifyTopLcdPowerOff

GSP always keeps an handle to this service open. NS sometimes uses this service (to blacklist some internal test applications, see NS_CFA), but when it does it opens then immediately closes the session thereafter.

QTM “hardware check” service “qtm:c” #

Command IDDescription
0x00010000StartHardwareCheck
0x00020000StopHardwareCheck
0x00030040SetBarrierPattern
0x00040000WaitAndCheckExpanderWorking
0x00050040SetIrLedStatusOverride

The commands for this service are separate from all the other services documented above.

Category:Services