From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1czQwd-0000Mp-Bn for mharc-grub-devel@gnu.org; Sat, 15 Apr 2017 12:53:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czQwZ-0000Mb-Sk for grub-devel@gnu.org; Sat, 15 Apr 2017 12:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czQwW-0001Up-PG for grub-devel@gnu.org; Sat, 15 Apr 2017 12:53:03 -0400 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:33704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1czQwW-0001TD-Gn for grub-devel@gnu.org; Sat, 15 Apr 2017 12:53:00 -0400 Received: by mail-lf0-x230.google.com with SMTP id 88so4739270lfr.0 for ; Sat, 15 Apr 2017 09:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=bG6XciQqkjyN06+t0KjSUrZSVIAOaWy4AR5bMsq2SPA=; b=lCgxdSCXrkzWxaqBTaEs6v0wA8ZHmtC/QlJbo6zJTqcsjw3RBhAa2YK/nOXQ4LLJL5 2sm9B2JeNX96HK6TihKv2VJrjFPvFj4+6Dz+rfuis1r8PG8nb+v1O9XyezXughBleCVK W3Aus2i9V3m8Oe+MPPBpXPBwGVqP+cmGbllhhN0XVfHcgI0nnb6F+cRTGfaxCcAunIQA MWozYZqk4Fgv05QvV9MeiGD0NF2fRkkeQwJC39BYN6H8J1c3yanerps59rb6rDTbemq0 H4vl2orDNCFBB42IZUawpL/wd6tHQ82xbVCWRly9JPdbMKfoBHQJexIo6jgp6c3Hc+eR 6Xmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=bG6XciQqkjyN06+t0KjSUrZSVIAOaWy4AR5bMsq2SPA=; b=bPJ+UTBIQhxQ3900ePf3mFxQekrejGhQ/JER+U5d70KoafypgUYbAxeioW6aHf7GfB fQUFnzEFijCPSv6mHyHv84adQtF1EuT0UonBSr+Dj4AhgLf33hdFSYaOpowd/VjbpqKF OpNr9eLOq+Yi+akxY46OICbNrAEuT/g+Ai26i/h8Wr6OQT8ANaOPg6XVU3oadhCan2MB UU0PaibG0mdQYDSPKxZPXtQKWbdnUNOgGE1yFCeht9cJJmtMuC5DT9FC4veVC00UAL2L lil0yAweNdae6bu9hyvAhdzS08Jt2Rh6c8boIKHMXBPdoSqPeQXrxW84maP8LDvT1xiv FyRg== X-Gm-Message-State: AN3rC/7AoWlsFDVRwdTmt5fF1ydm0rrqcLs0j9zjdCkjWvO2/ZktH+oi kCTvBNHBCmfa6Kaw X-Received: by 10.46.14.9 with SMTP id 9mr788572ljo.27.1492275178727; Sat, 15 Apr 2017 09:52:58 -0700 (PDT) Received: from [192.168.1.5] (ppp109-252-90-38.pppoe.spdop.ru. [109.252.90.38]) by smtp.gmail.com with ESMTPSA id b17sm1025351lje.13.2017.04.15.09.52.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Apr 2017 09:52:57 -0700 (PDT) Subject: =?UTF-8?Q?Re:_`halt`_doesn=e2=80=99t_work_on_Lenovo_T60_with_corebo?= =?UTF-8?Q?ot_and_GRUB_payload?= To: grub-devel@gnu.org References: <1492273973.2222.113.camel@users.sourceforge.net> From: Andrei Borzenkov Message-ID: <4ffa9a9b-0234-9ac2-a8ec-d5dfd72855ac@gmail.com> Date: Sat, 15 Apr 2017 19:52:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1492273973.2222.113.camel@users.sourceforge.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7unRqC37SCWXM6cuiGURqAxH36HFNAsOp" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::230 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 16:53:05 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7unRqC37SCWXM6cuiGURqAxH36HFNAsOp Content-Type: multipart/mixed; boundary="8VMgTmQeNqPFDF0OtOSA7Tpsep9QqA4uD" From: Andrei Borzenkov To: grub-devel@gnu.org Message-ID: <4ffa9a9b-0234-9ac2-a8ec-d5dfd72855ac@gmail.com> Subject: =?UTF-8?Q?Re:_`halt`_doesn=e2=80=99t_work_on_Lenovo_T60_with_corebo?= =?UTF-8?Q?ot_and_GRUB_payload?= References: <1492273973.2222.113.camel@users.sourceforge.net> In-Reply-To: <1492273973.2222.113.camel@users.sourceforge.net> --8VMgTmQeNqPFDF0OtOSA7Tpsep9QqA4uD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 15.04.2017 19:32, Paul Menzel =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Dear GRUB folks, >=20 >=20 > 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. >=20 > Setting `debug=3Dall` before that =E2=80=93 `debug=3Dhalt` didn=E2=80=99= t work =E2=80=93 the last > lines are below. >=20 > ``` > [=E2=80=A6] > commands/acpihalt.c:107: data type =3D 0x12 > commands/acpihalt.c:241: Opcode 0x8 > commands/acpihalt.c:242: Tell 2dbd > commands/acpihalt.c:107: data type =3D 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 =3D 7, port =3D 0x504 > ``` >=20 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)? > 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].=20 >=20 >> 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. >=20 > I heard, that SysV implemented `halt` =E2=80=9Cincorrectly=E2=80=9D, 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=E2=80=99t know, how GRUB=E2=80=99s implementation of `ha= lt` is supposed > to work. >=20 >=20 > Kind regards, >=20 > Paul >=20 >=20 > [1] https://www.gnu.org/software/grub/manual/html_node/halt.html#halt >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --8VMgTmQeNqPFDF0OtOSA7Tpsep9QqA4uD-- --7unRqC37SCWXM6cuiGURqAxH36HFNAsOp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAljyT+IACgkQR6LMutpd94yDtACguWZj9TxGuL5WYATkt3KdlmAp j9QAnAgBWnTgQ6ggJqzk9QABaWYnhLpE =4lE6 -----END PGP SIGNATURE----- --7unRqC37SCWXM6cuiGURqAxH36HFNAsOp--