Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fajJC-0004PB-Th for mharc-grub-devel@gnu.org; Wed, 04 Jul 2018 11:03:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fajJA-0004Np-GM for grub-devel@gnu.org; Wed, 04 Jul 2018 11:03:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fajJ7-0000kD-DS for grub-devel@gnu.org; Wed, 04 Jul 2018 11:03:04 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:53610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fajJ7-0000jq-2u for grub-devel@gnu.org; Wed, 04 Jul 2018 11:03:01 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w64EwvF1079880; Wed, 4 Jul 2018 15:02:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=70mPSn7WZsFToUtmEXr2pJOUDEqBAVR2o4n5whLNUp4=; b=cTKlDOXnd2N5CYSz7xmssqLJLGpFq9TdooQiKsLbmhpoKZjIDIxGZwELfj8ex4pcO3Yv Rr4xM3bNfymGQ7MIDD9FRmutfWL6ZI2K6OddphbjpkaE51+ivHsVv8TcjNR6I9QHFQqx pap8YKZHGFkoCTexrDmEBUXYPDwKsw8oDTjCt/4RtDH4Vhy42fJzjsEJyG+jKQi4rRZ6 BJ54Y3LsBIj6YSf/aLkY3s1cdE7cxnmrz6mWWOKyB91eh29yz44e0YPyy98T7VhO7X0c m7fqQut0uYJC5sGf6rzegq2HDoSSLNlFOmAnc91dB+OZ0rfAdQjuCHikypd1yhCTjB6Y mg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2k0dnjk3yb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Jul 2018 15:02:59 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w64F2wTn016119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Jul 2018 15:02:58 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w64F2veh014116; Wed, 4 Jul 2018 15:02:58 GMT Received: from olila.local.net-space.pl (/10.175.166.148) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Jul 2018 08:02:57 -0700 Date: Wed, 4 Jul 2018 17:02:53 +0200 From: Daniel Kiper To: Hans de Goede Cc: grub-devel@gnu.org Subject: Re: [PATCH] EFI: console: Fix the "enter" key not working on X86 tablets Message-ID: <20180704150253.GE26572@olila.local.net-space.pl> References: <20180626181501.20755-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180626181501.20755-1-hdegoede@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8943 signatures=668704 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=716 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807040172 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.85 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: Wed, 04 Jul 2018 15:03:05 -0000 On Tue, Jun 26, 2018 at 08:15:01PM +0200, Hans de Goede wrote: > Most 8" or 7" x86 Windows 10 tablets come with volume up/down buttons and > a power-button. In their UEFI these are almost always mapped to arrow > up/down and enter. > > Pressing the volume buttons (sometimes by accident) will stop the > menu countdown, but the power-button / "enter" key was not being recognized > as enter, so the user would be stuck at the grub menu. > > The problem is that these tablets send scan_code 13 or 0x0d for the > power-button, which officialy maps to the F3 key. They also set > unicode_char to 0x0d. > > This commit recognizes the special case of both scan_code and unicode_char > being set to 0x0d and treats this as an enter key press. > > This fixes things getting stuck at the grub-menu and allows the user > to choice a grub-menu entry using the buttons on the tablet. > > Signed-off-by: Hans de Goede Reviewed-by: Daniel Kiper If there are no objections I will apply this in a week or so. Daniel