fd781c0113
The problem at hand is that sem@ explicitly disables acpid within installer-distro-simply-linux; early shots at ALT Education 9.0 for Elbrus suffered from this as e2k's power button handling differs slightly regarding events generated so we *do* need acpid{,-events-e2k} to poweroff on power button press. Hope this doesn't introduce regressions or woes for anyone.
33 lines
970 B
Makefile
33 lines
970 B
Makefile
+power: use/power/acpi/button; @:
|
|
|
|
# common
|
|
use/power: sub/rootfs use/services
|
|
@$(call add_feature)
|
|
ifeq (,$(filter-out e2k%,$(ARCH)))
|
|
@$(call add,COMMON_PACKAGES,installer-feature-powerbutton-stage3)
|
|
endif
|
|
|
|
# modern power management
|
|
use/power/acpi: use/power
|
|
@$(call add,COMMON_PACKAGES,acpid acpi)
|
|
@$(call add,DEFAULT_SERVICES_ENABLE,acpid)
|
|
|
|
use/power/acpi/button: use/power/acpi
|
|
ifeq (,$(filter-out e2k%,$(ARCH)))
|
|
@$(call add,COMMON_PACKAGES,acpid-events-e2k)
|
|
@$(call add,INSTALL2_PACKAGES,installer-feature-e2k-power-stage2)
|
|
@$(call add,DEFAULT_SERVICES_ENABLE,acpid sysfs)
|
|
else
|
|
@$(call add,COMMON_PACKAGES,acpid-events-power)
|
|
endif
|
|
|
|
use/power/acpi/powersave: use/power/acpi
|
|
@$(call add,COMMON_PACKAGES,powersave)
|
|
@$(call add,DEFAULT_SERVICES_DISABLE,acpid) # override
|
|
@$(call add,DEFAULT_SERVICES_ENABLE,powersaved)
|
|
|
|
# legacy power management
|
|
use/power/apm: use/power
|
|
@$(call add,COMMON_PACKAGES,apmd lphdisk)
|
|
@$(call add,DEFAULT_SERVICES_ENABLE,apmd)
|