Skip to content

Instantly share code, notes, and snippets.

Awen Saunders awensaunders

Block or report user

Report or block awensaunders

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am awensaunders on github.
  • I am awensaunders (https://keybase.io/awensaunders) on keybase.
  • I have a public key ASBpWI4GHAWdI6qZ06dzQBwVYObQNXtmI1c6hy_Ru4LbIwo

To claim this, I am signing this object:

View keybase
### Keybase proof
I hereby claim:
* I am awensaunders on github.
* I am awensaunders (https://keybase.io/awensaunders) on keybase.
* I have a public key ASC6FuWyQOHvjn7cuz06mVfrDQUVROZyQiWqnUys753tLgo
To claim this, I am signing this object:
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@awensaunders
awensaunders / edid-flash.py
Created May 27, 2016
This script uses i2c-tools to flash a new edid to a display (if the EEPROM storing the edid is not write-protected)
View edid-flash.py
#!/usr/bin/env python3
import subprocess
import time
i2cbus = 3 #This is important. Check which bus your DDC is on with i2cdetect.
offset = 0x00 #Where to start writing
data = [0x00, 0xFF, 0xFF, 0xFF, 0xFF,...] #Your EDID Goes here
for value in data:
print("value", hex(value), "offset", hex(offset)) #for debuging
print(subprocess.check_output(["i2cset", "-y", str(i2cbus), "0x50", str(hex(offset)), str(hex(value))]))
You can’t perform that action at this time.