HotkeyResearch
|
Size: 2475
Comment: -s doesn't not work on old distro
|
Size: 2873
Comment: Improved the reporting process for hotkeys
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| In Ubuntu with a GNOME desktop go to: | To get the magic number (keycode) of a key, please: * Drop to the console with '''Ctrl-Alt-F1''' and login with your username and password * Stop the current `hotkey-setup` mapping so they don't affect the recording with: {{{ sudo /etc/init.d/hotkey-setup stop}}} * Run: {{{ sudo showkey -u | tee -a hotkey-log.txt}}} ignore the first '''0x9c''' that may show up---this is the result of you letting go of the return key! * Pressing and letting go of the non-working hotkey should now produce output similar: {{{ 0xe0 0x1f 0xe0 0x9f }}} the first half are the key-press and second-half are the key-release, please report this line (a log of what you did has been saved in `hotkey-log.txt` to help you). * Wait 10 seconds for `showkey` to exit. * Restart `hotkey-setup` again so that your existing keys show up: {{{ sudo /etc/init.d/hotkey-setup start}}} Also, in Ubuntu with a GNOME desktop go to: |
| Line 24: | Line 38: |
| If that doesn't work, please: * Drop to the console with '''Ctrl-Alt-F1''' and login * Run `sudo showkey -u | tee -a hotkey-log.txt`, ignore the first '''0x9c''' that may show up---this is the result of you letting go of the return key! * Pressing and letting go of the non-working hotkey should now produce output similar: {{{ 0xe0 0x1f 0xe0 0x9f }}} the first half are the key-press and second-half are the key-release, please report this line. * Wait 10 seconds for `showkey` to exit. Your laptop may not generate keyboard keycodes, but may instead generate ACPI events (a different way of reporting key-press events). Please do the following: |
Your laptop may not generate keyboard keycodes, but may instead generate '''ACPI events''' (a different way of reporting key-press events). Please do the following: |
| Line 57: | Line 62: |
| * Please report these strings. | * Please report these strings, one per line. |
Fixing hotkeys
Hello Bug reporter! Thanks for your report. To be able to fix the hotkeys on your laptop we need three things:
- What the key *should* do.
- What keycode (magic number) the key produces on your laptop.
- How to identify your laptop by the manufacturer and model.
What the key should do
If you're unsure what the key is supposed to do, reboot into the originally supplied operating system (eg. Microsoft Windows or Mac OS X) and describe what action happens there.
You should also include what the 'icon' on the key looks like (eg. looks like a half moon).
What keycode is of the key
To get the magic number (keycode) of a key, please:
Drop to the console with Ctrl-Alt-F1 and login with your username and password
Stop the current hotkey-setup mapping so they don't affect the recording with:
sudo /etc/init.d/hotkey-setup stop
Run:
sudo showkey -u | tee -a hotkey-log.txt
ignore the first 0x9c that may show up---this is the result of you letting go of the return key!
Pressing and letting go of the non-working hotkey should now produce output similar:
0xe0 0x1f 0xe0 0x9f
the first half are the key-press and second-half are the key-release, please report this line (a log of what you did has been saved in hotkey-log.txt to help you).
Wait 10 seconds for showkey to exit.
Restart hotkey-setup again so that your existing keys show up:
sudo /etc/init.d/hotkey-setup start
Also, in Ubuntu with a GNOME desktop go to:
System->Preferences->Keyboard Shortcuts
Pick a random action, such as Home folder by clicking once on the Disabled text.
- Press the hotkey
Disabled should now be replaced with the magic number of the hotkey, such as 0x9f.
Your laptop may not generate keyboard keycodes, but may instead generate ACPI events (a different way of reporting key-press events). Please do the following:
Open a Terminal, (Applications->Accessories->Terminal)
Run sudo tail -f /var/log/acpid
Press the hotkey and you may see output such as
received event "ibm/hotkey HKEY 00000080 00001010"
Finish by pressing Ctrl-c
- Please report the string between the "quote" marks.
Identifying your laptop
To be able to map the hotkey on your laptop correctly, we need to be able to tell if it is your laptop. Please:
Open a Terminal, (Applications->Accessories->Terminal)
Run:
$ sudo dmidecode -s system-manufacturer $ sudo dmidecode -s system-product-name $ sudo dmidecode -s system-version
You should see output like:
IBM 185869G ThinkPad R52
- Please report these strings, one per line.
- Argument -s doesn't not work on Ubuntu 5.10, use only dmidecode and found correct section
LaptopTestingTeam/Old/HotkeyResearch (last edited 2010-03-01 22:46:27 by 94)