Archive for the ‘mythtv’ Category

HOWTO to restore mythtv database

May 12, 2011

Mythtv database got mangled. This is how I restored it from backup database:

root@hippo:/home/iso$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.10
Release:        10.10
Codename:       maverick
You have new mail in /var/mail/root
root@hippo:/home/iso$

root@hippo:/home/iso$ mythbackend –version
Please attach all output as a file in bug reports.
MythTV Version   : 26437
MythTV Branch    : branches/release-0-23-fixes
Network Protocol : 23056
Library API      : 0.23.1.201000710-1
QT Version       : 4.7.0
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
root@hippo:/home/iso$

root@hippo:~/.mythtv#
root@hippo:~/.mythtv# cat /root/.mythtv/config.xml

<!–
Set the hostname override below only if you want to use
something other than the machine’s real hostname for identifying settings
in the database. This is useful if your hostname changes often, as
otherwise you’ll need to reconfigure mythtv every time.

NO TWO HOSTS MAY USE THE SAME VALUE
–>
localhost
mythtv
mythtv
mythconverg
0

root@hippo:~/.mythtv# cat /root/.mythtv/backuprc
DBBackupDirectory=/home/root/mytti
BUsername=mythtv
DBPassword=mythtv
root@hippo:~/.mythtv#

root@hippo:/home/iso$  /usr/share/mythtv/mythconverg_restore.pl –version
MythTV Database Restore Script
mythconverg_restore.pl
version: 1.0.13
root@hippo:/home/iso$

Note usage of these options:

–drop_database

If specified, and if the database already exists, the script will attempt
to drop the database. This argument may only be used when the
–create_database argument is also specified (see below).

–create_database

