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: BootingSeverity: Major
Priority: 3 - LowItem Group: Feature Request
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: None
Planned Release: 2.03+

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

Actually, it is Lenovo Yoga 2 tablet.
http://shop.lenovo.com/us/en/tablets/lenovo/yoga-tablet-series/yoga-tablet-2-10/?sb=:000001C9:0001639D:#tab-tech_specs

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:
http://dl-1.va.us.xda-developers.com/3/2/9/4/0/6/1/322.jpg?key=I5jKGCei2TYaIbYrP736-w&ts=1447917071

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
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by arvidjaar (Posted a comment)
  • -unavailable- added by pbludov (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Oct 2016 12:31:28 PM UTCphcoderPriority5 - Normal=>3 - Low
    Wed 02 Mar 2016 10:45:13 AM UTCphcoderPlanned ReleaseNone=>2.03+
    Fri 20 Nov 2015 09:22:43 AM UTCpbludovAttached File-=>Added 0001-new-key-aliases.patch, #35503

    Back to the top


    Powered by Savane 3.1-cleanup1