Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions Documentation/ABI/testing/sysfs-class-led-driver-hid-asus
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
What: /sys/class/leds/asus::keyboard/
What: /sys/class/leds/asus::lightbar/
What: /sys/class/leds/asus::logo/
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: ASUS Aura keyboard, chassis lightbar, and lid-logo Dynamic
Lighting nodes. Each node accepts its own effect, palette, and
(where supported) direct RGB writes.

Ownership matches Windows Dynamic Lighting / Armoury Crate:
when a HID LampArray sibling (Usage Page 0x59) is present,
``static`` and ``direct`` on ``asus::keyboard`` /
``asus::lightbar`` are host RGB on that interface and do not
release LampArray. ``asus::logo`` has no LampArray lamps, so
``static`` there still uses Aura firmware and releases a
controlled LampArray (sibling host-RGB frames are re-pushed).
Firmware animations (breathe, rainbow_*, pulse, …) use Aura
0xb3/0xb5/0xb4 after releasing LampArray; sibling host-RGB
frames are re-pushed afterwards. Without LampArray,
``static`` uses Aura 0xb3 and ``direct`` falls back to Aura
0xBC.

On asus::keyboard, brightness is the firmware backlight dimmer
and does not gate the zone; enabled gates the zone with the
power command. asus::lightbar has no separate firmware dimmer:
zone on/off is ``enabled`` only. asus::logo is registered when
Aura discovery reports a lid-logo region (probe byte 13 bit 0);
it owns Aura zone 0x05 and has no LampArray path. Lid and
rear-glow protocol bytes follow the keyboard ``power_states``
bits. The lightbar and logo nodes are absent when the device
has no matching region.

What: /sys/class/leds/asus::slash/
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: ASUS ROG Slash Dynamic Lighting node. ``effect`` /
``effect_index`` select Slash modes (Static, Bounce, …).
``speed`` maps the former Slash interval (0-5). ``enabled``
gates on/off via the Slash options packet; ``brightness`` is
the firmware intensity (0-255) and does not gate the bar.
``power_states`` supports boot/sleep/shutdown persistence
(protocol 0xd3 a0/a1/a4). Lid-closed and battery triggers are
not exposed through Dynamic Lighting power_states. On Aura
keyboards Slash uses feature report 0x5e. USB ID 0x193b is
shared with AniMe Matrix; the driver claims it for Slash only
when feature report 0x5e size and DMI board discrimination
select Slash rather than AniMe. The node is gated on
CONFIG_LEDS_CLASS_DYNAMIC.

What: /sys/class/leds/asus::anime/
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: ASUS AniMe Matrix Dynamic Lighting node (USB 0x193b when
discriminated as AniMe). ``brightness`` is the firmware
display level (0-3). ``enabled`` maps to display on/off.
``effect`` selects ``direct`` streaming or programs one
per-power-state builtin slot. Builtin names are prefixed with
the slot (``boot_``, ``awake_``, ``sleep_``, ``shutdown_``);
writing one updates only that slot's firmware stage choice.
``power_states`` gates the firmware powersave-animation engine
for those slots without clearing the stored stage selection.
``direct_buffer`` accepts one intensity byte per LED;
``led_count`` matches the board layout (GA401, GA402, GU604,
G635L, G835L). Unknown AniMe boards use a GA402-like
three-pane layout.

What: /sys/class/leds/asus::xbox_logo/
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: Xbox Guide button LED on ROG Xbox Ally / Xbox Ally X
(``asus::xbox_logo``). Dynamic Lighting exposes ``effect`` /
``effect_index`` and ``speed`` via Ally MCU commands
d1 21 (effect+speed) and d1 20 (brightness 0-3). ``enabled``
gates the Guide LED without changing the last effect.
Present only on Ally devices that advertise Guide LED support
(or Xbox Ally DMI).
166 changes: 166 additions & 0 deletions Documentation/ABI/testing/sysfs-class-leds-dynamic
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
What: /sys/class/leds/<led>/direction
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read/write
Animation propagation direction. Outputs or accepts one of
``left``, ``right``, ``up``, or ``down``. Only visible when the driver supports
directional animations.

What: /sys/class/leds/<led>/direction_index
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Space-separated list of supported animation directions.
Only visible when the driver supports directional animations.

