Ubuntu can not be shut down solutions

Step1

In the terminal input:

$ sudo gedit /etc/modules

Add the following code at the end of the file,then save it.

$ apm power_off=1

Step2

In the terminal input:

$ sudo gedit /etc/rc0.d/S90halt

Find Sec code

hddown="-h"
if grep -qs '^md.*active' /proc/mdstat
then
hddown=""
fi

and

netdown="-i"
if [ "$NETDOWN" = "no" ]; then
netdown=""
fi

Make to these two pieces of code commented out

#hddown="-h"
#if grep -qs '^md.*active' /proc/mdstat
#then
# hddown=""
#fi

#netdown="-i"
#if [ "$NETDOWN" = "no" ]; then
# netdown=""
#fi

Step3

In the terminal input:

$ sudo gedit /etc/default/grub

Find

GRUB_CMDLINE_LINUX=""

Modify it to

GRUB_CMDLINE_LINUX="noacpi acpi=off acpi=force apm power_off=1"

Step4

$ sudo update-grub

Reboot you system.

0.00 avg. rating (0% score) - 0 votes