GS65 Stealth 9SE [16Q4EMS1.109]: airplane mode register (0x2e bit 3) and hard-block-after-S3-resume quirk

Open
#804 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c, linux

Research direction

Start by reading how the existing CONF_G1_3 webcam block is modeled and handled in the module, since the issue identifies register 0x2e as shared with that control. Then check the driver’s resume and rfkill handling against the reported register states; the issue names no source files or tests. Done means deciding whether to document the register behavior or model the resume quirk, with the issue author offering hardware testing.

Written by the indexing model from the issue text.

Description

enhancement

Not a support request - sharing EC findings from a GS65 Stealth 9SE that might be worth adding to the docs or modeling in the module. The firmware is already whitelisted (16Q4EMS1.109, CONF_G1_3, added around #481), but the radio killswitch bits aren't documented anywhere as far as I can tell.

Machine: MSI GS65 Stealth 9SE, EC firmware 16Q4EMS1.109 (build 05/13/2019), BIOS E16Q4IMS.118, kernel 6.8.

Findings (from diffing ec_sys dumps while toggling airplane mode with Fn+F10):

offset role values
0x2e bit 3 airplane mode toggle, acts as a control when written set = radios on, clear = airplane (observed 0x5b / 0x53)
0xf6 radio power status, read-only in effect (writes are ignored) 0x03 on, 0x01 off

0x2e is the same register CONF_G1_3 already uses for the webcam block (bit 1), so it's a shared toggle register.

The quirk that made me dig into this: the GS65 family has a well-known problem on Linux where wifi comes back rfkill-hard-blocked after S3 resume and you have to press Fn+F10 twice. Register-wise, the EC wakes up in an inconsistent state: 0x2e bit 3 is still set ("radios on") while the killswitch is asserted and 0xf6 reads 0x01. That's why a single keypress isn't enough. Clearing bit 3 and setting it again (i.e. replaying the double press: 0x2e <- 0x53, then 0x2e <- 0x5b) reliably clears the hard block - I've had it running from a systemd sleep hook for a while. Restoring 0xf6 to 0x03 does nothing, it's just a status mirror.

The 0x34 register mentioned on the ArchWiki for the 8RF does not react to the airplane toggle at all on this firmware.

Happy to provide full 256-byte dumps of all four states (radios on / airplane / post-resume-blocked / after the fix) or to test patches on this hardware.

Dominant language
C
Stars
507
Forks
172
Avg merge
7d 12h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MControlSuite/msi-ec

All issues in MControlSuite/msi-ec

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.