public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/
Date: Sat, 29 Jul 2023 14:06:22 +0000 (UTC)	[thread overview]
Message-ID: <1690563654.ff50e73233af991c96eb90668e8f2c75c72f72a0.flow@gentoo> (raw)

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"
-
 }


             reply	other threads:[~2023-07-29 14:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-29 14:06 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-07 12:08 [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/lenovolegionlinux/ David Roman
2024-12-30 15:30 Julien Roy
2024-11-25  1:37 Haelwenn Monnier
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-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-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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1690563654.ff50e73233af991c96eb90668e8f2c75c72f72a0.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox