Category Archives: Hardware

TBS5922SE linux drivers rebuild post kernel update

git clone https://github.com/tbsdtv/media_build.git
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media

cd media_build
make dir DIR=../media
make allyesconfig
make -j4
sudo make install

sudo reboot

Reset USB device

Find device path using dmesg

dmesg | grep Product:
[51961.208833] usb 1-6: Product: TBS5922S

sudo sh -c "echo 0 > /sys/bus/usb/devices/1-6/authorized"
sudo sh -c "echo 1 > /sys/bus/usb/devices/1-6/authorized"

Getting a second tuner running

Run mythtv-setup and set up new source/input connection and scan for channels using the new tuner

In Channel Editor:
Edit each channel so that XMLTV ID matches the Channel ID’s in freeview.xml

Find out what the sourceid is for the new tuner:

mysql -p -u mythtv mythconverg
enter password
mysql> select * from videosource;
my sourceid values are 1 and 2

Run mythfilldatabase --file --sourceid 2 --xmlfile freeview.xml --manual
existing channels should be found – accept all defaults

Edit script file getxmltv.sh to include this line:

mythfilldatabase --file --sourceid 2 --xmlfile tvguide.xml --only-update-guide