From a8b705252bdcb642999258859ada1c2f43706092 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 29 Jun 2021 01:06:53 +0200 Subject: gnu: Add i7z. * gnu/packages/hardware.scm (i7z): New public variable. --- gnu/packages/hardware.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'gnu/packages/hardware.scm') diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index ecbcca79b1..e7dd4a1fa7 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -137,6 +137,53 @@ calibrated, and restored when the calibration is applied.") human-readable format and checks if it conforms to the standards.") (license license:expat)))) +(define-public i7z + (let ((revision "0") + (commit "1a41ff13db747e962456ddbb5ccb2b7fc43ca0cb")) + (package + (name "i7z") + (version (git-version "0.28" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/afontenot/i7z") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jxm63a8y1mfl1sa4mzzfs3bgnym6achj1yc0jglmp05xal16lm1")) + (modules '((guix build utils))) + (snippet + '(begin + (for-each delete-file-recursively + (list "src/GUI" + "src/perfmon-i7z" + "scripts")))))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "prefix=" (assoc-ref %outputs "out")) + (string-append "CC=" ,(cc-for-target))) + #:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (delete 'configure)))) ; no configure script + (inputs + `(("ncurses" ,ncurses))) + (home-page "https://github.com/afontenot/i7z") + (synopsis "Thermal and C-state reporting on older Intel Core CPUs") + (description + "The @command{i7z} utility accurately measures the current frequency +and temperature of older Intel Core (i3, i5, and i7) processors including the +Nehalem, Sandy Bridge, and Ivy Bridge generations. Reliable support for newer +CPUs is not guaranteed, as this package has not seen significant development +since 2013. + +If your processor is supported, you'll get detailed reports on Turbo Boost and +clock multipliers, core voltage, and time spent in different C-states. This +information can be viewed in real time and/or logged to a file.") + (license license:gpl2)))) + (define-public libsmbios (package (name "libsmbios") -- cgit v1.2.3 From 2db86250a772a24d0a267e760e13c156383310ea Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 30 Jun 2021 13:00:09 +0200 Subject: gnu: i7z: Restrict to x86_64 systems. * gnu/packages/hardware.scm (i7z)[supported-systems]: Set to x86_64-linux. --- gnu/packages/hardware.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/packages/hardware.scm') diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index e7dd4a1fa7..ee47c1780a 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -182,6 +182,7 @@ since 2013. If your processor is supported, you'll get detailed reports on Turbo Boost and clock multipliers, core voltage, and time spent in different C-states. This information can be viewed in real time and/or logged to a file.") + (supported-systems (list "x86_64-linux")) (license license:gpl2)))) (define-public libsmbios -- cgit v1.2.3 From 9c1720591caf8fafa8e4336a291b9b47c2ddc7e2 Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Sun, 13 Jun 2021 00:14:31 +0200 Subject: gnu: Add ddcui. * gnu/packages/hardware.scm (ddcui): New variable. --- gnu/packages/hardware.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/hardware.scm') diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index ee47c1780a..707a47fb4b 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -43,11 +43,13 @@ #:use-module (gnu packages polkit) #:use-module (gnu packages protobuf) #:use-module (gnu packages python) + #:use-module (gnu packages qt) #:use-module (gnu packages tls) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix git-download) @@ -100,6 +102,36 @@ calibrated, and restored when the calibration is applied.") (license (list license:bsd-3 ; FindDDCUtil.cmake license:gpl2+)))) ; everything else +(define-public ddcui + (package + (name "ddcui") + (version "0.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rockowitz/ddcui") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0myma1zw6dlygv3xbin662d91zcnwss10syf12q2fppkrd8qdgqf")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f)) ; No test suite + (native-inputs + `(("pkg-config" ,pkg-config) + ("qttools" ,qttools))) + (inputs + `(("ddcutil" ,ddcutil) + ("glib" ,glib) + ("qtbase" ,qtbase-5))) + (home-page "https://www.ddcutil.com/") + (synopsis "Graphical user interface for ddcutil") + (description "ddcui is a graphical user interface for ddcutil, implemented +using Qt. It provide a dynamic way to inspect and configure external monitors +through the Display Data Channel Command Interface (@dfn{DDC/CI}) protocol.") + (license (list license:gpl2+)))) + (define-public edid-decode (let ((commit "74b64180d67bb009d8d9ea1b6f18ad41aaa16396") ; 2020-04-22 (revision "1")) -- cgit v1.2.3