add more acpi button support

devs/sachiel/e19
Carsten Haitzler 10 years ago
parent 98ac01ceb8
commit b5b0756e79
  1. 7
      src/bin/e_acpi.c
  2. 4
      src/bin/e_acpi.h
  3. 4
      src/modules/conf_bindings/e_int_config_acpibindings.c

@ -52,10 +52,17 @@ static E_ACPI_Device_Simple _devices_simple[] =
{"button/lid", E_ACPI_TYPE_LID},
{"button/power", E_ACPI_TYPE_POWER},
{"button/sleep", E_ACPI_TYPE_SLEEP},
{"button/volumedown", E_ACPI_TYPE_VOLUME_DOWN},
{"button/volumeup", E_ACPI_TYPE_VOLUME_UP},
{"button/mute", E_ACPI_TYPE_MUTE},
{"button/wlan", E_ACPI_TYPE_WIFI},
{"fan", E_ACPI_TYPE_FAN},
{"processor", E_ACPI_TYPE_PROCESSOR},
{"thermal_zone", E_ACPI_TYPE_THERMAL},
{"video", E_ACPI_TYPE_VIDEO},
{"video/brightnessdown", E_ACPI_TYPE_BRIGHTNESS_DOWN},
{"video/brightnessup", E_ACPI_TYPE_BRIGHTNESS_UP},
{"video/switchmode", E_ACPI_TYPE_VIDEO},
{NULL, E_ACPI_TYPE_UNKNOWN}
};

@ -26,7 +26,9 @@ typedef enum _E_Acpi_Type
E_ACPI_TYPE_VAIO, // 19
E_ACPI_TYPE_MUTE, // 20
E_ACPI_TYPE_VOLUME, // 21
E_ACPI_TYPE_BRIGHTNESS // 22
E_ACPI_TYPE_BRIGHTNESS, // 22
E_ACPI_TYPE_VOLUME_DOWN, // 23
E_ACPI_TYPE_VOLUME_UP // 24
} E_Acpi_Type;
/* enum for acpi signals */

@ -391,6 +391,10 @@ _binding_label_get(E_Config_Binding_Acpi *binding)
return _("S1");
if (binding->type == E_ACPI_TYPE_VAIO)
return _("Vaio");
if (binding->type == E_ACPI_TYPE_VOLUME_DOWN)
return _("Volume Down");
if (binding->type == E_ACPI_TYPE_VOLUME_UP)
return _("Volume Up");
return _("Unknown");
}

Loading…
Cancel
Save