diff options
author | Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> | 2024-04-05 16:17:58 +0100 |
---|---|---|
committer | Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> | 2024-04-05 16:19:39 +0100 |
commit | 8cd75708ad3546d396f09194fdd510a68ba260ab (patch) | |
tree | 9ba92db3d5ee608151b56144ceea03caa691c13c /sys-firmware | |
parent | dev-python/b2sdk: fix broken 2.0.0 (diff) | |
download | guru-8cd75708ad3546d396f09194fdd510a68ba260ab.tar.gz guru-8cd75708ad3546d396f09194fdd510a68ba260ab.tar.bz2 guru-8cd75708ad3546d396f09194fdd510a68ba260ab.zip |
sys-firmware/lenovolegionlinux: apply changes upstream
* https://github.com/johnfanv2/LenovoLegionLinux/pull/195
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
Diffstat (limited to 'sys-firmware')
3 files changed, 7 insertions, 17 deletions
diff --git a/sys-firmware/lenovolegionlinux/files/legiond-onresume.sh b/sys-firmware/lenovolegionlinux/files/legiond-onresume.sh deleted file mode 100644 index cd6b7c4a5..000000000 --- a/sys-firmware/lenovolegionlinux/files/legiond-onresume.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -case $1/$2 in -post/*) - /usr/bin/legiond-cli fanset 3 - ;; -esac diff --git a/sys-firmware/lenovolegionlinux/files/legiond.initd b/sys-firmware/lenovolegionlinux/files/legiond.initd deleted file mode 100644 index a95e50bd9..000000000 --- a/sys-firmware/lenovolegionlinux/files/legiond.initd +++ /dev/null @@ -1,7 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -command="/usr/bin/legiond" -command_background=true -pidfile="/run/legiond.pid" diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild index debc32bf5..551ab1a72 100644 --- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild +++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild @@ -26,6 +26,7 @@ BDEPEND=" sys-apps/lm-sensors sys-apps/dmidecode sys-apps/sed + dev-libs/inih " RDEPEND=" @@ -79,17 +80,19 @@ src_install() { systemd_dounit service/legiond.service service/legiond-onresume.service service/legiond-cpuset.service service/legiond-cpuset.timer - newinitd "${FILESDIR}/legiond.initd" legiond + newinitd service/legiond.initd legiond + newinitd service/legiond-cpuset.initd legiond + newsbin service/legiond-cpuset.sh legiond-cpuset if use elogind; then exeinto /lib64/elogind/system-sleep/ - doexe "${FILESDIR}/legiond-onresume.sh" + doexe service/legiond-onresume.sh fi insinto /etc/acpi/events doins acpi/events/{legion_ppd,legion_ac} dobin service/legiond/legiond - dobin service/legiond/legiond-cli + dobin service/legiond/legiond-ctl fi } @@ -97,7 +100,7 @@ pkg_postinst() { ewarn "Default config files are present in /usr/share/legion_linux" ewarn "Copy folder /usr/share/legion_linux to /etc/legion_linux" ewarn "Note: Fancurve can be edit using the gui app" - ewarn "Dont forget to edit /etc/legion_linux/.env to enable and disable extra features" + ewarn "Dont forget to edit /etc/legion_linux/legiond.ini (previous .env) to enable and disable extra features" ewarn "Note the CPU and APU control command both for undervolt an ryzenadj are edit in /etc/legion_linux/.env" if !use downgrade-nvidia; then ewarn "Note: use flag downgrade-nvidia if you need for nvidia TDP control (requires driver 525 to work)\n" |