From 720dcf1c2925d6c269d236c0d8e79ba4bee91091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Eng=C3=A9libert?= Date: Tue, 26 Aug 2025 22:42:57 +0200 Subject: [PATCH] opi5: leds --- content/blog/opi5u-review/index.md | 19 +++++++++++++++++++ sass/css/_content.scss | 4 ++++ 2 files changed, 23 insertions(+) diff --git a/content/blog/opi5u-review/index.md b/content/blog/opi5u-review/index.md index 39f3a10..9dce797 100644 --- a/content/blog/opi5u-review/index.md +++ b/content/blog/opi5u-review/index.md @@ -143,6 +143,25 @@ Please don't judge the soldering, I only used salvaged material: I made [a program](https://git.txmn.tk/tuxmain/opi-fancontrol) to control the fan depending on the CPU temperature. +## The LEDs + +The board has a green LED and a blue LED that can be controlled. By default, they are pulsing heartbeats. That may be convenient as it indicates the system has booted correctly. The heartbeat frequency also depends on the system load. + +As they are quite bright, they can get annoying, especially if the server is in the living room where someone may want to watch a movie or sleep on the couch. + +The following commands disable the heartbeat behavior, and switches off the LEDs. + +```bash +echo none | sudo tee /sys/class/leds/blue_led/trigger +echo none | sudo tee /sys/class/leds/green_led/trigger +echo 1 | sudo tee /sys/class/leds/blue_led/brightness +echo 1 | sudo tee /sys/class/leds/green_led/brightness +``` + +Heartbeat can be enabled again by replacing `none` with `heartbeat`. The LEDs can be switched on by replacing `1` with `0` (I guess it represents the cathode voltage). + +These settings are not permanent. To make it persist after reboot, add these commands to `/etc/rc.local`. + ## Remaining problems I don't have an IPv6 interface? That's probably because of Armbian (or the model mismatch) as it's a nightly community version. diff --git a/sass/css/_content.scss b/sass/css/_content.scss index 222f2b9..3660d98 100644 --- a/sass/css/_content.scss +++ b/sass/css/_content.scss @@ -46,6 +46,10 @@ code, pre { font-size: 14px; } +code { + white-space: pre; +} + pre { padding: 4px; border-left: 2px solid c.$second_color;