If specified, and if the database does not exist or the –drop_database
argument is specified, the script will attempt to create the initial
database. Note that database creation requires a properly configured MySQL
user and permissions.  See, also, the MythTV HOWTO (
http://www.mythtv.org/docs/ ) for details on “Setting up the initial
database.”

root@hippo:~/.mythtv# /usr/share/mythtv/mythconverg_restore.pl –verbose –drop_database –create_database  –username mythtv –filename  mythconverg-1254-20110510040002.sql.gz

Configuring environment:
–    username: root
–        HOME: /root
– MYTHCONFDIR: /root/.mythtv

Parsing configuration files:
– checking: /root/.mythtv/config.xml
parsing: /root/.mythtv/config.xml
– checking: /root/.mythtv/backuprc
parsing: /root/.mythtv/backuprc

Applying command-line arguments.

Checking configuration.

Database Information:
DBHostName: localhost
DBPort: 0
DBUserName: mythtv
DBPassword: XXX
DBName: mythconverg
DBSchemaVer:
DBBackupDirectory: /home/root/mytti
DBBackupFilename: mythconverg-1254-20110510040002.sql.gz
drop_database: yes
create_database: yes

Executables:
mysql_client: mysql
uncompress: gzip -d

Miscellaneous:
partial_restore: no
restore_xmltvids: no
change_hostname: no

Checking database.

Preparing initial database.
Dropping database.
Creating database.
Setting database character set.

Found 0 tables in the database.

Backup file is compressed.
– Uncompressing backup file with IO::Uncompress::Gunzip.

Attempting to use supplied password for mysql command-line client.
Any [client] or [mysql] password specified in the MySQL options file will
take precedence.

Executing command:
‘mysql’ –defaults-extra-file=’/tmp/rdrnijWlZM’ –host=’localhost’ –user=’mythtv’ ‘mythconverg’

mysql exited with status: 0

Restored 3599 of 3599 lines.

Successfully restored backup.
root@hippo:~/.mythtv#

Streamzap remote settings for mythtv

January 9, 2011

UPDATE Jan 2011: See these links how to fix Ubuntu 10.10 (Maverick Meerkat) Duplicate Keypresses Issue

http://wiki.xbmc.org/index.php?title=Streamzap_PC_Remote#Xinput:_Preventing_Streamzap_from_becoming_a_keyboard

http://wiki.xbmc.org/index.php?title=Streamzap_PC_Remote#Bugs_and_Workarounds

http://wilsonet.com/?page_id=95
end update.

Streamzap remote settings on Mythbuntu. Note I programmed four colour keys at the bottom of the remote too.

mythtv@osmo:~/.lirc$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
mythtv@osmo:~/.lirc$ mythfrontend –version
xprop: unable to open display ”
Please include all output in bug reports.
MythTV Version : 24158
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 56
Library API : 0.23.20100314-1
QT Version : 4.6.2
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@osmo:~/.lirc$

mythtv@osmo:~/.lirc$ cat mythtv
# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox, John Baab
# Created for use with Mythbuntu
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 0
config = 0
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 1
config = 1
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 2
config = 2
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 3
config = 3
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 4
config = 4
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 5
config = 5
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 6
config = 6
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 7
config = 7
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 8
config = 8
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = 9
config = 9
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = MUTE
config = |
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = CH_UP
config = Up
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = VOL_UP
config = ]
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = CH_DOWN
config = Down
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = VOL_DOWN
config = [
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = UP
config = Up
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = LEFT
config = Left
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = OK
config = Return
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = RIGHT
config = Right
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = DOWN
config = Down
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = MENU
config = M
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = EXIT
config = Escape
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = PLAY
config = P
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = PAUSE
config = P
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = STOP
config = Escape
repeat = 0
delay = 0
end

begin
remote = Streamzap_PC_Remote
prog = mythtv
button = RECORD
config = R
repeat = 0
delay = 0
end

# Info
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = GREEN
repeat = 2
config = I
end

# Seek to previous commercial cut point
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = YELLOW
repeat = 2
config = Q
end

# Seek to next commercial cut point
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = BLUE
repeat = 2
config = Z
end

# Toggle close caption
begin
remote = Streamzap_PC_Remote
prog = mythtv
button = RED
repeat = 2
config = T
end

mythtv@osmo:~/.lirc$

NVIDIA FX5200 driver settings from Maverick 10.10 backend install

December 21, 2010

Some notes just for future Ubuntu upgrades:

mythtv@hippo:/proc/driver/nvidia$ l
total 0
dr-xr-xr-x 4 root root 0 2010-12-21 12:06 ..
dr-xr-xr-x 6 root root 0 2010-12-21 12:06 .
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 warnings
-r–r–r– 1 root root 0 2010-12-21 12:06 version
-r–r–r– 1 root root 0 2010-12-21 12:06 registry
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 patches
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 cards
dr-xr-xr-x 2 root root 0 2010-12-21 12:06 agp

mythtv@hippo:/proc/driver/nvidia$ cat version
NVRM version: NVIDIA UNIX x86 Kernel Module 173.14.28 Wed Sep 29 09:47:25 PDT 2010
GCC version: gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

mythtv@hippo:/proc/driver/nvidia$ cat cards/0
Model: GeForce FX 5200
IRQ: 10
Video BIOS: 04.34.20.18.07
Card Type: AGP
DMA Size: 32 bits
DMA Mask: 0xffffffff
Bus Location: 01.00.0
mythtv@hippo:/proc/driver/nvidia$

mythtv@hippo:/etc/apt/sources.list.d$ uname -a
Linux hippo 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux

mythtv@hippo:/etc/apt/sources.list.d$ ls -ls /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko

7692 -rw-r–r– 1 root root 7875104 2010-12-20 18:29 /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko

mythtv@hippo:/etc/apt/sources.list.d$ modinfo /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko
filename: /var/lib/dkms/nvidia-173/173.14.28/2.6.35-24-generic/i686/module/nvidia-173.ko
alias: char-major-195-*
supported: external
license: NVIDIA
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: agpgart
vermagic: 2.6.35-24-generic SMP mod_unload modversions 686
parm: NVreg_EnableVia4x:int
parm: NVreg_EnableALiAGP:int
parm: NVreg_ReqAGPRate:int
parm: NVreg_EnableAGPSBA:int
parm: NVreg_EnableAGPFW:int
parm: NVreg_Mobile:int
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_RemapLimit:int
parm: NVreg_UpdateMemoryTypes:int
parm: NVreg_UseVBios:int
parm: NVreg_RMEdgeIntrCheck:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_MapRegistersEarly:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_NvAGP:int
mythtv@hippo:/etc/apt/sources.list.d$

mythtv@hippo:/etc/apt/sources.list.d$ modinfo /lib/modules/2.6.35-24-generic/kernel/drivers/video/nvidia.ko
filename: /lib/modules/2.6.35-24-generic/kernel/drivers/video/nvidia.ko
alias: char-major-195-*
supported: external
license: NVIDIA
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: agpgart
vermagic: 2.6.35-24-generic SMP mod_unload modversions 686
parm: NVreg_EnableVia4x:int
parm: NVreg_EnableALiAGP:int
parm: NVreg_ReqAGPRate:int
parm: NVreg_EnableAGPSBA:int
parm: NVreg_EnableAGPFW:int
parm: NVreg_Mobile:int
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_RemapLimit:int
parm: NVreg_UpdateMemoryTypes:int
parm: NVreg_UseVBios:int
parm: NVreg_RMEdgeIntrCheck:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_MapRegistersEarly:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_NvAGP:int
mythtv@hippo:/etc/apt/sources.list.d$

mythtv@hippo:/etc/apt/sources.list.d$ dpkg -l libvdp*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii libvdpau-dev 0.4-5ubuntu1 Video Decode and Presentation API for Unix (development files)
ii libvdpau-doc 0.4-5ubuntu1 Video Decode and Presentation API for Unix (documentation)
ii libvdpau1 0.4-5ubuntu1 Video Decode and Presentation API for Unix (libraries)
mythtv@hippo:/etc/apt/sources.list.d$ dpkg -l nvidia*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii nvidia-173 173.14.28-0ubuntu1 NVIDIA binary Xorg driver, kernel module and VDPAU library
un nvidia-173-dev (no description available)
un nvidia-173-modaliases (no description available)
un nvidia-185-libvdpau (no description available)
un nvidia-185-libvdpau-dev (no description available)
un nvidia-96-modaliases (no description available)
rc nvidia-common 0.2.23 Find obsolete NVIDIA drivers
rc nvidia-current 260.19.06-0ubuntu1 NVIDIA binary Xorg driver, kernel module and VDPAU library
un nvidia-current-dev (no description available)
un nvidia-current-modaliases (no description available)
un nvidia-glx-173 (no description available)
un nvidia-libvdpau (no description available)
un nvidia-libvdpau-dev (no description available)
un nvidia-libvdpau-ia32 (no description available)
un nvidia-libvdpau1 (no description available)
un nvidia-libvdpau1-ia32 (no description available)
ii nvidia-settings 260.19.29-0ubuntu1~xup Tool of configuring the NVIDIA graphics driver
un nvidia-vdpau-driver (no description available)
mythtv@hippo:/etc/apt/sources.list.d$ lsmod|grep nvidia
nvidia 7088432 24
agpgart 32011 2 nvidia,via_agp
mythtv@hippo:/etc/apt/sources.list.d$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
mythtv@hippo:/etc/apt/sources.list.d$ dpkg -l mythtv*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-=================================-==================================================================================
ii mythtv 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (client and server)
ii mythtv-backend 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (server)
ii mythtv-common 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (common data)
ii mythtv-database 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (database)
un mythtv-doc (no description available)
ii mythtv-frontend 0.23.1+fixes26437-0ubuntu1 A personal video recorder application (client)
ii mythtv-theme-arclight 1:0.23.0+fixes23872-0ubuntu1 The arclight MythTV Theme
un mythtv-theme-blootube (no description available)
ii mythtv-theme-blootube-osd 1:0.23.0+fixes23872-0ubuntu1 The blootube-osd MythTV Theme
un mythtv-theme-blootube-wide (no description available)
un mythtv-theme-blootubelite-wide (no description available)
ii mythtv-theme-blueosd 1:0.23.0+fixes23872-0ubuntu1 The blueosd MythTV Theme
un mythtv-theme-glass-wide (no description available)
ii mythtv-theme-graphite 1:0.23.0+fixes23872-0ubuntu1 The graphite MythTV Theme
un mythtv-theme-gray-osd (no description available)
un mythtv-theme-isthmus (no description available)
un mythtv-theme-iulius (no description available)
ii mythtv-theme-iulius-osd 1:0.23.0+fixes23872-0ubuntu1 The iulius-osd MythTV Theme
ii mythtv-theme-metallurgy 1:0.23.0+fixes23872-0ubuntu1 The metallurgy MythTV Theme
un mythtv-theme-minimalist-wide (no description available)
ii mythtv-theme-mono-osd 1:0.23.0+fixes23872-0ubuntu1 The mono-osd MythTV Theme
ii mythtv-theme-mythbuntu 1:0.23.0+fixes23872-0ubuntu1 The mythbuntu MythTV Theme
un mythtv-theme-mythcenter (no description available)
un mythtv-theme-mythcenter-wide (no description available)
un mythtv-theme-neon-wide (no description available)
un mythtv-theme-proejctgrayhem-wide (no description available)
un mythtv-theme-projectgrayhem (no description available)
ii mythtv-theme-projectgrayhem-osd 1:0.23.0+fixes23872-0ubuntu1 The projectgrayhem-osd MythTV Theme
un mythtv-theme-retro (no description available)
ii mythtv-theme-retro-osd 1:0.23.0+fixes23872-0ubuntu1 The retro-osd MythTV Theme
un mythtv-theme-titivillus (no description available)
ii mythtv-theme-titivillus-osd 1:0.23.0+fixes23872-0ubuntu1 The titivillus-osd MythTV Theme
ii mythtv-themes 1:0.23.0+fixes23872-0ubuntu1 Themes for MythTV
ii mythtv-transcode-utils 0.23.1+fixes26437-0ubuntu1 Utilities used for transcoding MythTV tasks
mythtv@hippo:/etc/apt/sources.list.d$

How to get mythfrontend from maverick PPA to work on LinuxMint Isadora with Maverick 10.10 backend

December 21, 2010

Sometimes I use underpowered laptop running Mint Isadora (fluxbox WM) to watch mythtv recordings. My backend runs Maverick 10.10 Ubuntu.

Mint Isadora’s code base is Ubuntu 10.04 (Lucid).

Frontend on laptop:

pompeli sources.list.d # lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 9 Isadora
Release: 9
Codename: isadora
pompeli sources.list.d # pwd
/etc/apt/sources.list.d
pompeli sources.list.d #

Add this:

pompeli sources.list.d # cat mythbuntu-0.23.1-isadora.list
deb http://ppa.launchpad.net/mythbuntu/0.23.1/ubuntu lucid main
pompeli sources.list.d #

Usual stuff:

pompeli ~ # apt-get update
Fetched 79.7kB in 4s (17.9kB/s)
Reading package lists… Done

First remove old non-compatible version:

pompeli ~ # apt-get remove mythtv-frontend
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
pwgen mythtv-common libmyth-0.23-0 wmctrl libvdpau1 ttf-droid
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
mythtv-frontend
0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded.
After this operation, 12.9MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database … 128305 files and directories currently installed.)
Removing mythtv-frontend …
Processing triggers for menu …
Processing triggers for desktop-file-utils …

