Skip to main content
DRM modetest ensures that the DSI and the DPU paths are working effectively. To verify the display driver topology, run the DRM modetest.
You must enable SSH to access your host device. For instructions, see Sign in using SSH.
  1. To kill the Weston client application, run the following commands in the device shell:
    mount -o remount,rw /
    
    ps -A | grep weston
    
    Sample output:
    824 ?        00:00:12 weston
    1090 ?        00:00:00 weston-keyboard
    1092 ?        00:00:01 weston-desktop-
    
    Use the Weston process ID from the sample Weston process list to kill the Weston processes.
  2. To kill all Weston processes, run the following command:
    systemctl stop weston.service
    
  3. To change permissions of the modetest application, run the following command:
    chmod 0777 /usr/bin/modetest
    
  4. To view the connector IDs and modes, run the following command:
    /usr/bin/modetest -M msm > /opt/drm_mode.txt
    
  5. To verify DRM modes and connector information, pull the /opt/drm_mode.txt file locally on your host computer. Use the Secure Copy Protocol (SCP) to pull the drm_mode.txt file from the device to your host computer. For example:
    scp -r root@<IP of the device>:/opt/drm_mode.txt <directory path of the host machine>
    
    When prompted for a password, enter oelinux123.
    The output as shown in the following figure is from the /opt/drm_mode.txt file.
    Figure: Command prompt output
  6. To fetch the connector ID and mode name, use the relevant values from the /opt/drm_mode.txt file:
    modetest -M msm -s <Connector id>:<mode name>
    
  7. To start the modetest application, run the following sample command using the connector ID and the mode name retrieved from the /opt/drm_mode.txt file. For example:
    /usr/bin/modetest -M msm -s 32:1920x1080-60
    
    Start the DRM test application and ignore the warning log: Failed to set gamma: Function not implemented.
    Figure: DRM modetest output
  8. To kill the modetest application, select CTRL + C.
    Ensure that you Relaunch Weston.