PDA

View Full Version : Kali 2.0 Will Not Shut Down or Restart



sierpwnski
2015-08-11, 23:05
I did some quick searching and could not find any current solutions to a problem like this in linux or Kali specifically.

I just did a fresh install (dual boot) of Kali 2.0 and everything works great except for when I want to shut down. Pressing the shutdown or restart buttons in the menu freeze the system and it hangs on the desktop. No applications close if any are open, and my mouse dissapears. Its seemed to be trying at first but I wait several minutes and it still does not shut down.

Any advice? What sort of documentation or logs can I provide that would help?

Thanks in advance!

Hiro
2015-08-12, 10:19
maybe typing 'halt -p' from command line should work...
Yeah, I had the same problem as you did.
Things changed greatly since 1.1.0a so we encounter a lot of problems. But let's stick togheter.

sierpwnski
2015-08-12, 15:18
'halt -p' worked. Is that an okay way to shut down for the time being? I have a standard user set up for normal everyday tasks and other programming endeavors, is there a logout command that might work the same way? (Logging out normally also locks up the system)

Thanks Hiro!

ir4n0ny
2015-08-14, 06:14
Same problem here!
logout
restart
and shutdown not work and freez after that!

Gumby
2015-08-14, 11:53
I too have had hangs on shutdown using the GUI and reboot command.
Hang is a black screen with a cursor in the upper left
shutdown -h 0 seems to work well.

Also during one of the hangs, I had been running ssh with X11 forwarding to a windows box, I closed the Xming client on my windows box and the Kali box immediately unfroze and shutdown.
Hope this helps.

oursnoir_284
2015-08-14, 22:22
I have the same problem, described by sierpwnsky, but for me 'halt', 'halt -p', 'poweroff', 'shutdown -h now' have the same result. I've also tried solutions suggested (in others linux distros forums) of modify the /etc/default/grub and /root/grub/grub.cfg archives "playing" with 'quiet', 'splash' 'acpi=force' and 'apm=power_off' commands but no one functioned for me, also this trouble happens with live kali 2.0 from the iso.

The only two alternatives that had work for me are to press the sequence Alt+Sysrq+ (RSEIUB) and force the physical shutdown of my computer, but as you will advice to me none of these options are not for proper shutdown.

oursnoir_284
2015-08-16, 00:06
Sorry for all, my problem was caused by mi lap's NVIDIA card, I've just configured bumblebee pack and add a script in /etc/rc.local to disable it because I do not pretend use it with Kali, all my problems gone and kali is working pretty nice for me. :D

nekromantik
2015-08-16, 10:20
Oursnoir I dont understand quite what you said?
I got same issue as you had, no command including halt -p and shutdown -h 0 work.
I got nvidia optimus laptop with Nvidia card but have not installed bumblebee or nvidia drivers.

nekromantik
2015-08-16, 16:16
Solved it:
Added nomodset to the grub.cfg

Rorshaq
2015-08-16, 21:14
nomodeset dosen't work for me

klbt
2015-08-16, 21:16
I have a similar problem in my 2.0 VM running on Vmware Fusion 7. It starts to shut down but then the CPU freezes. Screenshot here: https://robustfiles.com/dl.php?key=/pzHk/ScreenShot2015-08-16at22.20.46.jpg

oursnoir_284
2015-08-17, 17:34
Rorshaq, does my solution work for you?:

Go to the terminal and install Bumblebee

apt-get install bumblebee

then, execute the next command in your terminal and try to shut down or restart your computer by the waay you want, everyone should work:

tee /proc/acpi/bbswitch <<<OFF

If it works then, you can execute the command line inmediately your kali boots by access to /etc/rc.local by nano editor (or whichever you want):

nano /etc/rc.local

and then adding the next command line:

tee /proc/acpi/bbswitch <<<OFF

and thats all, now you can use kali linux as you want, you can now shutdown or restart your system before you started your session or by terminal commands or with gnome buttons, i hope it works for you :)

Note: I stop my solution here because as i said in my last post I do not pretend use for now my NVIDIA card, but I've installed bumblebee because in a future I want to use it for parallel programming. If you want to use your GPU properly then follow the instructions to install and configure bumblebee in its page.

Rorshaq
2015-08-19, 07:36
I tried your solution but it didn't work for me. My OS still hangs out when restart or shut down. But is it possible that the problem come from my gpu which could be unstable ? because when i tried /etc/init.d/gdm3 stop to install the Nvidia proprietary driver the same thing happened.

Thanks for your response and your help by the way =)

Fall
2015-08-20, 08:09
Mine gives this output to tee after bumblebee install ..

tee: /proc/acpi/bbswitch: No such file or directory
OFF

