bugGNU GRUB - Bugs: bug #46463, Up/down key aliases


You are not allowed to post comments on this tracker with your current authentication level.

bug #46463: Up/down key aliases

Submitted by:  Pavel Bludov <pbludov>
Submitted on:  Tue 17 Nov 2015 11:52:16 AM UTC  
Category:  Booting Severity:  Major
Priority:  3 - Low Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  Git master Reproducibility:  None
Planned Release:  2.03+

Thu 19 Nov 2015 07:50:02 AM UTC, comment #2:

Actually, it is Lenovo Yoga 2 tablet.

The Android version has no other buttons. Volume up/down & power.
Although it is Android tablet, the device has ordinary EFI partition and something like a BIOS:

The BIOS is fully usable with two buttons. Short press to select, long press to Enter/Escape. The main problem is lack of OTG support at the boot time.
There are VBUS related options in the BIOS, but I didn't touch them. I'm afraid to get a "pseudo-brick" device that is not available via the fastboot utility, but which loads the Grub menu where I can't start the OS nor enter the BIOS.
So I seek a way to use the Grub anyhow to go forward.

The touchscreen is I2C based and useless for grub.

I'm understand that my idea of using up/down keys as menu entry hotkeys is weird (they will work only before the menu will be shown) but it does not break anything.

Another possibility, which I now research, is to implement the minimal fastboot daemon to connect the tablet to the PC and control the Grub via "fastboot oem keystroke c\n fwsetup\n" or something like that.

The idea to monitor simultaneous press (or long press) is also good. But such a mode needs to be explicitly enabled, like "set awful_tablet_mode=twokeys" in the config file, so not to confuse users with normal keyboard.

Pavel Bludov <pbludov>
Tue 17 Nov 2015 04:49:50 PM UTC, comment #1:

Does it have no other key at all? What tablet is it? I wonder if we can detect simultaneous pressing of two buttons and simulate ENTER key.

I assume it is EFI based. Do you know interface to get touch events?

Andrei Borzenkov <arvidjaar>
Project Member
Tue 17 Nov 2015 11:52:16 AM UTC, original submission:

Please add hotkey aliases for the keys up and down.
I'm trying to set up a tablet for multiboot. During the boot time only volume buttons are available it this case. The buttons works as up/down keys. But there is no enter key at all.
My idea is to bind the buttons to 2nd/3rd menu entry.
The 1st entry will be default one, triggered by the timer.

Pavel Bludov <pbludov>


Attached Files
file #35503:  0001-new-key-aliases.patch added by pbludov (2KiB - text/x-patch - Patch & sample config file)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by pbludov (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal => 3 - Low
    2016-03-02 phcoder Planned ReleaseNone => 2.03+
    2015-11-20 pbludov Attached File- => Added 0001-new-key-aliases.patch, #35503

    Back to the top

    Powered by Savane 3.3