This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Loading MythTV on KDE Neon 5.12

Tags: None
(comma "," separated)
milesnorth
Registered Member
Posts
3
Karma
0

Loading MythTV on KDE Neon 5.12

Sun Feb 18, 2018 9:42 pm
Running KDE Neon on HTPC since June'ish 2016 with a semi-functional KODI/tvheadend for on-the-air TV. Just did a fresh load of KDE Neon 5.12.1 yesterday and thought I'd try MythTV. The MythTV install worked but was a bit difficult, so I'm trying to recall the load history. On the Alaskana Linux experience scale I'm more Cheechako than Sourdough, so would appreciate suggestions to improve mistakes in memory, or typos, or to improve the process to make this install easier next time.

Thank, Kurt

Advice seems to be to not to use Wayland yet, so installed Nvidia drivers.
Code: Select all
$ sudo apt-get update
$ sudo ubuntu-drivers devices
$ sudo apt-get install nvidia-384
## problems - "Unable to fetch some archives" error
$ sudo apt-get update
$ sudo apt-get install --fix-missing
$ sudo apt autoremove
## try again
$ sudo apt-get install nvidia-384

Ran the Nvidia config to create xorg.conf. Since this HTPC uses a 1080p TV the new drivers send all the fonts to a very very small size. Adding the "dpi" option to xorg.conf fixes this problem. Used "xrandr --dpi 96" in terminal to temporarily make the GUI readable again.

## Where to add "dpi" option in xorg.conf to stop small fonts
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
Option "DPI" "96x96"
Code: Select all
$ sudo nvidia-xconfig
$ cd /etc/X11
$ sudo cp xorg.conf xorg.conf.bck
$ sudo nano xorg.conf
$ sudo reboot

Download firmware for Hauppauge WinTV-HVR-2200 capture card, install, restart, and look for "Phiips Semiconductors SAA7164" to show up in pci list.
Code: Select all
$ cd ~/Downloads
$ sudo cp NXP7164-2010-03-10.1.fw /lib/firmware
$ sudo reboot
$ lspci | grep -i Philips

Check current Ubuntu version of MythTV (.28), add repository for version .29, and install MythTV. Selected "No" for run MythTV on other computers to keep things simpler.
Code: Select all
$ apt-cache policy mythtv
$ sudo add-apt-repository ppa:mythbuntu/0.29
$ sudo apt-get update
$ apt-cache policy mythtv
$ sudo apt-get install mythtv

Ran mythtv-setup and error message said "sudo" required to update groups. Restarted session.
Code: Select all
$ sudo mythtv-setup
$ kill -9 -1

MythTV and current user groups didn't seem to update correctly, so checked groups and memberships. Note "video" is required member of mythtv group for tuner card to work.
Code: Select all
$ getent group
$ groups
$ groups mythtv

Didn't bother to check who should be member of which group, so added both.
Code: Select all
$ sudo usermod -a -G mythtv theatre
$ sudo usermod -a -G theatre mythtv
$ kill -9 -1

Ran mythtv-setup but database password was wrong, so harvested password from mythtv config file. Updated password and exited without running mythbackend or mythdatabasefill. Note: menus use <ESC> and save sequence.
Code: Select all
$ sudo less /etc/mythtv/config.xml
$ mythtv-setup

Moved mythtv storage files from root partition (40GB) to /home partition 400GB) where there is more room for recordings.
Code: Select all
$ cd ~
$ mkdir mythtv
$ sudo chmod -R 775 /home/theatre/mythtv
$ cd /var/lib/mythtv
$ ls
$ sudo mv */ /home/theatre/mythtv/
$ cd /home/theatre/mythtv
$ sudo chown -R mythtv:mythtv /home/theatre/mythtv
$ ls

Ran mtyhtv-setup to configure card, eit, scan channels, setup storage subdirectories, etc... Ran mythbackend and mythfrontend in seperate terminals to look for error messages. Terminal output seemed to look ok and live TV worked.

Terminal 1
Code: Select all
$ mythbackend
Terminal 2
Code: Select all
$ mythfrontend
## exit frontend GUI, then
$ killall mythbackend

Setup backend service to start at bootup, tested frontend again, and rebooted.
Code: Select all
$ update-rc.d mythtv-backend defaults
$ mythfrontend
$ sudo reboot

After reboot started frontend and found error messages like "all tuners are currently busy". Forced systemd to check status of service after 15 seconds. Allows tuner firmware time to load???

## add this as third line of [service] section in mythtv-backend.service.
ExecStartPre=/bin/sleep 15
Code: Select all
$ cd /lib/systemd/system
$ sudo nano mythtv-backend.service

After reboot created frontend link on taskbar. Set some config options for Nvidia card in frontend GUI.
Code: Select all
$ aplay -l | grep -i NVidia

Used trial & error to see which Nvidia audio option worked.

Audio - Setup>Audio>Audio Output = ALSA:hw:CARD=Nvidia,DEV 7
Video - Setup>Video>Playback>Current Video Playback Profile = VDPAU High Quality

Many more options such as commercial skip to examine.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]