LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-29-2015, 04:10 PM   #1
woodnt
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled
Computer reboots on shutdown related to xhci


Hello,

I have a Lenovo Flex 2 15" with Debian tracking jessie installed. When I shutdown or halt from the command line or GUI, it will shut off completely, but then after around 3 seconds, it will reboot. The only way I can shutdown, is to hit the power button after it starts to go to the grub2 screen.

Some have had this solved by adding noirq to the startup, but this makes my system unbootable. I tried acpi=off, but that is unbootable as well. I then tried noacpi (which unreliably works).

I have found that if I disable xhci in bios, then the system behaves normally (falling back to ehci). However, this is not a solution I care for, because it prevents me from using USB 3.0 speeds.

I have looked high and low on a solution that will work in my situation, but came up bubkis, including this script:

Code:
#!/bin/bash

if [[ $EUID != 0 ]] ; then
  echo This must be run as root!
  exit 1
fi

for xhci in /sys/bus/pci/drivers/?hci_hcd ; do

  if ! cd $xhci ; then
    echo Weird error. Failed to change directory to $xhci
    exit 1
  fi

  echo Resetting devices from $xhci...

  for i in ????:??:??.? ; do
    echo -n "$i" > unbind
    echo -n "$i" > bind
  done
done
found at http://billauer.co.il/blog/2013/02/u...ci-uhci-linux/

I also tried similar kernel /sys settings for usb changing control from auto to on which worked on some laptops, but not mine.

Any further things to try would be greatly appreciated.

Kind regards,
Nathan
 
Old 04-30-2015, 04:18 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
I have a similar problem (notebook rebooting after ~3 seconds on its own after a "shutdown -h now") with a HP ProBook 470 G0.
BUT: only when connected through ethernet - if the cable is not plugged in then it just shuts off and stays off.
(changing wake-on-lan settings did not help)
 
Old 05-01-2015, 10:18 AM   #3
orhank
LQ Newbie
 
Registered: Dec 2012
Location: Istanbul, Turkey
Distribution: Debian 10.7, FreeBSD13
Posts: 27
Blog Entries: 1

Rep: Reputation: Disabled
try shutdown -hP now
 
1 members found this post helpful.
Old 06-22-2015, 09:45 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
+1 shutdown -h -P now

That's what the acpid event does when you push the power button in debian. The -P is for power off or some such, but may be x86 / bios centric.
 
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
Zenwalk reboots after shutdown adriv Zenwalk 2 10-20-2007 04:53 PM
system reboots when i shutdown -h now. any ideas why? nass Slackware 11 04-27-2006 08:14 AM
System reboots after shutdown after some time cccc828 Slackware 4 05-15-2005 04:16 AM
Shutdown reboots my laptop!! SpiderIRE Fedora - Installation 5 02-08-2005 12:26 PM
Won't Load, Reboots instead (AMD Related?) fadedmaster Red Hat 7 11-25-2004 01:16 PM

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

All times are GMT -5. The time now is 05:25 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