Install new:

pompeli ~ # apt-get install mythtv-frontend
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libmyth-0.23-0
Suggested packages:
mythtv-backend mythmusic mythweather mythgallery mythvideo mythgame
The following NEW packages will be installed:
mythtv-frontend
The following packages will be upgraded:
libmyth-0.23-0
1 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 14.7MB of archives.
After this operation, 12.9MB of additional disk space will be used.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
libmyth-0.23-0 mythtv-frontend
Authentication warning overridden.
Get:1 http://ppa.launchpad.net/mythbuntu/0.23.1/ubuntu/ lucid/main libmyth-0.23-0 0.23.1+fixes26863-0ubuntu0+mythbuntu2 [10.7MB]
Get:2 http://ppa.launchpad.net/mythbuntu/0.23.1/ubuntu/ lucid/main mythtv-frontend 0.23.1+fixes26863-0ubuntu0+mythbuntu2 [3,964kB]
Fetched 14.7MB in 1min 30s (163kB/s)
Preconfiguring packages …
(Reading database … 128250 files and directories currently installed.)
Preparing to replace libmyth-0.23-0 0.23.0++fixes25362-0ubuntu0++mythbuntu2 (using …/libmyth-0.23-0_0.23.1+fixes26863-0ubuntu0+mythbuntu2_i386.deb) …
Unpacking replacement libmyth-0.23-0 …
Selecting previously deselected package mythtv-frontend.
Unpacking mythtv-frontend (from …/mythtv-frontend_0.23.1+fixes26863-0ubuntu0+mythbuntu2_i386.deb) …
Processing triggers for menu …
Processing triggers for desktop-file-utils …
Setting up libmyth-0.23-0 (0.23.1+fixes26863-0ubuntu0+mythbuntu2) …

Setting up mythtv-frontend (0.23.1+fixes26863-0ubuntu0+mythbuntu2) …

Processing triggers for libc-bin …
ldconfig deferred processing now taking place
Processing triggers for menu …

Check version:

mythtv@pompeli:~$ mythfrontend –version
xprop: unable to open display ”
Please attach all output as a file in bug reports.
MythTV Version : 26863
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.6.2
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@pompeli:~$

Matches backend version:

mythtv@hippo:~$ mythfrontend –version
xprop: unable to open display ”
Please attach all output as a file in bug reports.
MythTV Version : 26437
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.7.0
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@hippo:~$

mythtv@hippo:~$ /usr/bin/mythbackend –version
Please attach all output as a file in bug reports.
MythTV Version : 26437
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.7.0
Options compiled in:
linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
mythtv@hippo:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick
mythtv@hippo:~$

mythfrontend.real: error while loading shared libraries: libvdpau.so.1

December 21, 2010

UPDATE Dec 2010: I ran into this same problem when updating from 10.4 Lucid to 10.10 Maverick.
The trick is just to reinstall libvdpau1 using synaptic. End update.

There are many users posting reports about this problem and I could not find any real resolutions… Here is a good example:

http://ubuntu-ky.ubuntuforums.org/showthread.php?p=8048972

