Package Details: powerdevil-ddcutil 5.25.2-1

Git Clone URL: https://aur.archlinux.org/powerdevil-ddcutil.git (read-only, click to copy)
Package Base: powerdevil-ddcutil
Description: Power management for KDE plasma with DDC/CI enabled
Upstream URL: https://kde.org/plasma-desktop/
Licenses: LGPL
Conflicts: powerdevil
Provides: powerdevil
Submitter: Jake
Maintainer: Jake
Last Packager: Jake
Votes: 11
Popularity: 1.28
First Submitted: 2021-08-03 19:25 (UTC)
Last Updated: 2022-07-06 23:00 (UTC)

Pinned Comments

Jake commented on 2021-08-03 19:47 (UTC) (edited on 2021-11-20 11:11 (UTC) by Jake)

The package contains udev rules for i2c, to use them add your user to the i2c group:

sudo gpasswd -a $USER i2c

Also you have to load the i2c-dev kernel module at boot, if you don't have it already:

sudo sh -c 'echo i2c-dev > /etc/modules-load.d/ddc.conf'

and reboot.

Latest Comments

Jake commented on 2022-06-13 21:25 (UTC)

definitio: Right, was added with 5.23 - I added it now here as well.

definitio commented on 2022-06-08 19:38 (UTC)

Please add power-profiles-daemon as optional dependency. The package in official repository has it.

Jake commented on 2022-05-31 23:23 (UTC)

Hi prroet, thanks for your suggestion. Though I tried it and it does not make a difference - build including packaging takes 21 seconds for me. It already builds in parallel if MAKEFLAGS are set accordingly: https://wiki.archlinux.org/title/makepkg#Improving_compile_times Would recommend to configure it there, so you can utilize all cores not just for building this package. Usually pkgbuilds only override this if >1 would cause issues.

prroet commented on 2022-05-29 15:55 (UTC)

I found a small improvement to reduce compile time:

diff --git a/PKGBUILD b/PKGBUILD
index ab8fd12..9c62c6e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,6 +31,7 @@ validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Riddell <jr
               '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>

 build() {
+  export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc)
   cmake -B build -S $_pkgname-$pkgver \
     -DCMAKE_INSTALL_LIBEXECDIR=lib \
     -DBUILD_TESTING=OFF \

See: https://cmake.org/cmake/help/latest/envvar/CMAKE_BUILD_PARALLEL_LEVEL.html#envvar:CMAKE_BUILD_PARALLEL_LEVEL

Jake commented on 2021-12-22 22:56 (UTC)

i2c-tools contains many binaries, shared libs and a python module, which are all unnecessary for this package. I think it makes more sense to supply the 2 small config fragments here directly. i2c-tools can be installed separately if actually needed, as it doesn't cause conflicts.

malcolm commented on 2021-12-21 22:21 (UTC)

the i2c-tools package provides the files you are adding manually. wouldn't it be better to add it as a dependency?

Jake commented on 2021-08-03 19:47 (UTC) (edited on 2021-11-20 11:11 (UTC) by Jake)

The package contains udev rules for i2c, to use them add your user to the i2c group:

sudo gpasswd -a $USER i2c

Also you have to load the i2c-dev kernel module at boot, if you don't have it already:

sudo sh -c 'echo i2c-dev > /etc/modules-load.d/ddc.conf'

and reboot.