Skip to content

Instantly share code, notes, and snippets.

@mfaughn
mfaughn / readme.txt
Created April 21, 2022 14:10
readme file for Dell Display Manager for MacOS v1.50.0.0043
==============================================
Dell Display Manager
==============================================
Support Mac:
Mac 2018 or above.
Support OS:
macOS 10.14 or above.
@mfaughn
mfaughn / edid_rename_display.rb
Created April 13, 2022 22:21
M1 Mac futzing about with EDID and name of display
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use a different name for the display
# This doesn't quite work since it just appends the alphanumeric serial number of whichever display of any given type to all of the names of the that type of display.
require 'base64'
edit_bytes = false
data=`ioreg -l -w0 -d0 -r -c AppleCLCD2`
# edid_hex=data.match(/EDID UUID.*?<([a-z0-9]+)>/i)
edid_hexes = data.scan /(?<="EDID UUID" = ).+/
# pp edid_hex; puts
display_attributes = data.scan /(?<="DisplayAttributes" = ).+/