What: /sys/class/leds/<led>/direct_buffer
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: write-only (binary)
Raw packed per-LED stream. The layout is
``direct_sample_size`` bytes per LED (default 3: R, G, B in
sequence); drivers may advertise a different stride (for
example 1 byte per LED on mono matrices). Writing transmits
a direct frame bypassing hardware effect generators. On
success, if the driver publishes an effect named ``direct``,
the class selects that effect. The complete write must total
exactly (led_count * direct_sample_size) bytes; kernfs may
deliver that payload in PAGE_SIZE chunks starting at offset
0. Only visible when the driver implements direct streaming.

What: /sys/class/leds/<led>/direct_sample_size
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Effective bytes per LED for ``direct_buffer`` writes. Reports
the driver's configured stride, or 3 when the driver leaves
the field at 0 (RGB). Always present like ``led_count`` so
userspace can discover the stride before probing
``direct_buffer``; the value is only meaningful when the
driver implements direct streaming.

What: /sys/class/leds/<led>/effect
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read/write
Currently selected hardware or driver-synthesized animation
effect. Reading outputs the effect name. Writing a name from
``effect_index`` selects that effect. Names are defined by the
driver, not by a global enum; userspace must read
``effect_index``. Any active trigger is automatically detached
upon switching effects.

What: /sys/class/leds/<led>/effect_index
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Space-separated list of animation effect names supported by
this LED. The vocabulary is defined by the driver. Lighting
off is not an effect; use ``enabled``.

What: /sys/class/leds/<led>/effects_palette
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read/write
Multi-color stacked palette used by multi-color animation
effects. Reading outputs space-separated 24-bit hex colors
(``#RRGGBB``). Writing accepts a space-separated sequence of
hex triplets. The number of entries must not exceed
``max_palette_entries``. This is the multi-color stack.
``brightness`` remains intensity. Drivers must not encode
lighting-off, or a change of the persisted color, as
``brightness`` 0: removing a trigger sets brightness to
LED_OFF. Only visible when the driver supports programmable
palettes.

What: /sys/class/leds/<led>/enabled
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read/write
Lighting engine on/off as ``true`` or ``false``. Independent
from ``effect``: disabling turns the lights off without
forgetting the selected effect. Only visible when the driver
implements a dedicated enable callback.

What: /sys/class/leds/<led>/enabled_index
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Space-separated list of values accepted by ``enabled``
(``false true``). Only visible when the driver implements a
dedicated enable callback.

What: /sys/class/leds/<led>/led_count
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Total number of individual, addressable LEDs in this zone.
Together with ``direct_sample_size``, this determines the
expected ``direct_buffer`` payload length.

What: /sys/class/leds/<led>/max_palette_entries
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Maximum number of palette entries accepted by
``effects_palette``. Only visible when the driver supports
programmable palettes.

What: /sys/class/leds/<led>/power_states
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read/write
Space-separated list of currently enabled persistence power
states. Writing a space-separated list of state names replaces
the active bitmask (an empty list clears all enabled states).
Only visible on devices supporting power state configuration.

What: /sys/class/leds/<led>/power_states_index
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Space-separated list of system power states supported for
lighting persistence (``boot``, ``awake``, ``sleep``,
``shutdown``). Only visible on devices supporting power state
configuration.

What: /sys/class/leds/<led>/speed
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read/write
Current animation speed level (integer within ``speed_range``).
Only visible when the driver supports adjustable speed.

What: /sys/class/leds/<led>/speed_range
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Minimum and maximum animation speed level accepted by
``speed``. Formatted as ``<min>-<max>``. Only visible when the
driver supports adjustable speed.

What: /sys/class/leds/<led>/zone_type
Date: November 2026
Contact: Marco Scardovi <scardracs@disroot.org>
Contact: Denis Benato <denis.benato@linux.dev>
Description: read
Driver-defined string describing the physical topology of
this lighting zone. Example values include ``generic``,
``keyboard``, ``keyboard_per_key``, ``logo``, and ``lightbar``.
When the driver does not set a zone string, the node reports
``unknown``.
1 change: 1 addition & 0 deletions Documentation/leds/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ LEDs
leds-class
leds-class-flash
leds-class-multicolor
leds-class-dynamic
ledtrig-oneshot
ledtrig-transient
ledtrig-usbport
Expand Down
Loading