Skip to content

Instantly share code, notes, and snippets.

@kuznet1
kuznet1 / wishlist
Last active January 28, 2024 21:32
ADAU1466
UMIK-1
Ox64
nvme 2tb
@kuznet1
kuznet1 / README.md
Created February 1, 2023 10:43 — forked from RLovelett/README.md
Force RGB instead of YCbCr output for HDMI on Ubuntu

Force RGB pixel format over YCbCr

There are some monitors, in my case Dell U2413, that report having YCbCr support when plugged in over HDMI. My AMD Radeon RX 570 Series video card sees this YCbCr pixel format and then prefers that over the RGB pixel format. The result is that fonts, graphics and other visuals are pixelated and not smooth in Ubuntu.

This actually is not just a Linux problem. A similar problem exists on macOS with the same monitor hooked up over HDMI. In fact an article by John Ruble on the Atomic Object blog called Fixing the External Monitor Color Problem with My 2018 MacBook Pro attempts to fix the exact same thing.

Solution

All of the articles I could find exploring this topic advocate patching the EDID for the monitor. Unfortunately the macOS solution would not work here. Luckily I found a Reddit post that covered how to get it working.

@kuznet1
kuznet1 / magti.sh
Created April 16, 2022 17:30
[Georgia] How to use Magti on Silknet router
# First, connect by telnet to your router (telnet package on linux distros, putty on windows)
# Creds is Silknet/Silknet@dmin
# Insert magti cable into first LAN port
# exec this script on router:
rmmod /lib/modules/hw_nat.ko
brctl delif br0 eth0.1
smuxctl rem nas0; smuxctl add bridge eth0.1 nas0
ifconfig nas0 hw ether <mac-address-used-to-connect-to-magti>
/usr/script/wan_start.sh 0