[Bug 1178618] Re: add a command to detect function key status.
Hsin-Yi, Chen (hychen)
1178618 at bugs.launchpad.net
Wed May 15 06:41:57 UTC 2013
@Colin , @James
Yes, I understand the patch is not perfect solution, user will need to
repeat key pressing until it is trigged.
The author of the patch , Cyrus have tried the menuentry --hotkey
option, but It does not fit our need because we hope the hotkey can
still be trigged even menu is hidden (like sleep command does).
by current design, the --hotkey option only works when menu is not
hidden .
** Changed in: oem-priority/precise
Status: Incomplete => Confirmed
** Changed in: oem-priority
Status: Incomplete => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1178618
Title:
add a command to detect function key status.
Status in GRand Unified Bootloader:
New
Status in OEM Priority Project:
Confirmed
Status in OEM Priority Project precise series:
Confirmed
Status in “grub2” package in Ubuntu:
New
Bug description:
Grub2 can detect key modifier status in 'sleep --interruptible',
so that you can interrupt the sleep by pressing Shift.
(src: grub-core/commands/sleep.c)
It will be useful if grub2 can also detect function key status,
so user can boot to pre-defined grub menu entry by press specified
function key.
Here is a proposed command name and usage.
- getfunctionkey -i {sec} {keyname}
Here is an example of configuration that user can start memory test
whiling he is pressing F9.
```
if ! getfunctionkey -i 3 f9 ; then
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root d458babc-81f0-4dd7-ac88-410407141e2c
linux16 /boot/memtest86+.bin
}
fi
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/grub/+bug/1178618/+subscriptions
More information about the foundations-bugs
mailing list