0
$\begingroup$

The command,

fb-test -f 0

generates and displays a test pattern on the screen.

But, the command,

cp /home/root/test.jpg /dev/fb0

copies test image into dev/fb0 file but fails to display anything on the screen?

How to resolve this issue?

$\endgroup$
1
$\begingroup$

Copying the bytes of a JPEG file to the framebuffer device doesn't display the image represented by the JPEG file. The file needs to be decoded by an application that understands the JPEG format, to get the actual image. Your system is working normally. You can use a command like display to decode the file and draw the image to the screen.

$\endgroup$
2
  • $\begingroup$ In the embedded OS I am building, the command 'display' is not recognized. $\endgroup$ Sep 13 '19 at 8:10
  • 2
    $\begingroup$ Well, you need to use some program that is available in your embedded Linux distribution, or add one. I can't help you with that part. $\endgroup$
    – Dan Hulme
    Sep 13 '19 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.