AnsweredAssumed Answered

How to set new resolution with xrandr?

Question asked by DEVEN SOLANKI on Mar 8, 2018
Latest reply on Mar 19, 2018 by DEVEN SOLANKI

Hi community,

 

I am working with L4.9-Morty in imx7d sabresd board. I am trying to change display resolution when it is running. I am doing below steps to change the resolution. But I am unable to change it.

Can anyone help me with this.

 

 

# fbset

 

mode "1920x1080-60"
    # D: 148.500 MHz, H: 67.500 kHz, V: 60.000 Hz
    geometry 1920 1080 1920 1080 16
    timings 6734 148 88 36 4 44 5
    hsync high
    vsync high
    rgba 5/11,6/5,5/0,0/0
endmode

 

# echo "S:1280x720p-60" > /sys/class/graphics/fb0/mode

 

# fbset

 

mode "1280x720-60"
    # D: 74.250 MHz, H: 45.000 kHz, V: 60.000 Hz
    geometry 1280 720 1280 720 16
    timings 13468 220 110 20 5 40 5
    hsync high
    vsync high
    rgba 5/11,6/5,5/0,0/0
endmode

 

 

# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080     60.00*

 

 

# cvt 1280 720 60
# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync

 

# xrandr --newmode "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync

 

# xrandr --addmode default 1280x720_60.00
xrandr: Failed to get size of gamma for output default

 

# xrandr --output default --mode 1280x720_60.00
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed

 

# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1280 x 720, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080     60.00*
   1280x720_60.00  59.86  

 

 

 

Thanks,

Solanki Deven

Outcomes