# The following tag is to get correct syntax highlighting for this file in vim text editor # vim: syntax=spec Name: system76-power Version: 0.29 Release: 1%{?dist} Summary: system76-power License: GPLv3 URL: https://github.com/pop-os/system76-power # Detailed information about the source Git repository and the source commit # for the created rpm package VCS: git+https://github.com/szydell/system76-power#345866682bcaf79afc897f55e0776cc41246a14f: # git_dir_pack macro places the repository content (the source files) into a tarball # and returns its filename. The tarball will be used to build the rpm. Source: system76-power-0.29.tar.gz #Packages required for build BuildRequires: cargo %{?systemd_requires} BuildRequires: systemd BuildRequires: dbus-devel BuildRequires: libusb-devel #Packages required to work Requires: dbus-common Requires: systemd Requires: libusb # More detailed description of the package %description System76 Power Management daemon %define debug_package %{nil} #-- %prep %setup -q -n system76-power-0.29 # This will invoke `make` command in the directory with the extracted sources. %build make DEBUG=1 all # This will copy the files generated by the `make` command above into # the installable rpm package. %install make install DESTDIR=%{buildroot} install -D -m 0644 "debian/system76-power.service" "%{buildroot}/%{_sysconfdir}/systemd/system/system76-power.service" install -D -m 0644 "debian/system76-power-wake.service" "%{buildroot}/%{_sysconfdir}/systemd/system/system76-power-wake.service" install -D -m 0644 "completion/completion.sh" "%{buildroot}/%{_sysconfdir}/bash_completion.d/system76-power" # do after installation %post rm -f /etc/modules-load.d/system76-power.conf %systemd_post system76-power.service # do before uninstallation %preun %systemd_preun system76-power.service # do after unistallation %postun rm -f /etc/modprobe.d/system76-power.conf rm -f /etc/modules-load.d/system76-power.conf %systemd_postun_with_restart system76-power.service # Those files will be in the rpm %files /usr/bin/system76-power %{_sysconfdir}/dbus-1/system.d/system76-power.conf %{_sysconfdir}/bash_completion.d/system76-power %{_sysconfdir}/systemd/system/system76-power.service %{_sysconfdir}/systemd/system/system76-power-wake.service # Changelog %changelog * Mon Aug 24 2020 Marcin Szydelski 0.29-1 - +requires libusb - Merge pull request #30 from pop-os/master - move systemd .service to /etc/systemd/system - +compute - feat: Make PowerClient type public - 1.1.8 - Make HID keyboard backlight update block for events - 1.1.7 - Add HID keyboard backlight support - Merge pull request #29 from pop-os/master - Update to Rust 1.41.0 - fix(Makefile): Fix the problem of missing .service file after make install - fix(TESTING.md): The cmd about 'graphics power state' in TESTING.md is wrong. * Mon Jul 06 2020 Marcin Szydelski 0.28-1 - + compute option - Merge pull request #28 from pop-os/master - Add "compute" graphics mode - Explicitly require ubuntu-drivers-common * Tue Jun 30 2020 Marcin Szydelski 0.27-1 - rename intel to integrated - Merge pull request #27 from pop-os/master - fixed fan unit tests - Add oryp6 - Merge pull request #26 from pop-os/master - Use TR3 fan curve for thelio-major-b2 - 1.1.5 - Add model-specific power profile for lemp9 - Update fan.rs - Add Type and BusName options to systemd service - Blacklist i2c_nvidia_gpu in hybrid mode - readme: Remove note about udev rules file - Rename Intel mode to integrated mode - Allow switching on AMD+NVIDIA systems * Mon Apr 27 2020 Marcin Szydelski 0.26-1 - Merge pull request #25 from pop-os/master - 1.1.4 - add addw2 and gaze15 * Sat Feb 22 2020 Marcin Szydelski 0.25-1 - Merge pull request #24 from pop-os/master - 1.1.3 - Initial Threadripper 3 Fan Curves * Sun Jan 19 2020 Marcin Szydelski 0.24-1 - Merge pull request #22 from pop-os/master - Add Thelio Mega * Tue Jan 07 2020 Marcin Szydelski 0.23-1 - Merge pull request #21 from pop-os/master - Merge pull request #132 from pop-os/thelio-major-r2 - Add XEON fan curve and setup thelio-massive-b1 to use it. - Merge branch 'master' into thelio-major-r2 - 1.1.2 - Add thelio-major-r2 * Fri Dec 27 2019 Marcin Szydelski 0.22-1 - Merge pull request #20 from pop-os/master - Upgrade to dbus 0.7.1 - Add explicit 'dyn' to trait objects - Update toolchain to 1.39.0 - Delete rust.yml * Fri Nov 15 2019 Marcin Szydelski 0.21-1 - Merge pull request #19 from pop-os/master - improvement: Added Core X fan curve, and improved the standard curve - rust auto test/build * Wed Nov 13 2019 Marcin Szydelski 0.20-1 - Merge pull request #18 from pop-os/master - improvement: Change power profile only if it is not already set * Sat Nov 02 2019 Marcin Szydelski 0.19-1 - add hybrid * Sat Nov 02 2019 Marcin Szydelski 0.18-1 - Merge pull request #17 from pop-os/master - Update fan tests - Fix fan example * Mon Oct 28 2019 Marcin Szydelski 0.17-1 HYBRID mode - spec - README.md - Add notes about graphics modes in README - Add support for PRIME render offloading - Merge pull request #15 from pop-os/master - Fix typo * Sun Oct 06 2019 Marcin Szydelski 0.16-1 - Merge pull request #14 from pop-os/master - Add darp6 and galp4 to automatic display switching * Tue Jul 30 2019 Marcin Szydelski 0.15-1 - Merge pull request #13 from pop-os/master - Merge pull request #94 from pop-os/persistable-brightness - Merge branch 'master' into threadripper-fan - :memo: Add TESTING.md - Trim model name - Add new fan curve for thelio-major-r1 - :sparkles: Don't set brightness when setting the initial profile * Tue Jul 02 2019 Marcin Szydelski 0.14-1 - Merge pull request #12 from pop-os/master - Skip setting APM for md-raid devices - addp1 -> addw1 - Add addp1 to hotplug daemon * Mon Jun 17 2019 Marcin Szydelski 0.13-1 - patch that allows to run this software on Fedora - merge - from master - marge with master, fedora specific changes temporarily lost * Tue May 14 2019 Marcin Szydelski 0.12-1 - Merge pull request #9 from pop-os/master - Merge branch 'master' into gaze14 - Add 17 inch version PCI IDs - Add support for 1650 model - Update ports for gaze14 hotplug detection - Add gaze14 to hotplug detection * Wed May 08 2019 Marcin Szydelski 0.11-1 - Merge pull request #8 from pop-os/master - Support multiple I/O boards and multiple CPUs * Wed Apr 17 2019 Marcin Szydelski 0.10-1 - Merge pull request #7 from pop-os/master - Disable another nvidia kernel module * Thu Mar 28 2019 Marcin Szydelski 0.9-1 - additional daemon paramenters - Merge pull request #6 from pop-os/master - Merge branch 'master' into autoswitch - Merge pull request #5 from pop-os/master - Merge branch 'master' into ignore-initial-profile-error - Merge branch 'master' into power-client - Merge branch 'master' into ignore-initial-profile-error - :hear_no_evil: Allow the initial profile on startup to fail - Merge branch 'master' into autoswitch - Add previous generation settings - Add displayport mux to daemon - Example of automatic displayport switching for the galago/darter - :hammer: Simpler power client method calling * Mon Mar 25 2019 Marcin Szydelski 0.8-1 - Merge pull request #4 from pop-os/master - Merge branch 'master' into get-profile - :sparkles: Add PowerProfileSwitch signal - :sparkles: Add GetProfile dbus method * Tue Mar 05 2019 Marcin Szydelski 0.7-1 - Merge pull request #3 from pop-os/master - :sparkles: Detect AMD graphics devices * Fri Feb 08 2019 Marcin Szydelski 0.6-1 - new power on/off/auto option in graphics - Merge pull request #2 from pop-os/master - Move sideband logic to a separate file, add gpio example * Fri Feb 01 2019 Marcin Szydelski 0.5-1 - Merge branch 'master' of github.com:szydell/system76-power - Update README.md * Fri Feb 01 2019 Marcin Szydelski 0.4-1 - restart system76-daemon after suspend * Fri Feb 01 2019 Marcin Szydelski 0.3-1 - Merge pull request #1 from pop-os/master - Track all sub-functions of graphics devices, not just audio. Update dependencies - Add oryp5 hotplug detection - bash completion - + vim swap * Mon Jan 07 2019 Marcin Szydelski 0.2-1 - copr - copr - + After, + Service type * Mon Jan 07 2019 Marcin Szydelski 0.1-1 Initial RPM release - rpm spec for rpkg/copr - Send 'command' output to /dev/null - dracut or update-initramfs - :arrow_up: Update dependencies - :ambulance: Fix the build - :truck: Migrate PciDevice / PciDriver to sysfs-class - :paperclip: Clippy fixes - :package: pstate module -> intel-pstate crate - Merge branch 'master' of github.com:pop-os/system76-power into sysfs - Export /sys/class logic to sysfs-class - Merge pull request #49 from pop-os/fan - Conditionally handle pstate based on availability - Support AMD cpu on thelio-r1 - Add extra test cases for fan point interpolation - Fix the test inputs - Use a windows iterator - Add fan tests - Fix clippy suggestions / warnings - Fix bionic builds - USe sysfs-class from crates.io - Remove debug print - Improve fan curve - WIP: Fan control - Daemon flags fixed. - Set version to 1.0.0 - Add GetSwitchable DBUS Method - Remove breaking switchable text - Merge branch 'master' into argparse - system76-power graphics: improve output - Improve help messages - Initialize daemon with balanced profile - Enable Runtime Power Management for PCI Devices - Setup logging before the daemon is launched - Merge branch 'master' of github.com:pop-os/system76-power into argparse - Fix argument parsing - Update graphics power off/on message to clarify discrete graphics - Use clap for argument parsing - Revert Clap Changes - Make log level configurable - Enable logging with fern - Integrate Disk power management - Control autosuspend_delay - SATA Link Power Policy Control - Merge branch 'kernel-parameters' of github.com:pop-os/system76-power into kernel-parameters - Implement experimental flag & Use Clap - Merge branch 'master' into kernel-parameters - Fix snd - Fix Wifi power saving support - Fix static parameters - iwlwifi power management - Control Laptop Mode - Disable NMI Watchdog & Set Dirty Page Values - Radeon power support - Enable power savings for sound devices - Implement structs for various kernel parameters - Merge branch 'master' of github.com:pop-os/system76-power into macros - Add hotplug signal - Macros - Match more graphics cards - Remove NVIDIA audio as well as NVIDIA graphics - Simplify Graphics::auto_power - Simplify Graphics::get_power - Fix println instead of eprintln - Provides and replaces nvidia-prime again - Bump version. Remove replaces and provides nvidia-prime - Increase timeout - Remove bbswitch blacklist - Replace and provide nvidia-prime - Automatically set graphics power during boot, logging output - Modify command line to use DBUS - Improve graphics struct - Move graphics to separate file - Add unsafe - Remove NVIDIA device when possible - Better output - Driver detection - WIP: Remove bbswitch dependency, add pci subcommand to search for graphics devices - 0.1.1 - Update Cargo.lock - Add DBUS function for automatic graphics power - Remove graphics power auto as it appears to prevent boot - Automatically disable GPU power on boot - Do not try fsync on bbswitch file - Add auto graphics power mode - Add code to set graphics power - Create ISSUE_TEMPLATE.md - Detect nouveau as nvidia - Conflict with nvidia-prime - Merge branch 'master' into optimus - Disable bbswitch load_state - Check if the intel_pstate directory exists - Handle nvidia-fallback.service to prevent nouveau from being loaded, add postrm hook - Update intel blacklist to prevent nouveau loading - Create README.md - Create LICENSE - Correct dependencies - Remove dbus examples - Add system76-power service - WIP: Create a dbus daemon - Require optimus to set graphics, restore setuid bit - Create modules-load file - Fix backwards graphics selection - Write blacklist and update initramfs - WIP: Do not use nvidia-prime - Update gitignore - Add graphics selection - Fix changelog version - Fix makefile - Add debian packaging - Support any display backlight or keyboard backlight - Commit Cargo.lock - Only set brightness if it is higher than expected - Add makefile - add todo to only decrease brightness - Adjust balanced and battery backlights - Make set functions require mut - Add three performance profiles - Add keyboard backlight - Move backlight to seperate file - Initial commit