mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
WeTek_Core/WeTek_Play: set video state to disabled on boot
right after boot, if a hardware decoded video is not yet played, asking /dev/amvideocap0 for a frame results in -EAGAIN after a short delay. hyperion is doing AMSTREAM_IOC_GET_VIDEO_DISABLE ioctl on /dev/amvideo to check if video is playing. if initial state is not set, hyperion gets confused, resulting in leds lagging until a hw decoded video is started. this allows hyperion's regular framegrabber and amlgrabber to co-exist nicely
This commit is contained in:
parent
49411fd61e
commit
ce7e57ef24
@ -48,6 +48,9 @@ echo 1 > /sys/class/graphics/fb1/blank
|
||||
# Disable framebuffer scaling
|
||||
echo 0 > /sys/class/graphics/fb0/free_scale
|
||||
|
||||
# set initial video state
|
||||
echo 1 > /sys/class/video/disable_video
|
||||
|
||||
# Set framebuffer geometry to match the resolution
|
||||
case "$hdmimode" in
|
||||
720*)
|
||||
|
@ -46,6 +46,9 @@ echo 0 > /sys/class/graphics/fb0/blank
|
||||
# Disable framebuffer scaling
|
||||
echo 0 > /sys/class/graphics/fb0/free_scale
|
||||
|
||||
# set initial video state
|
||||
echo 1 > /sys/class/video/disable_video
|
||||
|
||||
# Set framebuffer geometry to match the resolution
|
||||
case "$hdmimode" in
|
||||
720*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user