Public bug reported:
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
```
** Affects: grub
Importance: Undecided
Status: New
** Affects: oem-priority
Importance: High
Status: New
** Affects: oem-priority/precise
Importance: High
Status: New
** Affects: grub2 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: grub
Importance: Undecided
Status: New
** Also affects: oem-priority
Importance: Undecided
Status: New
** Also affects: oem-priority/precise
Importance: Undecided
Status: New
** Changed in: oem-priority
Importance: Undecided => High
** Changed in: oem-priority/precise
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1178618
Title:
add a command to detect function key status.
To manage notifications about this bug go to:
https://bugs.launchpad.net/grub/+bug/1178618/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs