HotkeyResearch

Differences between revisions 1 and 2
Revision 1 as of 2006-03-15 12:44:20
Size: 2380
Editor: i-83-67-101-17
Comment: Guide to reporting broken hotkeys
Revision 2 as of 2006-03-22 16:20:04
Size: 2475
Editor: home
Comment: -s doesn't not work on old distro
Deletions are marked like this. Additions are marked like this.
Line 58: Line 58:
  * Argument -s doesn't not work on Ubuntu 5.10, use only dmidecode and found correct section

Fixing hotkeys

Hello Bug reporter! Thanks for your report. To be able to fix the hotkeys on your laptop we need three things:

  1. What the key *should* do.
  2. What keycode (magic number) the key produces on your laptop.
  3. 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

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.

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:

  • 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.
  • 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)