From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 52D0515800A for ; Sat, 29 Jul 2023 14:06:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95EC7E0BCF; Sat, 29 Jul 2023 14:06:24 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F246E0BCF for ; Sat, 29 Jul 2023 14:06:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2C5633BE19 for ; Sat, 29 Jul 2023 14:06:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37DA9E71 for ; Sat, 29 Jul 2023 14:06:22 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1690563654.ff50e73233af991c96eb90668e8f2c75c72f72a0.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-firmware/LenovoLegionLinux/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-firmware/LenovoLegionLinux/LenovoLegionLinux-9999.ebuild X-VCS-Directories: sys-firmware/LenovoLegionLinux/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: ff50e73233af991c96eb90668e8f2c75c72f72a0 X-VCS-Branch: master Date: Sat, 29 Jul 2023 14:06:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c5f0edaa-5846-4488-a288-9eb0562ee1e5 X-Archives-Hash: e3081d68f8edaa7f73d3da8b37af2ca9 commit: ff50e73233af991c96eb90668e8f2c75c72f72a0 Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Fri Jul 28 17:00:54 2023 +0000 Commit: Florian Schmaus gentoo 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 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" - }