Fall
2015-08-20, 09:53
Hi everyone i have similiar problem, and i tried this bumblebee install but my tee /proc/acpi/bbswitch said no such file or directory grub.cfg i don't know how to modify because i did not understand the instructions. Can someone help me? :)

sierpwnski
2015-08-21, 22:06
So "halt -p" stopped working for me. The same issue has occurred when I use a live disk. I have since reinstalled Kali 2.0 and the problem occurs less often, but It still does. I try to be consistent and I kill all active programs then try shutting it down. It seems to work as long as I hope and think in my head "please work, please work, please work".

All jokes aside, there is nothing I can see outright that is different about each time I shutdown, restart or log off. Occasionally, the system hangs and never shuts down. (It seems to be after killing everything first).

Fall
2015-08-22, 12:28
I noticed that my computer freezes allso when i try to kill process with pkill maybe that is the reason to freeze after shutdown?
my lcpsi did just run without any output and i tried to kill it.

PePeLeGal
2015-08-31, 12:43
Ok guys!

I have disabled the "Shared Folders" in VMWare machine options and everything gone back to normal.

bahansen
2015-09-01, 00:17
Hello Kali Team,

I have a HP DM4t-1100 with ATI graphics. I'm having the same issues; halt, bumblebee, and other fixes on this thread have not worked. I have to hard-shutdown the laptop every time, and after 10 or so of these data corruption occurs and I have to reinstall Kali. This has been my primary Kali Laptop and I've had to install the old version to continue using the OS.

Thank You!

amorandi
2015-09-03, 20:42
Hi all,

Please take a look at "https://forums.kali.org/showthread.php?27173-Solution-for-Reboot-Issues" and see if that helps.

sierpwnski
2015-09-10, 17:41
Thank you amorandi, that post fixed it for me! (It has been about a week now and I haven't had problems).

amorandi
2015-09-11, 14:19
Glad it worked sir! Thank you for replying!

hagall
2015-09-12, 10:43
Hi all!

I have tried all of the above solutions and nothing works for me. I have to use powerbutton to shutdown, and everytime i get a corrupted system and it wont start nomore.
All works like a charm when im using Live boot from usb, but thats not a solution for me since i use my laptop as primary for work and studies.
Im using a HP Pavilion dv6-3009so laptop.

CPU/GPU:
2,1 GHz AMD Athlon II Dual Core-processor P320
ATI Mobility Radeon HD 5650

Thanks in advance

EDIT: its probably caused by using the full installer, i got 3 kids and no spare time, so im gonna try to install using mini and choose what to install myself when i get time..

EDIT 2: problem was a compatiblity issue with my hardware, since i have no time fixing it i just installed it on my intel laptop and now i have no issues at all.. works like a charm. i recommend searching google for a fix outside of kali specific searches, like debian.

Stefan.W
2015-09-14, 08:24
Hi all,

i have the same Problem. When i shutdown the computer or restart the screen went black. The Computer is still running, i have a black screen and nothing happens. I think the problem is about something with the grafic.

During the installation i became the following screen:
872

My System:
Intel Celeron N2940 (Bay-Trail)
IntelĀ® HD Graphics

Can me help somebody?

Fall
2015-09-15, 12:20
Do you have similiar for ati graphics card?

Fall
2015-10-14, 18:51
i solved my problem with opening /etc/modprobe.d/intel-microcode-blacklist.conf and adding line "blacklist snd-hda-intel" without the "" marks.

fracorallo
2015-10-28, 19:23
i solved my problem with opening /etc/modprobe.d/intel-microcode-blacklist.conf and adding line "blacklist snd-hda-intel" without the "" marks.

Just registered to say thank you man!!! it works!!

Fall
2015-11-30, 17:07
Yes i guess intel sound drivers have conflict with something :)

Fall
2015-12-25, 14:12
I got it work with sounds changing "blacklist snd-hda-intel" to "blacklist snd_hda_codec_hdmi" and adding to /etc/modprobe.d/alsa-base.conf file with one line "options snd-hda-intel model=auto" all these without "" marks ofcourse.

eof
2015-12-25, 18:09
Here is some of the commands you can use to shutdown or restart your system.
init 0 -> change to runlevel 0 which shuts down system correctly
logout -> leaving session
reboot -> self explanatory
shutdown -h now -> shutdown right NOW
shutdown -h 16:30 & -> planned shutdown of system in background
shutdown -c -> cancel planned shutdown of system
telinit 0 -> another way of shut down

Hope some of them help. Best of luck to you!

~ eof :D

eof
2015-12-25, 18:11
Try some of the commands I posted in this thread. Let me know if it works. Good luck!