To take a screenshot of KDM or Ksplash, here’s a couple tricks. Didn’t find this information readily, so hopefully this helps someone out.
In ‘/usr/share/config/kdm/Xsetup’ add this line:
sleep 10 && import -window root /tmp/kdm.png &
Xsetup runs root commands before the login screen appears. This can’t be run from the command line because Xsetup adds environment variables that allows you to do this (not sure what they are). The ‘sleep 10′ second time is going to depend on how quickly your Xorg server loads. If it comes up slowly, increase that value.
For Ksplash screenshots, the only reliable way I’ve found to do this, is the ‘Test the theme’ in System Settings. First:
scrot -q 100 -d 14 Preview.png
Then start the test.