User:Trogod/System0Up1810Needs

From MythTV Official Wiki
Jump to: navigation, search
System 0 Upgrade to Ubuntu 18.10 


NOTES

  • may want to install mythbuntu-lirc-generator, see LIRC


ALSA: sudo apt-get upgrade alsa

as of 24 January 2019

$ cat /proc/asound/version 
Advanced Linux Sound Architecture Driver Version k4.18.0-13-generic.
$ sudo apt-get upgrade alsa
The following packages were automatically installed and are no longer required:
  libncursesw5 libtinfo5
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  irqbalance
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I haven't removed libncursesw5 nor libtinfo5, yet. I'll do sudo apt autoremove, later.

LIRC: sudo apt install lirc

$ sudo apt install lirc
The following additional packages will be installed:
  libftdi1-2 liblirc-client0 liblirc0 libusb-0.1-4
Suggested packages:
  lirc-compat-remotes lirc-drv-irman lirc-doc lirc-x setserial ir-keytable
Recommended packages:
  gir1.2-vte
The following NEW packages will be installed:
  libftdi1-2 liblirc-client0 liblirc0 libusb-0.1-4 lirc
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.

LIRC configure

from my old home

$ cp -pr .lirc .lircrc ~/.

config files

  273  sudo cp -pr lircd.conf lircd.conf-orig
  274  sudo cp -pr lircmd.conf lircmd.conf-orig
$ sudo cp lircd.conf lircmd.conf /etc/lirc/.
$ sudo mv lircd.conf lircd.conf.d/previous.conf
$ sudo mv lircd.conf-orig lircd.conf
$ sudo service lircd restart

I wasn't seeing any output when I tried irw so I tried

$ mode2 -d /dev/lirc0
Using driver devinput on device /dev/lirc0
Cannot initiate device /dev/lirc0

maybe I need to remove the devinput conf file....

$ cd /etc/lirc/lircd.conf.d/
$ sudo mv devinput.lircd.conf devinput.lircd.conf-orig
$ sudo service lircd restart

I cleaned up my conf files and separated the two remotes

$ sudo mv previous.conf tivo.conf
$ sudo cp tivo.conf atlas4.conf
$ sudo vi tivo.conf 
$ sudo vi atlas4.conf 

I saw some advice at https://www.raspberrypi.org/forums/viewtopic.php?t=192891

$ sudo /usr/share/lirc/lirc-old2new 
WARNING: Cannot locate hardware.conf(!)
Using existing lircd configuration and enabling lircd.socket
/etc/lirc/lircmd.conf is unconfigured (skip lircmd)

sudo cp {old device}/etc/lirc/hardware.conf /etc/lirc/.

tried again

$ sudo /usr/share/lirc/lirc-old2new 
Traceback (most recent call last):
  File "/usr/share/lirc/lirc-old2new", line 247, in <module>
    main()
  File "/usr/share/lirc/lirc-old2new", line 233, in main
    hardware_conf = decode_hw(os.path.join(etcdir, 'hardware.conf'))
  File "/usr/share/lirc/lirc-old2new", line 212, in decode_hw
    parser.read_string(s, path)
  File "/usr/lib/python3.6/configparser.py", line 723, in read_string
    self.read_file(sfile, source)
  File "/usr/lib/python3.6/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib/python3.6/configparser.py", line 1092, in _read
    fpname, lineno)
configparser.DuplicateOptionError: While reading from '/etc/lirc/hardware.conf' [line  6]: option 'remote' in section 'main' already exists

$ sudo vi hardware.conf
$ diff ~/lircbak/hardware.conf hardware.conf 
4d3
< REMOTE="Windows Media Center Transceivers/Remotes (all)"
$ sudo /usr/share/lirc/lirc-old2new 
Traceback (most recent call last):
  File "/usr/share/lirc/lirc-old2new", line 247, in <module>
    main()
  File "/usr/share/lirc/lirc-old2new", line 234, in main
    options_conf = get_lircd_options(hardware_conf, etcdir)
  File "/usr/share/lirc/lirc-old2new", line 134, in get_lircd_options
    and hardware_cf['modules']:
KeyError: 'modules'

not sure why that failed, but I looked at the change it made to lirc_options and cleaned it up

$ sudo vi lirc_options.conf
$ diff lirc_options.conf.dist lirc_options.conf
11c11
< driver          = devinput
---
> driver          = default

$ sudo service lircd restart

$ mode2 -d /dev/lirc0
Using driver default on device /dev/lirc0
Cannot initiate device /dev/lirc0

I cleaned up a couple of files that didn't really change

$ sudo cp -pr irexec.lircrc.dist irexec.lircrc
$ sudo cp -pr lircmd.conf.dist lircmd.conf

Tried irw again, but this time I used modprobe, too

$ modprobe mceusb
$ sudo service lircd restart
$ mode2 -d /dev/lirc0
Using driver default on device /dev/lirc0
Cannot initiate device /dev/lirc0
$ irw
00000000a10c6807 00 DOWN Tivo_S2
00000000a10c2807 00 UP Tivo_S2

I'll reboot and test it again... After a reboot, running irw and pressing buttons on the remote shows the expected output. yay!

sudo apt-get install make gcc autoconf automake

needed for HDHOMERUN software

$ sudo apt-get install make gcc autoconf automake
$ sudo apt-get install -y pkg-config

HDHOMERUN software

see

$ cd ~/hdhomerun/
$ wget http://download.silicondust.com/hdhomerun/libhdhomerun_20180817.tgz
$ wget http://download.silicondust.com/hdhomerun/hdhomerun_config_gui_20180817.tgz
$ tar xzf hdhomerun_config_gui_20180817.tgz 
$ tar xzf libhdhomerun_20180817.tgz 

I tried

$ cd hdhomerun_config_gui/
$ ./configure
configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:
No package 'gtk+-2.0' found

so then

$ cd hdhomerun_config_gui/
$ make
$ sudo make install
(ignoring request to make install)
$ which hdhomerun_config 
/usr/bin/hdhomerun_config
$ ls -Ftl /usr/bin/hdhomerun_config 
-rwxr-xr-x 1 root root 75848 Aug 21 20:39 /usr/bin/hdhomerun_config*

not sure why my build didn't install, however, the date on the existing one looks like it is the current version.

sudo apt install vdpauinfo

see also https://askubuntu.com/questions/45996/how-can-i-know-if-nvidia-vdpau-is-working-for-mplayer-vlc-totem

$ vdpauinfo
display: :0.0   screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library  340.107  Thu May 24 21:44:57 PDT 2018

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12 
422     4096  4096  UYVY YUYV 

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                           0  8192  2048  2048
MPEG2_SIMPLE                    3  8192  2048  2048
MPEG2_MAIN                      3  8192  2048  2048
H264_BASELINE                  --- not supported ---
H264_MAIN                      41  8190  2032  2048
H264_HIGH                      41  8190  2032  2048
VC1_SIMPLE                      1  8190  2048  2048
VC1_MAIN                        2  8190  2048  2048
VC1_ADVANCED                    4  8190  2048  2048
MPEG4_PART2_SP                 --- not supported ---
MPEG4_PART2_ASP                --- not supported ---
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          8192  8192    y  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 
R10G10B10A2       8192  8192    y  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          8192  8192
R8G8B8A8          8192  8192
R10G10B10A2       8192  8192
B10G10R10A2       8192  8192
A8                8192  8192

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     y
INVERSE_TELECINE                 y
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y         1     4096
VIDEO_SURFACE_HEIGHT             y         1     4096
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y