I had a problem using Ubuntu and an Acer Aspire V5-571G. Every time I opted to shutdown, the laptop would reboot again after a few seconds. I found this article with the answer for Fedora and to make it work on Ubuntu I chose to replace the shutdown command as follows:
sudo mv /sbin/shutdown /sbin/shutdown-default
Now that the default shutdown command is moved safely out of the way create a new one:
sudo gedit /sbin/shutdown
Add the following code to the /sbin/shutdown file:
#!/bin/bash for i in /sys/bus/usb/devices/*/power/control; do echo on > $i done /sbin/shutdown-default -h now
Make the file executable:
sudo chmod +x /sbin/shutdown
this solution don’t work…