Skip to content

Instantly share code, notes, and snippets.

@wachin
Last active September 5, 2025 16:12
Show Gist options
  • Save wachin/2ee082a8e9f9e8ff7c0a55e34a0acdb6 to your computer and use it in GitHub Desktop.
Save wachin/2ee082a8e9f9e8ff7c0a55e34a0acdb6 to your computer and use it in GitHub Desktop.
script 75Hz Televisor LG LCD 2012.sh
#! /bin/bash
# ESTE ES UN SCRIPT PARA PONER 75 Hz AL MONITOR TELEVISOR EXTERNO LG LCD 37" (del 2012) EN LINUX
# en Linux con Kernel 5.10 (puede que funcione en Kernel 6) en x11 (no funciona en Wayland)
# Probado en Debian 12 de 64 y 32 bit
# Probado en MX Linux 23 y 21 de 64 y 32 bit
# Nota: Este script usted lo puede usar como base para poder ponerle 75 Hz en algún monitor
# PASOS:
# 1ro ver qué tasas de refresco tiene el ordenador, conecté
#xrandr
# me da
# $ xrandr
#wachin@debian12:~/Dev/AI-dev$ xrandr
#Screen 0: minimum 320 x 200, current 1360 x 768, maximum 16384 x 16384
#eDP connected (normal left inverted right x axis y axis)
# 1366x768 59.97 +
# 1280x720 59.97
# 1024x768 59.97
# 800x600 59.97
# 640x480 59.97
# 1368x768_75.00 75.00
#HDMI-A-0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 160mm x 90mm
# 1920x1080 60.00 + 50.00 59.94 30.00 25.00 24.00 29.97 23.98
# 1680x1050 60.00
# 1280x1024 60.02
# 1440x900 60.00
# 1360x768 59.80*
# 1280x800 60.00
# 1152x864 75.00
# 1280x720 60.00 50.00 59.94
# 1024x768 60.00
# 800x600 60.32
# 720x576 50.00
# 720x480 60.00 59.94
# 640x480 60.00 59.94
# 720x400 70.08
#DisplayPort-0 disconnected (normal left inverted right x axis y axis)
# Según xrandr la Identificación del monitor es:
# HDMI-A-0
# y observamos que puede manejar la resolución:
# 1360x768 59.80
# entonces pongo en la terminal:
# wachin@mx23KDE:~
# $ gtf 1360 768 75
# y me da:
# # 1360x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 108.75 MHz
# Modeline "1360x768_75.00" 108.75 1360 1440 1584 1808 768 769 772 802 -HSync +Vsync
# entonces debes copiar los valores obtenidos a la siguiente plantilla:
# xrandr --newmode [valores_generados después de Modeline]
# xrandr --addmode Identificación [valor entre comillas después de Modeline, pero sin las comillas]
# xrandr --output Identificación --mode [valor entre comillas después de Modeline, pero sin las comillas]
# y con esto reemplazo de la siguiente manera y el script me queda así:
xrandr --newmode "1360x768_75.00" 108.75 1360 1440 1584 1808 768 769 772 802 -HSync +Vsync
xrandr --addmode HDMI-A-0 "1360x768_75.00"
xrandr --output HDMI-A-0 --mode "1360x768_75.00"
# Este script yo lo tengo en mi HOME al cual antes, para poderlo ejecutar le he dado clic derecho en la
# pestaña "Permisos" para marcarlo como Ejecutable, y luego si lo ejecuto.
# Nota: En algunos Sistemas Operativos Linux como MX Linux XFCE, en Thunar hay que abrir script .sh
# configurandolo para que lo abra bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment