I have two workspaces, which I need to function as below:
Usually they function as usual two workspaces, but...
When I connect a HDMI cable to my system
I want to have workspace 1 display on laptop screen and be workable with keyboard and touchpad inputs as usual.
While in the background, I want to display Workspace 2 content on the TV connected through the HDMI cable.
How can I get this done???
Preferably without compiz involvement.
I don't think that you can do this. The thing you're asking is inconsistent with the way workspaces and displays are designed in Ubuntu.
I will try to explain why. The curently workspace is, as its name itself says, the space where curently you are. Now, when you connect another display at the machine, the current workspace (and all others) will be expanded in the new display. When you change the workspace in first display, its expansion will change in the second display as well and vice-versa. So, the display is a something like a 'child' of the workspace. In next image you can see how it look:
What you intend to do is something like:
As you can see this doesn't look ok.
Of course, as long as you have unselected Mirror displays in System Settyngs > Hardware > Displays (as in next image), you can view some programs on one display and other programs on another display. Also you can drag and drop windows from one display to another.
You can also to watch this video to understand better: http://www.youtube.com/watch?v=Vl9P9a2L7Q4.
Right click on the titlebar of the VLC window and select "Always on Visible Workspace". Now go back to working on the laptop while having the TV playing a movie.
I have been able to successfully do what I intended to do using a combination of the above two answers and some more hit and trial of my own. I will experiment a bit more and post the detailed method to do so here.
OKAY..just for clarity...here is what I do:
1. Attache HDMI cable
2. Go to display settings and uncheck the mirror display checkbox
3. Run Detect Displays if needed
4. Now whatever workspace I use, it i split into two vertically. Moving any application past the right border of the laptop screen takes it to the HDMI TV screen.
Let me know if the above does not work for someone and I can help.