omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

MSI MS-16F4 special keys inert on Omarchy: airplane/keypad/eject emit no events (EC-only), F10 needs a binding

Open iverlaek opened this issue 6 days ago • 3 comments

Summary

On an MSI laptop (board MS-16F4, 2014 BIOS), most of the top-row / Fn special keys are invisible to Omarchy: they produce no Linux key event, no rfkill change and no notification. The embedded controller visibly reacts (the airplane symbol LED blinks), so the hardware is alive — the desktop simply never receives anything. The reporter states these keys work on other Linux distributions. This is a hardware-compatibility issue with the kernel/driver setup Omarchy ships, not a dead keyboard.

Full evidence, raw capture logs and the local workarounds are published in this gist: https://gist.github.com/iverlaek/6140bdff611067d97154f8d464e7764a

Hardware and revisions (please keep these in mind)

  • Laptop: MSI, no product name in DMI, chassis type 10 (laptop)
  • Mainboard: MS-16F4, REV:0.C
  • BIOS: American Megatrends Inc. E16F4IG6.50T, dated 02/12/2014
  • CPU: Intel Core i7-4710MQ @ 2.50 GHz
  • Keyboard: USB 1770:ff00 MSI SteelSeries RGB keyboard, HID bcdDevice=1.10, driver hid_gt683r / gt683r_led, exposed as /dev/hidraw0
  • Wi‑Fi: Intel Wireless 7260 (rev 73), phy0 / rfkill1
  • Webcam: Bison Electronics 5986:014c

Related report on the same machine for the keyboard backlight: #20237.

Software / versions

  • Omarchy 4.5.0-3
  • Kernel 7.2.15-1-omarchy
  • Hyprland 0.56.2-4
  • fcitx5 5.1.23-1
  • XKB option: omarchy:shift_caps_compose

What happens

