Settings services: Difference between revisions

No edit summary
No edit summary
(13 intermediate revisions by 2 users not shown)
Line 29: Line 29:
|-
|-
| 11 || [10.1.0+] [[#GetDeviceNickName]]
| 11 || [10.1.0+] [[#GetDeviceNickName]]
|-
| 12 || [18.0.0+] GetKeyCodeMapByPort
|}
|}


Line 94: Line 96:
|-
|-
| 23 || [9.0.0+] SetMemoryUsageRateFlag
| 23 || [9.0.0+] SetMemoryUsageRateFlag
|-
| 24 || [20.0.0+] CommitSettings
|}
|}


Line 117: Line 121:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || GetBluetoothBdAddress
| 0 || [[#GetBluetoothBdAddress]]
|-
|-
| 1 || [[#GetConfigurationId1]]
| 1 || [[#GetConfigurationId1]]
|-
|-
| 2 || GetAccelerometerOffset
| 2 || [[#GetAccelerometerOffset]]
|-
|-
| 3 || GetAccelerometerScale
| 3 || [[#GetAccelerometerScale]]
|-
|-
| 4 || GetGyroscopeOffset
| 4 || [[#GetGyroscopeOffset]]
|-
|-
| 5 || GetGyroscopeScale
| 5 || [[#GetGyroscopeScale]]
|-
|-
| 6 || GetWirelessLanMacAddress
| 6 || [[#GetWirelessLanMacAddress]]
|-
|-
| 7 || GetWirelessLanCountryCodeCount
| 7 || [[#GetWirelessLanCountryCodeCount]]
|-
|-
| 8 || GetWirelessLanCountryCodes
| 8 || [[#GetWirelessLanCountryCodes]]
|-
|-
| 9 || GetSerialNumber
| 9 || [[#GetSerialNumber]]
|-
|-
| 10 || SetInitialSystemAppletProgramId
| 10 || [[#SetInitialSystemAppletProgramId]]
|-
|-
| 11 || SetOverlayDispProgramId
| 11 || [[#SetOverlayDispProgramId]]
|-
|-
| 12 || GetBatteryLot
| 12 || [[#GetBatteryLot]]
|-
|-
| 14 || [[#GetEciDeviceCertificate]]
| 14 || [[#GetEciDeviceCertificate]]
Line 159: Line 163:
| 21 || [[#GetEticketDeviceKey]]
| 21 || [[#GetEticketDeviceKey]]
|-
|-
| 22 || GetSpeakerParameter
| 22 || [[#GetSpeakerParameter]]
|-
|-
| 23 || [4.0.0+] GetLcdVendorId
| 23 || [4.0.0+] [[#GetLcdVendorId]]
|-
|-
| 24 || [5.0.0+] [[#GetEciDeviceCertificate2]]
| 24 || [5.0.0+] [[#GetEciDeviceCertificate2]]
Line 167: Line 171:
| 25 || [5.0.0+] [[#GetEciDeviceKey2]]
| 25 || [5.0.0+] [[#GetEciDeviceKey2]]
|-
|-
| 26 || [5.0.0+] GetAmiiboKey
| 26 || [5.0.0+] [[#GetAmiiboKey]]
|-
|-
| 27 || [5.0.0+] GetAmiiboEcqvCertificate
| 27 || [5.0.0+] [[#GetAmiiboEcqvCertificate]]
|-
|-
| 28 || [5.0.0+] GetAmiiboEcdsaCertificate
| 28 || [5.0.0+] [[#GetAmiiboEcdsaCertificate]]
|-
|-
| 29 || [5.0.0+] GetAmiiboEcqvBlsKey
| 29 || [5.0.0+] [[#GetAmiiboEcqvBlsKey]]
|-
|-
| 30 || [5.0.0+] GetAmiiboEcqvBlsCertificate
| 30 || [5.0.0+] [[#GetAmiiboEcqvBlsCertificate]]
|-
|-
| 31 || [5.0.0+] GetAmiiboEcqvBlsRootCertificate
| 31 || [5.0.0+] [[#GetAmiiboEcqvBlsRootCertificate]]
|-
|-
| 32 || [5.0.0+] GetUsbTypeCPowerSourceCircuitVersion
| 32 || [5.0.0+] [[#GetUsbTypeCPowerSourceCircuitVersion]]
|-
|-
| 33 || [8.1.1+] GetAnalogStickModuleTypeL
| 33 || [8.1.1+] [[#GetAnalogStickModuleTypeL]]
|-
|-
| 34 || [8.1.1+] GetAnalogStickModelParameterL
| 34 || [8.1.1+] [[#GetAnalogStickModelParameterL]]
|-
|-
| 35 || [8.1.1+] GetAnalogStickFactoryCalibrationL
| 35 || [8.1.1+] [[#GetAnalogStickFactoryCalibrationL]]
|-
|-
| 36 || [8.1.1+] GetAnalogStickModuleTypeR
| 36 || [8.1.1+] [[#GetAnalogStickModuleTypeR]]
|-
|-
| 37 || [8.1.1+] GetAnalogStickModelParameterR
| 37 || [8.1.1+] [[#GetAnalogStickModelParameterR]]
|-
|-
| 38 || [8.1.1+] GetAnalogStickFactoryCalibrationR
| 38 || [8.1.1+] [[#GetAnalogStickFactoryCalibrationR]]
|-
|-
| 39 || [8.1.1+] GetConsoleSixAxisSensorModuleType
| 39 || [8.1.1+] [[#GetConsoleSixAxisSensorModuleType]]
|-
|-
| 40 || [8.1.1+] GetConsoleSixAxisSensorHorizontalOffset
| 40 || [8.1.1+] [[#GetConsoleSixAxisSensorHorizontalOffset]]
|-
|-
| 41 || [6.0.0+] GetBatteryVersion
| 41 || [6.0.0+] [[#GetBatteryVersion]]
|-
|-
| 42 || [10.0.0+] [[#GetDeviceId]]
| 42 || [10.0.0+] [[#GetDeviceId]]
|-
|-
| 43 || [10.0.0+] GetConsoleSixAxisSensorMountType
| 43 || [10.0.0+] [[#GetConsoleSixAxisSensorMountType]]
|}
|}


Used for accessing data calibrated at the factory.
Used for accessing data [[Calibration|calibrated]] at the factory.
 
== GetBluetoothBdAddress ==
No input. Returns a [[#BdAddress|BdAddress]].


== GetConfigurationId1 ==
== GetConfigurationId1 ==
Returns the [[#ConfigurationId1]].
No input. Returns a [[#ConfigurationId1|ConfigurationId1]].
 
== GetAccelerometerOffset ==
No input. Returns a [[#AccelerometerOffset|AccelerometerOffset]].
 
== GetAccelerometerScale ==
No input. Returns a [[#AccelerometerScale|AccelerometerScale]].
 
== GetGyroscopeOffset ==
No input. Returns a [[#GyroscopeOffset|GyroscopeOffset]].
 
== GetGyroscopeScale ==
No input. Returns a [[#GyroscopeScale|GyroscopeScale]].
 
== GetWirelessLanMacAddress ==
No input. Returns a [[#MacAddress|MacAddress]].
 
== GetWirelessLanCountryCodeCount ==
No input. Returns a s32 '''OutCount'''.
 
== GetWirelessLanCountryCodes ==
Takes a type-0x16 output buffer containing an array of [[#CountryCode|CountryCode]]. Returns a s32 '''OutCount'''.
 
== GetSerialNumber ==
No input. Returns a [[#SerialNumber|SerialNumber]].
 
== SetInitialSystemAppletProgramId ==
Takes an input [[NCM_services#ProgramId|ProgramId]]. No output.
 
== SetOverlayDispProgramId ==
Takes an input [[NCM_services#ProgramId|ProgramId]]. No output.
 
== GetBatteryLot ==
No input. Returns a [[#BatteryLot|BatteryLot]].


== GetEciDeviceCertificate ==
== GetEciDeviceCertificate ==
Takes a type-0x16 output buffer containing a [[#EccB233DeviceCertificate]].
Takes a type-0x16 output buffer containing a [[#EccB233DeviceCertificate|EccB233DeviceCertificate]]. No output.


Returns the device certificate (ECC signed). This is identical to 3DS DeviceCert/CTCert besides the strings. NIM loads the DeviceId from this.
Returns the device certificate (ECC signed). This is identical to 3DS DeviceCert/CTCert besides the strings. NIM loads the DeviceId from this.


== GetEticketDeviceCertificate ==
== GetEticketDeviceCertificate ==
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceCertificate]].
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceCertificate|Rsa2048DeviceCertificate]]. No output.


Returns the ETicket certificate (RSA signed).
Returns the ETicket certificate (RSA signed).


== GetSslKey ==
== GetSslKey ==
Takes a type-0x16 output buffer containing a [[#SslKey]].
Takes a type-0x16 output buffer containing a [[#SslKey|SslKey]]. No output.


Returns the extended SSL key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal SSL key (0x110 bytes).
Returns the extended SSL key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal SSL key (0x110 bytes).
Line 227: Line 267:


== GetSslCertificate ==
== GetSslCertificate ==
Takes a type-0x16 output buffer containing a [[#SslCertificate]].
Takes a type-0x16 output buffer containing a [[#SslCertificate|SslCertificate]]. No output.


Used by SSL-sysmodule, see [[SSL_services|here]].
Used by SSL-sysmodule, see [[SSL_services|here]].


== GetGameCardKey ==
== GetGameCardKey ==
Takes a type-0x16 output buffer containing a [[#GameCardKey]].
Takes a type-0x16 output buffer containing a [[#GameCardKey|GameCardKey]]. No output.


Returns the extended GameCard key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal GameCard key (0x110 bytes).
Returns the extended GameCard key (0x130 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal GameCard key (0x110 bytes).


== GetGameCardCertificate ==
== GetGameCardCertificate ==
Takes a type-0x16 output buffer containing a [[#GameCardCertificate]].
Takes a type-0x16 output buffer containing a [[#GameCardCertificate|GameCardCertificate]]. No output.


== GetEciDeviceKey ==
== GetEciDeviceKey ==
No input, returns an [[#EccB233DeviceKey]].
No input. Returns an [[#EccB233DeviceKey|EccB233DeviceKey]].


Returns the extended device ECC-B233 key (0x50 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal device ECC-B233 key (0x30 bytes).
Returns the extended device ECC-B233 key (0x50 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal device ECC-B233 key (0x30 bytes).


== GetEticketDeviceKey ==
== GetEticketDeviceKey ==
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceKey]].
Takes a type-0x16 output buffer containing a [[#Rsa2048DeviceKey|Rsa2048DeviceKey]]. No output.


Returns the extended ETicket RSA-2048 key (0x240 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal ETicket RSA-2048 key (0x220 bytes).
Returns the extended ETicket RSA-2048 key (0x240 bytes) from [[Calibration#CAL0|CAL0]]. If the extended key is not programmed then it falls back to the normal ETicket RSA-2048 key (0x220 bytes).
== GetSpeakerParameter ==
No input. Returns a [[#SpeakerParameter|SpeakerParameter]].
== GetLcdVendorId ==
No input. Returns a [[Calibration#LcdVendorId|LcdVendorId]].


== GetEciDeviceCertificate2 ==
== GetEciDeviceCertificate2 ==
Same as [[#GetEciDeviceCertificate]], but [[#Rsa2048DeviceCertificate|returns]] a RSA-2048 variant of the device certificate.
Same as [[#GetEciDeviceCertificate]], but returns a [[#Rsa2048DeviceCertificate|RSA-2048]] variant of the device certificate.


== GetEciDeviceKey2 ==
== GetEciDeviceKey2 ==
Same as [[#GetEciDeviceKey]], but [[#Rsa2048DeviceKey|returns]] a RSA-2048 variant of the device key.
Same as [[#GetEciDeviceKey]], but returns a [[#Rsa2048DeviceKey|RSA-2048]] variant of the device key.
 
== GetAmiiboKey ==
No input. Returns an [[#AmiiboKey|AmiiboKey]].
 
== GetAmiiboEcqvCertificate ==
No input. Returns an [[#AmiiboEcqvCertificate|AmiiboEcqvCertificate]].
 
== GetAmiiboEcdsaCertificate ==
No input. Returns an [[#AmiiboEcdsaCertificate|AmiiboEcdsaCertificate]].
 
== GetAmiiboEcqvBlsKey ==
No input. Returns an [[#AmiiboEcqvBlsKey|AmiiboEcqvBlsKey]].


== GetDeviceId ==
== GetAmiiboEcqvBlsCertificate ==
Returns an u64 '''DeviceId''' by reading and converting the hexadecimal string at offset 0xC6 inside [[#EccB233DeviceCertificate]] or [[#Rsa2048DeviceCertificate]].
No input. Returns an [[#AmiiboEcqvBlsCertificate|AmiiboEcqvBlsCertificate]].
 
== GetAmiiboEcqvBlsRootCertificate ==
No input. Returns an [[#AmiiboEcqvBlsRootCertificate|AmiiboEcqvBlsRootCertificate]].


= set:sys =
== GetUsbTypeCPowerSourceCircuitVersion ==
This is "nn::settings::ISystemSettingsServer".
No input. Returns an [[Calibration#UsbTypeCPowerSourceCircuit|UsbTypeCPowerSourceCircuitVersion]].


{| class="wikitable" border="1"
== GetAnalogStickModuleTypeL ==
|-
No input. Returns an [[Calibration#AnalogStickModuleType|AnalogStickModuleType]].
! Cmd || Name
 
|-
== GetAnalogStickModelParameterL ==
No input. Returns an [[#AnalogStickModelParameter|AnalogStickModelParameter]].
 
== GetAnalogStickFactoryCalibrationL ==
No input. Returns an [[#AnalogStickFactoryCalibration|AnalogStickFactoryCalibration]].
 
== GetAnalogStickModuleTypeR ==
No input. Returns an [[Calibration#AnalogStickModuleType|AnalogStickModuleType]].
 
== GetAnalogStickModelParameterR ==
No input. Returns an [[#AnalogStickModelParameter|AnalogStickModelParameter]].
 
== GetAnalogStickFactoryCalibrationR ==
No input. Returns an [[#AnalogStickFactoryCalibration|AnalogStickFactoryCalibration]].
 
== GetConsoleSixAxisSensorModuleType ==
No input. Returns a [[Calibration#ConsoleSixAxisSensorModuleType|ConsoleSixAxisSensorModuleType]].
 
== GetConsoleSixAxisSensorHorizontalOffset ==
No input. Returns a [[#ConsoleSixAxisSensorHorizontalOffset|ConsoleSixAxisSensorHorizontalOffset]].
 
== GetBatteryVersion ==
No input. Returns a [[Calibration#BatteryVersion|BatteryVersion]].
 
== GetDeviceId ==
No input. Returns an u64 '''DeviceId''' by reading and converting the hexadecimal string at offset 0xC6 inside [[#EccB233DeviceCertificate]] or [[#Rsa2048DeviceCertificate]].
 
== GetConsoleSixAxisSensorMountType ==
No input. Returns a [[Calibration#ConsoleSixAxisSensorMountType|ConsoleSixAxisSensorMountType]].
 
= set:sys =
This is "nn::settings::ISystemSettingsServer".
 
{| class="wikitable" border="1"
|-
! Cmd || Name
|-
| 0 || [[#SetLanguageCode]]
| 0 || [[#SetLanguageCode]]
|-
|-
Line 684: Line 781:
|-
|-
| 222 || [17.0.0+] SetForceMonauralOutputFlag
| 222 || [17.0.0+] SetForceMonauralOutputFlag
|-
| 251 || [18.0.0+] GetAccountIdentificationSettings
|-
| 252 || [18.0.0+] SetAccountIdentificationSettings
|-
| 263 || [20.0.0+] AcquireVphymDirtyFlagEventHandle
|-
| 264 || [20.0.0+] GetVphymDirtyFlags
|-
| 282 || [20.0.0+] ConvertToProductModel
|-
| 283 || [20.0.0+] ConvertToProductModelName
|-
| 289 || [20.0.0+] GetDefaultAccountIdentificationFlagSet
|-
| 300 || [20.0.0+] AcquirePushNotificationDirtyFlagEventHandle
|-
| 301 || [20.0.0+] GetPushNotificationDirtyFlags
|-
| 306 || [20.0.0+] GetPinCodeReregistrationGuideAccounts
|-
| 307 || [20.0.0+] SetPinCodeReregistrationGuideAccounts
|}
|}


Line 1,083: Line 1,202:


= AnalogStickFactoryCalibration =
= AnalogStickFactoryCalibration =
This is "nn::settings::factory::AnalogStickFactoryCalibration". This is a 0x9-byte struct.
This is "nn::settings::factory::AnalogStickFactoryCalibration". Same as [[Calibration#AnalogStickFactoryCalibration|AnalogStickFactoryCalibration]].


= AnalogStickModelParameter =
= AnalogStickModelParameter =
This is "nn::settings::factory::AnalogStickModelParameter". This is a 0x12-byte struct.
This is "nn::settings::factory::AnalogStickModelParameter". Same as [[Calibration#AnalogStickModelParameter|AnalogStickModelParameter]].


= BatteryLot =
= BatteryLot =
This is "nn::settings::factory::BatteryLot" or "nn::settings::BatteryLot". This is a 0x18-byte struct.
This is "nn::settings::BatteryLot". This is a 0x18-byte struct.


= BdAddress =
= BdAddress =
Line 1,155: Line 1,274:


= ConsoleSixAxisSensorHorizontalOffset =
= ConsoleSixAxisSensorHorizontalOffset =
This is "nn::settings::factory::ConsoleSixAxisSensorHorizontalOffset".
This is "nn::settings::factory::ConsoleSixAxisSensorHorizontalOffset". Same as [[Calibration#ConsoleSixAxisSensorHorizontalOffset|ConsoleSixAxisSensorHorizontalOffset]].
 
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x2 || X
|-
| 0x2 || 0x2 || Y
|-
| 0x4 || 0x2 || Z
|}


= CountryCode =
= CountryCode =
Line 1,254: Line 1,362:


= SpeakerParameter =
= SpeakerParameter =
This is "nn::settings::factory::SpeakerParameter".
This is "nn::settings::factory::SpeakerParameter". This is copied from the first 0x5A bytes of [[Calibration#SpeakerCalibrationValue|SpeakerCalibrationValue]].
 
= SslCertificate =
This is "nn::settings::factory::SslCertificate". This is a 0x804-byte struct.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,260: Line 1,371:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x2 || Version
| 0x0 || 0x4 || Size
|-
|-
| 0x2 || 0x22 || Reserved
| 0x4 || Variable || Data
|}
 
= SslKey =
This is "nn::settings::factory::SslKey". This is a 0x110-byte struct or a 0x130-byte struct in the extended version.
 
If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
{| class="wikitable" border="1"
|-
|-
| 0x24 || 0x2 || SpeakerHpf2A1
! Offset || Size || Description
|-
|-
| 0x26 || 0x2 || SpeakerHpf2A2
| 0x0 || 0x130 || Key
|-
|-
| 0x28 || 0x2 || SpeakerHpf2H0
| 0x130 || 0x4 || KeyGeneration
|-
|}
| 0x2A || 0x2 || SpeakerEqInputVolume
 
|-
= RegionCode =
| 0x2C || 0x2 || SpeakerEqOutputVolume
This is "nn::settings::factory::RegionCode".
 
{| class="wikitable" border="1"
|-
|-
| 0x2E || 0x2 || SpeakerEqCtrl1
! Value
! Description
|-
|-
| 0x30 || 0x2 || SpeakerEqCtrl2
| 0 || Japan
|-
|-
| 0x32 || 0x2 || SpeakerDrcAgcCtrl2
| 1 || Usa
|-
|-
| 0x34 || 0x2 || SpeakerDrcAgcCtrl3
| 2 || Europe
|-
|-
| 0x36 || 0x2 || SpeakerDrcAgcCtrl1
| 3 || Australia
|-
|-
| 0x38 || 0x2 || SpeakerAnalogVolume
| 4 || China
|-
|-
| 0x3A || 0x2 || HeadphoneAnalogVolume
| 5 || Korea
|-
|-
| 0x3C || 0x2 || SpeakerDigitalVolumeMin
| 6 || Taiwan
|}
 
= AudioOutputMode =
This is "nn::settings::system::AudioOutputMode".
 
{| class="wikitable" border="1"
|-
|-
| 0x3E || 0x2 || SpeakerDigitalVolumeMax
! Value
! Description
|-
|-
| 0x40 || 0x2 || HeadphoneDigitalVolumeMin
| 0 || 1ch
|-
|-
| 0x42 || 0x2 || HeadphoneDigitalVolumeMax
| 1 || 2ch
|-
|-
| 0x44 || 0x2 || MicFixedGain
| 2 || 5_1ch
|-
|-
| 0x46 || 0x2 || MicVariableVolumeMin
| 3 || 7_1ch
|-
| 0x48 || 0x2 || MicVariableVolumeMax
|-
| 0x4A || 0x10 || Reserved
|}
|}


= SslCertificate =
= AudioOutputModeTarget =
This is "nn::settings::factory::SslCertificate". This is a 0x804-byte struct.
This is "nn::settings::system::AudioOutputModeTarget".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
| 0 || Hdmi
|-
|-
| 0x0 || 0x4 || Size
| 1 || Speaker
|-
|-
| 0x4 || Variable || Data
| 2 || Headphone
|}
|}


= SslKey =
= AudioVolumeTarget =
This is "nn::settings::factory::SslKey". This is a 0x110-byte struct or a 0x130-byte struct in the extended version.
This is "nn::settings::system::AudioVolumeTarget".


If [[Calibration#CAL0|Calibration Version]] >= 9, this is now:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
|-
| 0x0 || 0x130 || Key
| 0 || Speaker
|-
|-
| 0x130 || 0x4 || KeyGeneration
| 1 || Headphone
|}
|}


= RegionCode =
= DeviceNickName =
This is "nn::settings::factory::RegionCode".
This is "nn::settings::system::DeviceNickName". This is a 0x80-byte struct.
 
= Edid =
This is "nn::settings::system::Edid".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
|-
| 0 || Japan
| 0x0 || 0x80 || Data0
|-
|-
| 1 || Usa
| 0x80 || 0x80 || Data1
|-
|-
| 2 || Europe
| 0x100 || 0x80 || [13.0.0+] Data2
|-
|-
| 3 || Australia
| 0x180 || 0x80 || [13.0.0+] Data3
|-
| 4 || China
|-
| 5 || Korea
|-
| 6 || Taiwan
|}
|}


Line 1,374: Line 1,497:
|}
|}


= AudioOutputMode =
= UserSelectorFlag =
This is "nn::settings::system::AudioOutputMode".
This is "nn::settings::system::UserSelectorFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
! Bits
! Value
! Description
! Description
|-
|-
| 0 || 1ch
| 0 || SkipsIfSingleUser
|-
|-
| 1 || 2ch
| 31 || Unknown
|-
| 2 || 5_1ch
|-
| 3 || 7_1ch
|}
|}


= AudioOutputModeTarget =
= UserSelectorSettings =
This is "nn::settings::system::AudioOutputModeTarget".
This is "nn::settings::system::UserSelectorSettings".
 
This contains an u32 bitmask for [[#UserSelectorFlag]].
 
= AccountSettings =
This is "nn::settings::system::AccountSettings".
 
This contains [[#UserSelectorSettings]].
 
= ClockSourceId =
This is "nn::settings::system::ClockSourceId".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,399: Line 1,527:
! Description
! Description
|-
|-
| 0 || Hdmi
| 0 || NetworkSystemClock
|-
|-
| 1 || Speaker
| 1 || SteadyClock
|-
| 2 || Headphone
|}
|}


= AudioVolumeTarget =
= NotificationVolume =
This is "nn::settings::system::AudioVolumeTarget".
This is "nn::settings::system::NotificationVolume".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,414: Line 1,540:
! Description
! Description
|-
|-
| 0 || Speaker
| 0 || Mute
|-
| 1 || Low
|-
|-
| 1 || Headphone
| 2 || High
|}
|}


= DeviceNickName =
= FriendPresenceOverlayPermission =
This is "nn::settings::system::DeviceNickName". This is a 0x80-byte struct.
This is "nn::settings::system::FriendPresenceOverlayPermission".
 
= Edid =
This is "nn::settings::system::Edid".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
! Value
! Description
|-
| 0 || NotConfirmed
|-
| 1 || NoDisplay
|-
|-
| 0x0 || 0x80 || Data0
| 2 || FavoriteFriends
|-
|-
| 0x80 || 0x80 || Data1
| 3 || Friends
|}
|}


= UserSelectorFlag =
= TvResolution =
This is "nn::settings::system::UserSelectorFlag".
This is "nn::settings::system::TvResolution".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Bits
|-
! Value
! Description
! Description
|-
|-
| 0 || SkipsIfSingleUser
| 0 || Auto
|-
| 1 || 1080p
|-
|-
| 31 || Unknown
| 2 || 720p
|}
|-
| 3 || 480p
|}


= UserSelectorSettings =
= HdmiContentType =
This is "nn::settings::system::UserSelectorSettings".
This is "nn::settings::system::HdmiContentType".
 
This contains an u32 bitmask for [[#UserSelectorFlag]].
 
= AccountSettings =
This is "nn::settings::system::AccountSettings".
 
This contains [[#UserSelectorSettings]].
 
= ClockSourceId =
This is "nn::settings::system::ClockSourceId".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,464: Line 1,589:
! Description
! Description
|-
|-
| 0 || NetworkSystemClock
| 0 || None
|-
| 1 || Graphics
|-
| 2 || Cinema
|-
| 3 || Photo
|-
|-
| 1 || SteadyClock
| 4 || Game
|}
|}


= NotificationVolume =
= RgbRange =
This is "nn::settings::system::NotificationVolume".
This is "nn::settings::system::RgbRange".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,477: Line 1,608:
! Description
! Description
|-
|-
| 0 || Mute
| 0 || Auto
|-
|-
| 1 || Low
| 1 || Full
|-
|-
| 2 || High
| 2 || Limited
|}
|}


= FriendPresenceOverlayPermission =
= CmuMode =
This is "nn::settings::system::FriendPresenceOverlayPermission".
This is "nn::settings::system::CmuMode".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,492: Line 1,623:
! Description
! Description
|-
|-
| 0 || NotConfirmed
| 0 || None
|-
|-
| 1 || NoDisplay
| 1 || ColorInvert
|-
|-
| 2 || FavoriteFriends
| 2 || HighContrast
|-
|-
| 3 || Friends
| 3 || GrayScale
|}
|}


= TvResolution =
= HandheldSleepPlan =
This is "nn::settings::system::TvResolution".
This is "nn::settings::system::HandheldSleepPlan".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,509: Line 1,640:
! Description
! Description
|-
|-
| 0 || Auto
| 0 || 1Min
|-
|-
| 1 || 1080p
| 1 || 3Min
|-
|-
| 2 || 720p
| 2 || 5Min
|-
|-
| 3 || 480p
| 3 || 10Min
|-
| 4 || 30Min
|-
| 5 || Never
|}
|}


= HdmiContentType =
= ConsoleSleepPlan =
This is "nn::settings::system::HdmiContentType".
This is "nn::settings::system::ConsoleSleepPlan".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,526: Line 1,661:
! Description
! Description
|-
|-
| 0 || None
| 0 || 1Hour
|-
| 1 || 2Hour
|-
|-
| 1 || Graphics
| 2 || 3Hour
|-
|-
| 2 || Cinema
| 3 || 6Hour
|-
|-
| 3 || Photo
| 4 || 12Hour
|-
|-
| 4 || Game
| 5 || Never
|}
|}


= RgbRange =
= EulaVersion =
This is "nn::settings::system::RgbRange".
This is "nn::settings::system::EulaVersion".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
|-
| 0 || Auto
| 0x0 || 0x4 || Version
|-
| 0x4 || 0x4 || [[#RegionCode_2|RegionCode]]
|-
| 0x8 || 0x4 || [[#SteadyClockSourceId|ClockType]]
|-
| 0xC || 0x4 || Reserved
|-
|-
| 1 || Full
| 0x10 || 0x8 || [[Glue_services#PosixTime|NetworkSystemClock]]
|-
|-
| 2 || Limited
| 0x18 || 0x18 || [[Glue_services#SteadyClockTimePoint|SteadyClock]]
|}
|}


= CmuMode =
= FirmwareVersion =
This is "nn::settings::system::CmuMode".
This is "nn::settings::system::FirmwareVersion".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
| 0x0 || 0x1 || Major
|-
|-
| 0 || None
| 0x1 || 0x1 || Minor
|-
|-
| 1 || ColorInvert
| 0x2 || 0x1 || Micro
|-
|-
| 2 || HighContrast
| 0x3 || 0x1 || Reserved
|-
|-
| 3 || GrayScale
| 0x4 || 0x4 || ReleaseNumber
|}
 
= HandheldSleepPlan =
This is "nn::settings::system::HandheldSleepPlan".
 
{| class="wikitable" border="1"
|-
|-
! Value
| 0x8 || 0x20 || Platform
! Description
|-
|-
| 0 || 1Min
| 0x28 || 0x40 || Revision
|-
|-
| 1 || 3Min
| 0x68 || 0x18 || DisplayVersion
|-
|-
| 2 || 5Min
| 0x80 || 0x80 || DisplayName
|-
| 3 || 10Min
|-
| 4 || 30Min
|-
| 5 || Never
|}
|}


= ConsoleSleepPlan =
= PtmFuelGaugeParameter =
This is "nn::settings::system::ConsoleSleepPlan".
This is "nn::settings::system::PtmFuelGaugeParameter".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value
! Offset || Size || Description
! Description
|-
|-
| 0 || 1Hour
| 0x0 || 0x2 || Rcomp0
|-
|-
| 1 || 2Hour
| 0x2 || 0x2 || TempCo
|-
|-
| 2 || 3Hour
| 0x4 || 0x2 || FullCap
|-
| 0x6 || 0x2 || FullCapNom
|-
| 0x8 || 0x2 || IavgEmpty
|-
| 0xA || 0x2 || QrTable00
|-
| 0xC || 0x2 || QrTable10
|-
| 0xE || 0x2 || QrTable20
|-
|-
| 3 || 6Hour
| 0x10 || 0x2 || QrTable30
|-
|-
| 4 || 12Hour
| 0x12 || 0x2 || Reserved
|-
|-
| 5 || Never
| 0x14 || 0x4 || Cycles
|}
|}


= EulaVersion =
= SecuritySettings =
This is "nn::settings::system::EulaVersion".
This is "nn::settings::system::SecuritySettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,618: Line 1,757:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || Version
| 0x0 || 0x4 || AuthenticationMode
|-
|-
| 0x4 || 0x4 || [[#RegionCode_2|RegionCode]]
| 0x4 || 0x4 || EncryptionMode
|-
|-
| 0x8 || 0x4 || [[#SteadyClockSourceId|ClockType]]
| 0x8 || 0x40 || KeyMaterial
|-
|-
| 0xC || 0x4 || Reserved
| 0x48 || 0x4 || KeyMaterialLength
|-
| 0x10 || 0x8 || [[Glue_services#PosixTime|NetworkSystemClock]]
|-
| 0x18 || 0x18 || [[Glue_services#SteadyClockTimePoint|SteadyClock]]
|}
|}


= FirmwareVersion =
= NotificationTime =
This is "nn::settings::system::FirmwareVersion".
This is "nn::settings::system::NotificationTime".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,638: Line 1,773:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x1 || Major
| 0x0 || 0x4 || Hour
|-
|-
| 0x1 || 0x1 || Minor
| 0x4 || 0x4 || Minute
|}
 
= NotificationFlag =
This is "nn::settings::system::NotificationFlag".
 
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
| 0x2 || 0x1 || Micro
| 0 || RingtoneFlag
|-
|-
| 0x3 || 0x1 || Reserved
| 1 || DownloadCompletionFlag
|-
|-
| 0x4 || 0x4 || ReleaseNumber
| 8 || EnablesNews
|-
|-
| 0x8 || 0x20 || Platform
| 9 || IncomingLampFlag
|-
|}
| 0x28 || 0x40 || Revision
|-
| 0x68 || 0x18 || DisplayVersion
|-
| 0x80 || 0x80 || DisplayName
|}


= PtmFuelGaugeParameter =
= NotificationSettings =
This is "nn::settings::system::PtmFuelGaugeParameter".
This is "nn::settings::system::NotificationSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,664: Line 1,801:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x2 || Rcomp0
| 0x0 || 0x4 || [[#NotificationFlag|Flags]]
|-
|-
| 0x2 || 0x2 || TempCo
| 0x4 || 0x4 || [[#NotificationVolume|Volume]]
|-
|-
| 0x4 || 0x2 || FullCap
| 0x8 || 0x8 || [[#NotificationTime|HeadTime]]
|-
|-
| 0x6 || 0x2 || FullCapNom
| 0x10 || 0x8 || [[#NotificationTime|TailTime]]
|}
 
= AccountNotificationFlag =
This is "nn::settings::system::AccountNotificationFlag".
 
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
| 0x8 || 0x2 || IavgEmpty
| 0 || FriendOnlineFlag
|-
|-
| 0xA || 0x2 || QrTable00
| 1 || FriendRequestFlag
|-
|-
| 0xC || 0x2 || QrTable10
| 8 || CoralInvitationFlag
|-
| 0xE || 0x2 || QrTable20
|-
| 0x10 || 0x2 || QrTable30
|-
| 0x12 || 0x2 || Reserved
|-
| 0x14 || 0x4 || Cycles
|}
|}


= SecuritySettings =
= AccountNotificationSettings =
This is "nn::settings::system::SecuritySettings".
This is "nn::settings::system::AccountNotificationSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,694: Line 1,831:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || AuthenticationMode
| 0x0 || 0x10 || [[Account_services#Uid|Uid]]
|-
| 0x10 || 0x4 || [[#AccountNotificationFlag|Flags]]
|-
|-
| 0x4 || 0x4 || EncryptionMode
| 0x14 || 0x1 || [[#FriendPresenceOverlayPermission|FriendPresenceOverlayPermission]]
|-
|-
| 0x8 || 0x40 || KeyMaterial
| 0x15 || 0x1 || [[#FriendPresenceOverlayPermission|FriendInvitationOverlayPermission]]
|-
|-
| 0x48 || 0x4 || KeyMaterialLength
| 0x16 || 0x2 || Reserved
|}
|}


= NotificationTime =
= TvFlag =
This is "nn::settings::system::NotificationTime".
This is "nn::settings::system::TvFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
! Offset || Size || Description
| 0 || Allows4k
|-
| 1 || Allows3d
|-
|-
| 0x0 || 0x4 || Hour
| 2 || AllowsCec
|-
|-
| 0x4 || 0x4 || Minute
| 3 || PreventsScreenBurnIn
|}
|}


= NotificationFlag =
= TvSettings =
This is "nn::settings::system::NotificationFlag".
This is "nn::settings::system::TvSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
| 0 || RingtoneFlag
! Offset || Size || Description
|-
|-
| 1 || DownloadCompletionFlag
| 0x0 || 0x4 || [[#TvFlag|Flags]]
|-
|-
| 8 || EnablesNews
| 0x4 || 0x4 || [[#TvResolution|TvResolution]]
|-
|-
| 9 || IncomingLampFlag
| 0x8 || 0x4 || [[#HdmiContentType|HdmiContentType]]
|}
 
= NotificationSettings =
This is "nn::settings::system::NotificationSettings".
 
{| class="wikitable" border="1"
|-
|-
! Offset || Size || Description
| 0xC || 0x4 || [[#RgbRange|RgbRange]]
|-
|-
| 0x0 || 0x4 || [[#NotificationFlag|Flags]]
| 0x10 || 0x4 || [[#CmuMode|CmuMode]]
|-
|-
| 0x4 || 0x4 || [[#NotificationVolume|Volume]]
| 0x14 || 0x4 || TvUnderscan
|-
|-
| 0x8 || 0x8 || [[#NotificationTime|HeadTime]]
| 0x18 || 0x4 || TvGamma
|-
|-
| 0x10 || 0x8 || [[#NotificationTime|TailTime]]
| 0x1C || 0x4 || ContrastRatio
|}
|}


= AccountNotificationFlag =
= DataDeletionFlag =
This is "nn::settings::system::AccountNotificationFlag".
This is "nn::settings::system::DataDeletionFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,754: Line 1,889:
! Description
! Description
|-
|-
| 0 || FriendOnlineFlag
| 0 || AutomaticDeletionFlag
|-
| 1 || FriendRequestFlag
|-
| 8 || CoralInvitationFlag
|}
|}


= AccountNotificationSettings =
= DataDeletionSettings =
This is "nn::settings::system::AccountNotificationSettings".
This is "nn::settings::system::DataDeletionSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,768: Line 1,899:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x10 || [[Account_services#Uid|Uid]]
| 0x0 || 0x4 || [[#DataDeletionFlag|Flags]]
|-
|-
| 0x10 || 0x4 || [[#AccountNotificationFlag|Flags]]
| 0x4 || 0x4 || UseCount
|-
|}
| 0x14 || 0x1 || [[#FriendPresenceOverlayPermission|FriendPresenceOverlayPermission]]
 
|-
= SleepFlag =
| 0x15 || 0x1 || [[#FriendPresenceOverlayPermission|FriendInvitationOverlayPermission]]
This is "nn::settings::system::SleepFlag".
|-
| 0x16 || 0x2 || Reserved
|}
 
= TvFlag =
This is "nn::settings::system::TvFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,786: Line 1,911:
! Description
! Description
|-
|-
| 0 || Allows4k
| 0 || SleepsWhilePlayingMedia
|-
|-
| 1 || Allows3d
| 1 || WakesAtPowerStateChange
|-
| 2 || AllowsCec
|-
| 3 || PreventsScreenBurnIn
|}
|}


= TvSettings =
= SleepSettings =
This is "nn::settings::system::TvSettings".
This is "nn::settings::system::SleepSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,802: Line 1,923:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || [[#TvFlag|Flags]]
| 0x0 || 0x4 || [[#SleepFlag|Flags]]
|-
|-
| 0x4 || 0x4 || [[#TvResolution|TvResolution]]
| 0x4 || 0x4 || [[#HandheldSleepPlan|HandheldSleepPlan]]
|-
|-
| 0x8 || 0x4 || [[#HdmiContentType|HdmiContentType]]
| 0x8 || 0x4 || [[#ConsoleSleepPlan|ConsoleSleepPlan]]
|-
|}
| 0xC || 0x4 || [[#RgbRange|RgbRange]]
 
|-
= InitialLaunchFlag =
| 0x10 || 0x4 || [[#CmuMode|CmuMode]]
This is "nn::settings::system::InitialLaunchFlag".
|-
| 0x14 || 0x4 || TvUnderscan
|-
| 0x18 || 0x4 || TvGamma
|-
| 0x1C || 0x4 || ContrastRatio
|}
 
= DataDeletionFlag =
This is "nn::settings::system::DataDeletionFlag".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,826: Line 1,937:
! Description
! Description
|-
|-
| 0 || AutomaticDeletionFlag
| 0 || InitialLaunchCompletionFlag
|-
| 8 || InitialLaunchUserAdditionFlag
|-
| 16 || InitialLaunchTimestampFlag
|}
|}


= DataDeletionSettings =
= InitialLaunchSettings =
This is "nn::settings::system::DataDeletionSettings".
This is "nn::settings::system::InitialLaunchSettings". This struct is 8-byte aligned.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,836: Line 1,951:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || [[#DataDeletionFlag|Flags]]
| 0x0 || 0x4 || [[#InitialLaunchFlag|Flags]]
|-
|-
| 0x4 || 0x4 || UseCount
| 0x4 || 0x4 || Reserved
|-
| 0x8 || 0x18 || [[Glue_services#SteadyClockTimePoint|TimeStamp]]
|}
|}


= SleepFlag =
= RebootlessSystemUpdateVersion =
This is "nn::settings::system::SleepFlag".
This is "nn::settings::system::RebootlessSystemUpdateVersion". This struct is 4-byte aligned.


{| class="wikitable" border="1"
This is the content of the RebootlessSystemUpdateVersion SystemData, in the "/version" file.
! Bits
! Description
|-
| 0 || SleepsWhilePlayingMedia
|-
| 1 || WakesAtPowerStateChange
|}
 
= SleepSettings =
This is "nn::settings::system::SleepSettings".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,860: Line 1,967:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x0 || 0x4 || [[#SleepFlag|Flags]]
| 0x0 || 0x4 || Version
|-
|-
| 0x4 || 0x4 || [[#HandheldSleepPlan|HandheldSleepPlan]]
| 0x4 || 0x1C || Reserved
|-
|-
| 0x8 || 0x4 || [[#ConsoleSleepPlan|ConsoleSleepPlan]]
| 0x20 || 0x20 || DisplayVersion
|}
|}


= InitialLaunchFlag =
= PrimaryAlbumStorage =
This is "nn::settings::system::InitialLaunchFlag".
This is "nn::settings::system::PrimaryAlbumStorage".
 
{| class="wikitable" border="1"
! Bits
! Description
|-
| 0 || InitialLaunchCompletionFlag
|-
| 8 || InitialLaunchUserAdditionFlag
|-
| 16 || InitialLaunchTimestampFlag
|}
 
= InitialLaunchSettings =
This is "nn::settings::system::InitialLaunchSettings". This struct is 8-byte aligned.
 
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x4 || [[#InitialLaunchFlag|Flags]]
|-
| 0x4 || 0x4 || Reserved
|-
| 0x8 || 0x18 || [[Glue_services#SteadyClockTimePoint|TimeStamp]]
|}
 
= RebootlessSystemUpdateVersion =
This is "nn::settings::system::RebootlessSystemUpdateVersion". This struct is 4-byte aligned.
 
This is the content of the RebootlessSystemUpdateVersion SystemData, in the "/version" file.
 
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x4 || Version
|-
| 0x4 || 0x1C || Reserved
|-
| 0x20 || 0x20 || DisplayVersion
|}
 
= PrimaryAlbumStorage =
This is "nn::settings::system::PrimaryAlbumStorage".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 2,006: Line 2,069:
This is "nn::settings::system::TouchScreenMode".
This is "nn::settings::system::TouchScreenMode".


This is an u8. This controls "Touch-Screen Sensitivity", values:
{| class="wikitable" border="1"
* 0: Stylus.
|-
* 1: Standard, the default.
! Value
! Description
|-
| 0 || Stylus
|-
| 1 || Standard
|}


= ButtonConfigSettings =
= ButtonConfigSettings =
Line 2,038: Line 2,107:
| 0x0 || 0x6 || [[BTM_services#BdAddress|BdAddr]]
| 0x0 || 0x6 || [[BTM_services#BdAddress|BdAddr]]
|-
|-
| 0x6 || 0x20 || [[BTM_services#BdName|DeviceName]]
| 0x6 || 0x20 || [13.0.0+] Reserved ([1.0.0-12.1.0] [[BTM_services#BdName|DeviceName]])
|-
|-
| 0x26 || 0x3 || [[BTM_services#ClassOfDevice|ClassOfDevice]]
| 0x26 || 0x3 || [[BTM_services#ClassOfDevice|ClassOfDevice]]
Line 2,070: Line 2,139:
| 0xCC || 0x9 || Brr
| 0xCC || 0x9 || Brr
|-
|-
| 0xD5 || 0x12B || Reserved
| 0xD5 || 0x1 || [13.0.0+] AudioSourceVolume
|-
| 0xD6 || 0xF9 || [13.0.0+] DeviceName
|-
| 0x1CF || 0x1 || [15.0.0+] AudioSinkVolume
|-
| 0x1D0 || 0x4 || [14.0.0+] AudioFlags
|-
| 0x1D4 || 0x2C || Reserved
|}
|}