I've tried everything but I couldn't fix the problem. I've installed Ubuntu 16.04 dual boot with windows 10. Ubuntu works fine,but It gets stuck at loading screen on shutdown. Ubuntu has never froze on reboot. It freezes at 'reached target shutdown', also the computer hardware seems to be shutdown but the monitor keeps turned on displaying the loading screen.
I want to fix this and keep Ubuntu installed on my computer because It's way faster and better than windows to do simple tasks (not talking about gaming) but I can't use it if I can't shut it down. Also if I reboot Ubuntu and boot windows I can turn off the computer through windows but It's really not convenient when I need to shutdown the computer.