From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yGW3KUUJmmIPbgEAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 15:14:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4NHUKEUJmmL7OAAAG6o9tA (envelope-from ) for ; Fri, 03 Jun 2022 15:14:45 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6362129E0A for ; Fri, 3 Jun 2022 15:14:44 +0200 (CEST) Received: from localhost ([::1]:37958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nx78U-0005y4-FZ for larch@yhetil.org; Fri, 03 Jun 2022 09:14:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nx77q-0005rK-J4 for guix-patches@gnu.org; Fri, 03 Jun 2022 09:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nx77q-0003Ou-9N for guix-patches@gnu.org; Fri, 03 Jun 2022 09:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nx77q-0004Yl-2b for guix-patches@gnu.org; Fri, 03 Jun 2022 09:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55769] [PATCH] gnu: Add xwhite. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Jun 2022 13:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55769 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: derekchuank@outlook.com Cc: 55769@debbugs.gnu.org Received: via spool by 55769-submit@debbugs.gnu.org id=B55769.165426202417497 (code B ref 55769); Fri, 03 Jun 2022 13:14:02 +0000 Received: (at 55769) by debbugs.gnu.org; 3 Jun 2022 13:13:44 +0000 Received: from localhost ([127.0.0.1]:55510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx77Y-0004Y9-11 for submit@debbugs.gnu.org; Fri, 03 Jun 2022 09:13:44 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:59046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx77W-0004Xz-0T for 55769@debbugs.gnu.org; Fri, 03 Jun 2022 09:13:43 -0400 Received: from [172.20.10.5] ([188.188.145.137]) by baptiste.telenet-ops.be with bizsmtp id edDR2700D2y5KLU01dDeRM; Fri, 03 Jun 2022 15:13:40 +0200 Message-ID: <13f6ec6353bced912c8ab358f0049a526b5d690b.camel@telenet.be> From: Maxime Devos Date: Fri, 03 Jun 2022 15:13:21 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-R/3phyCnxqqbsR9g+FE2" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1654262020; bh=9Vg7YZNB+tuBDcbSiTKBcdfmdl8AHBHCMxpj4qfjHgc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=au92w0+fI1SbiyejELAc8nH2TpCiJfwkNkZ+ft+k6Z2GaTFGBX51haokg8STG/sgS saOVRDBKkVc+NeacrNXxScxNEItAk2eHaRi60P9GMuiFH6F8cYzjcGYW7W0ijvu8Ac HxtfzrQZOUnvAAX8HSXlDi67TvICyzC2OOsu9dB817quSaQL9pD9N1rapSDMZ5KBjh If4ffZshtCMCd68/qa7i+Vsl1YXrXNuOQMjAytJgLinM4Ezy9ts+moqY4TdRM5Og+0 D0koVeiHS99WKbTY6OyC7jbCUMtFBDdormvf2rgAX5lQdPVh7yDkzaJ6f9xtCoJU5P lwpItyY5yg+BQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654262084; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=9Vg7YZNB+tuBDcbSiTKBcdfmdl8AHBHCMxpj4qfjHgc=; b=l5DM2d+5meTKknyyUjhU/xFHgJojwIyymBh9xdXWTnY3WnmY/Og+Ly9Il569ZzqlmJZY6T XTVzdIytY5GCUDQ3jHYDLTnKuQxtnLThWO78/Je/kAVGg6d76CeJBbbehtUlmxdrWv/QKn RDPSZeE+UpTEHejeXKP0IpwuAa6VuGvhXSwyUpK1Pxo9NWRkfGBDZG/SEIP226z0iMzNFP EVHr0C8HKRgJXmn7V5EHoapktehH4domVti42mR3etxttYpwEF8yWL07Dl/gCFJijfSWn3 ajxztnvze0GyetmnLITdDV0VKkiLLB3yzwIP018FJVvRRCPYJC9356I/w9PUGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654262084; a=rsa-sha256; cv=none; b=b1bXUWZLFIOyvHr+RRHkH1QjE6Xbt9QgPKIlQcBNKH9oHHMEN4Yx+va5L3B8JtntRJhFJB ANhcyxx4wuUwxC3IaJD4vmV9LziCAV48tIB6phqye75V6SsUOT1w8KWiRkhbiudSSX9izj vR/0GNv2ACdA0bCtmZSQn1kpqQ/HQA2CFh8vjhXFXbwlh3xmbPgqTPPBIJfXuLS9rXNouC b6FCWUtyJhUdrYQqUvdphvrhHuXz8AVAZMfUDu17oHpHwBKDU98cKyGt9uqETi2K1XEmue 6BE66ijG63H4UStuGOjjVmFaan2gIqeYVCT2Jw2PjT7mx9xWMR/jA2P1kzce3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=au92w0+f; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.38 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=au92w0+f; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6362129E0A X-Spam-Score: 5.38 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6zSvxUQfPGsS --=-R/3phyCnxqqbsR9g+FE2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable [Please keep 55769@debbugs.gnu.org in CC] derekchuank@outlook.com schreef op vr 03-06-2022 om 01:33 [+0000]: > Thank you for your patient. Nitpick not relevant to the discussion: patient (adjective) -> patience (noun). > "Also, all this is already implemented by another tool: > $ redshift -P -g 2:2:0.1 -O 10000 > so to me there appears to be no need to write, maintain and package a new= tool." derekchuank@outlook.com schreef op vr 03-06-2022 om 01:33 [+0000]: > Setting gamma(redshift -g) correction in redshift is [...]. Ok, it fullfills a somewhat different niche. > If you think it's worth a new package, I would fix the issues you mentioned. Either way, I'm happy with the conversation with > you. > Setting gamma(redshift -g) correction in redshift is the same as `xrandr = --output eDP-1 --gamma 2:2:0.1` in principle, > which changes the gamma curve shape while keeps the curve two end point p= osition still, resulting a strange > color scheme with white color unchanged. And that's the problem setting c= olor temperature(redshift -O) is trying to > resolve, compressing the whole gamma curve, however, the RGB of white col= or of a fixed color temperature is fixed too, > the above gamma correction can't change it. That's why I wrote xwhite, a = simple but more flexible way to manual color > balance, setting to a warm color tempature while enhancing green color to= avoiding a red screen due to the backlight > aging. I'm satisfied with it finally. > > If you think it's worth a new package, I would fix the issues you > mentioned. Either way, I'm happy with the conversation with you.=20 Given that it fullfills a different niche, a new package 'xwhite' sounds reasonable to me. Though maybe you can give a small comparison of xwhite with redshift in the package description? > + (description "xwhite is a command line tool for adjusting color > +balance of screen. It is based on xrandr's gamma correction and > +brightness adjustment. Typically used for tuning color balance > +while setting color temperature.") xwhite -> @command{white} (TeXinfo markup). adjusting color balance -> adjusting the color balance. color can be replaced by colour or kept as-is. It is based on xrandr's gamma correction and brightness adjustment. -> maybe add the caveat =E2=80=98As such, it can only be used for X display= s and not Wayland displays?=E2=80=99 Typically used for tuning color balance while setting color temperature. --> It is typically used for tuning the color balance and color temperature. Maybe add: =E2=80=98It has a similar function as @command{redshift -P -g R:= G:B -O temperature}, but @command{xwhite} is more flexible in that it does not keep the white color fixed.=E2=80=99 Greetings, Maxime. --=-R/3phyCnxqqbsR9g+FE2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYpoI8RccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7k5fAQDa4cnrtamySFo0nnQpxbGYtpvJ zdH8ouIejdxJNhvtwwEA8wzZXCwLpIDTLMJWJdqDr8owhtzVD5hYMaJvz7S97gc= =VFM9 -----END PGP SIGNATURE----- --=-R/3phyCnxqqbsR9g+FE2--