Skip to content

Instantly share code, notes, and snippets.

View leag's full-sized avatar
🐵

Luis Eduardo Atala Gonzalez leag

🐵
View GitHub Profile
@leag
leag / README.md
Created October 3, 2026 03:13
Xiaomi Mi Curved 34 XMI3446 OSD repair on Linux — tested fix, adapted from supermar1010 and rm-killer

Xiaomi Mi Curved 34-inch XMI3446: OSD black-screen repair on Linux

Tested successfully on one monitor with EDID manufacturer XMI, product 0x3446, on 2026-10-03. Pressing the menu button caused a brief black screen without opening the OSD. Disconnecting power and video cables did not resolve it. Clearing bit 0x10 at EEPROM address 0x41, verifying the write, and immediately unplugging power restored the menu; the owner confirmed success.

Sources and credit

This is an adaptation of supermar1010's original Linux script and firmware research. That source provides the MStar vendor EEPROM protocol, address mapping, explanation of the stuck DDC power flag, and immediate-unplug procedure for product 0x3444, using flag address 0x43.

rm-killer's Windows repair for revision 0x3445 documents the shifted flag address 0x41. Our 0x3446 settings block exactly ma

@leag
leag / README.md
Created October 2, 2026 14:43 — forked from supermar1010/README.md
Xiaomi Mi Curved Gaming Monitor 34" (2020): OSD goes black after using a DDC tool. Fix

Xiaomi Mi Curved Gaming Monitor 34" (2020): OSD goes black after using a DDC tool. Fix

Use at your own risk. This worked on my monitor, but there is no guarantee it works on yours. It writes to the monitor's settings EEPROM. See the disclaimer at the bottom.

Symptom

  • Pressing the joystick to open the on-screen menu (OSD) turns the screen black for ~2 seconds. Then the picture comes back, but no menu.
  • Happens on every input (DP, HDMI) and every source device.
  • It typically starts after a DDC/CI tool was used, for example a brightness app like Monitorian, Twinkle Tray, ClickMonitorDDC, ddcutil, or anything with a "turn display off" function.
  • Factory reset isn't possible because you can't reach the menu. Power-cycling doesn't help.
user: gepon
pass: gepon
user: 1*2&3#4%5@
pass: 6*7&8#9%0@
User> ddd
WRI(DEBUG_H)> tshell
@leag
leag / abugames.gs
Created August 22, 2018 19:29
Google Apps Script for www.abugames.com
function getPrice(name,set, cond) {
var price = 0;
cond = encodeURIComponent(cond);
var url = 'https://data.abugames.com/solr/nodes/select?facet.mincount=1&facet.limit=-1&facet=on&indent=on&q=*:*&fq=%2Bcategory%3A%22Magic%20the%20Gathering%20Singles%22%20%2Bdisplay_title%3A%22' + encodeURIComponent(name) +'%22%20%2Bmagic_edition%3A%22'+ encodeURIComponent(set) + '%22%20%2Blanguage%3A%22English%22%20-offline_item%3Atrue%20OR%20-title%3A%22STORE%22%20OR%20-price%3A0%20%2B((%2Bquantity%3A%5B1%20TO%20*%5D)%20OR%20(%2Bquantity%3A0%20%2Balways_show_inventory%3A1))%20&rows=100&wt=json'
var content = JSON.parse(UrlFetchApp.fetch(url).getContentText());
if (content.response.numFound > 0 )
{
var arrlength = content.response.docs.length;
for ( var i = 0; i < arrlength; i++){
=SI(ESBLANCO(C2);;D2=ELEGIR(11-RESIDUO(SUMAPRODUCTO({3;2;7;6;5;4;3;2}*EXTRAE(TEXTO(C2;"00000000");{1;2;3;4;5;6;7;8};1));11);"1";"2";"3";"4";"5";"6";"7";"8";"9";"K";"0"))
@leag
leag / ct.sh
Last active March 22, 2016 03:57
Compilance Test AirMAX
touch /etc/persistent/ct
save
reboot