Edit /etc/default/rpi-eeprom-update and add ENABLE_VL805_UPDATES=0
Other option is to disable ASPM in the USB controller using the setpci command mentioned by iEvgeny. You'll need to run it every boot though.
Edit /etc/default/rpi-eeprom-update and add ENABLE_VL805_UPDATES=0
Code: Select all
sudo apt install pciutils
sudo setpci -s 01:00.0 0xd4.B=0x40
Hi,jdb wrote: ↑Mon Dec 09, 2019 9:12 pmFor people experiencing webcam issues, what happens if you use the 0137ab firmware and run the following commands?
This disables PCIe link power management on the VLI chip.Code: Select all
sudo apt install pciutils sudo setpci -s 01:00.0 0xd4.B=0x40
Code: Select all
root@raspberrypi:~# rpi-eeprom-update
BOOTLOADER: up-to-date
CURRENT: Tue 10 Sep 10:41:50 UTC 2019 (1568112110)
LATEST: Tue 10 Sep 10:41:50 UTC 2019 (1568112110)
VL805: up-to-date
CURRENT: 000137ab
LATEST: 000137ab
root@raspberrypi:~# apt install pciutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
pciutils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 271 kB of archives.
After this operation, 1,222 kB of additional disk space will be used.
Get:1 http://mirrors.ircam.fr/pub/raspbian/raspbian buster/main armhf pciutils armhf 1:3.5.2-1 [271 kB]
Fetched 271 kB in 0s (603 kB/s)
Selecting previously unselected package pciutils.
(Reading database ... 46850 files and directories currently installed.)
Preparing to unpack .../pciutils_1%3a3.5.2-1_armhf.deb ...
Unpacking pciutils (1:3.5.2-1) ...
Setting up pciutils (1:3.5.2-1) ...
Processing triggers for man-db (2.8.5-2) ...
root@raspberrypi:~# setpci -s 01:00.0 0xd4.B=0x40
root@raspberrypi:~#
There is a problem :
Code: Select all
systemctl disable rpi-eeprom-update
From a basic Raspbian install, what commands to I need to run to replicate your ffmpeg video stream?Serveurperso wrote:Hi,jdb wrote: ↑Mon Dec 09, 2019 9:12 pmFor people experiencing webcam issues, what happens if you use the 0137ab firmware and run the following commands?
This disables PCIe link power management on the VLI chip.Code: Select all
sudo apt install pciutils sudo setpci -s 01:00.0 0xd4.B=0x40
I returned to stock updated image and the last VL805 eeprom to check your command :
Do not work for me sorry:( same problem : video capture start but the stream look empty. ffmpeg debug trace don't see the problem !
I remplaced all variable tocken with value inside my cmdline :
Code: Select all
"CMDDIFFUSION": [
"/usr/local/vigiclient/processdiffusion", (it's ffmpeg)
" -loglevel debug",
" -f v4l2",
" -i /dev/video0",
" -vf hqdn3d=0:0:50:50", (same problem without this filter)
" -pix_fmt yuv420p",
" -c:v libx264",
" -preset fast",
" -tune zerolatency",
" -profile:v baseline",
" -b:v 1500000",
" -maxrate 1500000",
" -bufsize 1500000",
" -g 25",
" -f rawvideo",
" tcp://127.0.0.1:8000"
],
Code: Select all
ffmpeg -loglevel debug -f v4l2 -i /dev/video0 -pix_fmt yuv420p -c:v libx264 -preset fast -tune zerolatency -profile:v baseline -b:v 1500000 -maxrate 1500000 -bufsize 1500000 -g 25 -f rawvideo tcp://127.0.0.1:8000
Code: Select all
ffmpeg -f v4l2 -input_format mjpeg -video_size 3840x2160 -framerate 30 -thread_queue_size 64 -i /dev/video0 -c:v copy -copyts -r 30 out.mov
I may have been in hibernation for the last 6 months so sorry if I missed this and revived this old thread, but are you saying you booted a Pi4 from USB? I thought that feature wasn't available yet?
It's not. They would need to be using an SD card for initial boot.KaraokeAmerica wrote: ↑Wed Feb 26, 2020 4:01 pmI may have been in hibernation for the last 6 months so sorry if I missed this and revived this old thread, but are you saying you booted a Pi4 from USB? I thought that feature wasn't available yet?
Do we have solution to this? the issue remain on latest stable firmware.jdb wrote: ↑Sat Sep 07, 2019 6:56 amWeird. Injecting current into the D+/D- lines has been known to stop the PMIC from starting up as it causes leakage into the 3.3V supply.
The only way that the firmware could be changing this behaviour is if Vbus isn't removed during device reset - worth investigating.
I am on the latest firmware as of now:jdb wrote: ↑Mon Dec 09, 2019 9:12 pmFor people experiencing webcam issues, what happens if you use the 0137ab firmware and run the following commands?
This disables PCIe link power management on the VLI chip.Code: Select all
sudo apt install pciutils sudo setpci -s 01:00.0 0xd4.B=0x40
Code: Select all
VL805: up-to-date
CURRENT: 000137ad
LATEST: 000137ad
Thank you. Perfectly clear and concise.jdb wrote: ↑Wed Jun 24, 2020 10:22 amThe difference is disabling powersaving completely, (0x40) or leaving L0s sleep state enabled (0x41). In theory, 0x40 should remove any performance impact from the latency added by low-power modes. 0137ad has a bug where 0x40 ends up having no effect and 0x41 does, but this is fixed in later versions.