GNU bug report logs - #38163
GDK does not return the monitor's refresh rate

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Alexandros Theodotou <alex@HIDDEN>; dated Sun, 10 Nov 2019 16:45:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 38163 <at> debbugs.gnu.org:


Received: (at 38163) by debbugs.gnu.org; 16 Nov 2019 15:07:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 16 10:07:46 2019
Received: from localhost ([127.0.0.1]:39566 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iVzft-0005WC-RL
	for submit <at> debbugs.gnu.org; Sat, 16 Nov 2019 10:07:46 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40996)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iVzfr-0005W0-KL
 for 38163 <at> debbugs.gnu.org; Sat, 16 Nov 2019 10:07:44 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50250)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iVzfl-0002lA-IN; Sat, 16 Nov 2019 10:07:37 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46758 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iVzfl-00079u-3E; Sat, 16 Nov 2019 10:07:37 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Marius Bakke <mbakke@HIDDEN>
Subject: Re: bug#38163: GDK does not return the monitor's refresh rate
References: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
 <87v9rqm8y4.fsf@HIDDEN>
 <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@HIDDEN>
 <87tv75f16b.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 26 Brumaire an 228 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sat, 16 Nov 2019 16:07:34 +0100
In-Reply-To: <87tv75f16b.fsf@HIDDEN> (Marius Bakke's message of "Fri, 15 Nov
 2019 19:24:12 +0100")
Message-ID: <871ru7zwp5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38163
Cc: Alexandros Theodotou <alex@HIDDEN>, 38163 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Marius Bakke <mbakke@HIDDEN> skribis:

> Alexandros Theodotou <alex@HIDDEN> writes:
>
>> Hi Ludo,
>>
>>> We won=E2=80=99t make this change in =E2=80=98master=E2=80=99 because i=
t entails too many
>>> rebuilds, but it could go on the next branch for massive rebuilds.=20
>>
>> Makes sense. I will be using my local gtk+ version for a while then
>> until this change goes live.
>
> Note that this change is already in the staging branch since commit
> 52b61e999101724c7e2d341586e9a6150614f208.

Nice! I wasn=E2=80=99t aware of it.

> Unfortunately the branch has gone stale due to some Qt/qmake plugin
> issues & I haven't had time to work on it.  I will try to find a
> workaround this weekend, if nothing else, as only a handful packages are
> affected.

Let=E2=80=99s motivate each other on IRC over the week-end.  I=E2=80=99d be=
 happy to
give a hand to get that branch merged!

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#38163; Package guix. Full text available.

Message received at 38163 <at> debbugs.gnu.org:


Received: (at 38163) by debbugs.gnu.org; 15 Nov 2019 18:24:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 15 13:24:24 2019
Received: from localhost ([127.0.0.1]:37360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iVgGd-0003l8-RB
	for submit <at> debbugs.gnu.org; Fri, 15 Nov 2019 13:24:24 -0500
Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44491)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1iVgGb-0003kv-Gj
 for 38163 <at> debbugs.gnu.org; Fri, 15 Nov 2019 13:24:22 -0500
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 4B6E921B1B;
 Fri, 15 Nov 2019 13:24:16 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 15 Nov 2019 13:24:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:cc:subject:in-reply-to:references:date:message-id
 :mime-version:content-type; s=fm1; bh=OR/WF7MGf2lmWvvTi2Q5WGUgAC
 VqJrn5RkpUCYaAeEM=; b=owJyrUpUyR1ETn9/gSM3uDDeJVMOlAtagceVO5WvAZ
 fN8zFLpqlMwVs4oDKhMZdaIj6XEOUPfPqkGnPCLrWcYTLxu9PQH71yAxy3wp5/o0
 MiDrmickfNqwlM3pH8uKk9GMbLbfbfub9LdprcrMXCXcDFMQ2I6OUc3mtjPQ8eX/
 kkaRwhbXWw4dkpsKIf5cg1U6Jc2YChbCA+ZSalandODux29ufTHpDnFdJALtENTw
 Ph288+PuxZA2myNSonZAupcydOik8v/UnTSP0NmOX8WOVhXESN+zrZiZFAnccGJ4
 LrNNKrv3x4aCyDP/wfZt9WV6QQIPE736xsOK72gMNoWw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=OR/WF7
 MGf2lmWvvTi2Q5WGUgACVqJrn5RkpUCYaAeEM=; b=PbIZtx2zb9N0Grnj1/m905
 d9FO6hzeixQ/bgi0l2gg445p1DFpyEm4YieTx/YhEogDhHJApYsISkOQXkMN7aNo
 hwWj1PhN9hrtcwohbXEbDbLiNhDhHlgCGX8C0w8lsNj+UWo+NqXifWuU1WauhJ3o
 +j8iYVFtR/qpGsHTCselALSgjZ+stjPwje6CIztMXo5XA4wWTASq6iygYVnfdof4
 N1tRXYaTayAuwCeAD2t7xwu00Wu6FEisK/+ma4YeUa3leNIhkT1YfMSBh1xsHV+h
 F0m/n0XIkG3qR4PMSAqLR/goMPeEJQbItdYB08NjPauKOHADhqQgwWcK2m5iU36A
 ==
X-ME-Sender: <xms:T-3OXVtw2DGzeyvl9_VideDuR5sU3gtlhtqmx2X91rJfx232MMVOvQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudefhedgudduvdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvffujghffgffkfggtgesghdtreertderjeenucfhrhhomhepofgrrhhi
 uhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecukfhppe
 eivddrudeirdduledvrdduhedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhk
 vgesfhgrshhtmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:T-3OXUCGO6AveaJfRAxaxd5o57c6o_Ulv7OjkHg7-RjaS4S4y2zcJw>
 <xmx:T-3OXayAnEKB1K_oMrtRSWNzEOO7wGUBfR_X-HoIZM_VG-diw_277A>
 <xmx:T-3OXav1wgblqERFLkJStM1PFCMYrrcFf6T-QYwhrYD_qcEEI-alVg>
 <xmx:UO3OXbTqsYFJjQkJjBqdHwl6eHeC4dMtfDr4XVdSNCai2TnanY8e8w>
Received: from localhost (ti0006q161-0149.bb.online.no [62.16.192.150])
 by mail.messagingengine.com (Postfix) with ESMTPA id 0C4153060062;
 Fri, 15 Nov 2019 13:24:14 -0500 (EST)
From: Marius Bakke <mbakke@HIDDEN>
To: Alexandros Theodotou <alex@HIDDEN>, Ludovic =?utf-8?Q?Court=C3=A8s?=
 <ludo@HIDDEN>
Subject: Re: bug#38163: GDK does not return the monitor's refresh rate
In-Reply-To: <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@HIDDEN>
References: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
 <87v9rqm8y4.fsf@HIDDEN>
 <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@HIDDEN>
User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.3
 (x86_64-pc-linux-gnu)
Date: Fri, 15 Nov 2019 19:24:12 +0100
Message-ID: <87tv75f16b.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 38163
Cc: 38163 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Alexandros Theodotou <alex@HIDDEN> writes:

> Hi Ludo,
>
>> We won=E2=80=99t make this change in =E2=80=98master=E2=80=99 because it=
 entails too many
>> rebuilds, but it could go on the next branch for massive rebuilds.=20
>
> Makes sense. I will be using my local gtk+ version for a while then
> until this change goes live.

Note that this change is already in the staging branch since commit
52b61e999101724c7e2d341586e9a6150614f208.

Unfortunately the branch has gone stale due to some Qt/qmake plugin
issues & I haven't had time to work on it.  I will try to find a
workaround this weekend, if nothing else, as only a handful packages are
affected.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl3O7U0ACgkQoqBt8qM6
VPozXAgAjwu9fWZhcsAHMmJWp+hq9dSL2PtDKUI1D3/gBKm5zNDwxXS78kTaKvKB
gx24G1uqKWhcE0ZYPP75qVuzBjYBwut7w7kmaimNNw6z+2h5nki0ftdLCY3cEyqV
55yu25ndDwH1BSYqPFWCevxV1brJHLsRwMzsOb9i0K+Plxk4y9zPUVbasiCeKWlP
y6V6jo0qyL5avSMoZnbna5lRe9iwBZt0XkhaNitWa31JAR2w7d9tHW5TFSsVebgp
Qb0XWJWfaUicdvOdiG8xgFWD8CJo9prUVT9txxBi82Oi+8boJ6wwc+U75HwfOyqP
yfjnYnlIBd0PwQx00v08bBR70ICaeg==
=TJCW
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#38163; Package guix. Full text available.

Message received at 38163 <at> debbugs.gnu.org:


Received: (at 38163) by debbugs.gnu.org; 14 Nov 2019 21:00:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 16:00:40 2019
Received: from localhost ([127.0.0.1]:35316 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iVMEK-0004hr-Jb
	for submit <at> debbugs.gnu.org; Thu, 14 Nov 2019 16:00:40 -0500
Received: from eggs.gnu.org ([209.51.188.92]:35487)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iVMEJ-0004hf-IV
 for 38163 <at> debbugs.gnu.org; Thu, 14 Nov 2019 16:00:39 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60009)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iVMED-0003wQ-D0; Thu, 14 Nov 2019 16:00:33 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55240 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iVMEC-0008Gw-QB; Thu, 14 Nov 2019 16:00:33 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Bengt Richter <bokr@HIDDEN>
Subject: Re: bug#38163: GDK does not return the monitor's refresh rate
References: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
 <87v9rqm8y4.fsf@HIDDEN>
 <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@HIDDEN>
 <20191113205624.GA48517@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 24 Brumaire an 228 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 14 Nov 2019 22:00:30 +0100
In-Reply-To: <20191113205624.GA48517@HIDDEN> (Bengt
 Richter's message of "Wed, 13 Nov 2019 12:56:24 -0800")
Message-ID: <87h836npg1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38163
Cc: Alexandros Theodotou <alex@HIDDEN>, 38163 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Bengt,

Bengt Richter <bokr@HIDDEN> skribis:

> On +2019-11-11 21:31:23 +0000, Alexandros Theodotou wrote:

[...]

>> > Could you try adding that dependency on =E2=80=98libxrandr=E2=80=99 in=
 =E2=80=98gtk+=E2=80=99?
>>=20
>> Just tried that and it worked! It's returning the correct refresh rate
>> now:
>> ** Message: 21:20:40.548: refresh rate returned by GDK: 60.0

[...]

> I'm wondering about a narrowly-X solution.
>
> Shouldn't this really come from udevd noticing display changes?
> What about a multi-display seat, with potentially different refresh rates?
>
> IIUC it seems like libdrm and KMS can get at all that, so a light-weight =
solution
> should be possible, ISTM, and accessible from console command line withou=
t X.

You=E2=80=99re right, but note that GDK has several backends (not just X11)=
, and
this issue was about fixing the problem with the X11 backend.

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#38163; Package guix. Full text available.

Message received at 38163 <at> debbugs.gnu.org:


Received: (at 38163) by debbugs.gnu.org; 13 Nov 2019 20:56:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 15:56:46 2019
Received: from localhost ([127.0.0.1]:60209 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iUzgy-0006Wy-Op
	for submit <at> debbugs.gnu.org; Wed, 13 Nov 2019 15:56:46 -0500
Received: from imta-36.everyone.net ([216.200.145.36]:57142
 helo=imta-38.everyone.net)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bokr@HIDDEN>) id 1iUzgv-0006Wo-EN
 for 38163 <at> debbugs.gnu.org; Wed, 13 Nov 2019 15:56:42 -0500
Received: from pps.filterd (omta002.sj2.proofpoint.com [127.0.0.1])
 by imta-38.everyone.net (8.16.0.27/8.16.0.27) with SMTP id xADKrpQ6016642;
 Wed, 13 Nov 2019 12:56:37 -0800
X-Eon-Originating-Account: V08UPp9cWe_h6_JAHz0PXMtxAvmIt6kusJe7AvM-ffE
X-Eon-Dm: m0117124.ppops.net
Received: by m0117124.mta.everyone.net (EON-AUTHRELAY2 - 32d0d199)
 id m0117124.5dc217e5.2b7862; Wed, 13 Nov 2019 12:56:34 -0800
X-Eon-Sig: AQMHrIJdzG4Crofq5QIAAAAD,5876dd000c8b3b408831faf56218b3f2
X-Eip: LifH4yFSHvi3SenZ39omVwElKQxoL_sAZTOlAFVNciE
Date: Wed, 13 Nov 2019 12:56:24 -0800
From: Bengt Richter <bokr@HIDDEN>
To: Alexandros Theodotou <alex@HIDDEN>
Subject: Re: bug#38163: GDK does not return the monitor's refresh rate
Message-ID: <20191113205624.GA48517@HIDDEN>
References: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
 <87v9rqm8y4.fsf@HIDDEN>
 <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@HIDDEN>
User-Agent: Mutt/1.12.1 (2019-06-15)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2019-11-13_04:, , signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1034
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=778 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000
 definitions=main-1911130173
X-Spam-Score: -0.4 (/)
X-Debbugs-Envelope-To: 38163
Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 38163 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Bengt Richter <bokr@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

Hi Guix,

On +2019-11-11 21:31:23 +0000, Alexandros Theodotou wrote:
> Hi Ludo,
> 
> > Looking at GTK+, the ‘init_randr*’ functions in ‘gdkscreen-x11.c’
> > appear
> > to be those responsible for setting the ‘refresh_rate’ field.
> > 
> > However, AFAICS, our ‘gtk+’ package does not depend on ‘libxrandr’,
> > and
> > thus that functionality is simply compiled out (the function returns
> > 0
> > unconditionally).
> > 
> > Could you try adding that dependency on ‘libxrandr’ in ‘gtk+’?
> 
> Just tried that and it worked! It's returning the correct refresh rate
> now:
> ** Message: 21:20:40.548: refresh rate returned by GDK: 60.0
> 
> > We won’t make this change in ‘master’ because it entails too many
> > rebuilds, but it could go on the next branch for massive rebuilds. 
> 
> Makes sense. I will be using my local gtk+ version for a while then
> until this change goes live.
> 
> Thanks for taking a look at this.
> 
> Alex

I'm wondering about a narrowly-X solution.

Shouldn't this really come from udevd noticing display changes?
What about a multi-display seat, with potentially different refresh rates?

IIUC it seems like libdrm and KMS can get at all that, so a light-weight solution
should be possible, ISTM, and accessible from console command line without X.
-- 
Regards,
Bengt Richter




Information forwarded to bug-guix@HIDDEN:
bug#38163; Package guix. Full text available.

Message received at 38163 <at> debbugs.gnu.org:


Received: (at 38163) by debbugs.gnu.org; 11 Nov 2019 21:31:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 11 16:31:39 2019
Received: from localhost ([127.0.0.1]:56086 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iUHHe-0005hJ-Rb
	for submit <at> debbugs.gnu.org; Mon, 11 Nov 2019 16:31:39 -0500
Received: from mout01.posteo.de ([185.67.36.141]:33095)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex@HIDDEN>) id 1iUHHc-0005h5-0y
 for 38163 <at> debbugs.gnu.org; Mon, 11 Nov 2019 16:31:37 -0500
Received: from submission (posteo.de [89.146.220.130]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 8BAA116005F
 for <38163 <at> debbugs.gnu.org>; Mon, 11 Nov 2019 22:31:29 +0100 (CET)
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 47Bkb32z5yz6tmH;
 Mon, 11 Nov 2019 22:31:26 +0100 (CET)
Message-ID: <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@HIDDEN>
Subject: Re: bug#38163: GDK does not return the monitor's refresh rate
From: Alexandros Theodotou <alex@HIDDEN>
To: Ludovic =?ISO-8859-1?Q?Court=E8s?= <ludo@HIDDEN>
Date: Mon, 11 Nov 2019 21:31:23 +0000
In-Reply-To: <87v9rqm8y4.fsf@HIDDEN>
References: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
 <87v9rqm8y4.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature"; boundary="=-5dtwNfJPPysFazVV80ZV"
User-Agent: Evolution 3.30.5 
MIME-Version: 1.0
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38163
Cc: 38163 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


--=-5dtwNfJPPysFazVV80ZV
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Ludo,

> Looking at GTK+, the =E2=80=98init_randr*=E2=80=99 functions in =E2=80=98=
gdkscreen-x11.c=E2=80=99
> appear
> to be those responsible for setting the =E2=80=98refresh_rate=E2=80=99 fi=
eld.
>=20
> However, AFAICS, our =E2=80=98gtk+=E2=80=99 package does not depend on =
=E2=80=98libxrandr=E2=80=99,
> and
> thus that functionality is simply compiled out (the function returns
> 0
> unconditionally).
>=20
> Could you try adding that dependency on =E2=80=98libxrandr=E2=80=99 in =
=E2=80=98gtk+=E2=80=99?

Just tried that and it worked! It's returning the correct refresh rate
now:
** Message: 21:20:40.548: refresh rate returned by GDK: 60.0

> We won=E2=80=99t make this change in =E2=80=98master=E2=80=99 because it =
entails too many
> rebuilds, but it could go on the next branch for massive rebuilds.=20

Makes sense. I will be using my local gtk+ version for a while then
until this change goes live.

Thanks for taking a look at this.

Alex

--=-5dtwNfJPPysFazVV80ZV
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEESBMjhK0999huJUuDAi6uQjE9cPMFAl3J0ysACgkQAi6uQjE9
cPMmaQf/U34lnB1vNrDN56KAoPEYYpgoDyOrmIM/TGpthjhkBeTYa5YlHvhJBCY3
6UEQPBeRYtX6YIUQ1IbgnUHosIUTSU4OJwjEJhL6t2+0IgeIwmOE1w0cuUr5Lhm8
w4HnaJFMszwlHz4QYuP3MecujgusCFuFQ8cWwK4DJZeqFU/KRoZLnCxl2VwV0xfx
eLEsbpBGuXET4kS5kcukYB5Yxnis3oRnDNBOtuq2m9n/C6Wi0/9N74YeY0yVWVib
kKbcq1rHO/f7UrPTyOvvnb6rjUigEE5gnt61V8Je8GzlEEDZt8KCzUCa1UUT99Vx
HM0E5/Ufxb+mFB9dp0K0enzUjqwajg==
=ljRv
-----END PGP SIGNATURE-----

--=-5dtwNfJPPysFazVV80ZV--





Information forwarded to bug-guix@HIDDEN:
bug#38163; Package guix. Full text available.

Message received at 38163 <at> debbugs.gnu.org:


Received: (at 38163) by debbugs.gnu.org; 11 Nov 2019 20:53:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 11 15:53:18 2019
Received: from localhost ([127.0.0.1]:56050 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iUGgY-0002kq-7x
	for submit <at> debbugs.gnu.org; Mon, 11 Nov 2019 15:53:18 -0500
Received: from eggs.gnu.org ([209.51.188.92]:43374)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iUGgW-0002kb-TX
 for 38163 <at> debbugs.gnu.org; Mon, 11 Nov 2019 15:53:17 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:50061)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iUGgR-00084s-92; Mon, 11 Nov 2019 15:53:11 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42516 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1iUGgP-0001n2-Ps; Mon, 11 Nov 2019 15:53:10 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Alexandros Theodotou <alex@HIDDEN>
Subject: Re: bug#38163: GDK does not return the monitor's refresh rate
References: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
Date: Mon, 11 Nov 2019 21:53:07 +0100
In-Reply-To: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
 (Alexandros Theodotou's message of "Sun, 10 Nov 2019 16:44:23 +0000")
Message-ID: <87v9rqm8y4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38163
Cc: 38163 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Alexandros,

Alexandros Theodotou <alex@HIDDEN> skribis:

> I have been developing and testing my GTK app (Zrythm) on many distros
> and Guix is the only case that the monitor's refresh rate is returned
> as 0.
>
> The API I am using is this:
> https://developer.gnome.org/gdk3/stable/GdkMonitor.html#gdk-monitor-get-r=
efresh-rate

Looking at GTK+, the =E2=80=98init_randr*=E2=80=99 functions in =E2=80=98gd=
kscreen-x11.c=E2=80=99 appear
to be those responsible for setting the =E2=80=98refresh_rate=E2=80=99 fiel=
d.

However, AFAICS, our =E2=80=98gtk+=E2=80=99 package does not depend on =E2=
=80=98libxrandr=E2=80=99, and
thus that functionality is simply compiled out (the function returns 0
unconditionally).

Could you try adding that dependency on =E2=80=98libxrandr=E2=80=99 in =E2=
=80=98gtk+=E2=80=99?

We won=E2=80=99t make this change in =E2=80=98master=E2=80=99 because it en=
tails too many
rebuilds, but it could go on the next branch for massive rebuilds.

Thanks for your report,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#38163; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Nov 2019 16:44:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 10 11:44:37 2019
Received: from localhost ([127.0.0.1]:52476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iTqKK-0005n1-Q3
	for submit <at> debbugs.gnu.org; Sun, 10 Nov 2019 11:44:37 -0500
Received: from lists.gnu.org ([209.51.188.17]:34103)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex@HIDDEN>) id 1iTqKI-0005ms-Kc
 for submit <at> debbugs.gnu.org; Sun, 10 Nov 2019 11:44:35 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51897)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <alex@HIDDEN>) id 1iTqKH-0004QI-Dt
 for bug-guix@HIDDEN; Sun, 10 Nov 2019 11:44:34 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alex@HIDDEN>) id 1iTqKF-0004sy-R3
 for bug-guix@HIDDEN; Sun, 10 Nov 2019 11:44:32 -0500
Received: from mout02.posteo.de ([185.67.36.142]:56933)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <alex@HIDDEN>) id 1iTqKF-0004sE-Kx
 for bug-guix@HIDDEN; Sun, 10 Nov 2019 11:44:31 -0500