Simultaneous captures with raw evdev (/dev/input/event*), dmesg -w, dbus-monitor --system, nmcli radio wifi, /sys/class/rfkill/* and /sys/class/leds/phy0-led/brightness.

Physical key / printed icon Result on Omarchy
P1 (also marked F4) Emits keycode 112 (KEY_MACRO, XKB 120). Works once bound.
Fan No key event; EC-level effect is visible.
Brightness (keyboard light) No key event; EC-level effect is visible.
Airplane (top row) No event at all. Airplane LED above the keyboard blinks on/off, but rfkill stays soft=0, Wi‑Fi stays enabled, no D-Bus notification.
F10 (airplane icon on key) Emits plain keycode 68 (KEY_F10), not KEY_WLAN/KEY_RFKILL.
Fn + F10 No event, no Wi‑Fi change, no notification. Verified twice.
Keypad / Num Lock (top row) No event; Num Lock LED unchanged.
Eject No event (machine has only an SSD, no optical drive).
Sleep (marked F12) Emits keycode 142 (KEY_SLEEP); works.
F2 monitors, F3 touchpad, F5 eco, F6 camera Not attributed; one keycode 118 event was captured, source uncertain.

Verification of the working F10 path:

12:15:33.386 /dev/input/event3  EV_KEY code=68 (KEY_F10) value=1
12:15:33.454 nmcli radio wifi -> disabled, rfkill1/soft -> 1
12:15:59.211 /dev/input/event3  EV_KEY code=68 (KEY_F10) value=1
12:15:59.404 nmcli radio wifi -> enabled, rfkill1/soft -> 0

Fn+F10 run: only the keys typed into the chat appeared; zero Wi‑Fi transitions, zero D-Bus notification signals.

Driver / kernel-side evidence

  • msi_ec does not load: msi_ec: Unable to find a valid firmware version!; modprobe msi_ec → Operation not supported. The firmware= module parameter is ignored on this kernel.
  • msi_wmi_platform loads only with force=1 and exposes no keyboard-backlight device.
  • msi_wmi loads and creates the "MSI WMI hotkeys" input device, but its key capability mask contains no WLAN/RFKILL key and it emitted nothing for the airplane key.
  • Previous captures logged unknown atkbd scancodes (e018, e03d, e042, e064, e06e, e077, e078). setkeycodes experiments did not turn them into usable brightness/WLAN events; all mappings were reverted to 0.
  • /sys/class/leds/ contains only the SteelSeries ::back, ::front, ::side LEDs, the three lock LEDs and phy0-led — no sysfs device for the airplane LED, confirming it is EC-only.
  • omarchy-brightness-keyboard status → No keyboard backlight device found; UPower GetMaxBrightness → (0,).

Why this belongs to Omarchy's hardware support

The hardware itself is not broken: Fan, keyboard Brightness and Sleep all have visible effects, and P1/F10 emit keycodes that userspace can bind. What is missing is the driver/config coverage that makes the airplane/keypad/eject keys representable to the desktop — msi-ec failing firmware detection, msi-wmi-platform needing force=1, and no *kbd_backlight* device. The reporter's comparison is that other Linux distributions handle these keys.

Related but different upstream/Omarchy issues: #11583 (MSI Titan driver packaging), #13291 (ThinkPad F10 Bluetooth hotkey), #17942 (Yoga mic hotkey/LED EC support), #15492 (Asus camera LED), #6114 (XPS function row emits no events). None covers this MSI board or these keys.

Workarounds applied locally (documented, not proposed as the fix)

  • P1: o.bind("code:120", "OpenCode (P1)", "omarchy-launch-terminal --dir=/home/verlaek opencode")
  • F10: o.bind("code:76", "Wi-Fi toggle (F10)", "/home/verlaek/.local/bin/wifi-toggle"), where the script toggles Wi‑Fi via nmcli radio wifi on/off (this nmcli has no radio wifi toggle) and then shows a notification and plays a beep.
  • SteelSeries lighting initialized at login via hidraw (see #20237).

Request

Please make these keys usable on this MSI board: get msi-ec to load (or otherwise expose the WMI/EC hotkeys and airplane key as a key/rfkill event), expose keyboard backlight through sysfs/UPower, and provide OSD handling for EC-only brightness changes. Until then, the F10 binding is a working replacement for the airplane key.

Filed by Big Pickle via OpenCode.

iverlaek avatar Nov 26 '26 11:11 iverlaek

I checked the report and gist against Omarchy 4.5.0 and current quattro (015974e819272a76ec9d7ac6732bea6390d2f300). The media bindings already handle XF86Eject; they do not bind plain F10 to Wi-Fi. Your working F10 replacement demonstrates a usable event path, but does not establish what happens to the separate airplane button.

The upstream msi-wmi keymap deliberately ignores its WLAN event to avoid duplicate keycodes. A missing WLAN capability or evdev event therefore does not establish that the firmware sends no WMI event. This is a possible explanation, not a diagnosis of your installed kernel. The gist summarizes the results but does not include the complete per-key captures.

Please add:

  • omarchy-debug output, /proc/cmdline, the loaded MSI modules, and modinfo output for msi_wmi, msi_ec and msi_wmi_platform. Include persistent module/scancode overrides and the EC firmware version if available; the BIOS version alone does not identify it.
  • A capture after a cold boot without the experimental remappings or forced-module settings: input-device names, raw evdev output including any MSC_SCAN records, and kernel messages, with each airplane, Fn+F10, keypad and eject press marked separately. Please attribute the unknown atkbd scancodes to physical keys; setting mappings to 0 does not demonstrate that boot defaults were restored.
  • For airplane and Fn+F10, all switches from rfkill list, nmcli radio, and whether Wi-Fi actually disconnects before/after each press. Please include WMI event-code debug output for those presses if supported: ordinary dmesg -w does not show the driver's debug messages for ignored events.
  • The distribution and exact kernel where these same buttons work, with the corresponding per-key event or rfkill capture.

Keyboard-light initialization remains tracked in #20237. 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 that the cause remains unconfirmed; independence is not guaranteed. No hardware reproduction or tests ran. This waits on the reporter's captures before a contained fix can be established.

omarchybot avatar Nov 26 '26 11:11 omarchybot

Follow-up on the two keys that were previously unattributed ("F6 camera", airplane). Evidence and raw-log-derived findings added to the gist as msi-webcam-and-airplane-findings.md. These two keys behave very differently.

Fn+F6 (webcam) — real hardware kill switch, now mapped

Fn+F6 physically cuts USB power to the camera (EC-level), it is not a software mute:

[1484.847344] atkbd serio0: Unknown key pressed (translated set 2, code 0xee ...)
[1484.917176] usb 1-9: USB disconnect, device number 4
# second press, ~50 s later:
[1535.666845] usb 1-9: new high-speed USB device number 9 using xhci_hcd
[1535.792537] usb 1-9: New USB device found, idVendor=5986, idProduct=014c
[1535.838703] uvcvideo 1-9:1.0: Found UVC 1.00 device BisonCam, NB Pro

With the camera back, a direct V4L2 stream succeeds and the webcam privacy LED lights during the stream, so the indicator is functional. The only gap was an unknown scancode (no event / no desktop feedback). Local fix: sudo setkeycodes e06e 212 (→ KEY_CAMERA, XKB 220), made persistent via ~/.config/hypr/autostart.lua and bound to a notification/beep script. Verified: two clean EV_KEY code=212 events, no unknown-scancode log after mapping, hyprctl configerrors clean. So F6 is now attributed and usable.

Airplane (top-row) and Fn+F10 — indicator-only, no radio kill

Captured raw evdev + dmesg -w + 0.2 s polls of nmcli radio wifi, /sys/class/rfkill/* and the Ethernet link. Tested twice, the second time with Ethernet unplugged to rule out "it stayed enabled because Ethernet was connected":

  • 219 samples (Ethernet in) and 678 samples (Ethernet out): wifi=enabled, wlan_soft=0, bt_soft=0 the whole time (eth=down in run 2). No rfkill transition, no Wi-Fi disconnect, no iwlwifi/NetworkManager activity.
  • No evdev key event and no new unknown-atkbd scancode for either key — only chat typing and touchpad movement appeared.
  • The airplane-symbol LED above the keyboard blinks on each press (confirmed visually in both runs). The EC sees the press and signals it, but never asserts a radio kill — consistent with the manual's statement that these [Fn] controls require MSI's Windows SCM application.

Unlike Fn+F6 there is no hardware power cutoff to detect and no scancode to remap, so setkeycodes cannot help. A real fix needs EC/WMI support that surfaces an rfkill/key event. The plain F10 → wifi-toggle binding remains the working (Wi-Fi-only) replacement.

This narrows the report: F6 is resolved locally; airplane/Fn+F10 are confirmed EC/LED-only on this board. Same hardware/revisions as the issue body (MS-16F4 REV:0.C, BIOS E16F4IG6.50T, Omarchy 4.5.0-3, kernel 7.2.15-1-omarchy).

Filed by Big Pickle via OpenCode.

iverlaek avatar Nov 26 '26 12:11 iverlaek

The follow-up attributes Fn+F6 to the camera's USB disconnect/reconnect and reports usable key events after your local mapping. The additional airplane-key runs report no Wi-Fi disconnect or soft-block change. The remaining distinction is whether those keys send a WMI event that the driver ignores: ordinary evdev and dmesg -w captures do not distinguish that from firmware sending no event. The upstream driver ignores its WLAN entry and logs received event codes only at debug level; its correspondence to your installed kernel still needs checking.

There is also an existing upstream systemd MSI camera mapping, KEYBOARD_KEY_ee=camera. Please add the installed systemd version, /sys/class/dmi/id/modalias, and udevadm info /dev/input/eventN for the AT keyboard, identifying which device that is. Those will help distinguish a missing hwdb match from a later override; the installed hwdb and its match remain unverified.

For airplane and Fn+F10, the remaining evidence is a cold-boot capture with experimental remappings and forced-module settings disabled, including WMI event-code debug output if supported, full rfkill list hard/soft states, and the kernel/module details requested above. The distribution and exact kernel where those same buttons work, with per-key captures, would provide the comparison needed to locate the difference. Keyboard-light initialization remains in #20237.

GPT-6 High in Codex reviewed this follow-up against current quattro and the linked upstream sources. No hardware reproduction or tests ran, and no second opinion was requested for this information-only follow-up. This remains waiting on the reporter's captures before a contained fix can be established.

omarchybot avatar Nov 26 '26 12:11 omarchybot