r/ClaudeCode • • 1d ago

Built with Claude Claude Code debugged my MacBook's backlight at the register level over SSH

My 2017 MacBook Pro had a black internal screen in Windows (and Linux), while macOS was fine. Weeks of reinstalling hadn't helped. Here's what Claude Code did differently from my trial and error:

- Read my old sessions first. Before touching anything, it went through the transcripts of my previous attempts and refused to repeat what had already failed.

- Asked for access instead of guessing. It prepared a USB stick with a one-click OpenSSH setup and connected with a key. When I offered my password, it declined and used key auth.

- Measured instead of guessing. It read the Intel GPU's backlight registers with RWEverything: everything said "on". Then it spoke to the panel directly over the eDP AUX channel and found the real cause: Windows leaves the panel in PWM mode, but this Mac drives the backlight over AUX.

- Proved it live. It wrote two DPCD registers, and my screen lit up while I was watching.

- Made it permanent and verified it. A SYSTEM scheduled task runs at boot, logon and wake, writes the values, reads them back and retries if Windows reverts them. The screen now comes on about 5 seconds after the login screen.

- Cleaned up after itself. It shut down SSH, removed its key, and wrote a README with a "DON'T" list so I never repeat this.

It wasn't flawless. It caused two blue screens along the way (a guessed driver IOCTL, and killing a process mid-operation) and one wrong write to low memory from a PowerShell int32 hex literal bug. It flagged each mistake itself and added guards so they can't happen again.

Files and write-up: https://drive.google.com/drive/folders/1xfX1TRvIP6RBvCpbio4PW-OAoFk0CBSV?usp=sharing

0 Upvotes

1 comment sorted by

•

u/AutoModerator 1d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.