Hal and helper scripts

Mattia mattia.list at gmail.com
Thu Apr 23 12:10:13 PDT 2009


Hi all,

I'm trying to associate the Fn+e button with the command eject.
With acpid I used something like:
# Fn_e
event=sony/hotkey SPIC 00000001 0000001b
action=/etc/acpi/actions/eject

How can I do it with hal?
I'm new to hal, so I don't know what could be useful. Maybe this:

8: udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1'
  info.callouts.add = { 'hal-setup-keymap', 'debian-setup-keyboard' } (string list)
  input.device = '/dev/input/event7'  (string)
  input.product = 'Sony Vaio Keys'  (string)
  info.addons.singleton = { 'hald-addon-input' } (string list)
  input.xkb.rules = 'base'  (string)
  input.xkb.model = 'pc105'  (string)
  input.xkb.layout = 'it_mat'  (string)
  input.x11_driver = 'evdev'  (string)
  linux.sysfs_path = '/sys/class/input/input7/event7'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  info.capabilities = { 'input', 'input.keys', 'input.keymap', 'button' } (string list)
  info.category = 'input'  (string)
  input.keymap.data = { '0x06:mute', '0x07:volumedown', '0x08:volumeup', '0x09:brightnessdown', '0x0a:brightnessup', '0x0b:switchvideomode', '0x0e:zoom', '0x10:suspend' } (string list)
  info.subsystem = 'input'  (string)
  info.product = 'Sony Vaio Keys'  (string)
  linux.device_file = '/dev/input/event7'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1'  (string)
  input.xkb.options = 'lv3:ralt_switch'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)


I'm using hal 0.5.12~git20090406.46dc48-2 from Debian Sid.


Regards
Mattia


More information about the hal mailing list