MSI SteelSeries RGB keyboard (1770:ff00): backlight starts uninitialized, Fn lightning keys do nothing
What happened
On an MSI laptop with a SteelSeries RGB keyboard (1770:ff00, gt683r_led), the physical keyboard-lighting shortcuts (Fn + numpad - / +) do nothing from a fresh boot/login. The keyboard backlight is effectively uninitialized: no *kbd_backlight* LED exists, omarchy-brightness-keyboard reports no device, and UPower reports max brightness 0.
Once the backlight is initialized once via the hidraw SteelSeries protocol, the same physical Fn + numpad - / + keys immediately work and move the lighting between low and high. So the keys/hardware are fine; Omarchy just leaves the controller in a state where the hardware shortcuts have no visible effect.
Expected
Fn + numpad - / + changes keyboard brightness, and omarchy-brightness-keyboard up|down|toggle|status can see/control the keyboard backlight on a supported laptop.
Actual
Fresh session:
omarchy-brightness-keyboard status→No keyboard backlight device foundgdbus call --system --dest org.freedesktop.UPower --object-path /org/freedesktop/UPower/KbdBacklight --method org.freedesktop.UPower.KbdBacklight.GetMaxBrightness→(0,)SetBrightness 3→org.freedesktop.UPower.GeneralError: error writing brightness 3/sys/class/leds/contains only0003:1770:FF00.0004::{back,front,side}(max_brightness1); writing1to all three produced no visible keyboard light.sudo modprobe msi-ecfails withOperation not supported;dmesgsaysmsi_ec: Unable to find a valid firmware version!msi-wmi-platform force=1loads but creates no keyboard-backlight device.atkbdlogs unknown scancodes (e018,e06e,e077,e078) for some Fn combinations, but mapping them withsetkeycodesdid not produce usable brightness key events in a controlled capture; the physical keys work at the hardware/EC level once lighting is initialized.
System
- Omarchy
4.5.0-3 - Kernel
7.2.15-1-omarchy - Hyprland
0.56.2(package0.56.2-4) - fcitx5
5.1.23 - MSI laptop, board
MS-16F4, BIOSE16F4IG6.50T Bus 001 Device 006: ID 1770:ff00 MSI steel series rgb keyboard, drivergt683r_led
Workaround that works
Send SteelSeries feature reports to /dev/hidraw0 to set the three keyboard regions (1=left, 2=middle, 3=right) to white/high and commit normal mode:
- Set each region:
[1, 2, 66, region, 8, 0, 0, 236](8=white,0=high,236=end of request) - Commit:
[1, 2, 65, 1, 0, 0, 0, 236](1=normal mode)
This is the protocol used by MSIKLM/msi-keyboard. After sending it once, the physical lightning keys work normally for the rest of the session. I installed a small helper script plus an autostart line to do this at every login.
Suggested Omarchy fix
Detect SteelSeries/MSI keyboards (1770:ff00, and related models) and initialize the backlight at session start, or teach omarchy-brightness-keyboard to control this controller via hidraw rather than requiring a sysfs *kbd_backlight* device. A hardware/EC-driven brightness change also needs OSD handling similar to #7665, since no key event reaches Hyprland for these Fn combinations.
This is not a security report; filing under the regular issue tracker as requested by the Omarchy security page.
Filed by Big Pickle via OpenCode.
I checked the report against Omarchy 4.5.0 and current quattro (618051603bd5b97576125cc3365cae39b30d8d57). omarchy-brightness-keyboard only selects /sys/class/leds/*kbd_backlight*, so the reported ::back, ::front and ::side devices cannot reach its brightness or OSD code. That selection is unchanged between those versions. Its implemented actions are up, down, cycle, off and restore; status and toggle are not implemented actions.
The upstream gt683r driver exposes binary panel LEDs and sends different commands from the region/color and commit sequence in MSIKLM. Your packets match MSIKLM's format and constants. This is consistent with your observations, but I have not verified your installed driver or reproduced the initialization on MSI hardware. Broadening the LED-name match alone would not implement that initialization. #7665 concerns observing firmware brightness changes on an existing keyboard-backlight interface; it does not initialize this controller.
Please add:
- The exact working helper and startup entry, including how it selects the HID device, sends the feature reports, and obtains permission to access it.
/dev/hidraw0numbering can change. omarchy-debugoutput, plus/sys/class/leds/andbrightnessctl --listlistings after a cold boot with the helper's autostart disabled, and again after running your helper manually.- Whether the same sysfs brightness writes you tried remain ineffective after initialization, and whether the lighting and Fn keys keep working through lock/unlock and suspend/resume without running the helper again.
GPT-6 High in Codex checked the source; Opus 5.5 High and muse-wonder via pi, thinking high, reviewed it through omabot review. The reviews agreed on the source reading; independence is not guaranteed. No hardware reproduction or tests ran. This waits on those reporter details before a fix can be established; the integration approach then needs a maintainer decision.
Follow-up: the remaining top-row/Fn special keys on this same MS-16F4 machine are tracked separately in #20249 (airplane/keypad/eject emit no events, F10 needs a Wi-Fi binding). Full hardware details and raw capture evidence: https://gist.github.com/iverlaek/6140bdff611067d97154f8d464e7764a
Thanks — here is the requested evidence. All raw files are in https://gist.github.com/iverlaek/300b8de96c45213c1c0661544f8ffa88 (colour/control markers stripped from the omarchy-debug logs and disk/boot UUIDs redacted; brightness values unchanged).
Hardware/software: MSI MS-16F4 REV:0.C, BIOS E16F4IG6.50T (02/12/2014), i7-4710MQ, keyboard USB 1770:ff00; Omarchy 4.5.0-3, kernel 7.2.15-1-omarchy, Hyprland 0.56.2.
Helper and startup
- Full helper: gist
msi-keyboard-light. Python 3, opens the hidraw node read/write and sendsHIDIOCSFEATURE(8)viafcntl.ioctl(fd, (3 << 30) | (ord("H") << 8) | 0x06 | (8 << 16), report). - HID selection: glob
/sys/bus/hid/devices/0003:1770:FF00.*/hidraw/hidraw*(waits up to 15 s at boot), then uses/dev/<basename>. No hardcoded/dev/hidraw0. The only node present was/dev/hidraw0,crw------- root root, sysfs device0003:1770:FF00.0001. - Feature reports: for each region
1,2,3send[1,2,66,region,8,brightness,0,236], withbrightness=0high,1medium,2low; off uses[1,2,66,region,0,3,0,236]. Commit with[1,2,65,1,0,0,0,236]. Same format/constants as MSIKLM. - Permission: run as
sudo -n /home/verlaek/.local/bin/msi-keyboard-light on; the hidraw node is root-only. This account currently has passwordless sudo through the distro's(ALL : ALL) NOPASSWD: ALLrule — no custom sudoers file was added. A packaged fix would need a udev rule/root service or a narrowly scoped sudoers drop-in. - Level is persisted in
~/.local/state/msi-keyboard-light-leveland-last; under sudo the invoking user's home is resolved viaSUDO_UID. - Startup entry:
~/.config/hypr/autostart.lua→o.exec_on_start("sudo -n /home/verlaek/.local/bin/msi-keyboard-light on"). It was commented out for the cold boot and restored afterwards.
Cold boot, helper autostart disabled (gist cold-boot-before-*)
/sys/class/leds/0003:1770:FF00.0001::{back,front,side}/brightness=0,max_brightness=1each.brightnessctl --listshows the same three devices at0(max 1); no*kbd_backlight*device exists.omarchy-brightness-keyboard statusreportsNo keyboard backlight device found; UPowerGetMaxBrightnessreturns(0,).hid-helper.txtshows the autostart line commented. ItsHelper status: highis only the persisted state file, not live hardware.
After running the helper manually once (gist after-helper-*)
- Physically: lighting high, and the physical Fn + numpad
-/+keys now change levels. - The same sysfs/
brightnessctlvalues remain0(max 1) forback/front/side— the exported nodes are binary and do not reflect hidraw-controlled state. omarchy-debug --print --no-sudobefore/after logs are in the gist. The boot-time service used--no-sudoto avoid prompting for sudo; the full local log is ~783 KB and mostly journal noise, so I am not pasting it into the issue.
Sysfs writes after initialization (gist sysfs-write-test.txt)
- Helper
off, thenecho 1to all three::back/front/sidebrightness files: readback becomes1, but lighting stayed visibly off. Writes remain ineffective even after initialization.
Lock/unlock and suspend/resume (gist power-lock-test.txt)
- Lock/unlock: lighting stayed on, Fn keys kept working, helper not rerun.
- Suspend/resume (12:42:16 → 12:42:29 CET): lighting was off after resume. The physical lighting button in the strip above the keyboard ("rising sun") had to be pressed to make the keys controllable again; after that Fn + numpad
-/+worked. Helper not rerun.statusis state-file based, so it does not track the physical button or S3.
This confirms the missing piece is controller initialization over hidraw with the region/commit feature reports, not LED naming or sysfs brightness. Broadening the *kbd_backlight* match alone would not fix it; a fix needs a maintainer decision on adding a hidraw-based helper (root/udev/sudoers) to Omarchy or extending omarchy-brightness-keyboard with that path.
I read the helper and all the new captures, and checked them against current quattro (b6f920a16dbc82149c840f96ba3a25251485ab28). Your post-initialization write test shows why widening the LED-name match would not fix control: the three sysfs values accept 1, but you observed that the keyboard stayed dark. The helper's saved status value cannot establish the live brightness.
The suspend result also leaves two cases to distinguish before adopting an initializer. Please record:
- Whether the physical “rising sun” button alone enables lighting and Fn adjustment after a cold boot with helper autostart disabled, without running the helper.
- Whether running the helper alone after suspend/resume restores lighting and Fn adjustment, without pressing that button.
The existing observations show recovery through hidraw after boot and through the physical button after resume; they do not yet establish that hidraw initialization is necessary or sufficient for both. A login-only initializer would leave the reported resume behavior uncovered.
GPT-6 High in Codex checked the source and supplied evidence; Opus 5.5 High and muse-wonder via pi, thinking high, reviewed them through omabot review. The reviews agreed that no contained Omarchy patch is established; independence is not guaranteed. No helper code or tests ran, and I have not reproduced this on MSI hardware. Choosing kernel-driver support or an Omarchy hidraw backend, including permissions and resume/state handling, remains a maintainer decision. No patch has been filed; this is now waiting on that decision.