Skip to content

Instantly share code, notes, and snippets.

I'm cooding

Nicolas F. CounterPillow

I'm cooding
View GitHub Profile

Modding your EDID for Fun and Profit

The EDID is a small binary blob your display sends to your system that describes the capabilities of the display, for example, what physical dimensions it is, or what resolution is supports at what clockrates.

I recently had to modify my EDID to fix a DTD (Detailed Timing Descriptor), which caused the display to report a 59.93 Hz refresh rate mode that actually could only do about 48 Hz. Nudging around the pixel clock and V-Blank "fixed"

CounterPillow /
Last active Sep 28, 2019
mpv script to show GPU frequencies on Linux.

This script shows the current frequency and max frequency of a Linux DRM GPU.

To use it, bind script-message show-gpu-freq "cardnamehere" to a key, e.g. U script-message show-gpu-freq "card0".

Check /sys/class/drm/ for available cards.

MADOKAMI_USERNAME=$(jq -r '.madokami.username' $CUMFILE)
MADOKAMI_PASSWORD=$(jq -r '.madokami.password' $CUMFILE)
BATOTO_USERNAME=$(jq -r '.batoto.username' $CUMFILE)
BATOTO_PASSWORD=$(jq -r '.batoto.password' $CUMFILE)
View refreshget.c
#include <GLFW/glfw3.h>
#include <stdio.h>
int main() {
if (!glfwInit())
int monitor_count;
GLFWmonitor** monitors = glfwGetMonitors(&monitor_count);
CounterPillow / fix-ini-data.patch
Created Oct 26, 2015
Snowmix build system patches
View fix-ini-data.patch
--- ini/ 2015-10-26 18:28:47.631165505 +0100
+++ ini/ 2015-10-26 18:53:43.926985177 +0100
@@ -1,2 +1,12 @@
-ini_DATA = *
+ini_DATA = audio basic_feeds.ini basis.ini camrelay-stream-ts Clock \
+demo-scenes DigitalClock DigitalCounter DigitalMeter example-3vfeed \
+gl_test2.ini intercom logotest logotest2 minimal minimal-1feed \
+minimal-1feed.ini minimal.ini mosaic-basis ninefeeds.ini saphire-audio \
+saphire-basis.ini saphire-DigitalCounter saphire-DigitalMeter saphire-Radar \
+saphire-shape sapphire-audio sapphire-basis.ini sapphire-clocks sapphire-feeds \

List of Current Gripes With Various Open-Source Software

This document is an ever-evolving list of shitty usability in open-source software. It's not meant as a "list of shame", but as a piece of evidence for FLOSS not putting enough effort towards creating usable GUI applications.

All of it

  • Apparently no standard or widespread bad implementation of standard for system theme colour detection and application-specific overrides configuration. Many applications assume light background colour and dark font colour and have some of those colours hardcoded, but not others. This leads to some applications with dark system colours ending up with black text on dark background, e.g. the ksysguard detailed memory information dialogue.

Keybase proof

I hereby claim:

  • I am counterpillow on github.
  • I am fratti ( on keybase.
  • I have a public key whose fingerprint is 0D41 0011 861B C0A5 AE40 EF19 92DC BCC5 5E99 8B10

To claim this, I am signing this object:

You can’t perform that action at this time.