I just installed sys-power/power-profiles-daemon, enabled and started the service and after logging off and logging back on again, I noticed that this actually adds functionality to kde-plasma/powerdevil (Power Profile functionality). When this is not installed this functionality is unavailable. Perhaps the ebuild should be edited and this should be added as dependency under a USE flag? Arch Linux (see URL) lists this as an optional dependency too. Reproducible: Always Steps to Reproduce: 1.Emerge kde-plasma/powerdevil without having sys-power/power-profiles-daemon installed or running 2.Start a KDE session and check the Battery and Brightness icon. Actual Results: There's no power profile functionality Expected Results: Power Profile functionality emerge --info Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-12, glibc-2.36-r7, 6.1.23-gentoo x86_64) ================================================================= System uname: Linux-6.1.23-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.36 KiB Mem: 32526444 total, 21571800 free KiB Swap: 33554428 total, 33554428 free Timestamp of repository gentoo: Thu, 27 Apr 2023 06:00:01 +0000 Head commit of repository gentoo: 7cc399d263541387478b4af8fcaca856f4be4dd3 sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.39 p6) 2.39.0 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0-r2::gentoo dev-lang/python: 3.10.10_p3::gentoo, 3.11.2_p2::gentoo dev-lang/rust: 1.69.0-r1::gentoo dev-util/cmake: 3.25.3::gentoo dev-util/meson: 1.0.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 253.3::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r1::gentoo sys-devel/gcc: 11.3.1_p20221209::gentoo, 12.2.1_p20230304::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo sys-devel/llvm: 15.0.7::gentoo sys-devel/make: 4.4.1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j12" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl alsa amd64 audit bluetooth boost brotli bzip2 cacert cairo caps cli colord crypt cryptsetup cups curl dbus designer device-mapper dri dts dvd evdev ffmpeg flac fontforge fortran gdbm geoclue geolocation gif git glib gmp gpm gssapi gstreamer gtk gtk2 gtk4 harfbuzz ibus iconv icu idn introspection ipv6 jbig jpeg kde kerberos libglvnd libsamplerate libtirpc libvisual lm-sensors lz4 lzma mp3 mpeg multilib ncurses networkmanager nls nptl nss ogg openal openconnect opengl openmp opus pam pcre pcre16 pcre32 perl pkcs11 pkcs7 png policykit pulseaudio pwquality python qml qt5 readline rtmp samba sasl screencast sdl seccomp slang sndio sqlite ssh ssl svg systemd taglib test-rust theora tiff tpm truetype udev unicode unwind v4l vaapi vala vcd vorbis vpx vulkan wavpack wayland webengine webkit webp widgets x264 xattr xcb xinerama xml xscreensaver zlib zstd" ABI_X86="32 64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en en-GB en-US nl ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
It is the same as in Gnome... but I am unsure about how to pull in the dependency (for gnome I would be tempted to simply pull in with gnome metapackages as it doesn't add much deps and is a tiny package) The same happens with sys-power/switcheroo-control in gnome (no idea about KDE), but in this case I am unsure about how to handle it as it is useful for people using optimus (or similar) setups, but not for systems with one graphics card
What about adding a USE flag for this functionality?
(In reply to Pacho Ramos from comment #1) > It is the same as in Gnome... but I am unsure about how to pull in the > dependency (for gnome I would be tempted to simply pull in with gnome > metapackages as it doesn't add much deps and is a tiny package) > > The same happens with sys-power/switcheroo-control in gnome (no idea about > KDE), but in this case I am unsure about how to handle it as it is useful > for people using optimus (or similar) setups, but not for systems with one > graphics card The package sys-power/power-profiles-daemon is basically usable for any recent Intel laptop (starting from Skylake and later). That's why I think you could add this via a USE flag. I've merged switcheroo-control and does not seem that KDE uses this (as I've got a laptop with Intel / NVIDIA hybrid graphics). It seems that switcheroo-control is only used if you install 3rd party widgets or applets.
(In reply to nvaert1986 from comment #3) > The package sys-power/power-profiles-daemon is basically usable for any > recent Intel laptop (starting from Skylake and later). That's why I think > you could add this via a USE flag. I think we should add it as fixed RDEPEND for kde-plasma/powerdevil. > I've merged switcheroo-control and does not seem that KDE uses this (as I've > got a laptop with Intel / NVIDIA hybrid graphics). It seems that > switcheroo-control is only used if you install 3rd party widgets or applets. This is going to change soon: https://invent.kde.org/frameworks/kio/-/merge_requests/1332 https://bugs.kde.org/show_bug.cgi?id=449106
(In reply to Andreas Sturmlechner from comment #4) > (In reply to nvaert1986 from comment #3) > > The package sys-power/power-profiles-daemon is basically usable for any > > recent Intel laptop (starting from Skylake and later). That's why I think > > you could add this via a USE flag. > I think we should add it as fixed RDEPEND for kde-plasma/powerdevil. > Sounds like a good idea :) > > I've merged switcheroo-control and does not seem that KDE uses this (as I've > > got a laptop with Intel / NVIDIA hybrid graphics). It seems that > > switcheroo-control is only used if you install 3rd party widgets or applets. > This is going to change soon: > https://invent.kde.org/frameworks/kio/-/merge_requests/1332 > https://bugs.kde.org/show_bug.cgi?id=449106 Could be a good idea, but if I check the commits, they're for plasma-6.*. But would the same be a good idea for plasma-6.* ebuilds perhaps?
(In reply to nvaert1986 from comment #5) > > > I've merged switcheroo-control and does not seem that KDE uses this (as I've > > > got a laptop with Intel / NVIDIA hybrid graphics). It seems that > > > switcheroo-control is only used if you install 3rd party widgets or applets. > > This is going to change soon: > > https://invent.kde.org/frameworks/kio/-/merge_requests/1332 > > https://bugs.kde.org/show_bug.cgi?id=449106 > > Could be a good idea, but if I check the commits, they're for plasma-6.*. > But would the same be a good idea for plasma-6.* ebuilds perhaps? Milestone is KF5, bug shows "fixed-in: 5.109", so it will be/is cherry-picked. Ebuilds don't just generate themselves out of ideas, unfortunately.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=1ce20b002c19b39931dc0f577d55a95bace8a75d commit 1ce20b002c19b39931dc0f577d55a95bace8a75d Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2023-07-25 12:47:05 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2023-07-25 12:47:58 +0000 kde-frameworks/kio: Add new RDEPEND=sys-power/switcheroo-control Upstream commit d270ba449fd59d374637a64a4ba4bf11d8ac9b10 Bug: https://bugs.gentoo.org/905155 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> kde-frameworks/kio/kio-5.9999.ebuild | 1 + 1 file changed, 1 insertion(+) https://gitweb.gentoo.org/proj/kde.git/commit/?id=6a0294edfdfa0e86effbafa9bb23da61ef6bd1ed commit 6a0294edfdfa0e86effbafa9bb23da61ef6bd1ed Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2023-07-25 12:44:02 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2023-07-25 12:47:52 +0000 kde-plasma/powerdevil: Add missing RDEPEND Bug: https://bugs.gentoo.org/905155 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> kde-plasma/powerdevil/powerdevil-5.27.49.9999.ebuild | 1 + kde-plasma/powerdevil/powerdevil-9999.ebuild | 1 + 2 files changed, 2 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=b7fd0fb7f8cb3e3b54ea6ce79d05703679591978 commit b7fd0fb7f8cb3e3b54ea6ce79d05703679591978 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-11-23 13:38:31 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-11-23 13:42:09 +0000 kde-plasma/powerdevil: Allow sys-power/tlp alt. to power-profiles-daemon Upstream commits: 19c49043aba60687891b1edafe28e50c73df9783 (fixed runtime detection) 5224fbd954a22fd4e711bd4a534cc0b65b4f3b5c See also: https://invent.kde.org/plasma/powerdevil/-/merge_requests/386 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=495918 Bug: https://bugs.gentoo.org/905155 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> kde-plasma/powerdevil/powerdevil-6.2.49.9999.ebuild | 5 ++++- kde-plasma/powerdevil/powerdevil-9999.ebuild | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbd5a7686a5d634c7a9f56d18c546fefc0356890 commit dbd5a7686a5d634c7a9f56d18c546fefc0356890 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-11-23 13:38:31 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-11-23 13:52:02 +0000 kde-plasma/powerdevil: Allow sys-power/tlp alt. to power-profiles-daemon Upstream commits: 19c49043aba60687891b1edafe28e50c73df9783 (fixed runtime detection) 5224fbd954a22fd4e711bd4a534cc0b65b4f3b5c See also: https://invent.kde.org/plasma/powerdevil/-/merge_requests/386 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=495918 Bug: https://bugs.gentoo.org/905155 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> kde-plasma/powerdevil/powerdevil-6.2.3-r2.ebuild | 97 ++++++++++++++++++++++++ 1 file changed, 97 insertions(+)