I think this is what fixed it on my system (I did not take real notes about this):

Uninstall libvdpau

Uninstall nvidia drivers (if any)

Reinstall nvidia drivers

Reinstall libvdpau.

My working pkgs (Ubuntu 10.4 Lucid mythtv 0.23):

root@hippo:~# dpkg -l libvdpau*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii libvdpau-doc 0.3-2build1 Video Decode and Presentation API for Unix (documentation)

ii libvdpau1 0.3-2build1 Video Decode and Presentation API for Unix (libraries)

root@hippo:~# dpkg -l nvdia*

No packages found matching nvdia*.

root@hippo:~# dpkg -l nvidia*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii nvidia-173 173.14.22-0ubuntu11 NVIDIA binary Xorg driver, kernel module and VDPAU library

rc nvidia-current 195.36.15-0ubuntu3 NVIDIA binary Xorg driver, kernel module and VDPAU library

ii nvidia-current-modaliases 195.36.15-0ubuntu3 Modaliases for the NVIDIA binary X.Org driver

un nvidia-libvdpau (no description available)

un nvidia-libvdpau-ia32 (no description available)

un nvidia-libvdpau1 (no description available)

ii nvidia-settings 195.36.08-0ubuntu2 Tool of configuring the NVIDIA graphics driver

un nvidia-vdpau-driver (no description available)

