LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-16-2020, 10:14 PM   #1
LENNE3
LQ Newbie
 
Registered: Mar 2020
Posts: 12

Rep: Reputation: Disabled
Unable to shutdown properly Kali and Parrot; restart works


*Please note: First post, if better suited for another subforum, please move accordingly*

I've searched and found this problem reported, but none of the suggested solutions worked for me.

While restarting works fine, shutdown does not. System hangs on the shutdown - able to turn off only by physically pressing the power button.

Hardware - Lenovo laptop with not a Nvidia video card.
Software - problem exists on Kali live, Parrot live and Kali 2020.1 installed, works fine on few other live OS including Mint.

Attempted solutions - modifying grub file.

There might be few more details that escape me at this time.
Please help and suggest.
 
Old 03-17-2020, 02:30 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by LENNE3 View Post
I've searched and found this problem reported, but none of the suggested solutions worked for me.
I think you need to tell us more about that.

Quote:
Attempted solutions - modifying grub file.
I think you need to tell us more about that.
 
Old 03-17-2020, 05:35 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,501

Rep: Reputation: Disabled
You should be able to power down any Linux computer by using
Code:
halt -p
in a terminal.

(Usually need to use root/sudo.)
 
Old 03-17-2020, 07:29 AM   #4
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Rep: Reputation: 31
I tend use
To shutdown pc:
Code:
shutdown -h now
To restart pc:
Code:
shutdown -r now
As the root user
 
Old 03-17-2020, 10:47 AM   #5
LENNE3
LQ Newbie
 
Registered: Mar 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok, forgot to tell about the halt/shutdown commands.
Quote:
Originally Posted by fatmac View Post
You should be able to power down any Linux computer by using
Code:
halt -p
in a terminal.

(Usually need to use root/sudo.)
Same, Kali/Parrot OS logo is displayed, not shutting down.
Quote:
Originally Posted by Dman58 View Post
I tend use
To shutdown pc:
Code:
shutdown -h now
Same as above, logo hanging.
Quote:
Originally Posted by Dman58 View Post
To restart pc:
Code:
shutdown -r now
As the root user
The usual restart from GUI works to begin with.
Using the shutdown -r now command takes few seconds, but restarts on both Kali and Parrot OS.

Tried on installed Kali and live Parrot 4.7
 
Old 03-17-2020, 11:13 AM   #6
LENNE3
LQ Newbie
 
Registered: Mar 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
I think you need to tell us more about that.


I think you need to tell us more about that.
You're right. Don't remember all, but tried:
was there quiet reboot=bios
tried adding acpi=force apm=power_off no apic irqpoll

The machine is multi-boot, but booting is not a problem.
 
Old 03-17-2020, 11:49 AM   #7
LENNE3
LQ Newbie
 
Registered: Mar 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
In Kali initially I had
GRUB_CMDLINE_LINUX_DEFAULT="quiet reboot=bios"

To the grub setting I've also tried:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX_DEFAULT="reboot=acpi quiet"
GRUB_CMDLINE_LINUX_DEFAULT="reboot=pci quiet"
 
Old 03-19-2020, 08:28 PM   #8
LENNE3
LQ Newbie
 
Registered: Mar 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Could it be hardware-dependent?

It's Lenovo laptop and I did play with BIOS settings. No luck though.
 
Old 03-23-2020, 04:17 PM   #9
LENNE3
LQ Newbie
 
Registered: Mar 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by LENNE3 View Post
Could it be hardware-dependent?

It's Lenovo laptop and I did play with BIOS settings. No luck though.
Not being able to find answers that solve the problem, I actually had very high expectations for this forum community.

The way I see it the problem could be stemming from few sources:
# software
# hardware
# firmware
# user

I chose this sub-forum because of its software (all linux) and hardware (laptops) cross-section.

Here's my breakdown of observations.
^ software - something particular to Kali and Parrot and not other OS's; exists in both Live and installed versions; OS versions are new, not outdated and not modified
^ hardware - relatively not old Lenovo laptop, possible culprit, but don't see anywhere it can't be working with these OS
^ firmware - played with some settings in BIOS, but yielded no positive results, partitions/installed OSs should not have impact on Live systems, right?
^ user - that would be my first guess, but even I can't screw up the shutdown process, so would have to rule this one out.

Any flaws? Hints? Tips? Suggestions? Solutions??
 
Old 03-23-2020, 04:27 PM   #10
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Well, I hate to say this but kali is not meant to be installed - not saying it can't be, but it works best in a VM. I use it every day at work in a VM and it has been flawless in this configuration for nearly 2 years.

If I had to guess, I would say there is a systemd process/job hanging up shutdown. Can you run
Code:
journalctl -rb -1
in a terminal and see what the output is? Might give some clue as to what is happening. Worth a shot anyway.
 
Old 03-23-2020, 10:00 PM   #11
LENNE3
LQ Newbie
 
