Wednesday, May 26, 2010

Database access denied when mythtv-backend connects to MySQL

Verified with mysql-admin. The password is not mythtv. Not sure who sets it during MythTV setup. Changing it to mythtv can successfully finish MythTV backend setup.

And because of this wrong password, MythWeb cannot connect to the database - need to change it in /etc/apache2/sites-enabled/mythweb.conf

Add: The MythTV's password is changed again. I have to change it to mythtv in/etc/mythtv/mysql.txt. Who did this change

Tuesday, May 25, 2010

Installing AF9035 DVB-T USB Tuner on Ubuntu 10.04 (lucid) 64bit

There is already a discussion on http://ubuntuforums.org/showthread.php?t=1364396 but it does not solve the problem.

I tried these steps:

1. Get the 64bit source code from http://www.linux-cam.com/downloads/9035.linux.PC.dvb-tV9.07.10.1.zip

2. Get the kernel source code. My running kernel is 2.6.32.22. So I get the source code of 2.6.32.13

3. Make a folder called AF903x_SRC\v4l\kernel-2.6.32

4. Add the following lines to Makefile:

ifneq (,$(findstring 2.6.32, $(CURRENT)))
@cp -f v4l/kernel-2.6.32/* ./
endif

5. Copy dvb-usb.h and dvb-pll.h from the kernel source code to AF903x_SRC folder

6. Run the following commands from console:

sudo make clean
sudo make
sudo make install


7. Plug-in USB tuner, then run this command: cat /var/log/messages. It shows the following messages:

May 25 21:34:30 HTPC kernel: [215971.529790] usb 2-1: new high speed USB device using ehci_hcd and address 18
May 25 21:34:30 HTPC kernel: [215971.686942] usb 2-1: configuration #1 chosen from 1 choice
May 25 21:34:30 HTPC kernel: [215971.692255] input: Afa Technologies Inc. AF9035A USB Device as /devices/pci0000:00/0000:00:06.1/usb2/2-1/2-1:1.1/input/input25
May 25 21:34:30 HTPC kernel: [215971.692644] generic-usb 0003:15A4:1001.0016: input,hidraw0: USB HID v1.01 Keyboard [Afa Technologies Inc. AF9035A USB Device] on usb-0000:00:06.1-1/input1
May 25 21:34:31 HTPC kernel: [215971.963099] AF903X: af903x_module_init
May 25 21:34:31 HTPC kernel: [215971.963181] DRIVER_RELEASE_VERSION : v9.07.10.1
May 25 21:34:31 HTPC kernel: [215971.963189] FW_RELEASE_VERSION : v8_8_63_0
May 25 21:34:31 HTPC kernel: [215971.963196] API_RELEASE_VERSION : 200.20090402.0
May 25 21:34:31 HTPC kernel: [215972.472189] dvb-usb: found a 'ITEtech USB2.0 DVB-T Recevier' in warm state.
May 25 21:34:31 HTPC kernel: [215972.545942] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
May 25 21:34:31 HTPC kernel: [215972.546762] DVB: registering new adapter (ITEtech USB2.0 DVB-T Recevier)
May 25 21:34:31 HTPC kernel: [215972.547603] DVB: registering adapter 0 frontend 0 (AF903X USB DVB-T)...
May 25 21:34:31 HTPC kernel: [215972.559440] dvb-usb: ITEtech USB2.0 DVB-T Recevier successfully initialized and connected.
May 25 21:34:31 HTPC kernel: [215972.559570] usbcore: registered new interface driver dvb_usb_af903x

Verify the tuner with http://parker1.co.uk/mythtv_dvb.php and get the perfect ABC HDTV. But I am surprised that it's 1280 x 720 - not full HD.

Note: Not sure if disabling usbhid is required. I did that as mentioned in the discussion but did not notice any change before I successfully installed the driver.

Sunday, May 23, 2010

Start Blogging...

Nothing to say today. It's late