Package Details: system76-power-git 1.1.24.r14.g4ebf3fd-1

Git Clone URL: https://aur.archlinux.org/system76-power-git.git (read-only, click to copy)
Package Base: system76-power-git
Description: System76 Power Management
Upstream URL: https://github.com/pop-os/system76-power
Licenses: GPL
Conflicts: system76-power
Provides: system76-power
Submitter: ebobby
Maintainer: m3thodic
Last Packager: m3thodic
Votes: 2
Popularity: 0.000000
First Submitted: 2018-09-12 03:33 (UTC)
Last Updated: 2023-05-26 20:32 (UTC)

Required by (4)

Sources (3)

Latest Comments

yochananmarqos commented on 2024-05-08 21:04 (UTC)

@m3thodic: This now provides and conflicts with power-profiles-daemon.

Shad190 commented on 2023-03-26 11:06 (UTC)

I get "Failed to enable unit: Unit file com.system76.PowerDaemon.service does not exist"

lfom commented on 2022-11-09 12:01 (UTC)

It looks that the mkinitcpio patch is broken again, they changed a lot in the source code. This seems to work for me: https://l.termbin.com/aqs0

kevr commented on 2022-04-27 22:17 (UTC) (edited on 2022-04-27 22:31 (UTC) by kevr)

Patch is currently busted:

==> Making package: system76-power-git 1.1.20.r15.gae01b2f-1 (Wed 27 Apr 2022 03:17:21 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating system76-power-git git repo...
Fetching origin
  -> Found makefile.patch
  -> Found mkinitcpio.patch
==> Validating source files with sha256sums...
    system76-power-git ... Skipped
    makefile.patch ... Passed
    mkinitcpio.patch ... Passed
==> Extracting sources...
  -> Creating working copy of system76-power-git git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file src/graphics.rs
Hunk #1 succeeded at 90 (offset 10 lines).
Hunk #2 succeeded at 458 (offset 31 lines).
patching file Makefile
Hunk #1 FAILED at 36.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

However, looks like they addressed this upstream by using $(datadir) everywhere in there. Maybe able to safely drop makefile.patch?

lfom commented on 2022-04-27 14:55 (UTC)

makefile.patch is not needed anymore (all files go to datadir in the source code now), and only mkinitcpio.patch is needed, this is the updated code for the the curretn version (1.1.20.r19.ge9d10f9-1):

diff --git a/src/graphics.rs b/src/graphics.rs
index 287044b..7f8da91 100644
--- a/src/graphics.rs
+++ b/src/graphics.rs
@@ -90,7 +90,7 @@ pub enum GraphicsDeviceError {
     SysFs(io::Error),
     #[error("failed to unbind {} on PCI driver {}: {}", func, driver, why)]
     Unbind { func: String, driver: String, why: io::Error },
-    #[error("update-initramfs failed with {} status", _0)]
+    #[error("initramfs update failed with {} status", _0)]
     UpdateInitramfs(ExitStatus),
 }

@@ -458,9 +458,9 @@ impl Graphics {
         }

         log::info!("Updating initramfs");
-        const UPDATE_INITRAMFS_CMD: &str = "update-initramfs";
+        const UPDATE_INITRAMFS_CMD: &str = "mkinitcpio";
         let status = process::Command::new(UPDATE_INITRAMFS_CMD)
-            .arg("-u")
+            .arg("-P")
             .status()
             .map_err(|why| GraphicsDeviceError::Command { cmd: UPDATE_INITRAMFS_CMD, why })?;

PS: trying to post code for the first time, please forgive any problems.

Vektor82 commented on 2022-04-24 13:41 (UTC)

Fails to build ==> Starting prepare()... patching file src/graphics.rs Hunk #1 succeeded at 90 (offset 10 lines). Hunk #2 succeeded at 458 (offset 31 lines). patching file Makefile Hunk #1 FAILED at 36. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej ==> ERROR: A failure occurred in prepare(). Aborting... error: failed to build 'system76-power-git-1.1.20.r15.gae01b2f-1': error: packages failed to build: system76-power-git-1.1.20.r15.gae01b2f-1

yochananmarqos commented on 2022-02-02 01:33 (UTC)

Missing dependency on libusb. It fails to build without it as well.

m3thodic commented on 2018-12-14 21:27 (UTC)

Could you please add provides=("system76-power") to the PKGBUILD? I am the maintainer of gnome-shell-extension-system76-power-git so by adding that provides I provided my package will be able to support either system76-power or system76-power-git. Thanks for the package!