AI
Red Hat engineer uses Claude to reverse-engineer unsupported Linux hardware drivers
By feeding Claude the Windows driver behavior alongside broken Linux implementations, an engineer generated working drivers for a scanner and laptop camera Linux couldn't support.
1/2
The New Stack
When Christian Schaller, a Red Hat engineering director and longtime contributor to GNOME and Fedora, discovered his new scanner wouldn't work on Linux due to an unrecognized chipset swap by the manufacturer, he turned to Claude to help reverse-engineer a driver. Initial attempts went nowhere, but a fresh approach yielded surprising results: within hours, he had a functional scan, and within days, the driver supported advanced features like infrared scanning.
Schaller has now released his methodology as an open-source project called hw-harness under an MIT license. The toolkit captures device behavior, contrasts working implementations with broken ones, and equips AI agents with the information needed to tackle unsupported hardware.
How the technique works#
The approach emerged after Schaller encountered a post from Glorious Eggroll, who had previously used an AI agent to repair a mouse driver by granting it access to a Windows system. Rather than struggling blindly, Schaller's refined method allowed Claude to run the manufacturer's Windows software, monitor USB traffic, and directly compare it against what his Linux driver was transmitting. The AI could then identify discrepancies and iterate on fixes.
The key insight: earlier attempts to build a scanner driver with Claude stalled because the agent lacked a reference implementation. With access to actual working device communication, the problem became tractable. As Schaller noted, Claude "doesn't get bored"—it could repeat painstaking comparisons and adjustments across countless iterations without fatigue.
Real-world results#
By the time Schaller completed his Plustek OpticFilm 8200i driver, upstream support had already landed in SANE via another developer. His implementation, however, offered distinct advantages: infrared dust removal, exposure control for dense negatives, and scanning from 300 to 7,200 dpi. A performance comparison showed his driver completing a full-resolution scan in 34.6 seconds versus 54.4 seconds for the official version.
The scanner project inspired a second creation: Negative Vibes, a Rust-based GNOME application built with Claude's assistance. The app preserves full 16-bit scan data including infrared channels, allowing users to perform non-destructive edits, dust removal, color calibration via ArgyllCMS, and export to TIFF, JPEG, PNG, or DNG.

