Although I suspect that this is not currently possible, I would just like to ask because it would be something very useful in my opinion. Because when I close my lid and I am in the GUI my computer suspends and then requires a password to be unlocked. However if I do the same in console, there is no suspend and it doesn't ask me for a password to log back in again.
Now this can be a potential security risk so I was wondering if there was a way to pause everything running through console when the lid is closed, and so that when the machine awakes, you have to enter your password back into the console window so that it 'unlocks' your session? I am running Ubuntu GNOME 15.04. When I say the console, I mean the TTYs.
I have had a look at TTY[1-6]: Lock screen after delay (like a screensaver), however I do not feel that it fully answers my question, especially about pausing anything running so that it can continue upon resume.
I am running Ubuntu GNOME 15.10 with GNOME 3.18.