Laptop stops working after closing the laptop lid in Debian To disable the Lid Switch:
It sounds like you don't have the GD extension installed. I don't use Ubuntu any longer, but I think it may be named php5-gd,...
How to install Xfce on Ubuntu