/***************************************************************************
*
* devinfo_acpi : acpi devices
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Licensed under the Academic Free License version 2.1
*
**************************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <string.h>
#include <libdevinfo.h>
#include <unistd.h>
#include "../osspec.h"
#include "../logger.h"
#include "../hald.h"
#include "../hald_dbus.h"
#include "../device_info.h"
#include "../util.h"
#include "../hald_runner.h"
#include "devinfo_acpi.h"
char *devfs_path, char *device_type);
NULL,
NULL,
NULL,
NULL,
};
NULL,
NULL,
NULL,
NULL,
};
static HalDevice *
char *device_type)
{
char *driver_name;
int major;
char *devpath;
return (NULL);
}
d = hal_device_new();
"/org/freedesktop/Hal/devices/computer")) ||
"/org/freedesktop/Hal/devices/computer"))) {
"system.formfactor", "laptop");
"power_management.type", "acpi");
}
return (d);
}
continue;
}
}
}
return (d);
}
void
{
HalDevice *d;
d = hal_device_new();
}
static HalDevice *
char *device_type)
{
HalDevice *d;
char *driver_name;
return (NULL);
}
d = hal_device_new();
hal_device_add_capability(d, "button");
return (d);
}
void
{
"power");
if (d != NULL) {
}
}
void
{
if ((d = hal_device_store_find(hald_get_gdl(),
"/org/freedesktop/Hal/devices/computer")) ||
(d = hal_device_store_find(hald_get_tdl(),
"/org/freedesktop/Hal/devices/computer"))) {
device_send_signal_condition(d, "ButtonPressed",
"brightness-up");
} else {
device_send_signal_condition(d, "ButtonPressed",
"brightness-down");
}
}
}
void
{
if (d == NULL) {
return;
}
}
void
{
if (d == NULL) {
return;
}
hal_device_property_set_bool(d, "button.state.value",
}
{
if (hal_device_property_get_bool(d, "button.workaround")) {
/* Set lid state to open for workaround */
} else {
}
return (TRUE);
}
static void
{
/* hald_runner_run() requires this function since cannot pass NULL */
}
const gchar *
{
return ("hald-probe-acpi");
}