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

Previous Next

Package: guix;

Reported by: Alexandros Theodotou <alex <at> zrythm.org>

Date: Sun, 10 Nov 2019 16:45:01 UTC

Severity: normal

Done: Alexandros Theodotou <alex <at> zrythm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alexandros Theodotou <alex <at> zrythm.org>
Subject: bug#38163: closed (Re: bug#38163: GDK does not return the
 monitor's refresh rate)
Date: Wed, 27 May 2020 00:11:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#38163: GDK does not return the monitor's refresh rate

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

The explanation is attached below, along with your original report.
If you require more details, please reply to 38163 <at> debbugs.gnu.org.

-- 
38163: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38163
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alexandros Theodotou <alex <at> zrythm.org>
To: 38163-done <at> debbugs.gnu.org
Subject: Re: bug#38163: GDK does not return the monitor's refresh rate
Date: Wed, 27 May 2020 01:10:35 +0100
[Message part 3 (text/plain, inline)]
This was fixed a long time ago.
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Alexandros Theodotou <alex <at> zrythm.org>
To: bug-guix <at> gnu.org
Subject: GDK does not return the monitor's refresh rate
Date: Sun, 10 Nov 2019 16:44:23 +0000
[Message part 6 (text/plain, inline)]
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-refresh-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 = gdk_display_get_default ();
GdkMonitor * monitor = gdk_display_get_primary_monitor (display);
int refresh_rate = gdk_monitor_get_refresh_rate (monitor);
```
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 4 years and 356 days ago.

Previous Next


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