To avoid actually entering the "USB Connected" state for testing, you might want to simply: trigger the popup, capture a screenshot, *close* the popup, then display the screenshot with fbink (fbink -g file=usb.png), this ensures that a tap on that "fake" connect button will at worst only open a book or enter the Library

.
Because if you do want to really enter the "USB Connected" screen and still keep a shell session alive, that means USBNet, and you'll *have* to reboot your device after that, because trying to fake an unplug event will just crash the device when USBNet is enabled (... possibly with prejudice, on my H2O, it pretty much always wiped the stored WiFi passwords).
I do insist on the snapshot coming from FBGrab, to avoid any and all magical processing Nickel itself might do. The only exception to that rule *may* be for people on FW < 4.2, and even then, that's *in addition* to an FBGrab capture.