There are many posts and questions about problems with lid closing leading to operating system states which require hard reboots; these reports come from across multiple kernels and releases of Ubuntu. I am working with a 3.19.0.26 kernel, 15.04 Ubuntu (32 bit), and a Dell Inspriron 3451. Some have suggested adding programs to the sleep.d folder (although this has not led to success for me, yet), others have suggested setting acpi=off in the boot loader options (also, not successful for me). Others have suggested moving to the upstream kernels (have not tried yet), and I am aware that these particular models are not certified by Canonical for Hibernate or Hybrid Suspend, but I do not yet understand if this rules out all options. Even a "stay running" option would be preferable.
All I am hoping to do is to have a valid OS when I re-open the lid. It is not clear to me which path I might pursue - boot options, programs in sleep.d, etc. I'd welcome tactical advise and I am running from place to place without a plan.
Suggestions sought.
R