Registered: Mar 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sevendogsbsd View Post
Well, I hate to say this but kali is not meant to be installed - not saying it can't be, but it works best in a VM. I use it every day at work in a VM and it has been flawless in this configuration for nearly 2 years.
That's interesting, I didn't know that.
Should Live OS work then? I also have same issues with Live Kali and Parrot OS.

Let me concentrate on those two for now. All restart fine.
  • Parrot OS does not shutdown
  • Kali Live (amd64) does not shutdown, hangs on logo
  • Kali Live (amd64 failsafe) shuts down fine
  • Kali Live (forensic mode) does not shutdown


Quote:
Originally Posted by sevendogsbsd View Post
If I had to guess, I would say there is a systemd process/job hanging up shutdown. Can you run
Code:
journalctl -rb -1
in a terminal and see what the output is? Might give some clue as to what is happening. Worth a shot anyway.
Thanks for the idea.
In Kali Live I got almost 1300 lines.
What am I looking for?

I see some thinkpad_acpi error and two DMAR errors, but those don't seem to have impact.



What is the fundamental difference in processes involved in restarting and shutting down? Why would restarting work while shutdown not?


Thank you.
 
Old 03-24-2020, 05:36 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by LENNE3 View Post
Not being able to find answers that solve the problem, I actually had very high expectations for this forum community.
I'm sorry you should feel that way, but you yourself stated earlier:
Quote:
Originally Posted by LENNE3 View Post
Don't remember all
and give very fragmented reports of your set up.
How can anyone help you then?

Here's the lesson I learned from using Linux forums for many years:
Even if I ask for help, getting to a solution still requires me to do most of the work.
Often just formulating a help question properly helps me to get there, because it makes me look at the problem in an ordered fashion, explaining it to myself.

Since you're obviously still a beginner with GNU/Linux, I recommend you start with a beginner distro and try to get that running first.
 
1 members found this post helpful.
Old 03-24-2020, 06:55 AM   #13
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Rep: Reputation: 31
Have you tried on different hardware? Sometimes different hardware has minor differences in how the software reacts. Try it on a different pc and see if the problem persists. Check the logs and see if you can spot the error. Try making a new live image and checking the md5 sum. Try different shutdown commands than the ones posted above. Ex:
Code:
telinit 0
But not sure if that will work on Kali
 
Old 03-24-2020, 07:17 AM   #14
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
OP: as I don't use a laptop, I am not able to offer any advice as far as hardware goes. I noticed in one of your posts above, you issued
Code:
shutdown -h now
or
Code:
halt
. That won't power off the machine. What happens if you issue
Code:
poweroff
?
 
1 members found this post helpful.
Old 03-24-2020, 08:03 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by LENNE3 View Post
That's interesting, I didn't know that. Should Live OS work then? I also have same issues with Live Kali and Parrot OS.
Did you read the Kali and Parrot websites??? They tell you specifically that they are meant for Linux experts, and even then for security/pentesting. NOT for daily use, and they even both recommend installing on virtual machines, not physical hardware, since you then encounter the very types of errors you're getting now.

**WHY** are you wanting to install/use Kali or Parrot????
Quote:
Let me concentrate on those two for now. All restart fine.
  • Parrot OS does not shutdown
  • Kali Live (amd64) does not shutdown, hangs on logo
  • Kali Live (amd64 failsafe) shuts down fine
  • Kali Live (forensic mode) does not shutdown

Thanks for the idea. In Kali Live I got almost 1300 lines. What am I looking for? I see some thinkpad_acpi error and two DMAR errors, but those don't seem to have impact. What is the fundamental difference in processes involved in restarting and shutting down? Why would restarting work while shutdown not?
The fact that you ask these questions indicate you are not an advanced user, and shouldn't be using Kali.

Restarting is a 'soft/warm' reboot. Halts the SOFTWARE and reloads everything.
Shutting down involves the physical hardware, and sending interrupts to the power supply. You mention the ACPI error, and only now mention using a Lenovo Thinkpad. Did you install this using secure boot? This could be related to the APMD modules, the video driver, or UEFI. Since you don't tell us what kind of Thinkpad you're using, it's hard to say. You can try to add "noefi" to the end of your boot line in GRUB, but you have posted the solution to your problem already.

Mint works; use Mint. You *DO NOT NEED* Kali, and you certainly don't need to install it physically, when you can get the Virtualbox image and use it with zero problems.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kali and parrot OS Will Not Shut Down or Restart linuxmainia Linux - Laptop and Netbook 1 03-19-2019 07:56 PM
My Kali Linux and Parrot problem on VirtualBox Ejbureaterkas Linux - General 3 09-19-2017 07:41 AM
How to make Kali Linux look like Parrot OS (Configuring how Kali Linux looks) John1243 Linux - Distributions 1 03-21-2016 02:48 AM
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration