红帽工程师用 Claude Code 参照 Windows 驱动补出 Linux 扫描仪驱动
红帽工程总监 Christian Schaller 让 Claude Code 运行厂商的 Windows 驱动并抓取 USB 流量,与自己的 Linux 驱动对比,几小时内拿到第一张可识别的扫描结果,几天后支持红外扫描。他把这套方法以 MIT 协议开源为 hw-harness,包含控制 Windows 虚拟机的 winctl、抓取流量的 usbcap、切换设备的 hostdev 和 Linux 侧调试的 hwdbg。他还用同样思路修复了 ThinkPad X1 Carbon 的摄像头偏暗偏色问题,提交了内核和 libcamera 补丁,低光测试中画面亮度从 31.1 升到 90.9,但补丁尚未合并。
ect called hw-harness under an MIT license. It bundles the tooling for capturing how a device behaves, comparing a working implementation against a broken one, and giving a coding agent the information it needs to work on hardware that Linux doesn’t support yet. Reverse-engineering the scanner driver Schaller got the idea from a post on X by Tom Crider, better known as Glorious Eggroll, who had used an AI agent to fix a mouse driver by giving it access to a Windows machine. Schaller fed the post
匹配字段正文



