Identificarte

Versión Completa : resolucion de pantalla en ubuntu


.



alexitosrv
mayo 19, 2010, 09:14 AM
pego aqui los comandos que acabo de utilizar para resolver un problema de resolucion de pantalla en ubuntu, tal vez a alguien mas le pueda servir.

saludos.

con el uso de la herramienta xrandr yo queria que subiese a 1280 x 1024 y solo salia en 1024 x 768
toco hacer esto:

para ver el estado actual de las cosas:
xrandr -q --verbose
(da lo mismo xrandr --prop --verbose)

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1280 x 1280
VGA connected 1024x768+0+0 (0x4d) normal (normal left inverted right x axis y axis) 0mm x 0mm
Identifier: 0x4a
Timestamp: 18684
Subpixel: unknown
Clones:
CRTC: 0
CRTCs: 0
1280x800 (0x4b) 83.5MHz
h: width 1280 start 1344 end 1480 total 1680 skew 0 clock 49.7KHz
v: height 800 start 801 end 804 total 828 clock 60.0Hz
1280x768 (0x4c) 80.1MHz
h: width 1280 start 1344 end 1480 total 1680 skew 0 clock 47.7KHz
v: height 768 start 769 end 772 total 795 clock 60.0Hz
1024x768 (0x4d) 65.0MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.4KHz
v: height 768 start 771 end 777 total 806 clock 60.0Hz
800x600 (0x4e) 40.0MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.9KHz
v: height 600 start 601 end 605 total 628 clock 60.3Hz
640x480 (0x4f) 25.2MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.5KHz
v: height 480 start 490 end 492 total 525 clock 59.9Hz


sacar los parametros correctos para usarlos en la adici'on de un nuevo modo en xrandr
cvt 1280 1024 60

esto da:
# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz
Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync


('VGA' es el nombre del output, 'default' no sirve)

luego con esos params, se puede agregar el modo:

xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

xrandr --addmode VGA 1280x1024_60.00


despu'es de eso con
xrandr --prop
se debe poder revisar que el modo est'e ah'i.

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1280
VGA connected 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x800 60.0
1280x768 60.0
1024x768 60.0
800x600 60.3
640x480 59.9
1280x1024_60.00 59.9*


y al final se ajusta la resolucion seleccionando el modo:
xrandr --output VGA --mode 1280x1024_60.00

para que los cambios se guarden al reiniciar toco hacer esto:

leer
https://wiki.ubuntu.com/X/Config/Resolution#Setting%20xrandr%20changes%20persistent ly

Setting xrandr changes persistently

en ~/.xprofile se guardan los comandos relevantes

Both KDM and GDM have startup scripts that are executed when X is initiated. For GDM, these are in /etc/gdm/ , while for KDM this is done at /etc/kde4/kdm/Xsetup. In either case, you can paste in an xrandr command line string into one of these scripts. For GDM, try putting them right before initctl -q emit login-session-start DISPLAY_MANAGER=gdm in /etc/gdm/Init/Default

puse antes del exit 0 los siguientes comandos


xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
xrandr --addmode VGA 1280x1024_60.00
xrandr --output VGA --mode 1280x1024_60.00






tags:
screen resolution ubuntu resolucion pantalla