[Bug 1178618] Re: --hotkey option does not work when the menu is hidden
Franz Hsieh
franz.hsieh at canonical.com
Tue May 28 05:12:46 UTC 2013
- Previous message: [Bug 1178618] Re: --hotkey option does not work when the menu is hidden
- Next message: [Bug 1178621] [NEW] Traceback (most recent call last): File "/usr/lib/ubiquity/ubiquity/plugin.py", line 48, in wrapper return target(self, *args, **kwargs) File "/usr/lib/ubiquity/plugins/ubi-console-setup.py", line 293, in on_keyboard_layout_selected ly = keyboard_names.layout_id(l, misc.utf8(layout)) File "/usr/lib/ubiquity/ubiquity/keyboard_names.py", line 142, in layout_id return kn.layout_id(lang, value) File "/usr/lib/ubiquity/ubiquity/keyboard_names.py", line 90, in layout_id return self._layout_by_human[value] KeyError: 'Switzerland'
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
@Colin, @Hsin-Yi
I have done a new patch that adds 100ms delay and checks hotkey in:
file: ${src}/grub-core/normal/menu.c
...
/* If timeout is 0, drawing is pointless (and ugly). */
if (grub_menu_get_timeout () == 0)
{
*auto_boot = 1;
return default_entry;
}
...
With this patch, we only have to set --hotkey f9 to menuentry, and users can
press f9 to enter recovery mode even grub runs in quiet mode.
** Patch added: "ubuntu_quiet_hotkey.patch"
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1178618/+attachment/3688381/+files/ubuntu_quiet_hotkey.patch
--
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:
--hotkey option does not work when the menu is hidden
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
- Previous message: [Bug 1178618] Re: --hotkey option does not work when the menu is hidden
- Next message: [Bug 1178621] [NEW] Traceback (most recent call last): File "/usr/lib/ubiquity/ubiquity/plugin.py", line 48, in wrapper return target(self, *args, **kwargs) File "/usr/lib/ubiquity/plugins/ubi-console-setup.py", line 293, in on_keyboard_layout_selected ly = keyboard_names.layout_id(l, misc.utf8(layout)) File "/usr/lib/ubiquity/ubiquity/keyboard_names.py", line 142, in layout_id return kn.layout_id(lang, value) File "/usr/lib/ubiquity/ubiquity/keyboard_names.py", line 90, in layout_id return self._layout_by_human[value] KeyError: 'Switzerland'
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the foundations-bugs
mailing list