cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
yey
Xilinx Employee
Xilinx Employee
903 Views
Registered: ‎10-30-2018

How to change dispaly resolution with V3.1 petalinux image files?

For V3.1 board image files,

https://www.xilinx.com/member/forms/download/zcu102-image-license-xef.html?filename=petalinux-user-image-zcu102-zynqmp-sd-20190802.img.gz

https://www.xilinx.com/member/forms/download/zcu104-image-license-xef.html?filename=petalinux-user-image-zcu104-zynqmp-sd-20190802.img.gz

https://www.xilinx.com/member/forms/download/ultra96-image-license-xef.html?filename=petalinux-user-image-ultra96-zynqmp-sd-20190802.img.gz

Using below command to change default display resolution: (replace width/height with what you want to set. )

echo "bootargs=$(echo $(cat /proc/cmdline)) video=DP-1:widthxheight@60"  > /media/card/uEnv.txt

sed -i "s/^mode.*$/mode=widthxheight@60/" /etc/xdg/weston/weston.ini

reboot

 

Another way is with "modetest" command to change default display resolution. User don't need to reboot your board with this method.

Firstly,  download "libdrm-tests_2.4.94-r0_arm64.deb"(atttachment) on your board and install it by  "dpkg -i libdrm-tests_2.4.94-r0_arm64.deb"

put the below code at the end of /etc/xdg/weston/weston.ini file on board.

[output]
name=DP-1
mode=1920x1080@60

then run below command in uart console or ssh terminal.

alias modetest='modetest -M xlnx'
unset DISPLAY && /etc/init.d/weston stop
sleep 3 sed -i "s/^mode.*$/mode=widthxheight@60/" /etc/xdg/weston/weston.ini modetest -D fd4a0000.zynqmp-display -s 39:widthxheight-60@AR24 & /etc/init.d/weston start

Note: do not execute above comand in weston desktop enviroment

 

 

0 Kudos
1 Reply
yey
Xilinx Employee
Xilinx Employee
828 Views
Registered: ‎10-30-2018

For method1, please also add below code at the end of /etc/xdg/weston/weston.ini file on board.
"
[output]
name=DP-1
mode=1920x1080@60
"
then run command mentioned in method1. 
0 Kudos