I use mplayer or fbi through framebuffer in Centos 7 ( init 3 ).

If in the console to give the command kill -9 pid_процесса , often the picture freezes. Saves switching to another console via Alt + Fn .

How can I clean the framebuffer and return the image with tty ? We need an analogue of the clear command, but only for the framebuffer .

Transferred from meta.ru.stackoverflow.com on Oct 22 '15 at 10:12 .

This question was originally posted on the discussion forum, support and innovations for the site programmers.

    1 answer 1

    Here they write that only writing zeros helps directly in the framebuffer :

     $ sudo dd if=/dev/zero of=/dev/fb0 

    I think that it is not necessary to write down infinitely (as this command will do). It should be experimentally determined how many blocks (for example, 1 kilobyte each - 1K ) will be enough to completely clear the screen:

     $ sudo dd if=/dev/zero of=/dev/fb0 bs=1K count=количество_блоков