root@hippo:~# dpkg -l libvdpau*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii libvdpau-doc 0.3-2build1 Video Decode and Presentation API for Unix (documentation)

ii libvdpau1 0.3-2build1 Video Decode and Presentation API for Unix (libraries)

root@hippo:~# dpkg -l mythtv*

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Description

ii mythtv 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (client and server)

ii mythtv-backend 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (server)

ii mythtv-common 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (common data)

ii mythtv-database 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (database)

un mythtv-doc (no description available)

ii mythtv-frontend 0.23.0+fixes24158-0ubuntu2 A personal video recorder application (client)

ii mythtv-theme-arclight 1:0.23.0+fixes23872-0ubuntu1 The arclight MythTV Theme

un mythtv-theme-blootube (no description available)

ii mythtv-theme-blootube-osd 1:0.23.0+fixes23872-0ubuntu1 The blootube-osd MythTV Theme

un mythtv-theme-blootube-wide (no description available)

un mythtv-theme-blootubelite-wide (no description available)

ii mythtv-theme-blueosd 1:0.23.0+fixes23872-0ubuntu1 The blueosd MythTV Theme

un mythtv-theme-glass-wide (no description available)

ii mythtv-theme-graphite 1:0.23.0+fixes23872-0ubuntu1 The graphite MythTV Theme

un mythtv-theme-gray-osd (no description available)

un mythtv-theme-isthmus (no description available)

un mythtv-theme-iulius (no description available)

ii mythtv-theme-iulius-osd 1:0.23.0+fixes23872-0ubuntu1 The iulius-osd MythTV Theme

ii mythtv-theme-metallurgy 1:0.23.0+fixes23872-0ubuntu1 The metallurgy MythTV Theme

un mythtv-theme-minimalist-wide (no description available)

ii mythtv-theme-mono-osd 1:0.23.0+fixes23872-0ubuntu1 The mono-osd MythTV Theme

ii mythtv-theme-mythbuntu 1:0.23.0+fixes23872-0ubuntu1 The mythbuntu MythTV Theme

un mythtv-theme-mythcenter (no description available)

un mythtv-theme-mythcenter-wide (no description available)

un mythtv-theme-neon-wide (no description available)

un mythtv-theme-proejctgrayhem-wide (no description available)

un mythtv-theme-projectgrayhem (no description available)

ii mythtv-theme-projectgrayhem-osd 1:0.23.0+fixes23872-0ubuntu1 The projectgrayhem-osd MythTV Theme

un mythtv-theme-retro (no description available)

ii mythtv-theme-retro-osd 1:0.23.0+fixes23872-0ubuntu1 The retro-osd MythTV Theme

un mythtv-theme-titivillus (no description available)

ii mythtv-theme-titivillus-osd 1:0.23.0+fixes23872-0ubuntu1 The titivillus-osd MythTV Theme

ii mythtv-themes 1:0.23.0+fixes23872-0ubuntu1 Themes for MythTV

ii mythtv-transcode-utils 0.23.0+fixes24158-0ubuntu2 Utilities used for transcoding MythTV tasks

root@hippo:~#

ACPI/APIC/IRQ/Transmit timed out blues with Ubuntu 8.04

January 16, 2009

My mythbackend kept rebooting randomly (about after 5-15 mins since starting to view recording) when viewing recordings while it was recording a new show.

Interestingly enough it did not reboot while not recording a show and when I was watching the show…

Another nasty symptom was classic NETDEV WATCHDOG: eth0: transmit timed out.
System does not crash, IP stack just goes to lala land.

I’m have Abit VT-7 motherboard (VIA PT880 / VT8237 chipset) , 478 socket P4 HT 3.0Ghz CPU and on-board eth (VIA).

root@hippo:~# lspci |grep Eth
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
root@hippo:~#

VIA eth module:

