mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
413b62304b
The power LED menu never worked on the R36S Original and Clone because nothing consumes the old JELOS quirk vars on mainline: 002-disable-led and battery_led_status poke BSP gpio numbers (gpio77) through the legacy /sys/class/gpio interface that no longer exists, and the R36S DTB did not describe the LED at all. Describe the hardware in the DTS instead. The R36S Original has a bicolor power LED behind a single line (GPIO2_B5, BSP gpio77): high is red, low is the green side, high impedance lights both halves orange, so there is no hardware off; exposed as red:status. The R33S has a mono blue active-low LED on the same pin (the old quirk wrote 1 to disable it), exposed as blue:status with true off. The Clone already had proper LED nodes; its sysfs name is blue:power (color:function, no label). Point DEVICE_POWER_LED at the right sysfs name per device so batocera-gameforce (POWER LED COLOR and DISABLE POWER LED paths) finds the LED, and drop the dead 002-disable-led quirks. On the Original, "off" shows the stock steady green and "on" shows red; heartbeat pulses between the two colors. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>