From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#38163: GDK does not return the monitor's refresh rate Date: Thu, 14 Nov 2019 22:00:30 +0100 Message-ID: <87h836npg1.fsf@gnu.org> References: <87v9rqm8y4.fsf@gnu.org> <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@zrythm.org> <20191113205624.GA48517@PhantoNv4ArchGx.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44664) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iVMEh-0005Im-Si for bug-guix@gnu.org; Thu, 14 Nov 2019 16:01:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iVMEg-0004CR-OO for bug-guix@gnu.org; Thu, 14 Nov 2019 16:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iVMEg-0004CD-Fr for bug-guix@gnu.org; Thu, 14 Nov 2019 16:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iVMEg-0004iZ-B7 for bug-guix@gnu.org; Thu, 14 Nov 2019 16:01:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20191113205624.GA48517@PhantoNv4ArchGx.localdomain> (Bengt Richter's message of "Wed, 13 Nov 2019 12:56:24 -0800") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Bengt Richter Cc: Alexandros Theodotou , 38163@debbugs.gnu.org Hi Bengt, Bengt Richter 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.