Although your solution is not work for me (stuck in X screen), but thanks for introducing Wug's Toolkit for me.. It works perfectly.
I found that Toolkit's one will send userdata and cache after your commands, so is that the problem that make me stuck in X screen?
Sorry for bad English ;)