B r i a n   V e r k l e y

Cursor, and my MSI MEG AI1600T PSU.

2026-04-28 00:17:58 • by Brian Verkley

I kinda love AI.  

I just recently built a new computer, to run some local AI, and this computer has a 1600W power supply from MSI.   Yes.  That was not a typo.  
The PSU (Power Supply Unit) has a usb port, and so, naturally, I plugged it in.   And…. nothing.   MSI publishes a windows driver and software, apparently, but who uses windows nowadays?  There is no official Linux support, and the linux kernel doesn’t have a driver.   So, I turned to Cursor (cursor.com) which is a tool that writes software for you.  
I asked Cursor to search the internet, find other people with my problem, search the linux kernel source, as well as non-official patches, and see if anything existed we could use.  The closest it found was some code on git-hub from 3 years ago by a person called Jack Doan, who apparently lives in Dallas Texas.  He wrote something that works for the 1000W and 1300W variants.  Cursor was able to learn from that, patch the code to include the 1600W, find new features in the output (like a serial number) and create me a working kernel module that gives me a status.  In case you are wondering, my power supply currently reports this:
[2026-04-27 20:02:19] hwmon: /sys/class/hwmon/hwmon5 (msipsu)
  power total:           486.00 W   (486000000 uW)
  psu temp:              34.0 C
  psu fan:               388 RPM
  v_in:                  108.000 V
  v_out +12v:            12.234 V
  v_out +5v:             4.953 V
  v_out +3.3v:           3.375 V
  curr +12v:             36.750 A
  curr +5v:              5.500 A
  curr +3.3v:            3.562 A
  pwm1=33  pwm1_enable=2 (1=manual, 2=auto)

Why yes, my 12v rail is pushing 36 Amps with a total draw of 486W.   It’s barely working at all!

A kernel module, I would have thought, was well beyond my coding capabilities.  It is written in C, a language I can barely read, and can’t write at all.   It touches very low level things full of codes and arcane commands.  Professionals are weary of kernel modules.   But, I needed one to see how my new PSU was doing, and, now I have one.  

What a time.

- Brian Verkley

Comments

by Brian Verkley • 2026-04-28 01:13:22
I just submitted a Pull Request ( a message back to the original author with my code changes ) on Github.  If he accepts it, others can reuse this work.   I think this is my frist PR to someone I don't know...

I created btemp

2026-04-07 22:21:41 • by Brian Verkley

https://github.com/bverkley/btemp

I have a new computer, and I wanted to see how the temperature of things like the CPU and NVMe was affected over time.  I've used btop for a long time love  it. (https://github.com/aristocratos/btop)  btop gives me the current temp, and nice little console graphs for utilization of things like cpu, network, memory, etc.  

So I asked cursor to create me an app, inspired by btop, for console graphs of my temp readouts.  In rust, because I don't know the rust programming language at all, and Cursor listed it as a top 3 choice for languages to use for this project.

The app works.  I can visually see how long compiles drives up my temp, and how quickly it recovers.  I pushed the code up to github, and released it to the public.  

So far, no one has cared, but that's ok.  It worked for me, and I'm happy.

- Brian Verkley

New Old Blog

2026-03-30 01:17:13 • by Brian Verkley

I wrote some blog software a long long time ago.  All in perl, which is the language I used for everything at the time.  I did it mostly because I could, and blogging was "cool" then.  Through some iteration of the code I added Leanne as an author, and September 12th, 2006, that version of the blog went live.

I ran that for years, but sometime around when we moved from Ajax to Pickering, I stopped hosting it on the internet.   I barely blogged and during some computer upgrade, it just didn't seem important enough to update.  Always at the bottom of my todo list.  

The problem was, everything was out dated.  The blog was in perl, which almost no one uses anymore, on apache as the web server, which is mostly unnecessary for this kind of web app, and backed by mysql for the database, which is way overkill for a few bits of text.  It really needed to be modernized, because patching and dragging it along was way too much work.  But re-writing it all was also too much work.  

Fast forward a few years, and along comes Cursor (https://cursor.com/).  Cursor is an application that helps you write code.  You describe the application you want, and then it uses backend API calls to AI models like Claude Opus, OpenAI Codex, or their own coding model, to generate your code.  As a kind of test I said, here is my old website, I want you to rewrite this whole thing in a modern language.  I even want you to copy over the old posts and comments.  But I need updated everything, including proper Google authentication, rather than my fairly insecure home grown version.  

And it did. Here it is.  Written in Go, a language I don’t understand, which has its own built in web serving ability, and backed by sqlite, a database I can never remember the commands for, but is much better suited to this task.   I asked for the app.  The AI wrote the app.  

So I’m back online.  And the whole archive of blogs is back online.   You can read about a random Saturday from 2005 (https://ajax.verkley.com/story/4) or what I thought about the iPhone when it came out (https://ajax.verkley.com/story/143) or even way back when I thought mobile computing would be a thing. (https://ajax.verkley.com/story/22).  ChatGPT tells me that if you bought $1000 worth of Apple shares back when I wrote that, they’d be worth about $175,000 now.   So, I bet you don’t want to miss a post now, do you!   (sadly, I also did not buy Apple shares then.)

- Brian Verkley

Comments

by Lisa Schuyler • 2026-03-30 01:33:25
Welcome back!

Easton's Night Time Song

2012-08-20 21:38:49 • by Brian Verkley

So I was putting Easton to sleep and I started to sing Twinkle Twinkle Little Star when he said, "Stop." and put his hand over my mouth.
"B's" he says.  
I look at him puzzled.
"Daddy!" he shouts. "B's!"
Then he starts to sing on his own, "a blah blah blah" to the tune of ABC's.
Ah, I get it, so I start to sing ABC's and he says "Ya!" and puts his head down and goes to sleep.

That's right, Easton (1 year old still) just requested his own night time song by name.

- Brian Verkley

Comments

by cwoneil • 2013-08-25 00:21:03
Brian,
Twinkle Twinkle Little star is the same tune as the ABC's.  He recognized the tune, but thought they were the wrong words.