Found many posts but could not find any solution as of now.
Answering my own question, I am currently using a work around using bumblebee. This might be useful to those who are still facing this issue.
- Open nvidia-settings (open terminal and type nvidia-settings)
- Go to Prime Profiles tab and switch to Intel graphics
- Reboot the system
- Follow this link to install and setup bumblebee link
- Whenever you need to run a program which requires GPU hardware, include "primusrun" ahead of the command (eg., primusrun ./deviceQuery)
This brings another issue for me, whenever I suspend my system and after resuming bumblebee can not locate GPU resources.
Currently trying to solve this one.
I'm guessing this is related to ACPI not working as it should.
Try enforcing the power interface as a boot option to see if this fixes it.
First open a terminal and try
sudo update-grub
sudo init 0
and see if it turns off properly (i'm guessing it won't, but just to make sure).
If it does not, reboot, when grub appears press e, this should show your boot parameters
linux /boot/vmlinuz-linux root=UUID=<something-something> quiet splash
add acpi=force to it
linux /boot/vmlinuz-linux root=UUID=<something-something> quiet splash acpi=force
hit enter to boot, now try to shut it down again and see if it turns off.
If it does, you can make this option permanent by editing the grub config.
Make a backup of your current grub.cfg (just in case)
sudo cp /etc/default/grub /etc/default/grub.backup
Now open the file in an editor, like
sudo nano /etc/default/grub
And search for
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
and change it to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
save it, and run
sudo update-grub
and try shutting down again. This is the same as before, but permanently added, if you want to go back/restore your backup, remember to run update-grub again, after changing the config.
Best Answer
What is the BIOS version you guys are running on your Lenovo machines? I think this may be related to a BIOS update in mid 2015. My G50-45 has the problem with this BIOS version, and it happens with kernels 3.18, 4.4, an 4.7 basically everything.