mfw_v4lsink hdmi output stops displaying after a few minutes

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mfw_v4lsink hdmi output stops displaying after a few minutes

Jump to solution
1,089 Views
richc128
Contributor III

I'm running this gstreamer pipe

gst-launch -v videotestsrc ! mfw_v4lsink

works fine for several minutes and then just stops displaying anything on the monitor. Once it stops dispalying killing it and restarting won't start the display back up. I have to reboot.

gst-launch does produce any console/dmesg errors and there are no other indicators why it's stopped working.

This is the sabre imx6q based board with the latest ltib release.

Labels (3)
0 Kudos
1 Solution
814 Views
LeonardoSandova
Specialist I

Hi Richard,

add 'consoleblank=0' to your kernel command line. I found this trick on the following thread: https://community.freescale.com/thread/304368<https://community.freescale.com/thread/304368>;

View solution in original post

0 Kudos
6 Replies
814 Views
joshkurland
Contributor IV

I know this thread is a little old, but I am having the same problem on my wandboard quad using Yocto (Dora branch).  In the kernel command line I did:

  setenv consoleblank

  editenv consoleblank

        0

  saveenv

  printenv (to make sure it is there)

But it still goes off after 10 minutes.  Any tips?

0 Kudos
814 Views
LeonardoSandova
Specialist I

Josh, you should add the kernel parameter into the bootargs variable (setenv bootargs "${bootargs} consoleblank=0"). So make sure you add it there, then boot an check the first lines of the kernel log, you must see the consoleblank=0 there.

Leo

0 Kudos
814 Views
joshkurland
Contributor IV

Thanks for the advice, but I couldn't get it to work.  I copied the line setenv bootargs "${bootargs} consoleblank=0" directly into my kernel console, then did saveenv.  When I boot, the only log available is in /var/log/messages (I am using Yocto with Busybox).  I don't see anything referring to bootargs or consoleblank in this log.  I just set a timer, and once again after 10 minutes (600 seconds according to /sys/module/kernel/parameters/consoleblank) my display turns off.  Am I still passing in the kernel bootargs variable incorrectly?

The only way I have managed to fix this issue is by setting $setterm -blank 0 >> /etc/issue during runtime in the Linux console.  This only has to be run once ever, but I would prefer not to have to do that each time I have to flash my SD card.

0 Kudos
814 Views
LeonardoSandova
Specialist I

Hi Josh, by log I mean the kernel log which is shown on the serial console when Linux boots:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Linux version 3.0.35-2666-gbdde708 (r65388@shlinux3) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #1 SMP PREEMPT Fri Aug 16 10:43:44 CST 2013

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board

Ignoring unrecognised tag 0x54410008

Memory policy: ECC disabled, Data cache writealloc

CPU identified as i.MX6Q, silicon rev 1.1

PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 194560

Kernel command line: console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=10.112.101.117:/home/b42214/fsl/BSP/images/linux/L3.0.35_4.1.0_130816/L3.0.35_4.1.0_130816_images_MX6/rootfs,v3,tcp video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666

In the other hand, stop the booting process on U-boot and print the bootargs variable, you should also see the parameter there.

Leo

0 Kudos
815 Views
LeonardoSandova
Specialist I

Hi Richard,

add 'consoleblank=0' to your kernel command line. I found this trick on the following thread: https://community.freescale.com/thread/304368<https://community.freescale.com/thread/304368>;

0 Kudos
814 Views
richc128
Contributor III

You’re a genius. I had seen that thread but the console thing was so buried in the messages I missed it.

0 Kudos