技術の家庭菜園

https://tpcbtw.com/

GMKtec M5 Ultra: controlling the CPU fan through the EC (register map and a minimal controller)

Overview

The GMKtec M5 Ultra (Ryzen 7 7730U) has two fans: a small case fan that runs at a fixed speed (not PWM-controlled) and the CPU fan. The CPU fan is the only one that can be controlled, and the BIOS offers only two ways to drive it: Smart Fan (automatic, CPU temperature only) or a fixed PWM percentage. I replaced the stock NVMe SSD (AirDisk 512 GB, which ships with a heatsink) with a WD PC SN740 fitted with a heatsink. A heatsink alone is not enough in this case: the SSD depends on the case airflow, and the only thing that actively changes that airflow is the CPU fan. With Smart Fan the SN740 reaches 70–75 °C under sustained load; at a fixed 100 % it stays around 50 °C but the machine is loud all the time. Nothing on the OS side exposes the CPU fan: FanControl finds no controls, because the fan is driven by the Embedded Controller (EC) firmware and there is no LPC Super I/O.

The fan can nevertheless be controlled from Windows by writing to EC RAM through the ACPI EC ports. This post documents the EC register map that was determined on this machine, how to access the EC safely, and a minimal PowerShell controller that sets the fan level from the higher of the CPU temperature (EC) and the SSD temperature (S.M.A.R.T.). With that controller the SN740 stays in the mid 50s °C under sustained load and the fan idles at 2000–2900 rpm.

The register map is the useful part. What I actually run is described at the end as an appendix.

続きを読む

ラマヌジャン「おぼろげながら浮かんできたんです 46という数字が」

とりあえず、要約までしか読めるように作ってないので、要約まで読めばいいと思う。

  • 結論
  • 要約
  • 背景
  • 理論
    • 超幾何係数
    • なぜ π が現れるのか:周期と楕円積分
    • モジュラー λ関数と虚数乗法(CM)点
    • 線形係数 An+B の由来:微分トリック
    • 整数関係検出(PSLQ)
    • 漸化式表現:二次無理数の冪のトレース
    • Ramanujan–Sato:閉じた形の係数(漸化式不要)
    • 厳密な再表現:値を変えずに桁を操作する
    • 近似の限界:なぜ密度に天井があるのか
  • 実装
    • Phase 0:~2025年7月 — 汎用ツール
    • Phase 1:~2026年5月 — 厳密 Ramanujan–Sato と大規模46探索
    • Phase 2:~2026年6月 — 純Sato strict と再表現エンジン
    • Phase 3:~2026年7月 — 近似式の導入
  • 結果
    • Phase 1 — 46を「出す」網羅探索
    • Phase 2 — 定数スケールと有理化で46を「多く」入れる
    • Phase 3 — 近似を許して高密度46へ
    • 発展 — 「値がちょうど46」の定数は何個並ぶか
  • 所感・今後の展開

結論


\frac{1}{\pi}=\frac{\sqrt{450}}{4646464646460}\sum_{n\ge0}\bigl(464646464646\,n+77441077441\bigr)\frac{(2n)!^{3}}{(n!)^{6}}\frac{1}{(-2)^{9n}}

\displaystyle \frac{1}{\pi^2} \approx \frac{4679464624646464646464646464646464646464646464649}{46184464654646464646464646464646464646464646464646}

\displaystyle \frac1\pi = \frac{46}{13215}\sum_{n\ge0}(-46\,n+45)\,\frac{(1095/2029)_n\,(443993/626822)_n}{(n!)^2}\,\frac{T_n}{16^{\,n}}
ただし T_n=T_{n-1}-16T_{n-2}\ (T_0=2,T_1=1)

ラマヌジャン「おぼろげながら浮かんできたんです 46という数字が」

続きを読む

【散文】語り得ぬものへの祈り──エデン条約編を前期ヴィトゲンシュタインで読む

『ブルーアーカイブ』エデン条約編は、一つの問いを軸に回っている。キヴォトスの七つの古則、その第五──「楽園に辿り着きし者の真実を、証明することはできるのか」。物語は初めから、証明できないものを、その中心に据えているのだ。

本稿は、この物語を前期ヴィトゲンシュタイン──『論理哲学論考』と『草稿1914–1916』──を頼りに読む。導きとなる主張はこうだ。エデン条約編は、語り得ぬもの(楽園の真実、ある者の値打ち、世界の意味)を前にした、一つの軌道を描いている。登場人物はまず、それを証明し、確定し、「閉じ」ようとする。先生はそれを反証せず、ただ世界を開いたまま保つ。そして開かれた場で、生徒は祈る。閉鎖から、先生の開放を経て、祈りへ。この祈りこそが、物語の核である。

そしてこの構図には、前期ヴィトゲンシュタインの二つの顔が、そのまま重なっている。世界を開いたまま保つ先生の沈黙する実践は『論考』の顔であり、開かれた場から発される生徒の祈りは『草稿』の顔だ。

続きを読む