Back to home page

OSCL-LXR

 
 

    


0001 What:           /sys/bus/surface_aggregator/devices/01:0e:01:00:01/state
0002 Date:           July 2022
0003 KernelVersion:  5.20
0004 Contact:        Maximilian Luz <luzmaximilian@gmail.com>
0005 Description:
0006                 This attribute returns a string with the current type-cover
0007                 or device posture, as indicated by the embedded controller.
0008                 Currently returned posture states are:
0009 
0010                 - "disconnected": The type-cover has been disconnected.
0011 
0012                 - "closed": The type-cover has been folded closed and lies on
0013                   top of the display.
0014 
0015                 - "laptop": The type-cover is open and in laptop-mode, i.e.,
0016                   ready for normal use.
0017 
0018                 - "folded-canvas": The type-cover has been folded back
0019                   part-ways, but does not lie flush with the back side of the
0020                   device. In general, this means that the kick-stand is used
0021                   and extended atop of the cover.
0022 
0023                 - "folded-back": The type cover has been fully folded back and
0024                   lies flush with the back side of the device.
0025 
0026                 - "<unknown>": The current state is unknown to the driver, for
0027                   example due to newer as-of-yet unsupported hardware.
0028 
0029                 New states may be introduced with new hardware. Users therefore
0030                 must not rely on this list of states being exhaustive and
0031                 gracefully handle unknown states.
0032 
0033 What:           /sys/bus/surface_aggregator/devices/01:26:01:00:01/state
0034 Date:           July 2022
0035 KernelVersion:  5.20
0036 Contact:        Maximilian Luz <luzmaximilian@gmail.com>
0037 Description:
0038                 This attribute returns a string with the current device posture, as indicated by the embedded controller. Currently
0039                 returned posture states are:
0040 
0041                 - "closed": The lid of the device is closed.
0042 
0043                 - "laptop": The lid of the device is opened and the device
0044                   operates as a normal laptop.
0045 
0046                 - "slate": The screen covers the keyboard or has been flipped
0047                   back and the device operates mainly based on touch input.
0048 
0049                 - "tablet": The device operates as tablet and exclusively
0050                   relies on touch input (or external peripherals).
0051 
0052                 - "<unknown>": The current state is unknown to the driver, for
0053                   example due to newer as-of-yet unsupported hardware.
0054 
0055                 New states may be introduced with new hardware. Users therefore
0056                 must not rely on this list of states being exhaustive and
0057                 gracefully handle unknown states.