I try to connect hdmi display to dell inspiron 1370 under Ubuntu 10.04 with nVidia. After choosing second screen and restarting the laptop cursor goes to second display and is trapped there. I cannot come back to the laptop's display.

Don't know how to proceed from this point. Only what can do is power of laptop. (1) Would like to have normal working second display. (2) Connect second display without needs for restarting laptop (3) Have all additional futures, like set up already custom appearance, which switches to basic after connection.

Appreciate an advise and if I need to provide any output or file, how should I access it from bash? Thanks a lot