Skip to content

Instantly share code, notes, and snippets.

Avatar

Clarence "Sparr" Risher sparr

View GitHub Profile
@sparr
sparr / xrandr.out
Created Jan 18, 2019
xrandr showing ghost configs from disconnected displays
View xrandr.out
Screen 0: minimum 320 x 200, current 6400 x 1800, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+720 (normal left inverted right x axis y axis) 309mm x 174mm
1920x1080 60.02*+ 60.01 59.97 59.96 59.93 47.99
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
@sparr
sparr / dmesg.out
Created Jan 18, 2019
dmesg output with drm debug 0xff then suspend then unplug 2 external monitors (direct HDMI and usb3->dock->miniDP) then wake to discover X crashed
View dmesg.out
[ 1389.681045] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_BUSY
[ 1389.681064] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_MADVISE
[ 1389.681085] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_BUSY
[ 1389.681101] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_MADVISE
[ 1389.681116] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_SET_TILING
[ 1389.681133] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_MMAP
[ 1389.681253] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_BUSY
[ 1389.681269] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_MADVISE
[ 1389.681285] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, I915_GEM_MADVISE
[ 1389.681301] [drm:drm_ioctl [drm]] pid=7676, dev=0xe200, auth=1, DRM_IOCTL_GEM_CLOSE
@sparr
sparr / dmesg.out
Created Jan 18, 2019
dmesg output during failed xrandr with /sys/module/drm/parameters/debug turned on
View dmesg.out
[68512.967004] [drm:drm_ioctl [drm]] pid=20618, dev=0xe200, auth=1, DRM_IOCTL_MODE_CURSOR
[68512.967019] [drm:drm_mode_object_get [drm]] OBJ ID: 109 (2)
[68512.967030] [drm:drm_mode_object_get [drm]] OBJ ID: 164 (2)
[68512.967039] [drm:drm_mode_object_get [drm]] OBJ ID: 93 (1)
[68512.967048] [drm:drm_mode_object_put.part.2 [drm]] OBJ ID: 109 (3)
[68512.967073] [drm:drm_vblank_enable [drm]] enabling vblank on crtc 0, ret: 0
[68512.967097] [drm:drm_mode_object_put.part.2 [drm]] OBJ ID: 164 (3)
[68512.967105] [drm:drm_mode_object_put.part.2 [drm]] OBJ ID: 93 (2)
[68512.967114] [drm:drm_mode_object_put.part.2 [drm]] OBJ ID: 109 (2)
[68512.967123] [drm:drm_mode_object_put.part.2 [drm]] OBJ ID: 109 (1)
@sparr
sparr / Xorg.0.log
Created Jan 18, 2019
X crashed when waking from sleep
View Xorg.0.log
[ 4.627] (--) Log file renamed from "/var/log/Xorg.pid-972.log" to "/var/log/Xorg.0.log"
[ 4.629]
X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
[ 4.629] Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
[ 4.629] Current Operating System: Linux sparr-granular-7490 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64
[ 4.629] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-13-generic root=UUID=4c05e8f0-b9b0-4bad-a652-b3e41bc5b240 ro quiet splash vt.handoff=1
[ 4.629] Build Date: 25 October 2018 02:53:34PM
[ 4.629] xorg-server 2:1.20.1-3ubuntu2.1 (For technical support please see http://www.ubuntu.com/support)
[ 4.629] Current version of pixman: 0.34.0
@sparr
sparr / log
Created Jan 4, 2019
homebrew npm problem, node install problem
View log
% npm install
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
zsh: abort npm install
% brew uninstall node
Uninstalling /usr/local/Cellar/node/10.1.0... (5,301 files, 51.4MB)
% brew install node
@sparr
sparr / msil.txt
Last active Dec 4, 2018
IL patch problem with stfld stack
View msil.txt
I am trying to transpile a new conditional code path into an existing method.
Here is the original code that I am targeting, as output by the Harmony library's CodeInstruction class:
ldarg.0
ldflda Verse.IntVec3 startDragCell
Here is my new code that replaces it:
ldobj DraggableCorners.DraggableCorners
@sparr
sparr / get_TickRateMultiplier.MSIL
Created Dec 2, 2018
get_TickRateMultiplier IL
View get_TickRateMultiplier.MSIL
// Token: 0x06004343 RID: 17219 RVA: 0x001F8464 File Offset: 0x001F6864
.method public hidebysig specialname
instance float32 get_TickRateMultiplier () cil managed
{
// Header Size: 12 bytes
// Code Size: 172 (0xAC) bytes
// LocalVarSig Token: 0x1100113E RID: 4414
.maxstack 1
.locals init (
[0] valuetype Verse.TimeSpeed
@sparr
sparr / convert.rb
Created Jul 26, 2018
"interning empty string" when an empty string should have been caught
View convert.rb
def convert(value)
case value
when Symbol, '' # can't intern an empty string
value
when String
value.intern
when true
:true
when false
:false
@sparr
sparr / Blueprint String
Created Apr 10, 2018
Factorio Blueprint Book Solar Alphabet (36x36)
View Blueprint String
0eNrt3VuvZrlxoOm/YtRVD0bbTQbJCFJX4z6fT+7zoGGUPIXpQsuSIJWMNhr6712SXTsT6M3FiM235MxSXNkuq0KZOxdXft8in/X+ry9+8tNff/WLX379s2/+7Cc///n/+OLH/+vDP/nVFz/+fz/6P3/7//v6z3/+s7/+x7/6+v//2Zc//e0/++avfvHVFz/+4i+//uU3v/72n/zoi599+Re//Qd//Z94KV/85kdffP2z/++r//nFj+tv/tuPvvjqZ998/c3XX/31mN/9H3/1Zz/79V/85Ktffvsf+PBv//ynX/7y5Rdf/uyr3478xc9/9e2/8/Of/fa/79s5L9V+9MVf/e5//uY3P/o/poh3Sn+a0rxT6tOU7pwyn4YM55DxNESdQ+RpiPmGPP5Ipm/G4x/O8s14vExqcf5myuMU5zVb2+MU5zVb9XFKi66f/uaYHl1Ab48Z0RX09hgNLqG3p1hwDb09ZQYX0dtTVmwVvTlESmwZvT2kxtbR20MkuI7entKC6+jtKT24jt6eMqLrqL45RqPr6O0xHy7dL//8z3/9F7/+6Zff/PyXb4yxP/7u4q1/PN6cNJ2TxnHSck5qp0mtOCfV46Tqm1SOg8Q3SI6Dmm9QPw7qvkF6HDSCq+zNK7JpcJW9PeWjW/Kvf/Krb7783b/5f/7Br+9+U2vze5rR9bEbtKLLYzOol+jq2A2q0cWxGyTBtbGb04JLYzenB1fGbs4ILozdHHVdi/M0xoJ/ccw3p8zg3xtvT/FezfX14rG3f1fDezmv06AaXam7QRJdqbtBLbpSd4N6dKXuBo3gSt3N0eBK3c2x4ErdzZnBlbqb47ys52GOOi/qevpBa/AL4JuLVYPf/94eEv369/bvJ/rt7+0pI3z3GZufr0bvPrtB4c/Ru0Ez9l3y7SEr9lXyzSFWgjeLze/IavBmsZsjwZvFbk4L3ix2c3rwZrGbM6I3i90gjd0s3h5isZvF20NmeIG2ze9pRRfoZtAs0QW6GxT9JribI8HLcDenBS/
View OverlordRules.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
You can’t perform that action at this time.