LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2015, 02:12 AM   #1
tauro_kpo
Member
 
Registered: Feb 2007
Distribution: Debian
Posts: 113

Rep: Reputation: 16
Question Laptop hangs when booting after soft-reset (after hard-booting to GNU/Linux)


Hello GNU/Linux experts.

This is a dual booting (GRUB 2) UEFI 64-bit laptop.

If I hard-boot (shut-down the computer and turn it on manually) to GNU/Linux (Debian, Ubuntu, different kernels, up to 4.0.4) the system works fine, but if I reboot (shutdown -r now, reboot, init 6), when the computer starts again it will ALWAYS hang when loading the operative system (it doesn't matter if I choose GNU/Linux or Windows 8.1).

When booting GNU/Linux it hangs at "loading initial ramdisk...", or sometimes it passes it but hangs right afterwards, at the first line of systemd. When booting Windows 8.1 it doesn't display any message, it hangs shortly after showing the Windows logo.

Now here's an interesting thing: If I hard-boot into Windows 8.1 and I soft-reset, then the computer will boot to any system without any problems. And not only once, I can reboot for an unlimited amount of times any system. But this ends if I shutdown or sleep the computer. Then the problem is here again, unless I hard-boot to Windows again.

To put it more graphically, the boot order can be WIN->ANY-OS->ANY-OS, etc. But it can never be GNU/LINUX->ANY OS.

I don't know why this happens. I've been reading a lot but I haven't found info of anything like this anywhere so I hope someone here can tell me where the problem might be. I'm ready to do any suggested tests or post any outputs needed. All ideas will be much appreciated.
 
Old 06-22-2015, 12:40 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
This is propably ACPI bug. Is your laptop very recent?

Report the bug in appropriate mailing list. Hope someone fixes it.
 
Old 06-22-2015, 02:03 PM   #3
tauro_kpo
Member
 
Registered: Feb 2007
Distribution: Debian
Posts: 113

Original Poster
Rep: Reputation: 16
Question

UEFI misconfiguration or restriction? or Linux (kernel) ACPI bug?

Quote:
This is propably ACPI bug.
Yes, maybe a very subtle bug that ends up ruin everything. What would be the best way to troubleshoot this particular bug?

Remember that I can boot GNU/Linux with the problem already fixed (rebooting a hard-booted Win 8.1) or with the problem preset (hard-booting to GNU/Linux), so maybe I can check some logs or do some tests in order to find a difference in the system.

Quote:
Report the bug in appropriate mailing list.
Which one would it be?

Quote:
Is your laptop very recent?
I'm afraid yes, and it isn't very common. I bought it weeks ago, but I think that this motherboard/BIOS is a year old at the most. It's one of those hybrid laptop+touch-screen. It works really well with Windows 8.1, but configuring Debian has been very hard so far.

The computer is generic and I don't know the make and model of the motherboard because those DMI data fields are empty and I couldn't find it when I opened it. It has an Intel Celeron N2807 microprocessor.

This is some BIOS info:

Code:
AMI BIOS
Core version: 5.009
Compilancy: UEFI 2.3: PI 1.2
BIOS VERSION: B14AP254
EC VERSION: E14AK115
EC DATE AND TIME: 06/05/2014

CPU-> Microcode Patch: 809

Intel GOP Driver: 7.1.1005

TXE Info:

Sec RC Version: 00.05.00.00
TXE FW Version: 01.01.00.1089

At the POST screen, it displays:
AMI Bios 1AREF015, Ver. 2.16.1242 2013 05/15/2014
Quiet boot = disabled
Fast boot = disabled
Secure boot = disabled
BIOS Read/Write protection = disabled

I installed both systems with secure boot disabled.

As a second possibility I think this may also be a BIOS/UEFI misconfiguration, but I investigated every BIOS setting and I couldn't find the problem. In case anybody thinks this is the reason, these are the variables that efivar --list returns:

Code:
8be4df61-93ca-11d2-aa0d-00e098032b8c-KEK
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLangCodes
8be4df61-93ca-11d2-aa0d-00e098032b8c-SecureBoot
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar0300030700
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar0100010400
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0009
35c936af-e1e1-441a-bad1-e1544e9d97a6-SecureFlashSetupVar
8be4df61-93ca-11d2-aa0d-00e098032b8c-SignatureSupport
01368881-c4ad-4b1d-b631-d57a8ec8db6b-MemCeil.
560bf58a-1e0d-4d7e-953f-2980a261e031-SerialPortsEnabledVar
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbMassDevValid
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot000A
36d08fa7-cf0b-42f5-8f14-68df73ed3740-PreviousBoot
4599d26f-1a11-49b8-b91f-858745cff824-StdDefaults
8be4df61-93ca-11d2-aa0d-00e098032b8c-ErrOut
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConInDev
aca9f304-21e2-4852-9875-7ff4881d67a5-PCI_COMMON
b540a530-6978-4da7-91cb-7207d764d262-FastBootOption
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar0100010500
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0002
8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOptionSupport
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0005
8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLang
8be4df61-93ca-11d2-aa0d-00e098032b8c-Timeout
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0008
d719b2cb-3d3a-4596-a3bc-dad00e67656f-dbx
7459a7d4-6533-4480-bba7-79e25a4443c9-DriverHealthCount
9d0da369-540b-46f8-85a0-2b5f2c301e15-EfiTime
af9ffd67-ec10-488a-9dfc-6cbf5ee22c2e-AcpiGlobalVariable
711c703f-c285-4b10-a3b0-36ecbd3c8be2-CapsuleLongModeBuffer
0885f288-418c-4be1-a6af-8bad61da08fe-DriverHlthEnable
8be4df61-93ca-11d2-aa0d-00e098032b8c-SetupMode
4c19049f-4137-4dd3-9c10-8b97a83ffdfa-PreviousMemoryTypeInformation
4bafc2b4-02dc-4104-b236-d6f1b98d9e84-S3SS
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiArray
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
e6c2f70a-b604-4877-85ba-deec89e117eb-PchS3Peim
d1405d16-7afc-4695-bb12-41459d3695a2-NetworkStackVar
3812723d-7e48-4e29-bc27-f5a39ac94ef1-ItkBiosModVar
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar0100011900
80e1202e-2697-4264-9cc9-80762c3e5863-Setup
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0001
e08126e5-b93c-4f5e-8e81-6dfcf34ff88e-FirmwareUpdateCountVar
4c19049f-4137-4dd3-9c10-8b97a83ffdfa-MemoryTypeInformation
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-Setup
560bf58a-1e0d-4d7e-953f-2980a261e031-SioSerialPortsLocationVar
d719b2cb-3d3a-4596-a3bc-dad00e67656f-dbt
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0007
dde1bc72-d45e-4209-ab85-14462d2f5074-HobRomImage
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar0100010700
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbSupport
ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbMassDevNum
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootCurrent
e6c2f70a-b604-4877-85ba-deec89e117eb-PchInit
8be4df61-93ca-11d2-aa0d-00e098032b8c-ErrOutDev
01368881-c4ad-4b1d-b631-d57a8ec8db6b-MonotonicCounter
8be4df61-93ca-11d2-aa0d-00e098032b8c-PK
97ca1a5b-b760-4d1f-a54b-d19092032c90-DebuggerSerialPortsEnabledVar
4b3082a3-80c6-4d7e-9cd0-583917265df1-WriteOnceStatus
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar0200020700
a9b5f8d2-cb6d-42c2-bc01-b5ffaae4335e-PBRDevicePath
f3ed95df-828e-41c7-bca0-16c41965a634-TcgInternalSyncFlag
01368881-c4ad-4b1d-b631-d57a8ec8db6b-FPDT_Variable
d719b2cb-3d3a-4596-a3bc-dad00e67656f-db
8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0000
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiVar0100010800
c811fa38-42c8-4579-a9bb-60e94eddfb34-AMITSESetup
964e5b21-6459-11d2-8e39-00a0c969723b-EDD30
8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOutDev
8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndicationsSupported
c020489e-6db2-4ef2-9aa5-ca06fc11d36a-AcpiGlobalVariable
I can access them all as root and print their content, but these few return an Input/Output error:

8be4df61-93ca-11d2-aa0d-00e098032b8c-KEK
4b3082a3-80c6-4d7e-9cd0-583917265df1-DmiArray
d719b2cb-3d3a-4596-a3bc-dad00e67656f-dbt
d719b2cb-3d3a-4596-a3bc-dad00e67656f-db

I could post the output of all of them, but it would take me a lot of time and I'm not sure it would help. Perhaps somebody knows what variables may be interesting to investigate and post.

I compared each and every one of them after hard-booting Windows 8.1 and after hard-booting GNU/Linux, and they are exactly the same. The only one that changes every time one boots is 01368881-c4ad-4b1d-b631-d57a8ec8db6b-MonotonicCounter, which seems to be a boot counter. I also compared the dmesg and I couldn't find any difference.

Just for the record changing almost all BIOS/UEFI settings I thought were related didn't help. For instance, disabling SMI didn't make no difference.

The ACPI bug hypothesis seems the strongest so far.

I hope somebody can shed a little light on this.

Last edited by tauro_kpo; 06-22-2015 at 02:07 PM.
 
Old 06-22-2015, 06:59 PM   #4
tauro_kpo
Member
 
Registered: Feb 2007
Distribution: Debian
Posts: 113

Original Poster
Rep: Reputation: 16
I have some news.

If I hard boot to GNU/Linux and hibernate, then I can reboot/restart all the times I want (just like if I had run Windows).

So the only two ways to be able to soft-reboot and restart correctly the computer is hibernating GNU/Linux or booting Windows.


Graphically:

GNU/Linux (hibernate) -> ANY OS
WIN 8.1 > ANY OS

So I'm leaning towards the hypothesis that this is a Linux (kernel) problem. How can I find out what is wrong?



BONUS:
I don't know if this information helps, but I tried these boot options and this is my outcome:

BOOT
Acpi=ht Reboots? No.
pnpacpi=off Reboots? No.
Noapic Reboots? No.

DON'T BOOT
acpi=off
Pci=noacpi
Acpi=noirq
nolapic

Last edited by tauro_kpo; 06-22-2015 at 07:08 PM.
 
Old 06-23-2015, 02:19 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
In your distro support list or if you can Linux kernel mailing list.
 
  


Reply

Tags
boot, hang, reboot, reset, uefi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems dual booting from a Laptop with an external hard drive AndyInMokum Linux - Newbie 8 06-20-2013 07:16 PM
Dual booting with a laptop and external hard drive. AndyInMokum Linux - Newbie 17 06-16-2013 03:13 AM
Booting GNU/Linux from USB Phoxis Linux - General 16 04-15-2010 04:26 AM
Lenny hangs up, soft reset impossible wgac Debian 14 01-09-2008 12:55 PM
RH9 hangs on soft reset -- help steelgrave Linux - Hardware 2 05-29-2003 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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