root@hippo:~# modinfo via_rhine
filename: /lib/modules/2.6.24-21-generic/kernel/drivers/net/via-rhine.ko
license: GPL
description: VIA Rhine PCI Fast Ethernet driver
author: Donald Becker
srcversion: 8158094F4B64FDC36073DA7
alias: pci:v00001106d00003053sv*sd*bc*sc*i*
alias: pci:v00001106d00003106sv*sd*bc*sc*i*
alias: pci:v00001106d00003065sv*sd*bc*sc*i*
alias: pci:v00001106d00003043sv*sd*bc*sc*i*
depends: mii
vermagic: 2.6.24-21-generic SMP mod_unload 586
parm: max_interrupt_work:VIA Rhine maximum events handled per interrupt (int)
parm: debug:VIA Rhine debug level (0-7) (int)
parm: rx_copybreak:VIA Rhine copy breakpoint for copy-only-tiny-frames (int)
parm: avoid_D3:Avoid power state D3 (work-around for broken BIOSes) (bool)

Kernel and ubuntu info:

root@hippo:~# uname -a
Linux hippo 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux
root@hippo:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"
root@hippo:~#

I tried several boot options from these links:

https://help.ubuntu.com/community/BootOptions#Common%20Boot%20Options

https://help.ubuntu.com/community/DebuggingIRQProblems

https://help.ubuntu.com/community/ReschedulingInterrupts

Finally it seems that noapic kernel option works (excerpt from /boot/grub/menu.lst):

title Ubuntu 8.04.1, kernel 2.6.24-21-generic (noapic)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=2479d97c-58e1-4958-8340-3302beab8202 noapic ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic

Uptime is now 3 days:

root@hippo:~# uptime
12:43:02 up 3 days, 14:26, 7 users, load average: 0.02, 0.02, 0.00
root@hippo:~#

Interestingly many IRQs are shared now (that was not the case before), but still backend is stable.

root@hippo:~# cat /proc/interrupts
CPU0 CPU1
0: 161 0 XT-PIC-XT timer
1: 1337 0 XT-PIC-XT i8042
2: 0 0 XT-PIC-XT cascade
8: 3 0 XT-PIC-XT rtc
9: 0 0 XT-PIC-XT acpi
10: 40262825 0 XT-PIC-XT ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, eth1, ivtv1, VIA8237
11: 8216376 0 XT-PIC-XT sata_via, uhci_hcd:usb4, uhci_hcd:usb5, ivtv0
12: 112 0 XT-PIC-XT i8042
14: 1211069 0 XT-PIC-XT libata
15: 0 0 XT-PIC-XT libata
NMI: 0 0 Non-maskable interrupts
LOC: 40120197 43631526 Local timer interrupts
RES: 240304 951646 Rescheduling interrupts
CAL: 179 428 function call interrupts
TLB: 41068 48883 TLB shootdowns
TRM: 0 0 Thermal event interrupts
SPU: 0 0 Spurious interrupts
ERR: 0
MIS: 0

lspci:

root@hippo:~# lspci
00:00.0 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
00:0c.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
root@hippo:~#

I also blacklisted ipv6 (some blog suggested it):

root@hippo:/etc/modprobe.d# tail -4 blacklist

blacklist ipv6

blacklist pcspkr
root@hippo:/etc/modprobe.d#

I think there is not universal solution to this. You just need to try different command line options.
Google is your friend… Hope this post helps somebody.

How to fix a corrupted mythtv channel lineup

December 30, 2008

For some reason mythtv (mythweb) channel line up gets corrupted: same programs appear on multiple channels and channel ids are not correct.
Fix is pretty simple. As root run:

mythfilldatabase --do-channel-updates

See also mythfilldatabase in mythtv wiki.

Restoring mythtv database from backup

December 24, 2008

My mythtv database got corrupted and mysqlcheck repair and check commands

mysqlcheck --repair -u mythtv -pmythtv mythconverg
and
mysqlcheck --check -u mythtv -pmythtv mythconverg

were unable to fix it.

Ironically database got corrupted when my backend server crashed and rebooted while defragmenting xfs file system that stores my recordings..

Error message from log files:

