How do I run a particular program when the screen blanks/unblanks?
You can do that using xscreensaver-command -watch. See the xscreensaver-command manual for an example. • On my laptop, XScreenSaver doesn’t fill the whole screen! This is a bug in the X server, not xscreensaver: the XF86VidModeGetViewPort() function is full of lies, and I don’t see any way to work around it. I believe this only happens on certain laptops, and possibly only on systems that have a docking station or external monitor that runs in a different resolution than the laptop’s screen. There is discussion of this bug in the Red Hat and Debian bug systems; the buck was finally passed upstream to XFree86, where it is bug 421. The XFree86 developers have closed the bug. As far as I can tell, their reason for this was, “this is an X server bug, but it’s pretty hard to fix. Therefore, we are closing it.” So how about that. If you’d like them to actually fix this, you’ll have to convince them that it matters, I guess… In the meantime, you can work around this by editing your .xscreen