[maemo-developers] N810 & FN key & X

From: Matthew Exon 20173196 at exon.name
Date: Tue Mar 11 18:08:30 EET 2008
Tuomas Kulve wrote:
> Hi
> 
> The FN key on N810 keyboard seems to send (the standard FN) keycode 464
> which is a bit tricky as X doesn't support keycodes over 255 (afaik).
> 
> HAL should be able to remap the keycodes using the EVIOCSKEYCODE with
> the ioctl but I get EINVAL on n810 and n800 when I try to use it. On my
> PC it works without errors.

Sorry I can't help, but I wonder if someone can help me with my keyboard
problem?

I have a ThinkOutside stowaway bluetooth keyboard and several of the
keys are dead, as far as I can tell because evdev ignores their
keycodes.  Unlike this case, however, the keycodes that get sent are
under 255, so it sounds like I should be able to do this
HAL/EVIOCSKEYCODE thing to remap them to something else.

Can someone give me some pointers on how to do this?  After googling, I
think I need to use hal-set-property to set some properties, but after
trying to set various keys to "b", it doesn't seem to be having any
effect.  I don't know if I'm allowed to simply append "input.keymap" to
the list of capabilities, and it will magically make my keyboard capable
of that?

Thanks,
Mat

hal-set-property --udi
/org/freedesktop/Hal/devices/computer_logicaldev_input_2 --key
input.keymap.data --strlist-post e01e:b
hal-set-property --udi
/org/freedesktop/Hal/devices/computer_logicaldev_input_2 --key
info.capabilities --strlist-post input.keymap

~ $ hal-device /org/freedesktop/Hal/devices/computer_logicaldev_input_2
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2'
  linux.device_file = '/dev/input/event7'  (string)
  input.xkb_rules = 'base'  (string)
  input.product = 'Think Outside Keyboard'  (string)
  input.xkb_layout = 'us'  (string)
  info.capabilities = { 'input', 'input.keyboard', 'input.keypad',
'input.keys', 'button', 'input.keymap' } (string list)
  info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_2'
 (string)
  linux.subsystem = 'input'  (string)
  info.product = 'Think Outside Keyboard'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  input.xkb_model = 'evdev'  (string)
  input.xkb_variant = ''  (string)
  linux.sysfs_path = '/sys/class/input/input7/event7'  (string)
  info.addons.singleton = { 'hald-addon-input' } (string list)
  input.x11_driver = 'evdev'  (string)
  input.keymap.data = { 'e01e:b', 'e01c:b' } (string list)
  info.category = 'input'  (string)
  input.device = '/dev/input/event7'  (string)
  input.xkb_options = ''  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)

More information about the maemo-developers mailing list