LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   xrandr add newmode to VGA-0 (https://www.linuxquestions.org/questions/linux-desktop-74/xrandr-add-newmode-to-vga-0-a-4175436000/)

mah454 11-06-2012 10:51 PM

xrandr add newmode to VGA-0
 
Hello

I want to use xrandr to add newmode in VGA-0 but it's automaticaly goes to HDMI-0 .
How can I force xrandr to add my mode into VGA-0
This output :

Code:

kernel@kernel-Ubuntu:~$ cvt 1280 1024
# 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
kernel@kernel-Ubuntu:~$ xrandr --newmode "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
kernel@kernel-Ubuntu:~$ xrandr
Screen 0: minimum 8 x 8, current 1152 x 864, maximum 8192 x 8192
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1152x864+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1024x768      60.0 +
  1360x768      60.0    59.8 
  1152x864      60.0*
  800x600        72.2    60.3    56.2 
  680x384      119.9    119.6 
  640x480        59.9 
  512x384      120.0 
  400x300      144.4 
  320x240      120.1 
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
  1280x1024_60.00 (0x270)  109.0MHz
        h: width  1280 start 1368 end 1496 total 1712 skew    0 clock  63.7KHz
        v: height 1024 start 1027 end 1034 total 1063          clock  59.9Hz
kernel@kernel-Ubuntu:~$


adamk75 11-07-2012 06:01 AM

You need to use the --addmode option. It's documented in the xrandr man page.

Adam

mah454 11-07-2012 12:56 PM

Quote:

Originally Posted by adamk75 (Post 4824023)
You need to use the --addmode option. It's documented in the xrandr man page.

No ! Before "--addmode" I should define with "--newmode" .
Note : Read example in end of xrandr manual page .

adamk75 11-07-2012 01:00 PM

Yes. According to your output above, you were already defining a new mode with --newmode. The next step is using --addmode, as I said.

Adam

mah454 11-07-2012 01:25 PM

How can fix this problem ?
My mode add to HDMI ! but i have not HDMI connection , I use VGA connection .

adamk75 11-07-2012 01:28 PM

You
already know the answer. You use --newmode to create the mode, then --addmode to add it to the correcy output, just as it's documented in the xorg.conf file.

Adam


All times are GMT -5. The time now is 01:59 AM.