Subject: bug#32011: closed (Re: [bug#32011] [PATCH] gnu: Add ddcutil.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 30 Aug 2018 18:03:02 +0000

Your bug report

#32011: [PATCH] gnu: Add ddcutil.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
32011: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32011
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#32011] [PATCH] gnu: Add ddcutil.
From: Tobias Geerinckx-Rice <[email-masked]>
To: Maxim Cournoyer <[email-masked]>
Cc: [email-masked]
Date: Thu, 30 Aug 2018 20:02:40 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Guix, Maxim,

Maxim Cournoyer wrote:
> Could someone with the rights please merge it in?

Done in aadd1d241cc9891a857dda9a5cf8389673b3c76c!

Kind regards,

T G-R

Subject: [PATCH] gnu: Add ddcutil.
From: Tobias Geerinckx-Rice <[email-masked]>
To: [email-masked]
Date: Fri, 29 Jun 2018 20:58:24 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/linux.scm (ddcutil): New public variable.
---

Guix, Maxim,

Here's a little tool that might help some people control their monitors.

Kind regards,

T G-R

 gnu/packages/linux.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 50f90e165..641a2fe2f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -675,6 +675,48 @@ The Discordian calendar was made popular by the \"Illuminatus!\" trilogy
 by Robert Shea and Robert Anton Wilson.")
     (license license:public-domain)))
 
+(define-public ddcutil
+  (package
+    (name "ddcutil")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://www.ddcutil.com/tarballs/"
+                           name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1b4bm3zhk5vnad6fxf0mn8nrlj3fngifl7nzxgxw0n56hlv7ccv0"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("eudev" ,eudev)
+       ("glib" ,glib)
+       ("libdrm" ,libdrm)               ; enhanced diagnostics
+       ("libusb" ,libusb)               ; support USB monitors
+       ("libx11" ,libx11)               ; enhanced diagnostics
+       ("libxrandr" ,libxrandr)
+       ("zlib" ,zlib)))
+    (home-page "https://www.ddcutil.com/")
+    (synopsis "Control external monitor settings")
+    (description
+     "ddcutil can query and modify most external monitors' settings, such as
+brightness, colour levels, and input sources.  Generally speaking, any setting
+that can be changed by pressing buttons on the monitor can be modified by
+ddcutil.
+
+ddcutil communicates directly with monitors implementing the Monitor Control
+Command Set (@dfn{MCCS}).  It usually does so through the the Display Data
+Channel Command Interface (@dfn{DDC/CI}) protocol on the I2C bus, but can also
+communicate over USB as per the USB Monitor Control Class Specification.
+
+One particular use case is in colour profile management.  Monitor calibration
+is relative to the monitor colour settings currently in effect, e.g. red gain.
+ddcutil allows colour-related settings to be saved at the time a monitor is
+calibrated, and restored when the calibration is applied.")
+    (license (list license:bsd-3        ; FindDDCUtil.cmake
+                   license:gpl2+))))    ; everything else
+
 (define-public procps
   (package
     (name "procps")
-- 
2.16.2