I really want to try this out on my work ThinkPad since it stays plugged in effectively all the time. It requires a kernel module though, I'd need to get that approved first and I haven't got around to it.
Naïve me doesn't understand why it can't be done from userspace, but I'm sure there is a good reason...