1#!/bin/bash -e 2 3PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 4 5export mpp_syslog_perror=1 6 7KERNEL_VERSION=$(cat /proc/version) 8if [[ $KERNEL_VERSION =~ "4.4" ]]; then 9 echo 0x100 > /sys/module/rk_vcodec/parameters/debug 10else 11 echo 0x100 > /sys/module/rk_vcodec/parameters/mpp_dev_debug 12fi 13 14echo performance | tee $(find /sys/ -name *governor) /dev/null || true 15 16if [ -e "/usr/bin/chromium" ] ; 17then 18 chromium --no-sandbox file:///usr/local/test.mp4 19else 20 echo "Please sure the config/rockchip_xxxx_defconfig include "chromium.config"........" 21fi 22echo "the governor is performance for now, please restart it........" 23