Difference between revisions of "Backlight services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(Findings related with playing with the lbl service. Thanks to CTCaer for coming up with names)
m (AL sensor -> ambient light sensor)
Line 69: Line 69:
  
 
==GetAlsComputedBacklightLevel==
 
==GetAlsComputedBacklightLevel==
No input. Returns an output u32 int of the backlight level computed from the AL sensor.  
+
No input. Returns an output u32 int of the backlight level computed from the ambient light sensor.  
  
 
==GetAutoBrightnessSetting==
 
==GetAutoBrightnessSetting==

Revision as of 08:51, 2 October 2018

lbl

This is "nn::lbl::detail::ILblController".

Cmd Name
0
1
2
3 GetCurrentBacklightLevel
4
5 GetAlsComputedBacklightLevel
6 TurnOnBacklight
7 TurnOffBacklight
8 GetBacklightStatus
9
10
11
12
13
14
15 GetAutoBrightnessSetting
16 ReadRawLightSensor
17
18
19
20
21
22
23 [3.0.0+]
24 [3.0.0+]
25 [3.0.0+]
26 [3.0.0+] #EnableVrMode
27 [3.0.0+] #DisableVrMode
28 [3.0.0+] #GetVrMode

GetCurrentBacklightLevel

No input. Returns an output u32 int of the current backlight level.

GetAlsComputedBacklightLevel

No input. Returns an output u32 int of the backlight level computed from the ambient light sensor.

GetAutoBrightnessSetting

No input. Returns an output u8 bool indicating whether auto brightness is enabled.

EnableVrMode

No input/output. Used by AM_services#SetVrModeEnabled.

Sets a global state field to 0x1.

DisableVrMode

No input/output. Used by AM_services#SetVrModeEnabled.

Sets the global state field used by #EnableVrMode to 0x0.

GetVrMode

No input. Returns an output u8 bool set by the above commands.