add more acpi button support
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 27 May 2013 14:25:54 +0000 (23:25 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 27 May 2013 14:25:54 +0000 (23:25 +0900)
src/bin/e_acpi.c
src/bin/e_acpi.h
src/modules/conf_bindings/e_int_config_acpibindings.c

index 6e69261..e6c2f2b 100644 (file)
@@ -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}
 };
index 6928245..cfaa037 100644 (file)
@@ -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 */
index 416c518..17da063 100644 (file)
@@ -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");
 }