I am running Ubuntu 15.04 (vivid). If any system specs are needed I will try my best to provide these.
So, I have the (bad) habit of falling asleep while looking at cartoons.
I unplug the power supply to the laptop and move it to my bedroom. The problem is, that it usually runs out of power completely (sometimes after going to sleep, sometimes without it) and when I plug it back in it seems to be stuck on an empty X Window instance (similar to what you get when you press Alt+Ctrl+F8), the underscore doesn't blink, instead it's stuck.
If I try Alt+Left to switch to another X Window, it doesn't work, neither does Alt+Ctrl+any function button.
Usually I shut it down from the button at this point because it's totally unresponsive.
1.) Is there any danger for my PC as a result of my actions?
2.) Is there any way to avoid this issue
3.) If this issue pops up again, is there any way to solve it cleanly, without powering down?