If the empeg loses power, the state is saved in kernel; if the empeg is instructed to power off (when in car with the accessory line low) by issuing the power off ioctl to /dev/empeg_power, the state is saved.

The state *is not* saved if you do a soft reboot, though. This is a bug, and really needs fixing at kernel level - I'll sort this out for 1.1.

There's an ioctl on /dev/empeg_state which will "clean" the in-memory buffer (ie, flush it to flash).

Hugo