grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `halt` doesn’t work on Lenovo T60 with coreboot and GRUB payload


From: Paul Menzel
Subject: Re: `halt` doesn’t work on Lenovo T60 with coreboot and GRUB payload
Date: Sun, 16 Apr 2017 21:34:38 +0200

Dear Andrei,


Thank you for your reply.


Am Samstag, den 15.04.2017, 19:52 +0300 schrieb Andrei Borzenkov:
> 15.04.2017 19:32, Paul Menzel пишет:

> > On a Lenovo T60 with coreboot and the GRUB payload, version 2.02-rc1,
> > entering `halt` in the GRUB command line, nothing happens. The cursor
> > goes one line below, and everything stays that way. After that, the
> > system can only be powered off by pressing the power button for ten
> > seconds.
> > 
> > Setting `debug=all` before that – `debug=halt` didn’t work – the last
> > lines are below.
> > 
> > ```
> > […]
> > commands/acpihalt.c:107: data type = 0x12
> > commands/acpihalt.c:241: Opcode 0x8
> > commands/acpihalt.c:242: Tell 2dbd
> > commands/acpihalt.c:107: data type = 0x12
> > commands/acpihalt.c:241: Opcode 0x8
> > commands/acpihalt.c:242: Tell 2dcd
> > commands/acpihalt.c:269: S5 found
> > commands/acpihalt.c:444: SLP_TYP = 7, port = 0x504
> > ```
> > 
> 
> So grub found how to power off system from ACPI table. Next it attempts
> to do it. If it fails, you should see at least error message "ACPI
> shutdown failed". If you do not see it, it looks like it is stuck
> somewhere in firmware. It is quite possible that firmware expects us to
> do something else before actually entering S5 state. In particular,
> there are several ACPI methods that are expected be executed by OS
> before actually performing state transition.
> 
> Could you make available ACPI tables (/sys/firmware/acpi/tables/* on
> modern Linux kernel)?

Please find the output of `acpidump` attached.

> > I would have expected at least the monitor to go dark, and maybe also
> > the system to power off as there is no specific command `poweroff`
> > [1]. 
> > 
> > > The command halts the computer. If the --no-apm option is specified,
> > > no APM BIOS call is performed. Otherwise, the computer is shut down
> > > using APM.
> > 
> > I heard, that SysV implemented `halt` “incorrectly”, so that it also
> 
> It is irrelevant here. GRUB halt attempts to call ACPI to initiate S5
> (power off) transition.
> 
> > powered off the system. Only `halt -p` or `poweroff` was supposed to
> > that. so I don’t know, how GRUB’s implementation of `halt` is supposed
> > to work.


Thanks,

Paul

Attachment: txtitgmPAEAw1.txt
Description: Text document

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]