|
|
Line 1: |
Line 1: |
− | <big> Weston FAQ for RZ/G</big>
| + | this page can be deleted |
− | <br>
| |
− | {{TOC}}
| |
− | | |
− | '''Note:''' weston-ini is located /etc/xdg/weston/weston.ini<br>
| |
− | To edit the file weston.ini you can use the 'vi' editor that is in the BSP.
| |
− | | |
− | =Remove toolbar and clock=
| |
− | In weston-ini,
| |
− | [shell]
| |
− | clock-format=none
| |
− | panel-position=none
| |
− | | |
− | = Single color setting of background =
| |
− | In weston-ini,
| |
− | [shell]
| |
− | background-color=0xff000000 <- Black
| |
− | background-color=0xffff0000 <- Red
| |
− | background-color=0xff00ff00 <- Green
| |
− | background-color=0xff0000ff <- Blue
| |
− | Top 8 bits are an alpha value.
| |
− | For example, 0x7fxxxxxx is translucent, but 0x00xxxxxx is not transparent and the wallpaper is displayed.
| |
− | | |
− | =Remove Window Frame=
| |
− | To remove window frame on a Qt app, follow https://stackoverflow.com/questions/3948441/how-to-remove-the-window-border-containing-minimize-maximize-and-close-buttons
| |
− | | |
− | = Changing the Video Mode for Weston =
| |
− | | |
− | The display configuration is controlled by a file named 'weston.ini' located in the folder /etc/xdg/weston. Currently there is this section in it that sets some specific display timings.<br>
| |
− | In order to make a display work with the RZ/G2 board, the 'mode' settings need to be change to something that the display supports. In order to find those settings, run the 'cvt' command providing it the desired mode as parameters.<br>
| |
− | For example, on the RZ/G2E board, the maximum resolution is 1080p at 30Hz. Therefore you would use the command:
| |
− | | |
− | cvt 1920 1080 30
| |
− | | |
− | This should give you the proper display timings for running your display at 1080p 30fps and will force that specific mode.
| |
− | | |
− | You can also just specify a resolution (without timing).
| |
− | [output]
| |
− | name=HDMI-A-1
| |
− | mode=1280x720
| |
− | | |
− | After modifying the configuration and saving the file, restart the Weston desktop using this command:
| |
− | systemctl restart weston
| |
− | | |
− | Another option is to set mode to "current" which keeps the current video resolution that the system was booted with.
| |
− | [output]
| |
− | name=HDMI-A-1
| |
− | mode=current
| |
− | Then then set the resolution on the kernel command line in u-boot by changing the boot args to specify the resolution you want:
| |
− | => setenv bootargs 'root=/dev/mmcblk0p2 rootwait video=HDMI-A-1:1280x720-32
| |
− | => saveenv
| |