* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-07-05 15:10 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-05 15:10 UTC (permalink / raw
To: gentoo-commits
commit: 6f818b8f0f3f2c3f3626a317b46e0ec300e76b67
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Jul 5 15:07:34 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Jul 5 15:09:48 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6f818b8f
sys-firmware/lenovolegionlinux: unkeyword 9999 for ~amd64~x86
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux-9999.ebuild | 24 +++++++++++-----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 9160a2f76..397b677ab 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -16,23 +16,23 @@ DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
DEPEND="sys-kernel/linux-headers
- sys-apps/lm-sensors
- sys-apps/dmidecode
- legion-tools? ( dev-python/PyQt5 )
- legion-tools? ( dev-python/pyyaml )
- legion-tools? ( dev-python/argcomplete )
- app-portage/smart-live-rebuild
- legion-acpi? ( sys-power/acpid )
- radeon-dgpu? ( dev-util/rocm-smi )
- downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
- ryzenadj? ( sys-power/RyzenAdj )"
+ sys-apps/lm-sensors
+ sys-apps/dmidecode
+ legion-tools? ( dev-python/PyQt5 )
+ legion-tools? ( dev-python/pyyaml )
+ legion-tools? ( dev-python/argcomplete )
+ app-portage/smart-live-rebuild
+ legion-acpi? ( sys-power/acpid )
+ radeon-dgpu? ( dev-util/rocm-smi )
+ downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
+ ryzenadj? ( sys-power/RyzenAdj )
+"
+
LICENSE="GPL-2"
SLOT="0"
IUSE="legion-tools legion-acpi systemd radeon-dgpu downgrade-nvidia ryzenadj"
REQUIRED_USE="|| ( systemd legion-acpi radeon-dgpu downgrade-nvidia ryzenadj legion-tools ) legion-acpi? ( legion-tools ) radeon-dgpu? ( !downgrade-nvidia legion-tools ) downgrade-nvidia? ( !radeon-dgpu legion-tools )"
-KEYWORDS="~amd64~x86"
-
MODULES_KERNEL_MIN=5.10
src_compile() {
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-07-07 10:38 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-07 10:38 UTC (permalink / raw
To: gentoo-commits
commit: 49b67f56acff418a0de47fbfc51f811ddf831c96
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Jul 7 10:35:47 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Jul 7 10:35:47 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=49b67f56
sys-firmware/lenovolegionlinux: Remove toolchain-funcs eclass
** Remove app-portage/smart-live-rebuild dependency
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux/lenovolegionlinux-9999.ebuild | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 397b677ab..e5ddacdeb 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{9..11} )
EPYTHON=python3
-inherit linux-mod-r1 toolchain-funcs git-r3 distutils-r1 desktop systemd
+inherit linux-mod-r1 git-r3 distutils-r1 desktop systemd
EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git"
@@ -21,7 +21,6 @@ DEPEND="sys-kernel/linux-headers
legion-tools? ( dev-python/PyQt5 )
legion-tools? ( dev-python/pyyaml )
legion-tools? ( dev-python/argcomplete )
- app-portage/smart-live-rebuild
legion-acpi? ( sys-power/acpid )
radeon-dgpu? ( dev-util/rocm-smi )
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
@@ -60,29 +59,29 @@ src_install() {
cd "${WORKDIR}/${P}/extra"
if use legion-acpi; then
- insinto /etc/acpi/events/ && doins acpi/events/{ac_adapter_legion-fancurve,novo-button,PrtSc-button,fn-r-refrate}
+ insinto /etc/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}
fi
if use systemd; then
- systemd_dounit service/legion-linux.service service/legion-linux.path
+ systemd_dounit service/legion-linux.service service/legion-linux.path
dobin service/fancurve-set
insinto /usr/share/legion_linux && doins service/profiles/*
insinto /etc/legion_linux && doins service/profiles/*
#AMD
if use radeon-dgpu; then
- insinto /usr/share/legion_linux && newins "${FILESDIR}/radeon" .env
+ insinto /usr/share/legion_linux && newins "${FILESDIR}/radeon" .env
insinto /etc/legion_linux && newins "${FILESDIR}/radeon" .env
fi
#NVIDIA (need dowgrade because nvidia-smi -pl was removed)
if use downgrade-nvidia; then
- insinto /usr/share/legion_linux && newins "${FILESDIR}/nvidia" .env
+ insinto /usr/share/legion_linux && newins "${FILESDIR}/nvidia" .env
insinto /etc/legion_linux && newins "${FILESDIR}/nvidia" .env
fi
if use ryzenadj; then
- insinto /usr/share/legion_linux && newins "${FILESDIR}/cpu" .env
+ insinto /usr/share/legion_linux && newins "${FILESDIR}/cpu" .env
insinto /etc/legion_linux && newins "${FILESDIR}/cpu" .env
fi
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-07-07 22:47 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-07 22:47 UTC (permalink / raw
To: gentoo-commits
commit: 88fda957f516d9b7530c1b94a134221e16387ebc
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Jul 7 22:45:02 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Jul 7 22:47:13 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=88fda957
sys-firmware/lenovolegionlinux: enable py3.12
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux-9999.ebuild | 46 +++++++++++++---------
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index e5ddacdeb..435ed6011 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -4,9 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
-
-EPYTHON=python3
+PYTHON_COMPAT=( python3_{9..12} )
inherit linux-mod-r1 git-r3 distutils-r1 desktop systemd
@@ -15,18 +13,18 @@ EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git"
DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
-DEPEND="sys-kernel/linux-headers
- sys-apps/lm-sensors
- sys-apps/dmidecode
- legion-tools? ( dev-python/PyQt5 )
- legion-tools? ( dev-python/pyyaml )
- legion-tools? ( dev-python/argcomplete )
- legion-acpi? ( sys-power/acpid )
- radeon-dgpu? ( dev-util/rocm-smi )
- downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
- ryzenadj? ( sys-power/RyzenAdj )
+RDEPEND="sys-kernel/linux-headers
+ sys-apps/lm-sensors
+ sys-apps/dmidecode
+ legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete )
+ legion-acpi? ( sys-power/acpid )
+ radeon-dgpu? ( dev-util/rocm-smi )
+ downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
+ ryzenadj? ( sys-power/RyzenAdj )
"
+DEPEND="${RDEPEND}"
+
LICENSE="GPL-2"
SLOT="0"
IUSE="legion-tools legion-acpi systemd radeon-dgpu downgrade-nvidia ryzenadj"
@@ -49,8 +47,9 @@ src_compile() {
src_install() {
linux-mod-r1_src_install
#Load the module without reboot
- cd "${WORKDIR}/${P}/python/legion_linux/"
- make forcereloadmodule
+ pushd python/legion_linux/ || die
+ make forcereloadmodule
+ popd || die
if use legion-tools; then
#Define build dir (fix sandboxed)
cd "${WORKDIR}/${P}/python/legion_linux/"
@@ -75,7 +74,7 @@ src_install() {
insinto /etc/legion_linux && newins "${FILESDIR}/radeon" .env
fi
#NVIDIA (need dowgrade because nvidia-smi -pl was removed)
- if use downgrade-nvidia; then
+ if use downgrade-nvidia; then
insinto /usr/share/legion_linux && newins "${FILESDIR}/nvidia" .env
insinto /etc/legion_linux && newins "${FILESDIR}/nvidia" .env
fi
@@ -84,8 +83,6 @@ src_install() {
insinto /usr/share/legion_linux && newins "${FILESDIR}/cpu" .env
insinto /etc/legion_linux && newins "${FILESDIR}/cpu" .env
fi
-
- elog "IMPORTANT!!!!\nPls copy /usr/share/legion_linux folder to .config in your Home folder\n Dont forget to edit .config/legion_linux/.env"
fi
# Desktop Files and Polkit
@@ -94,6 +91,17 @@ src_install() {
insinto "/usr/share/polkit-1/actions/" && doins "${FILESDIR}/legion_cli.policy"
fi
+}
- elog "INTEL USERS!!!!\nCPU Control Feature: On intel cpu install undervolt https://github.com/georgewhewell/undervolt (or other tool you like to use). More information read the readme https://github.com/Petingoso/legion-fan-utils-linux/blob/main/README.md"
+pkg_postinst() {
+ if use systemd; then
+ ewarn "Default config files are present in /usr/share/legion_linux"
+ ewarn "Pls copy that folder to /etc/legion_linux and edit the fancurves to your liking"
+ ewarn "Note:can be done using the gui app"
+ ewarn "Dont forget to edit /etc/legion_linux/.env to enable and disable extra features"
+ ewarn "Note: use flag downgrade-nvidia in need for nvidia TDP control"
+ fi
+ ewarn "For Intel Users is need to install undervolt manally since and ebuild exist"
+ ewarn "Undervolt Repo: https://github.com/georgewhewell/undervolt"
+ ewarn "More information on this README: https://github.com/Petingoso/legion-fan-utils-linux/blob/main/README.md"
}
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-08 12:52 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-08 12:52 UTC (permalink / raw
To: gentoo-commits
commit: cf323d4285393bc101f08024a5a21f8d1684701d
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sat Jul 8 12:49:09 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sat Jul 8 12:52:10 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cf323d42
sys-firmware/LenovoLegionLinux: add undervolt dependency
* Intel user
* fix identation to tabs
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../LenovoLegionLinux-9999.ebuild | 25 +++++++++++-----------
sys-firmware/LenovoLegionLinux/metadata.xml | 3 ++-
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
index 435ed6011..28c41777a 100644
--- a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
+++ b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
@@ -21,14 +21,15 @@ RDEPEND="sys-kernel/linux-headers
radeon-dgpu? ( dev-util/rocm-smi )
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
ryzenadj? ( sys-power/RyzenAdj )
+ undervolt-intel? ( dev-python/undervolt )
"
DEPEND="${RDEPEND}"
LICENSE="GPL-2"
SLOT="0"
-IUSE="legion-tools legion-acpi systemd radeon-dgpu downgrade-nvidia ryzenadj"
-REQUIRED_USE="|| ( systemd legion-acpi radeon-dgpu downgrade-nvidia ryzenadj legion-tools ) legion-acpi? ( legion-tools ) radeon-dgpu? ( !downgrade-nvidia legion-tools ) downgrade-nvidia? ( !radeon-dgpu legion-tools )"
+IUSE="legion-tools legion-acpi systemd radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel"
+REQUIRED_USE="|| ( systemd legion-acpi radeon-dgpu downgrade-nvidia ryzenadj legion-tools undervolt-intel ) legion-acpi? ( legion-tools ) radeon-dgpu? ( !downgrade-nvidia legion-tools ) downgrade-nvidia? ( !radeon-dgpu legion-tools ) undervolt-intel? ( !ryzenadj legion-tools ) ryzenadj? ( !undervolt-intel legion-tools )"
MODULES_KERNEL_MIN=5.10
@@ -36,7 +37,7 @@ src_compile() {
local modlist=(
legion-laptop=kernel/drivers/platform/x86:kernel_module:kernel_module:all
)
- KERNELVERSION=${KV_FULL} linux-mod-r1_src_compile
+ KERNELVERSION=${KV_FULL} linux-mod-r1_src_compile
if use legion-tools; then
#Define build dir (fix sandboxed)
cd "${WORKDIR}/${P}/python/legion_linux"
@@ -60,7 +61,7 @@ src_install() {
if use legion-acpi; then
insinto /etc/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}
- fi
+ fi
if use systemd; then
systemd_dounit service/legion-linux.service service/legion-linux.path
@@ -69,20 +70,20 @@ src_install() {
insinto /etc/legion_linux && doins service/profiles/*
#AMD
- if use radeon-dgpu; then
+ if use radeon-dgpu; then
insinto /usr/share/legion_linux && newins "${FILESDIR}/radeon" .env
insinto /etc/legion_linux && newins "${FILESDIR}/radeon" .env
- fi
- #NVIDIA (need dowgrade because nvidia-smi -pl was removed)
+ fi
+ #NVIDIA (need dowgrade because nvidia-smi -pl was removed)
if use downgrade-nvidia; then
insinto /usr/share/legion_linux && newins "${FILESDIR}/nvidia" .env
insinto /etc/legion_linux && newins "${FILESDIR}/nvidia" .env
- fi
+ fi
if use ryzenadj; then
insinto /usr/share/legion_linux && newins "${FILESDIR}/cpu" .env
insinto /etc/legion_linux && newins "${FILESDIR}/cpu" .env
- fi
+ fi
fi
# Desktop Files and Polkit
@@ -99,9 +100,7 @@ pkg_postinst() {
ewarn "Pls copy that folder to /etc/legion_linux and edit the fancurves to your liking"
ewarn "Note:can be done using the gui app"
ewarn "Dont forget to edit /etc/legion_linux/.env to enable and disable extra features"
- ewarn "Note: use flag downgrade-nvidia in need for nvidia TDP control"
+ ewarn "Note the CPU and APU control command both for undervolt an ryzenadj are edit in /etc/legion_linux/.env command"
+ ewarn "Note: use flag downgrade-nvidia in need for nvidia TDP control\n"
fi
- ewarn "For Intel Users is need to install undervolt manally since and ebuild exist"
- ewarn "Undervolt Repo: https://github.com/georgewhewell/undervolt"
- ewarn "More information on this README: https://github.com/Petingoso/legion-fan-utils-linux/blob/main/README.md"
}
diff --git a/sys-firmware/LenovoLegionLinux/metadata.xml b/sys-firmware/LenovoLegionLinux/metadata.xml
index 479623d1d..660ba14f5 100644
--- a/sys-firmware/LenovoLegionLinux/metadata.xml
+++ b/sys-firmware/LenovoLegionLinux/metadata.xml
@@ -6,7 +6,8 @@
<flag name="legion-acpi">Install acpi script (experimental feature)</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="ryzenadj">CPU and APU control using ryzenadj (systemd-service)</flag>
+ <flag name="ryzenadj">[AMD] CPU and APU control using ryzenadj (systemd-service)</flag>
+ <flag name="undervolt-intel">[INTEL] CPU and APU control using undervolt (systemd-service)</flag>
</use>
<upstream>
<remote-id type="github">johnfanv2/LenovoLegionLinux</remote-id>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-10 11:44 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-10 11:44 UTC (permalink / raw
To: gentoo-commits
commit: 97c533e07660469ea73597816bb3facee4b598e8
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Mon Jul 10 11:43:21 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Mon Jul 10 11:44:12 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=97c533e0
sys-firmware/LenovoLegionLinux: fix double tab RDEPEND
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../LenovoLegionLinux/LenovoLegionLinux-9999.ebuild | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
index 28c41777a..904b0413e 100644
--- a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
+++ b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
@@ -14,14 +14,14 @@ DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
RDEPEND="sys-kernel/linux-headers
- sys-apps/lm-sensors
- sys-apps/dmidecode
- legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete )
- legion-acpi? ( sys-power/acpid )
- radeon-dgpu? ( dev-util/rocm-smi )
- downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
- ryzenadj? ( sys-power/RyzenAdj )
- undervolt-intel? ( dev-python/undervolt )
+ sys-apps/lm-sensors
+ sys-apps/dmidecode
+ legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete )
+ legion-acpi? ( sys-power/acpid )
+ radeon-dgpu? ( dev-util/rocm-smi )
+ downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
+ ryzenadj? ( sys-power/RyzenAdj )
+ undervolt-intel? ( dev-python/undervolt )
"
DEPEND="${RDEPEND}"
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-15 16:53 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-15 16:53 UTC (permalink / raw
To: gentoo-commits
commit: 335834cf05c32ea2a5095faf29bd4514e55aac93
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sat Jul 15 16:52:16 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sat Jul 15 16:52:53 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=335834cf
sys-firmware/LenovoLegionLinux: add ewarn for 2022-2023 devices
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
index 904b0413e..de5f1723a 100644
--- a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
+++ b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
@@ -103,4 +103,8 @@ pkg_postinst() {
ewarn "Note the CPU and APU control command both for undervolt an ryzenadj are edit in /etc/legion_linux/.env command"
ewarn "Note: use flag downgrade-nvidia in need for nvidia TDP control\n"
fi
+ 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 "and also go to this issue in github: https://github.com/johnfanv2/LenovoLegionLinux/issues/46"
+
}
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-26 13:03 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-26 13:03 UTC (permalink / raw
To: gentoo-commits
commit: 3b32df42827decd2f6f168dd2c47cc5158984d2d
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Jul 26 11:31:06 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Jul 26 13:03:00 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3b32df42
sys-firmware/LenovoLegionLinux: add myself as a maintainer
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/LenovoLegionLinux/metadata.xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys-firmware/LenovoLegionLinux/metadata.xml b/sys-firmware/LenovoLegionLinux/metadata.xml
index 660ba14f5..aa2aa2365 100644
--- a/sys-firmware/LenovoLegionLinux/metadata.xml
+++ b/sys-firmware/LenovoLegionLinux/metadata.xml
@@ -9,6 +9,10 @@
<flag name="ryzenadj">[AMD] CPU and APU control using ryzenadj (systemd-service)</flag>
<flag name="undervolt-intel">[INTEL] CPU and APU control using undervolt (systemd-service)</flag>
</use>
+ <maintainer type="person">
+ <email>gonegrier.duarte@gmail.com</email>
+ <name>Gonçalo Negrier Duarte</name>
+ </maintainer>
<upstream>
<remote-id type="github">johnfanv2/LenovoLegionLinux</remote-id>
<bugs-to>https://github.com/johnfanv2/LenovoLegionLinux/issues</bugs-to>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-26 13:03 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-26 13:03 UTC (permalink / raw
To: gentoo-commits
commit: 895fd1d4ce9ba6343146882cd6373dd511466c17
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Jul 26 13:00:31 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Jul 26 13:03:01 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=895fd1d4
sys-firmware/LenovoLegionLinux: fix whitespaces warnings
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
index de5f1723a..95c2640e7 100644
--- a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
+++ b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
@@ -75,12 +75,12 @@ src_install() {
insinto /etc/legion_linux && newins "${FILESDIR}/radeon" .env
fi
#NVIDIA (need dowgrade because nvidia-smi -pl was removed)
- if use downgrade-nvidia; then
+ if use downgrade-nvidia; then
insinto /usr/share/legion_linux && newins "${FILESDIR}/nvidia" .env
insinto /etc/legion_linux && newins "${FILESDIR}/nvidia" .env
fi
- if use ryzenadj; then
+ if use ryzenadj; then
insinto /usr/share/legion_linux && newins "${FILESDIR}/cpu" .env
insinto /etc/legion_linux && newins "${FILESDIR}/cpu" .env
fi
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-28 17:01 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-28 17:01 UTC (permalink / raw
To: gentoo-commits
commit: ff50e73233af991c96eb90668e8f2c75c72f72a0
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Jul 28 17:00:54 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Jul 28 17:00:54 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff50e732
sys-firmware/LenovoLegionLinux: update to reflect upstream
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../LenovoLegionLinux-9999.ebuild | 46 ++++++----------------
1 file changed, 12 insertions(+), 34 deletions(-)
diff --git a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
index 95c2640e73..41ee8893da 100644
--- a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
+++ b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
@@ -17,9 +17,9 @@ RDEPEND="sys-kernel/linux-headers
sys-apps/lm-sensors
sys-apps/dmidecode
legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete )
+ downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
legion-acpi? ( sys-power/acpid )
radeon-dgpu? ( dev-util/rocm-smi )
- downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
ryzenadj? ( sys-power/RyzenAdj )
undervolt-intel? ( dev-python/undervolt )
"
@@ -58,53 +58,31 @@ src_install() {
cd "${WORKDIR}/${P}/extra"
- if use legion-acpi; then
- insinto /etc/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}
- fi
-
if use systemd; then
systemd_dounit service/legion-linux.service service/legion-linux.path
- dobin service/fancurve-set
- insinto /usr/share/legion_linux && doins service/profiles/*
- insinto /etc/legion_linux && doins service/profiles/*
-
- #AMD
- if use radeon-dgpu; then
- insinto /usr/share/legion_linux && newins "${FILESDIR}/radeon" .env
- insinto /etc/legion_linux && newins "${FILESDIR}/radeon" .env
- fi
- #NVIDIA (need dowgrade because nvidia-smi -pl was removed)
- if use downgrade-nvidia; then
- insinto /usr/share/legion_linux && newins "${FILESDIR}/nvidia" .env
- insinto /etc/legion_linux && newins "${FILESDIR}/nvidia" .env
- fi
-
- if use ryzenadj; then
- insinto /usr/share/legion_linux && newins "${FILESDIR}/cpu" .env
- insinto /etc/legion_linux && newins "${FILESDIR}/cpu" .env
- fi
fi
- # Desktop Files and Polkit
- domenu "${FILESDIR}/legion_gui.desktop"
- doicon "${WORKDIR}/${P}/python/legion_linux/legion_linux/legion_logo.png"
- insinto "/usr/share/polkit-1/actions/" && doins "${FILESDIR}/legion_cli.policy"
-
+ if use legion-acpi; then
+ insinto /etc/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}
+ fi
fi
}
pkg_postinst() {
if use systemd; then
ewarn "Default config files are present in /usr/share/legion_linux"
- ewarn "Pls copy that folder to /etc/legion_linux and edit the fancurves to your liking"
- ewarn "Note:can be done using the gui app"
+ ewarn "Copy folder /usr/share/legion_linux to /etc/legion_linux"
+ ewarn "Note:Fancurve can edit using the gui app"
ewarn "Dont forget to edit /etc/legion_linux/.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 command"
- ewarn "Note: use flag downgrade-nvidia in need for nvidia TDP control\n"
+ if !use downgrade-nvidia; then
+ ewarn "Note: use flag downgrade-nvidia if you need for nvidia TDP control (requires driver 525 to work)\n"
+ else
+ ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n"
+ fi
fi
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 "and also go to this issue in github: https://github.com/johnfanv2/LenovoLegionLinux/issues/46"
-
}
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/
@ 2023-08-01 11:02 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-08-01 11:02 UTC (permalink / raw
To: gentoo-commits
commit: ef466cadd378908534b094f500c0bc3b6768ce7a
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Aug 1 11:00:42 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Aug 1 11:00:42 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ef466cad
sys-firmware/LenovoLegionLinux: remove desktop eclass
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
index 41ee8893da..19acdd0a44 100644
--- a/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
+++ b/sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
-inherit linux-mod-r1 git-r3 distutils-r1 desktop systemd
+inherit linux-mod-r1 git-r3 distutils-r1 systemd
EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git"
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-08-24 11:26 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-08-24 11:26 UTC (permalink / raw
To: gentoo-commits
commit: f26e4bb004b94fe043e7be09df1bb4da7e6ce9a8
Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu Aug 24 11:26:09 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu Aug 24 11:26:41 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f26e4bb0
sys-firmware/lenovolegionlinux: add dev-python/darkdetect depedency
Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 19acdd0a44..4b0098d1dc 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
RDEPEND="sys-kernel/linux-headers
sys-apps/lm-sensors
sys-apps/dmidecode
- legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete )
+ legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete dev-python/darkdetect )
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
legion-acpi? ( sys-power/acpid )
radeon-dgpu? ( dev-util/rocm-smi )
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-08-29 9:53 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-08-29 9:53 UTC (permalink / raw
To: gentoo-commits
commit: 6cdcee796e337d2450a630165b63f634ef43f511
Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Aug 29 09:49:04 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Aug 29 09:52:46 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6cdcee79
sys-firmware/lenovolegionlinux: fix python build error (upstream change)
Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 4b0098d1dc..8eed68df1d 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -13,9 +13,13 @@ EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git"
DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
-RDEPEND="sys-kernel/linux-headers
+BDEPEND="sys-kernel/linux-headers
sys-apps/lm-sensors
sys-apps/dmidecode
+ sys-apps/sed
+"
+
+RDEPEND="
legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete dev-python/darkdetect )
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
legion-acpi? ( sys-power/acpid )
@@ -39,6 +43,8 @@ src_compile() {
)
KERNELVERSION=${KV_FULL} linux-mod-r1_src_compile
if use legion-tools; then
+ #fix python package version
+ sed -i "s/version = _VERSION/version = 1.0.0/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
#Define build dir (fix sandboxed)
cd "${WORKDIR}/${P}/python/legion_linux"
distutils-r1_src_compile --build-dir "${WORKDIR}/${P}/python/legion_linux/build"
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-08-30 12:53 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-08-30 12:53 UTC (permalink / raw
To: gentoo-commits
commit: ec772c193ec4bc60304bb1fd39a65f8e8e0131d8
Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Aug 30 12:49:37 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Aug 30 12:52:49 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ec772c19
sys-firmware/lenovolegionlinux: update ebuild for stable version
Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux-9999.ebuild | 24 +++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 8eed68df1d..b003b160a7 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -3,12 +3,20 @@
EAPI=8
+M_PN=LenovoLegionLinux
+
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
-inherit linux-mod-r1 git-r3 distutils-r1 systemd
+inherit linux-mod-r1 distutils-r1 systemd
-EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/johnfanv2/${M_PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/johnfanv2/${M_PN}/archive/refs/tags/v${PV}.tar.gz"
+ KEYWORDS="~amd64"
+fi
DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
@@ -41,10 +49,16 @@ src_compile() {
local modlist=(
legion-laptop=kernel/drivers/platform/x86:kernel_module:kernel_module:all
)
- KERNELVERSION=${KV_FULL} linux-mod-r1_src_compile
+ KERNELVERSION=${KV_FULL}
+ linux-mod-r1_src_compile
if use legion-tools; then
- #fix python package version
- sed -i "s/version = _VERSION/version = 1.0.0/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
+ if [[ ${PV} == "9999" ]] ; then
+ #fix python package version
+ sed -i "s/version = _VERSION/version = 9999/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
+ else
+ #fix python package version
+ sed -i "s/version = _VERSION/version = ${PV}/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
+ fi
#Define build dir (fix sandboxed)
cd "${WORKDIR}/${P}/python/legion_linux"
distutils-r1_src_compile --build-dir "${WORKDIR}/${P}/python/legion_linux/build"
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-09-15 10:54 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-09-15 10:54 UTC (permalink / raw
To: gentoo-commits
commit: fea07b47a71ba248dcc6ca05edd89c07305b54d9
Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Sep 15 10:53:20 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Sep 15 10:54:00 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fea07b47
sys-firmware/lenovolegionlinux: set export for set KERNELVERSION
Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index b003b160a7..95ad55aace 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -6,11 +6,11 @@ EAPI=8
M_PN=LenovoLegionLinux
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_COMPAT=(python3_{9..12})
inherit linux-mod-r1 distutils-r1 systemd
-if [[ ${PV} == "9999" ]] ; then
+if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/johnfanv2/${M_PN}.git"
inherit git-r3
else
@@ -49,10 +49,10 @@ src_compile() {
local modlist=(
legion-laptop=kernel/drivers/platform/x86:kernel_module:kernel_module:all
)
- KERNELVERSION=${KV_FULL}
+ export KERNELVERSION=${KV_FULL}
linux-mod-r1_src_compile
if use legion-tools; then
- if [[ ${PV} == "9999" ]] ; then
+ if [[ ${PV} == "9999" ]]; then
#fix python package version
sed -i "s/version = _VERSION/version = 9999/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
else
@@ -69,7 +69,7 @@ src_install() {
linux-mod-r1_src_install
#Load the module without reboot
pushd python/legion_linux/ || die
- make forcereloadmodule
+ make forcereloadmodule
popd || die
if use legion-tools; then
#Define build dir (fix sandboxed)
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2023-11-26 17:09 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-11-26 17:09 UTC (permalink / raw
To: gentoo-commits
commit: 654946b02e9f2a3bb343afd95a4fa2fde79facfe
Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sun Nov 26 17:02:55 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Nov 26 17:09:19 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=654946b0
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 <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 5 +++--
sys-firmware/lenovolegionlinux/metadata.xml | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 95ad55aace..c096ae9ccf 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -83,8 +83,8 @@ src_install() {
fi
if use legion-acpi; then
- insinto /etc/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/events && doins acpi/events/{ac_adapter_legion-fancurve,novo-button,PrtSc-button,fn-r-refrate}
+ insinto /usr/share/legion_linux/acpi/actions && doins acpi/actions/{battery-legion-quiet.sh,snipping-tool.sh,fn-r-refresh-rate.sh}
fi
fi
}
@@ -102,6 +102,7 @@ pkg_postinst() {
ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n"
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 "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"
diff --git a/sys-firmware/lenovolegionlinux/metadata.xml b/sys-firmware/lenovolegionlinux/metadata.xml
index aa2aa2365c..262a2a0256 100644
--- a/sys-firmware/lenovolegionlinux/metadata.xml
+++ b/sys-firmware/lenovolegionlinux/metadata.xml
@@ -3,7 +3,7 @@
<pkgmetadata>
<use>
<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="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>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-01-08 13:03 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-01-08 13:03 UTC (permalink / raw
To: gentoo-commits
commit: 107f717e339ac8a4a50391e6d6e99703a8c83bf9
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Mon Jan 8 12:57:31 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Mon Jan 8 13:03:39 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=107f717e
sys-firmware/lenovolegionlinux: update gui depedency to PyQT6
* change useflag for gui and acpi
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux-9999.ebuild | 27 ++++++++++++++--------
sys-firmware/lenovolegionlinux/metadata.xml | 4 ++--
2 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index c096ae9ccf..404ae862a1 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -28,9 +28,14 @@ BDEPEND="sys-kernel/linux-headers
"
RDEPEND="
- legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete dev-python/darkdetect )
+ gui? (
+ dev-python/PyQt6[gui,widgets]
+ dev-python/pyyaml
+ dev-python/argcomplete
+ dev-python/darkdetect
+ )
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
- legion-acpi? ( sys-power/acpid )
+ acpi? ( sys-power/acpid )
radeon-dgpu? ( dev-util/rocm-smi )
ryzenadj? ( sys-power/RyzenAdj )
undervolt-intel? ( dev-python/undervolt )
@@ -40,8 +45,8 @@ DEPEND="${RDEPEND}"
LICENSE="GPL-2"
SLOT="0"
-IUSE="legion-tools legion-acpi systemd radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel"
-REQUIRED_USE="|| ( systemd legion-acpi radeon-dgpu downgrade-nvidia ryzenadj legion-tools undervolt-intel ) legion-acpi? ( legion-tools ) radeon-dgpu? ( !downgrade-nvidia legion-tools ) downgrade-nvidia? ( !radeon-dgpu legion-tools ) undervolt-intel? ( !ryzenadj legion-tools ) ryzenadj? ( !undervolt-intel legion-tools )"
+IUSE="gui acpi systemd radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel"
+REQUIRED_USE="|| ( systemd acpi radeon-dgpu downgrade-nvidia ryzenadj gui undervolt-intel ) acpi? ( gui ) radeon-dgpu? ( !downgrade-nvidia gui ) downgrade-nvidia? ( !radeon-dgpu gui ) undervolt-intel? ( !ryzenadj gui ) ryzenadj? ( !undervolt-intel gui )"
MODULES_KERNEL_MIN=5.10
@@ -51,7 +56,7 @@ src_compile() {
)
export KERNELVERSION=${KV_FULL}
linux-mod-r1_src_compile
- if use legion-tools; then
+ if use gui; then
if [[ ${PV} == "9999" ]]; then
#fix python package version
sed -i "s/version = _VERSION/version = 9999/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
@@ -71,7 +76,7 @@ src_install() {
pushd python/legion_linux/ || die
make forcereloadmodule
popd || die
- if use legion-tools; then
+ if use gui; then
#Define build dir (fix sandboxed)
cd "${WORKDIR}/${P}/python/legion_linux/"
distutils-r1_src_install --build-dir "${WORKDIR}/${P}/python/legion_linux/build"
@@ -82,9 +87,11 @@ src_install() {
systemd_dounit service/legion-linux.service service/legion-linux.path
fi
- if use legion-acpi; then
- insinto /usr/share/legion_linux/acpi/events && doins acpi/events/{ac_adapter_legion-fancurve,novo-button,PrtSc-button,fn-r-refrate}
- insinto /usr/share/legion_linux/acpi/actions && doins acpi/actions/{battery-legion-quiet.sh,snipping-tool.sh,fn-r-refresh-rate.sh}
+ if use acpi; then
+ insinto /usr/share/legion_linux/acpi/events
+ doins acpi/events/{ac_adapter_legion-fancurve,novo-button,PrtSc-button,fn-r-refrate}
+ insinto /usr/share/legion_linux/acpi/actions
+ doins acpi/actions/{battery-legion-quiet.sh,snipping-tool.sh,fn-r-refresh-rate.sh}
fi
fi
}
@@ -102,7 +109,7 @@ pkg_postinst() {
ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n"
fi
fi
- use legion-acpi && ewarn "Acpi exemples are included in /usr/share/legion_linux/acpi\n"
+ use 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 "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"
diff --git a/sys-firmware/lenovolegionlinux/metadata.xml b/sys-firmware/lenovolegionlinux/metadata.xml
index 262a2a0256..0bf12c93d9 100644
--- a/sys-firmware/lenovolegionlinux/metadata.xml
+++ b/sys-firmware/lenovolegionlinux/metadata.xml
@@ -2,8 +2,8 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
- <flag name="legion-tools">Build and install legion_gui and legion_cli</flag>
- <flag name="legion-acpi">Provide acpi exemple /usr/share/legion_linux/acpi </flag>
+ <flag name="gui">Build and install legion_gui and legion_cli</flag>
+ <flag name="acpi">Provide acpi exemple /usr/share/legion_linux/acpi </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="ryzenadj">[AMD] CPU and APU control using ryzenadj (systemd-service)</flag>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-10 18:00 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-10 18:00 UTC (permalink / raw
To: gentoo-commits
commit: ef2d098b65320ed114ad471430332a555a82d5fd
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sun Mar 10 17:58:46 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Mar 10 18:00:34 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ef2d098b
sys-firmware/lenovolegionlinux: add new systemd service
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 404ae862a1..8507d75b41 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -84,7 +84,7 @@ src_install() {
cd "${WORKDIR}/${P}/extra"
if use systemd; then
- systemd_dounit service/legion-linux.service service/legion-linux.path
+ systemd_dounit service/legion-linux.service service/legion-linux.path service/legion-linux-onresume.service
fi
if use acpi; then
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-12 20:40 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-12 20:40 UTC (permalink / raw
To: gentoo-commits
commit: e9ec4a0db0f62974d327d8bb1633667fd455a531
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Mar 12 20:39:25 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Mar 12 20:40:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e9ec4a0d
sys-firmware/lenovolegionlinux: add new legiond daemon
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 8507d75b41..672fcb964b 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -35,7 +35,7 @@ RDEPEND="
dev-python/darkdetect
)
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
- acpi? ( sys-power/acpid )
+ sys-power/acpid
radeon-dgpu? ( dev-util/rocm-smi )
ryzenadj? ( sys-power/RyzenAdj )
undervolt-intel? ( dev-python/undervolt )
@@ -67,6 +67,8 @@ src_compile() {
#Define build dir (fix sandboxed)
cd "${WORKDIR}/${P}/python/legion_linux"
distutils-r1_src_compile --build-dir "${WORKDIR}/${P}/python/legion_linux/build"
+ cd "legion_linux/extra/service/legiond"
+ emake || die
fi
}
@@ -84,7 +86,11 @@ src_install() {
cd "${WORKDIR}/${P}/extra"
if use systemd; then
- systemd_dounit service/legion-linux.service service/legion-linux.path service/legion-linux-onresume.service
+ systemd_dounit service/legiond.service service/legiond-onresume.service
+ insinto /usr/share/legion_linux/acpi/events
+ doins acpi/events/{legion_ppd,legion_ac}
+ dobin service/legiond/legiond
+ dobin service/legiond/legiond-cli
fi
if use acpi; then
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-13 11:09 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-13 11:09 UTC (permalink / raw
To: gentoo-commits
commit: a89e76200f65404b2d1e9a4aa8526fb3ffc92f62
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Mar 13 11:08:38 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Mar 13 11:09:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a89e7620
sys-firmware/lenovolegionlinux: Improving ebuild
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux-9999.ebuild | 31 +++++++---------------
sys-firmware/lenovolegionlinux/metadata.xml | 1 -
2 files changed, 10 insertions(+), 22 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 672fcb964b..3346d2ff6b 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -21,7 +21,8 @@ fi
DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
-BDEPEND="sys-kernel/linux-headers
+BDEPEND="
+ sys-kernel/linux-headers
sys-apps/lm-sensors
sys-apps/dmidecode
sys-apps/sed
@@ -35,7 +36,7 @@ RDEPEND="
dev-python/darkdetect
)
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
- sys-power/acpid
+ systemd? ( sys-power/acpid )
radeon-dgpu? ( dev-util/rocm-smi )
ryzenadj? ( sys-power/RyzenAdj )
undervolt-intel? ( dev-python/undervolt )
@@ -45,8 +46,8 @@ DEPEND="${RDEPEND}"
LICENSE="GPL-2"
SLOT="0"
-IUSE="gui acpi systemd radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel"
-REQUIRED_USE="|| ( systemd acpi radeon-dgpu downgrade-nvidia ryzenadj gui undervolt-intel ) acpi? ( gui ) radeon-dgpu? ( !downgrade-nvidia gui ) downgrade-nvidia? ( !radeon-dgpu gui ) undervolt-intel? ( !ryzenadj gui ) ryzenadj? ( !undervolt-intel gui )"
+IUSE="+gui systemd radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel"
+REQUIRED_USE="|| ( systemd radeon-dgpu downgrade-nvidia ryzenadj gui undervolt-intel ) radeon-dgpu? ( !downgrade-nvidia gui ) downgrade-nvidia? ( !radeon-dgpu gui ) undervolt-intel? ( !ryzenadj gui ) ryzenadj? ( !undervolt-intel gui )"
MODULES_KERNEL_MIN=5.10
@@ -65,25 +66,21 @@ src_compile() {
sed -i "s/version = _VERSION/version = ${PV}/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
fi
#Define build dir (fix sandboxed)
- cd "${WORKDIR}/${P}/python/legion_linux"
+ cd "${WORKDIR}/${P}/python/legion_linux" || die
distutils-r1_src_compile --build-dir "${WORKDIR}/${P}/python/legion_linux/build"
- cd "legion_linux/extra/service/legiond"
- emake || die
+ cd "legion_linux/extra/service/legiond" || die
+ emake
fi
}
src_install() {
linux-mod-r1_src_install
- #Load the module without reboot
- pushd python/legion_linux/ || die
- make forcereloadmodule
- popd || die
if use gui; then
#Define build dir (fix sandboxed)
- cd "${WORKDIR}/${P}/python/legion_linux/"
+ cd "${WORKDIR}/${P}/python/legion_linux/" || die
distutils-r1_src_install --build-dir "${WORKDIR}/${P}/python/legion_linux/build"
- cd "${WORKDIR}/${P}/extra"
+ cd "${WORKDIR}/${P}/extra" || die
if use systemd; then
systemd_dounit service/legiond.service service/legiond-onresume.service
@@ -92,13 +89,6 @@ src_install() {
dobin service/legiond/legiond
dobin service/legiond/legiond-cli
fi
-
- if use acpi; then
- insinto /usr/share/legion_linux/acpi/events
- doins acpi/events/{ac_adapter_legion-fancurve,novo-button,PrtSc-button,fn-r-refrate}
- insinto /usr/share/legion_linux/acpi/actions
- doins acpi/actions/{battery-legion-quiet.sh,snipping-tool.sh,fn-r-refresh-rate.sh}
- fi
fi
}
@@ -115,7 +105,6 @@ pkg_postinst() {
ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n"
fi
fi
- use 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 "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"
diff --git a/sys-firmware/lenovolegionlinux/metadata.xml b/sys-firmware/lenovolegionlinux/metadata.xml
index 0bf12c93d9..bd4ddf3020 100644
--- a/sys-firmware/lenovolegionlinux/metadata.xml
+++ b/sys-firmware/lenovolegionlinux/metadata.xml
@@ -3,7 +3,6 @@
<pkgmetadata>
<use>
<flag name="gui">Build and install legion_gui and legion_cli</flag>
- <flag name="acpi">Provide acpi exemple /usr/share/legion_linux/acpi </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="ryzenadj">[AMD] CPU and APU control using ryzenadj (systemd-service)</flag>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-13 11:24 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-13 11:24 UTC (permalink / raw
To: gentoo-commits
commit: 95b5b2723bbfa25180955032f9df2917ba9571ac
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Mar 13 11:24:08 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Mar 13 11:24:08 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=95b5b272
sys-firmware/lenovolegionlinux: remove systemd useflag
* small changes to the ebuild
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux-9999.ebuild | 39 ++++++++++------------
1 file changed, 18 insertions(+), 21 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 3346d2ff6b..a98d9f643f 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -34,9 +34,9 @@ RDEPEND="
dev-python/pyyaml
dev-python/argcomplete
dev-python/darkdetect
+ sys-power/acpid
)
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
- systemd? ( sys-power/acpid )
radeon-dgpu? ( dev-util/rocm-smi )
ryzenadj? ( sys-power/RyzenAdj )
undervolt-intel? ( dev-python/undervolt )
@@ -46,8 +46,8 @@ DEPEND="${RDEPEND}"
LICENSE="GPL-2"
SLOT="0"
-IUSE="+gui systemd radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel"
-REQUIRED_USE="|| ( systemd radeon-dgpu downgrade-nvidia ryzenadj gui undervolt-intel ) radeon-dgpu? ( !downgrade-nvidia gui ) downgrade-nvidia? ( !radeon-dgpu gui ) undervolt-intel? ( !ryzenadj gui ) ryzenadj? ( !undervolt-intel gui )"
+IUSE="+gui radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel"
+REQUIRED_USE="|| ( radeon-dgpu downgrade-nvidia ryzenadj gui undervolt-intel ) radeon-dgpu? ( !downgrade-nvidia gui ) downgrade-nvidia? ( !radeon-dgpu gui ) undervolt-intel? ( !ryzenadj gui ) ryzenadj? ( !undervolt-intel gui )"
MODULES_KERNEL_MIN=5.10
@@ -82,28 +82,25 @@ src_install() {
cd "${WORKDIR}/${P}/extra" || die
- if use systemd; then
- systemd_dounit service/legiond.service service/legiond-onresume.service
- insinto /usr/share/legion_linux/acpi/events
- doins acpi/events/{legion_ppd,legion_ac}
- dobin service/legiond/legiond
- dobin service/legiond/legiond-cli
- fi
+ systemd_dounit service/legiond.service service/legiond-onresume.service
+ insinto /etc/acpi/events
+ doins acpi/events/{legion_ppd,legion_ac}
+ dobin service/legiond/legiond
+ dobin service/legiond/legiond-cli
fi
}
pkg_postinst() {
- if use systemd; then
- 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 edit using the gui app"
- ewarn "Dont forget to edit /etc/legion_linux/.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 command"
- if !use downgrade-nvidia; then
- ewarn "Note: use flag downgrade-nvidia if you need for nvidia TDP control (requires driver 525 to work)\n"
- else
- ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n"
- fi
+ 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 "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"
+ ewarn "This useflag will be drop soon since 525 is almost 6 months old"
+ else
+ ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n"
fi
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!"
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-17 13:44 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-17 13:44 UTC (permalink / raw
To: gentoo-commits
commit: 788cfd6830afaadcb9cf1e5c6c1c13bfe9c48545
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sun Mar 17 13:43:35 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Mar 17 13:43:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=788cfd68
sys-firmware/lenovolegionlinux: fix maintainers on metadata
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/metadata.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys-firmware/lenovolegionlinux/metadata.xml b/sys-firmware/lenovolegionlinux/metadata.xml
index a98adf9979..163b52f80b 100644
--- a/sys-firmware/lenovolegionlinux/metadata.xml
+++ b/sys-firmware/lenovolegionlinux/metadata.xml
@@ -9,6 +9,7 @@
<maintainer type="person">
<email>gonegrier.duarte@gmail.com</email>
<name>Gonçalo Negrier Duarte</name>
+ </maintainer>
<maintainer type="person">
<email>ston.jia@outlook.com</email>
<name>ston</name>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-17 14:53 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-17 14:53 UTC (permalink / raw
To: gentoo-commits
commit: 54e81f8195b57518614915845fd0e33c8c0be0c1
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sun Mar 17 14:52:32 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Mar 17 14:52:56 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=54e81f81
sys-firmware/lenovolegionlinux: update maintainers
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/metadata.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/metadata.xml b/sys-firmware/lenovolegionlinux/metadata.xml
index 163b52f80b..9cbef788d5 100644
--- a/sys-firmware/lenovolegionlinux/metadata.xml
+++ b/sys-firmware/lenovolegionlinux/metadata.xml
@@ -10,14 +10,14 @@
<email>gonegrier.duarte@gmail.com</email>
<name>Gonçalo Negrier Duarte</name>
</maintainer>
- <maintainer type="person">
- <email>ston.jia@outlook.com</email>
- <name>ston</name>
- </maintainer>
<upstream>
<remote-id type="github">johnfanv2/LenovoLegionLinux</remote-id>
<bugs-to>https://github.com/johnfanv2/LenovoLegionLinux/issues</bugs-to>
- <changelog>https://github.com/johnfanv2/LenovoLegionLinux/blob/main/README.md</changelog>
+ <changelog>https://github.com/johnfanv2/LenovoLegionLinux/blob/main/README.md</changelog>
+ <maintainer type="person">
+ <email>ston.jia@outlook.com</email>
+ <name>ston</name>
+ </maintainer>
</upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-17 20:27 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-17 20:27 UTC (permalink / raw
To: gentoo-commits
commit: 2cc3b9dcdd99550fc3178790b20b65629f4c0a6b
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sun Mar 17 20:26:06 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Mar 17 20:27:12 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2cc3b9dc
sys-firmware/lenovolegionlinux: fix metadata
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/metadata.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/metadata.xml b/sys-firmware/lenovolegionlinux/metadata.xml
index 9cbef788d5..b3fed2dea5 100644
--- a/sys-firmware/lenovolegionlinux/metadata.xml
+++ b/sys-firmware/lenovolegionlinux/metadata.xml
@@ -14,10 +14,10 @@
<remote-id type="github">johnfanv2/LenovoLegionLinux</remote-id>
<bugs-to>https://github.com/johnfanv2/LenovoLegionLinux/issues</bugs-to>
<changelog>https://github.com/johnfanv2/LenovoLegionLinux/blob/main/README.md</changelog>
- <maintainer type="person">
+ <maintainer>
<email>ston.jia@outlook.com</email>
<name>ston</name>
- </maintainer>
+ </maintainer>
</upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-29 11:39 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-03-29 11:39 UTC (permalink / raw
To: gentoo-commits
commit: 1c5823760d649b55609d5edccf866f07a16c0ed4
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu Mar 28 18:12:05 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Mar 29 11:39:07 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c582376
sys-firmware/lenovolegionlinux: add new legiond-cpuset service
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index f90d2e5553..debc32bf51 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -77,7 +77,7 @@ src_install() {
cd "${WORKDIR}/${P}/extra" || die
- systemd_dounit service/legiond.service service/legiond-onresume.service
+ systemd_dounit service/legiond.service service/legiond-onresume.service service/legiond-cpuset.service service/legiond-cpuset.timer
newinitd "${FILESDIR}/legiond.initd" legiond
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-04-02 19:54 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-04-02 19:54 UTC (permalink / raw
To: gentoo-commits
commit: 8064ad348e018261430e1b3f25c393fe35bf4a8f
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Apr 2 19:54:18 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Apr 2 19:54:18 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8064ad34
sys-firmware/lenovolegionlinux: update maintainers
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/metadata.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/metadata.xml b/sys-firmware/lenovolegionlinux/metadata.xml
index b3fed2dea5..86f7aaa723 100644
--- a/sys-firmware/lenovolegionlinux/metadata.xml
+++ b/sys-firmware/lenovolegionlinux/metadata.xml
@@ -9,15 +9,15 @@
<maintainer type="person">
<email>gonegrier.duarte@gmail.com</email>
<name>Gonçalo Negrier Duarte</name>
- </maintainer>
+ </maintainer>
+ <maintainer type="person">
+ <email>ston.jia@outlook.com</email>
+ <name>ston</name>
+ </maintainer>
<upstream>
<remote-id type="github">johnfanv2/LenovoLegionLinux</remote-id>
<bugs-to>https://github.com/johnfanv2/LenovoLegionLinux/issues</bugs-to>
<changelog>https://github.com/johnfanv2/LenovoLegionLinux/blob/main/README.md</changelog>
- <maintainer>
- <email>ston.jia@outlook.com</email>
- <name>ston</name>
- </maintainer>
</upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
@ 2024-08-22 0:39 Gonçalo Negrier Duarte
0 siblings, 0 replies; 26+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-08-22 0:39 UTC (permalink / raw
To: gentoo-commits
commit: e33dad87751ec9a80ad0f6bdff7cb8d1bda50f62
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu Aug 22 00:37:33 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu Aug 22 00:39:25 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e33dad87
sys-firmware/lenovolegionlinux: remove acpid depedency
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 581e901d6..633e6491c 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -35,7 +35,6 @@ RDEPEND="
dev-python/pyyaml
dev-python/argcomplete
dev-python/darkdetect
- sys-power/acpid
)
downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
"
@@ -89,8 +88,6 @@ src_install() {
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-ctl
fi
^ permalink raw reply related [flat|nested] 26+ messages in thread
end of thread, other threads:[~2024-08-22 0:39 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-17 14:53 [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/ Gonçalo Negrier Duarte
-- strict thread matches above, loose matches on Subject: below --
2024-08-22 0:39 Gonçalo Negrier Duarte
2024-04-02 19:54 Gonçalo Negrier Duarte
2024-03-29 11:39 Gonçalo Negrier Duarte
2024-03-17 20:27 Gonçalo Negrier Duarte
2024-03-17 13:44 Gonçalo Negrier Duarte
2024-03-13 11:24 Gonçalo Negrier Duarte
2024-03-13 11:09 Gonçalo Negrier Duarte
2024-03-12 20:40 Gonçalo Negrier Duarte
2024-03-10 18:00 Gonçalo Negrier Duarte
2024-01-08 13:03 Gonçalo Negrier Duarte
2023-11-26 17:09 Gonçalo Negrier Duarte
2023-09-15 10:54 Gonçalo Negrier Duarte
2023-08-30 12:53 Gonçalo Negrier Duarte
2023-08-29 9:53 Gonçalo Negrier Duarte
2023-08-24 11:26 Gonçalo Negrier Duarte
2023-08-01 11:02 [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/ Gonçalo Negrier Duarte
2023-07-28 17:01 Gonçalo Negrier Duarte
2023-07-26 13:03 Gonçalo Negrier Duarte
2023-07-26 13:03 Gonçalo Negrier Duarte
2023-07-15 16:53 Gonçalo Negrier Duarte
2023-07-10 11:44 Gonçalo Negrier Duarte
2023-07-08 12:52 Gonçalo Negrier Duarte
2023-07-07 22:47 [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/ Gonçalo Negrier Duarte
2023-07-07 10:38 Gonçalo Negrier Duarte
2023-07-05 15:10 Gonçalo Negrier Duarte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox