* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-14 10:19 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2024-03-14 10:19 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: David Roman <davidroman96 <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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-08-23 0:18 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2024-08-23 0:18 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: David Roman <davidroman96 <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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-04-02 22:48 Julien Roy
0 siblings, 0 replies; 19+ messages in thread
From: Julien Roy @ 2024-04-02 22:48 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: Julien Roy <julien <AT> jroy <DOT> ca>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-29 14:15 Julien Roy
0 siblings, 0 replies; 19+ messages in thread
From: Julien Roy @ 2024-03-29 14:15 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: Julien Roy <julien <AT> jroy <DOT> ca>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-17 22:50 Julien Roy
0 siblings, 0 replies; 19+ messages in thread
From: Julien Roy @ 2024-03-17 22:50 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: Julien Roy <julien <AT> jroy <DOT> ca>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-17 15:12 Julien Roy
0 siblings, 0 replies; 19+ messages in thread
From: Julien Roy @ 2024-03-17 15:12 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: Julien Roy <julien <AT> jroy <DOT> ca>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-17 15:12 Julien Roy
0 siblings, 0 replies; 19+ messages in thread
From: Julien Roy @ 2024-03-17 15:12 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: Julien Roy <julien <AT> jroy <DOT> ca>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-14 10:19 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2024-03-14 10:19 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: David Roman <davidroman96 <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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2024-03-10 21:26 Haelwenn Monnier
0 siblings, 0 replies; 19+ messages in thread
From: Haelwenn Monnier @ 2024-03-10 21:26 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: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2023-11-29 22:47 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2023-11-29 22:47 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: David Roman <davidroman96 <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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2023-08-30 5:36 Viorel Munteanu
0 siblings, 0 replies; 19+ messages in thread
From: Viorel Munteanu @ 2023-08-30 5:36 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: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2023-08-24 22:41 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2023-08-24 22:41 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: David Roman <davidroman96 <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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/
@ 2023-08-01 14:17 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2023-08-01 14:17 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: David Roman <davidroman96 <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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-29 14:06 Florian Schmaus
0 siblings, 0 replies; 19+ messages in thread
From: Florian Schmaus @ 2023-07-29 14:06 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: Florian Schmaus <flow <AT> gentoo <DOT> org>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-27 12:04 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2023-07-27 12:04 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: David Roman <davidroman96 <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 de5f1723a2..95c2640e73 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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-27 12:04 David Roman
0 siblings, 0 replies; 19+ messages in thread
From: David Roman @ 2023-07-27 12:04 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: David Roman <davidroman96 <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 660ba14f53..aa2aa2365c 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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/
@ 2023-07-16 6:18 Haelwenn Monnier
0 siblings, 0 replies; 19+ messages in thread
From: Haelwenn Monnier @ 2023-07-16 6:18 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: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2023-07-08 2:43 Haelwenn Monnier
0 siblings, 0 replies; 19+ messages in thread
From: Haelwenn Monnier @ 2023-07-08 2:43 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: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
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] 19+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/
@ 2023-07-08 2:43 Haelwenn Monnier
0 siblings, 0 replies; 19+ messages in thread
From: Haelwenn Monnier @ 2023-07-08 2:43 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: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
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] 19+ messages in thread
end of thread, other threads:[~2024-08-23 0:18 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-14 10:19 [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/ David Roman
-- strict thread matches above, loose matches on Subject: below --
2024-08-23 0:18 David Roman
2024-04-02 22:48 Julien Roy
2024-03-29 14:15 Julien Roy
2024-03-17 22:50 Julien Roy
2024-03-17 15:12 Julien Roy
2024-03-17 15:12 Julien Roy
2024-03-14 10:19 David Roman
2024-03-10 21:26 Haelwenn Monnier
2023-11-29 22:47 David Roman
2023-08-30 5:36 Viorel Munteanu
2023-08-24 22:41 David Roman
2023-08-01 14:17 [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/ David Roman
2023-07-29 14:06 Florian Schmaus
2023-07-27 12:04 David Roman
2023-07-27 12:04 David Roman
2023-07-16 6:18 Haelwenn Monnier
2023-07-08 2:43 [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/ Haelwenn Monnier
2023-07-08 2:43 Haelwenn Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox