diff options
Diffstat (limited to 'sysutils/hal/files/hald-netbsd/devinfo_misc.c')
-rw-r--r-- | sysutils/hal/files/hald-netbsd/devinfo_misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysutils/hal/files/hald-netbsd/devinfo_misc.c b/sysutils/hal/files/hald-netbsd/devinfo_misc.c index 700c642c04b..6efa98140e6 100644 --- a/sysutils/hal/files/hald-netbsd/devinfo_misc.c +++ b/sysutils/hal/files/hald-netbsd/devinfo_misc.c @@ -88,7 +88,8 @@ devinfo_computer_add(HalDevice *parent, const char *devnode, char *devfs_path, c devinfo_add_enqueue (d, devfs_path, &devinfo_computer_handler); - if (sysctlbyname ("hw.acpi.supported_states", acpi_supported_states, &len, NULL, 0) == 0) { + if (sysctlbyname ("hw.acpi.supported_states", acpi_supported_states, &len, NULL, 0) == 0 || + sysctlbyname ("hw.acpi.sleep.states", acpi_supported_states, &len, NULL, 0) == 0) { hal_device_property_set_string (d, "power_management.type", "acpi"); if (strstr (acpi_supported_states, "S3") != NULL) hal_device_property_set_bool (d, "power_management.can_suspend", TRUE); |