sys-firmware/lenovolegionlinux: change acpi useflag

* inclued acpi action and events exemple in /usr/share/legion_linux/acpi

Signed-off-by: Gonçalo Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Duarte
2023-11-26 17:02:55 +00:00
parent 2dbfcd57cd
commit 654946b02e
2 changed files with 4 additions and 3 deletions

View File

@@ -83,8 +83,8 @@ src_install() {
fi fi
if use legion-acpi; then if use legion-acpi; then
insinto /etc/acpi/events/ && doins acpi/events/{ac_adapter_legion-fancurve,novo-button,PrtSc-button,fn-r-refrate} insinto /usr/share/legion_linux/acpi/events && doins acpi/events/{ac_adapter_legion-fancurve,novo-button,PrtSc-button,fn-r-refrate}
insinto /etc/acpi/actions/ && doins acpi/actions/{battery-legion-quiet.sh,snipping-tool.sh,fn-r-refresh-rate.sh} insinto /usr/share/legion_linux/acpi/actions && doins acpi/actions/{battery-legion-quiet.sh,snipping-tool.sh,fn-r-refresh-rate.sh}
fi fi
fi fi
} }
@@ -102,6 +102,7 @@ pkg_postinst() {
ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n" ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n"
fi fi
fi fi
use legion-acpi && ewarn "Acpi exemples are included in /usr/share/legion_linux/acpi\n"
ewarn "Note for 2023-2023 Legion user: It need help for testing the features" ewarn "Note for 2023-2023 Legion user: It need help for testing the features"
ewarn "Pls test the feature how is decribe in the README of the project!" ewarn "Pls test the feature how is decribe in the README of the project!"
ewarn "and also go to this issue in github: https://github.com/johnfanv2/LenovoLegionLinux/issues/46" ewarn "and also go to this issue in github: https://github.com/johnfanv2/LenovoLegionLinux/issues/46"

View File

@@ -3,7 +3,7 @@
<pkgmetadata> <pkgmetadata>
<use> <use>
<flag name="legion-tools">Build and install legion_gui and legion_cli</flag> <flag name="legion-tools">Build and install legion_gui and legion_cli</flag>
<flag name="legion-acpi">Install acpi script (experimental feature)</flag> <flag name="legion-acpi">Provide acpi exemple /usr/share/legion_linux/acpi </flag>
<flag name="radeon-dgpu">Enable AMD GPU TDP control (systemd-service)</flag> <flag name="radeon-dgpu">Enable AMD GPU TDP control (systemd-service)</flag>
<flag name="downgrade-nvidia">Downgrade nvidia for 525 to enable TDP control (systemd-service)</flag> <flag name="downgrade-nvidia">Downgrade nvidia for 525 to enable TDP control (systemd-service)</flag>
<flag name="ryzenadj">[AMD] CPU and APU control using ryzenadj (systemd-service)</flag> <flag name="ryzenadj">[AMD] CPU and APU control using ryzenadj (systemd-service)</flag>