Skip to content

Instantly share code, notes, and snippets.

@wormyrocks
wormyrocks / android_diff_0327.patch
Created March 28, 2019 03:32
android_display_mode_patch
diff --git a/.gitignore b/.gitignore
index e2e7327cde..552c44fa7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
+*.ko
+kernel
/out
diff --git a/device/softwinner/cheetah-common/cheetah-common.mk b/device/softwinner/cheetah-common/cheetah-common.mk
index 04e0a4099e..ddf869a7cb 100755
diff --git a/.gitignore b/.gitignore
index 21ab88cf2..281ba45d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
.buildconfig
+tools/pack/chips/*
+!tools/pack/chips/sun50iw2p1
linux-3.10/modules/gpu/mali400/kernel_mode/driver/src/devicedrv/mali/Module.symvers
linux-3.10/modules/nand/Module.symvers
@wormyrocks
wormyrocks / lichee_video_patch.diff
Created March 25, 2019 21:26
lichee_video_patch
diff --git a/linux-3.10/drivers/video/sunxi/disp2/hdmi/drv_hdmi.c b/linux-3.10/drivers/video/sunxi/disp2/hdmi/drv_hdmi.c
index 2e8916988..73a4b835a 100755
--- a/linux-3.10/drivers/video/sunxi/disp2/hdmi/drv_hdmi.c
+++ b/linux-3.10/drivers/video/sunxi/disp2/hdmi/drv_hdmi.c
@@ -284,6 +284,7 @@ static struct disp_hdmi_mode hdmi_mode_tbl[] = {
{DISP_TV_MOD_720P_60HZ_3D_FP, HDMI720P_60_3D_FP, },
{DISP_TV_MOD_3840_2160P_30HZ, HDMI3840_2160P_30, },
{DISP_TV_MOD_3840_2160P_25HZ, HDMI3840_2160P_25, },
+ {DISP_TV_MOD_1920P_60HZ, HDMI1920P_60, },
};
#include "stdafx.h"
#include <d3d11.h>
#include "UniversalD3D11Hook.h"
#include "Console.h"
#include "MinHook.h"
#include "Globals.h"
#include "imgui.h"
#include "Defaults.h"
#include "imgui_impl_dx11.h"
#include "OverlayControl.h"
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<pre id = "calibration"></pre>
<script type ="text/javascript">
var ws = new WebSocket('ws://localhost:11222/');
ws.onmessage = function(event) {
console.log(event.data);
hdmi_timings=2560 1 230 32 230 1600 1 12 4 4 0 0 0 60 0 263995200 5
hdmi_pixel_freq_limit=360000000
max_usb_current=1
disable_overscan=1
hdmi_group=2
hdmi_mode=87
hdmi_drive=1
max_framebuffer_width=2560
hdmi_force_hotplug=1
max_framebuffer_height=1600
import math
import json
# Generates glsl shader file based on visual calibration file
calib = json.load(open("visual.json"))
def v(n):
return calib[n]['value']
views_x = 5
#!/bin/bash
file="/media/pi/LKG/LKG_Calibration/visual.json"
if [ `find /dev -name sd*[0-9] | wc -l` -eq 0 ]
then
echo ""
else
for f in /dev/sd*[0-9];
do
mount $f /media/pi/LKG
if [ -f "$file" ]
@wormyrocks
wormyrocks / RawHID.cpp
Created March 19, 2018 18:18
rawhid_feature_report
/*
Copyright (c) 2014-2015 NicoHood
See the readme for credit to other people.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: