unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#32011] [PATCH] gnu: Add ddcutil.
@ 2018-06-29 18:58 Tobias Geerinckx-Rice
  2018-07-02 15:40 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-06-29 18:58 UTC (permalink / raw)
  To: 32011

* 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#32011] [PATCH] gnu: Add ddcutil.
  2018-06-29 18:58 [bug#32011] [PATCH] gnu: Add ddcutil Tobias Geerinckx-Rice
@ 2018-07-02 15:40 ` Ludovic Courtès
  2018-08-30 12:59   ` Maxim Cournoyer
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-07-02 15:40 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 32011

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

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

LGTM, and looks like a useful tool!

Note that if this does not rely (directly or indirectly) on
functionality specific to the kernel Linux, it can go elsewhere.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#32011] [PATCH] gnu: Add ddcutil.
  2018-07-02 15:40 ` Ludovic Courtès
@ 2018-08-30 12:59   ` Maxim Cournoyer
  2018-08-30 13:28     ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2018-08-30 12:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32011

Hello,

I've been using this for quite some times, it works very well!
I don't know if it relies on Linux specifics, the project only state it
is a "Linux utility", and I couldn't find it packaged on other systems
such as FreeBSD, according to repology.org.

Could someone with the rights please merge it in?

Thank you Tobias!

Maxim

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#32011] [PATCH] gnu: Add ddcutil.
  2018-08-30 12:59   ` Maxim Cournoyer
@ 2018-08-30 13:28     ` Tobias Geerinckx-Rice
  2018-08-30 13:56       ` Tobias Geerinckx-Rice
  2018-08-30 18:02       ` bug#32011: " Tobias Geerinckx-Rice
  0 siblings, 2 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-30 13:28 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 32011

Maxim,

Maxim Cournoyer wrote:
> Hello,
>
> I've been using this for quite some times, it works very well!

\o/

> I don't know if it relies on Linux specifics, the project only 
> state it
> is a "Linux utility", and I couldn't find it packaged on other 
> systems
> such as FreeBSD, according to repology.org.

It probably is. My point was more that many 'modern' packages are, 
either by design or due to lack of developer time or effort, and 
we don't throw them all into linux.scm. Much like how e.g. Borg 
isn't in python.scm. Does that make sense?

> Could someone with the rights please merge it in?

Whoops. Thanks for the reminder!

*Unfurls scroll*

It's on my to-do list...

Kind regards,

T G-R

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#32011] [PATCH] gnu: Add ddcutil.
  2018-08-30 13:28     ` Tobias Geerinckx-Rice
@ 2018-08-30 13:56       ` Tobias Geerinckx-Rice
  2018-08-30 18:02       ` bug#32011: " Tobias Geerinckx-Rice
  1 sibling, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-30 13:56 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 32011

Tobias Geerinckx-Rice wrote:
> It probably is. My point was more that many 'modern' packages 
> are
> [Linux-only]


...which was in bug #32488, apparently[0], which is not this bug, 
but the point's the same.

Kind regards,

T G-R

[0]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32488#8

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#32011: [PATCH] gnu: Add ddcutil.
  2018-08-30 13:28     ` Tobias Geerinckx-Rice
  2018-08-30 13:56       ` Tobias Geerinckx-Rice
@ 2018-08-30 18:02       ` Tobias Geerinckx-Rice
  2018-08-31  1:12         ` [bug#32011] " Maxim Cournoyer
  1 sibling, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2018-08-30 18:02 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 32011-done

Guix, Maxim,

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

Done in aadd1d241cc9891a857dda9a5cf8389673b3c76c!

Kind regards,

T G-R

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#32011] [PATCH] gnu: Add ddcutil.
  2018-08-30 18:02       ` bug#32011: " Tobias Geerinckx-Rice
@ 2018-08-31  1:12         ` Maxim Cournoyer
  0 siblings, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2018-08-31  1:12 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 32011-done

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> Guix, Maxim,
>
> Maxim Cournoyer wrote:
>> Could someone with the rights please merge it in?
>
> Done in aadd1d241cc9891a857dda9a5cf8389673b3c76c!
>
> Kind regards,
>
> T G-R

Thanks again, Tobias :)

Maxim

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-31  1:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-29 18:58 [bug#32011] [PATCH] gnu: Add ddcutil Tobias Geerinckx-Rice
2018-07-02 15:40 ` Ludovic Courtès
2018-08-30 12:59   ` Maxim Cournoyer
2018-08-30 13:28     ` Tobias Geerinckx-Rice
2018-08-30 13:56       ` Tobias Geerinckx-Rice
2018-08-30 18:02       ` bug#32011: " Tobias Geerinckx-Rice
2018-08-31  1:12         ` [bug#32011] " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).