Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] howto debug powerdown problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Sun Jul 28, 2013 3:03 pm    Post subject: [SOLVED] howto debug powerdown problem Reply with quote

Hallo Forum,
I wonder whether anybody could assist in debugging a problem whereby my machine reboots instead of powering off when issuing the command
Code:
shutdown -h now


Interesting enough this is not fully predictable as sometimes the machine actually turns off power when the command is entered (I'd guess in around 5-10% of cases only). According to the output on the console, the machine however always enters runlevel 0. Using
Code:
shutdown -hP now
does not change anything.

Startup errors can usually be tracked by dmesg / syslog, but how do I track shutdown issues after syslog has stopped?

The system is a 3.9.5-hardened gentoo linux running as a dom0 under xen 4.2.2

Any ideas on how to track down the issue would be very welcome.

Atom2


Last edited by Atom2 on Sat Aug 17, 2013 5:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Sat Aug 17, 2013 5:05 pm    Post subject: Reply with quote

Just a quick update: The problem is now solved - the system powers down reliably now. The resolution involved patching the kernel and the issue was caused by using the IOMMU and the Intel IGD driver.

Further details can be found here. This thread also describes how to debug powerdown issues over a serial console which proved to be very useful.

The follow-up thread here goes into further details with XEN developers and describes the final resolution which requires three kernel patches (well, actually reversing two commits and applying a third patch).

Regards Atom2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum