Skip to content

Instantly share code, notes, and snippets.

View oschettler's full-sized avatar

Olav Schettler oschettler

View GitHub Profile

Why

  • You have a laptop with a 13" screen and 1920x1080 resolution and a 4K external monitor.
  • You run the laptop at 1x scale.
  • You run the 4K screen at 2x scale (pixel doubled).
  • You’re running elementary OS 5.x (Hera) or elementary OS 6 (Odin)

Which means that text scale should be 1x when the 4K monitor is plugged in but it should be larger than that (at least ~1.5x) to be legible on the laptop’s screen. (Yes, the manufacturer of the laptop chose the wrong resolution for the screen. It should have been QHD (2560 × 1440) or at most QHD+ (3200×1800) so that you could run it confortably pixel doubled.)

Anyway, it’s not and you’ve already bought it (and it’s otherwise an excellent laptop) but you don’t want to change the text scale every time you plug it into and unplug it from your external monitor.

@mezelve
mezelve / BlinkM.nut
Created November 19, 2012 14:51
Control a ThingM BlinkM MaxM with an Electric Imp
// BlinkM MaxM controlled by a web form
// http://thingm.com/products/blinkm-maxm.html
server.log("BlinkM Started");
local addr = 0x09;
local rgb = null;
local i2cPort = null;
// Hardware Configuration
//pin 8 -> SCL -> blinkm c
@oschettler
oschettler / hallowelt.c
Created December 15, 2011 18:18
Hallo Welt
#include <stdio.h>
main() { printf("Hallo Welt\n"); }