root@hippo:/var/log# grep recorded syslog
syslog:Dec 23 20:12:42 hippo mysqld[3432]: 081223 20:12:42 [ERROR] /usr/sbin/mysqld: Incorrect key file for table './mythconverg/recorded'; try to repair it


root@hippo:/var/log/mythtv# grep Incorrect mythbackend.log
mythbackend.log:Incorrect key file for table './mythconverg/recorded'; try to repair it

Also myisamchk was unable to fix recorded.MYI file:

root@hippo: cd /var/lib/mysql/mythconverg
root@hippo:/var/lib/mysql/mythconverg# myisamchk -f -r recorded.MYI
myisamchk: Unknown error 126
myisamchk: error: 'recorded.MYI' doesn't have a correct index definition. You need to recreate it before you can do a repair

So mythtv backup file to rescue…

I’m using this perl script to backup my mythtv database daily.

My crontab:

root@hippo:/var/log/mythtv# crontab -l
# m h  dom mon dow   command
#
00 4 * * * nice -19 /usr/local/bin/mythconverg_backup.pl --rotate 3
#

Backup files are here:

root@hippo:~/mytti# ls -ls
total 165152
19284 -rw-r--r-- 1 root root 19721887 2008-12-21 04:00 mythconverg-20081221040003.sql.gz
18736 -rw-r--r-- 1 root root 19160852 2008-12-22 04:00 mythconverg-20081222040003.sql.gz
18180 -rw-r--r-- 1 root root 18589893 2008-12-23 04:00 mythconverg-20081223040002.sql.gz
root@hippo:~/mytti#

So restore full myth database per these instructions

Database itself must be created first:

root@hippo:~/mytti# cat /usr/share/mythtv/sql/mc.sql
CREATE DATABASE if not exists mythconverg;
GRANT ALL ON mythconverg.* TO mythtv@localhost IDENTIFIED BY "mythtv";
FLUSH PRIVILEGES;
GRANT CREATE TEMPORARY TABLES ON mythconverg.* TO mythtv@localhost IDENTIFIED BY "mythtv";
FLUSH PRIVILEGES;
ALTER DATABASE mythconverg DEFAULT CHARACTER SET latin1;

root@hippo:~/mytti# mysql -uroot -p < /usr/share/mythtv/sql/mc.sql
Enter password:

Next restore command:

root@hippo:~/mytti# mythconverg_restore.pl --filename mythconverg-20081223040002.sql.gz

ERROR:  Unable to do a full restore. The database contains data.

It fails since database contains data. So we drop database:

root@hippo:~/mytti# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 5.0.51a-3ubuntu5.4 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysq> DROP DATABASE IF EXISTS mythconverg;
Query OK, 96 rows affected (0.05 sec)

mysql> quit;
Bye

This fails since no database exists:

root@hippo:~/mytti# mythconverg_restore.pl --filename mythconverg-20081223040002.sql.gz

ERROR:  The database does not exist.

Need to recreate database:

root@hippo:~/mytti# mysql -uroot -p< /usr/share/mythtv/sql/mc.sql
Enter password:

Now restore works:

root@hippo:~/mytti# mythconverg_restore.pl --filename mythconverg-20081223040002.sql.gz

Successfully restored backup.
[ OK ]
root@hippo:~/mytti# /etc/init.d/mythtv-backend start
* Starting MythTV server: mythbackend                                                             [ OK ]
root@hippo:~/mytti#

And all of my recordings and recording schedule are backup again.

Mythfrontend on Compaq 1505US Presario with ATI Mobility Radeon 7500 laptop

January 8, 2008

I struggled with this for a while. Mythbuntu, Mythdora, Ubuntu, FC [6|7|8] all kept failing at some point: install failed or X did not loead or was unstable.

Then I finally installed knoppmyth R5F27 and everything worked out of the box. Including X and Streamzap remote.

lspci from my mythbackend

January 8, 2008

[root@hippo ~]# lspci
00:00.0 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. PT880 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
00:0c.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
[root@hippo ~]#