Received: from submission (posteo.de [89.146.220.130]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 51C602400FD
 for <bug-guix@HIDDEN>; Sun, 10 Nov 2019 17:44:29 +0100 (CET)
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 47B0GN00Fdz9rxG
 for <bug-guix@HIDDEN>; Sun, 10 Nov 2019 17:44:27 +0100 (CET)
Message-ID: <c2840c44eff9757d09a0429ceb7676b23cad322d.camel@HIDDEN>
Subject: GDK does not return the monitor's refresh rate
From: Alexandros Theodotou <alex@HIDDEN>
To: bug-guix@HIDDEN
Date: Sun, 10 Nov 2019 16:44:23 +0000
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature"; boundary="=-1lEiSlD1Ily4xtVP8JSt"
User-Agent: Evolution 3.30.5 
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 185.67.36.142
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


--=-1lEiSlD1Ily4xtVP8JSt
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I have been developing and testing my GTK app (Zrythm) on many distros
and Guix is the only case that the monitor's refresh rate is returned
as 0.

The API I am using is this:
https://developer.gnome.org/gdk3/stable/GdkMonitor.html#gdk-monitor-get-ref=
resh-rate

I was developing/testing on Parabola GNU/Linux-libre before and it was
giving me a correct rate of 60 Hz.

Other distros I have tested this API before on:
Various ubuntu versions, debian 9 and 10, manjaro (arch), various
fedora versions, plus a few others that users tested on.

I suspect GDK is trying to access something that guix doesn't make
available to it, but I don't have much knowledge of the internals of
GDK or Guix to debug this myself.

I will post a package from my guix channel that you can test this on
soon.

To call the API, one basically calls the following, after including
<gtk/gtk.h>, so any GTK program will do.
```
GdkDisplay * display =3D gdk_display_get_default ();
GdkMonitor * monitor =3D gdk_display_get_primary_monitor (display);
int refresh_rate =3D gdk_monitor_get_refresh_rate (monitor);
```

--=-1lEiSlD1Ily4xtVP8JSt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEESBMjhK0999huJUuDAi6uQjE9cPMFAl3IPmcACgkQAi6uQjE9
cPM+Ogf/Sfm12hz69y56gbHNw5aHncCf/vra35nu1R3/3HMhnK5t3t66Q10qcCyH
i7k7rP+rY53knOlM0hvJcuUVNhQRaHTTpwr2VoOaNwt/6a0dNmb/JRmQq7rSJYVy
dFTIKF+SeUPBeKLzv6v9pNApMpJL0VbECVgFoaoJFo+boLwZXlwsyFtggZRQ+2cj
E27AhIMk7lM7WQPqZ2s3cqqTz63Arse0Fy02RFKjQoSJPoj8EdVpWDcfq4cq5aBG
dzf5CORnyoA+HddvoJZBWVI+RR8h/mIxaHJ0CHqABHLgKeZR2PIG7qAve/KJZbQ2
P0JCoEFAvCSuvWiK/8mQuT4vI0FzsQ==
=PO5a
-----END PGP SIGNATURE-----

--=-1lEiSlD1Ily4xtVP8JSt--





Acknowledgement sent to Alexandros Theodotou <alex@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#38163; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.