Backport of proposed patch https://patchwork.linuxtv.org/patch/49409/
Setting the IR timeout on the Topseed mceusb receiver 1784:0011
causes strange behaviour. Disable use of MCE_CMD_SETIRTIMEOUT
on that device and use a software implementation instead.
Signed-off-by: Matthias Reichl <hias@horus.com>
See https://www.spinics.net/lists/linux-media/msg131804.htmlhttps://patchwork.linuxtv.org/patch/48681/https://patchwork.linuxtv.org/patch/48680/https://patchwork.linuxtv.org/patch/48782/
The current IR decoding is much too slow. Many IR protocols rely on
a trailing space for decoding (e.g. rc-6 needs to know when the bits
end). The trailing space is generated by the IR timeout, and if this
is longer than required, buttons can feel slow to respond.
The other issue is the keyup timer. IR has no concept of a keyup message,
this is implied by the absence of IR. So, minimising the timeout for
this makes buttons less "sticky"; the are released much quicker.
With these patches in place, using IR with the builtin decoders is much
improved and feels very snappy.
Signed-off-by: Matthias Reichl <hias@horus.com>
ConnMan writes stats and history files for each configured interface to
/storage/.cache/connman/*/{data,history}. These files remain open while
ConnMan is running, and prevent the system from halting or rebooting
when /storage is an NFS mount (because ConnMan brings down the interface
through which the NFS mount is accessed and then tries to update the
stats and/or history file for that interface, but the file descriptors
are no longer valid, so the system hangs).
The stats and history files are superfluous, especially since the means
of viewing them isn't included in LibreELEC (the stats tool is missing
because ConnMan is compiled with --disable-tools), so there's no harm in
not generating them on systems that don't mount /storage over NFS
either; in fact, it benefits LibreELEC installations where /storage is
mounted on a flash device by reducing unnecessary flash writes.
The init script currently touches a file at /dev/.storage_netboot if
/storage is a remote filesystem, so that scripts that run after the root
filesystem has been switched can behave differently depending on whether
/storage is mounted locally or remotely. Add similar functionality for
/flash by touching /dev/.flash_netboot if it is a remote filesystem.