To start Weston with root privileges

  • Execute the following command to switch to superuser:
    sudo su

    The default password is nvidia.

  • Launch Weston, as specified below:
    unset DISPLAY
    mkdir /tmp/xdg
    chmod 700 /tmp/xdg
    export XDG_RUNTIME_DIR=/tmp/xdg
    export WESTON_TTY=1
    sudo insmod /lib/modules/$(uname -r)/extra/opensrc-disp/nvidia-drm.ko modeset=1
    sudo XDG_RUNTIME_DIR=/tmp/xdg weston --tty="$WESTON_TTY" --idle-time=0 &
    Note: Alternatively, use the nvstart-weston.sh script to launch Weston with desktop shell.
    Note: To use the X11 environment, remove nvidia-drm driver (rmmod nvidia_drm) or restart the board.