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.

dm816x Can not reshuffle graphic(0~2) layer.



hi all.

ezsdk 5.05.02.00

psp : 4.04.00.02

We use a dm8165 customboard.

I modified by adding  fb1, fb2  the program saFbdevDisplay sample code.

and try to output the three graphics(0~2) simultaneously through hdmi.

it is successful display to three graphic layer through hdmi but does not  be controlled reshuffle display layer.

#echo 0,0/1/2/3 > /sys/devices/platform/vpss/display0/order

#cat /sys/devices/platform/vpss/display0/order

0,0

#echo 1,0/3/1/1 > /sys/devices/platform/vpss/display0/order

#cat /sys/devices/platform/vpss/display0/order

1,0/3/1/0

#echo 1,0/2/1/3 > /sys/devices/platform/vpss/display0/order

#cat /sys/devices/platform/vpss/display0/order

1,0/2/1/0

I want to change the order of priority of graphics(0~2).

Any help or suggestions would be greatly appreciated. thank you.

  • If you do

    echo 1,3/2/1/0 > /sys/devices/platform/vpss/display0/order

    then that would reverse the order of fb0, fb1 and fb2 so that fb2 is the bottom layer. Is that what you want?

  • hi Ralph.

    Thank you for your reply.

    I hope that it works as shown in the figure below.

    use sysfs :  #echo 1,0/2/1/3 >  /sys/devices/platform/vpss/display0/order

    However, it is performed as shown below.

    #cat /sys/devices/platform/vpss/display0/order

    1,0/2/1/0

    I can not understand why Graphic2(fb2) does not operate.

  • Hi aupers,

        None of our customers has asked us to do something similar so not sure how the sysfs entries are working, however, I gave it a quick try using the Ridgerun SDK and I noticed the following:

    a) If you want to display

    1.fb2
    2.fb1
    3.fb0
    4. video (bottom)

    Please run:

    echo 1:hdmi > /sys/devices/platform/vpss/graphics0/nodes
    echo 1:hdmi > /sys/devices/platform/vpss/graphics1/nodes
    echo 1:hdmi > /sys/devices/platform/vpss/graphics2/nodes
    echo 1,0/0/0/0 > /sys/devices/platform/vpss/display0/order

    to test:
    yes olleh > /dev/fb0
    yes yuio > /dev/fb1
    yes > /dev/fb2

    b) if you want to display

    1.fb2
    2.fb0
    3.fb1
    4. video (bottom)

    Please try

    echo 1:hdmi > /sys/devices/platform/vpss/graphics0/nodes
    echo 1:hdmi > /sys/devices/platform/vpss/graphics1/nodes
    echo 1:hdmi > /sys/devices/platform/vpss/graphics2/nodes
    echo 1,0/1/0/0 > /sys/devices/platform/vpss/display0/order

    to test:
    yes olleh > /dev/fb0
    yes yuio > /dev/fb1
    yes > /dev/fb2

    -David

  • Yes, it is important that you run

    echo 1:hdmi > /sys/devices/platform/vpss/graphics2/nodes

    which I don't think you are at present.