This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to do : echo 1 > /sys/devices/platform/vpss/graphics0/enabled , sh: write error:invalid argument

Hi ,

Whenever, I do echo 1>/sys/devices/platform/vpss/graphics0/enabled

it gives me the Write error:invalid argument.

I want to blend the graphics ( sgx accelerated ) and video, so I want to enable the video overlay by this command. 

But It is giving error, though I have kept the fb0 open.

Please Suggest,

Thanks,

Sanchit Mehra

  • Hello,

    Could you post all the steps that you are executing also check this user guide:
    processors.wiki.ti.com/.../DM816X_AM389X_VPSS_Video_Driver_User_Guide

    BR
    Margarita
  • Hello Margarita,

    1. I am playing a Streaming video from DM814X

    2. I am also having a SGX accelerated graphics , A QT gui Application.

    3. AIM: I want to blend the Graphics with the Video so that it comes as blended.


    I have done following:
    echo "Configuring fb0 to LCD"
    echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    echo vcompmux:dvo2 > /sys/devices/platform/vpss/video0/nodes
    echo vcompmux:dvo2 > /sys/devices/platform/vpss/video1/nodes
    echo 0 > /sys/devices/platform/vpss/display1/enabled
    # echo 138640,1920/48/160/32,1080/3/32/5,1 > /sys/devices/platform/vpss/display1/timings
    echo 148500,1920/88/148/44,1080/4/36/5,1 > /sys/devices/platform/vpss/display1/timings
    echo triplediscrete,rgb888,0/0/0/0 > /sys/devices/platform/vpss/display1/output
    echo 1 > /sys/devices/platform/vpss/display1/enabled
    fbset -depth 32 -rgba 8/16,8/8,8/0,0/0
    fbset -xres 1920 -yres 1080 -vxres 1920 -vyres 1080


    After this setting, Graphics is not getting blended with the video,

    Then, later I also did.

    echo 1> /sys/devices/platform/vpss/video1/alpha_blending_enabled
    echo 255> /sys/devices/platform/vpss/video1/global_alpha

    but no success.

    please suggest,

    Thanks,
    Sanchit Mehra