LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-08-2015, 09:23 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 LMDE installed tracking jessie. 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
  done
done
found at http://billauer.co.il/blog/2013/02/u...ci-uhci-linux/

I also found this code, which didn't work:

Code:
for i in /sys/bus/*/devices/*/power/control ; do 
     echo on > $i 
done
Any further things to try would be greatly appreciated.

Kind regards,
Nathan
 
Old 05-09-2015, 12:19 AM   #2
shockingbehavur
LQ Newbie
 
Registered: May 2015
Posts: 17

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

reminds me of my 486 from years. turned out i was setting it up like a server or something. anyway is there alot of server services running for the same task or any services?
 
Old 05-09-2015, 01:18 AM   #3
shockingbehavur
LQ Newbie
 
Registered: May 2015
Posts: 17

Rep: Reputation: 0
probably services doing the same tasks like my other post in thread if there is a bootstrap that is inplace maybe its updating to often
 
Old 05-09-2015, 01:37 PM   #4
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,493

Rep: Reputation: Disabled
Have you tried poweroff instead of shutdown -h now, might work.
 
Old 05-20-2015, 12:03 AM   #5
woodnt
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Have you tried poweroff instead of shutdown -h now, might work.
I just tried it. Same thing. I have tried

Code:
# shutdown -h now
Code:
# halt
and now
Code:
# poweroff
None work.

And the GUI ways to shutdown using cinnamon icons. All cause a reboot.

I would like to not have to issue a command line command to shutdown, but be able to shutdown with GUI AND with command line as a normal machine could do. I don't mind adding a script to something like /etc/rc0.d to make that happen, I just haven't found anything that works more than once.

Kindly,
Nathan
 
  


Reply

Tags
rebooting, shutdown, usb, xhci



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
Computer reboots on shutdown related to xhci woodnt Linux - Laptop and Netbook 3 06-22-2015 09:45 AM
Zenwalk reboots after shutdown adriv Zenwalk 2 10-20-2007 04:53 PM
Shutdown reboots my laptop!! SpiderIRE Fedora - Installation 5 02-08-2005 12:26 PM
System reboots on giving shutdown prabhatsoni Linux - Laptop and Netbook 5 12-31-2004 05:33 AM
Won't Load, Reboots instead (AMD Related?) fadedmaster Red Hat 7 11-25-2004 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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