Skip to content


Post on mythtvusers to get hdmi audio working

—————————————————————————————————
For HDMI cards run aplay -l and look for an output like this:

Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]

For this case, the key is card o device 3.

Setup for Myth:

Audio output device: ALSA:hw:0,3
Passthrough output device: ALSA:hw:0,3
Max Audio Channels: Stereo
Upmix: Passive
Enabale AC3 to SPDIF passthrough checked
Enable DTS to SPDIF passthrough checked
Aggressive sound card buffering off
Use internal volume controls off

For mythmusic:
Utilities/Setup -> Setup -> Media Settings -> Music Settings ->
General Settings
and then set Audio device to ALSA:plughw:0,3

asound.conf may be deleted for myth or changed as below:

asound.conf:

pcm.!default {
type hw
card 0
device 3
}

Posted in Mythtv.


Getting audio to go over hdmi for mythtv

After using the alsa upgrade script I rebooted and started to work on getting audio going .

Before the upgrade I got the following.

root@m2box:/offline/files/alsa# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@m2box:/offline/files/alsa# aplay -L
default:CARD=NVidia
HDA NVidia, VT1708B Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
Discard all samples (playback) or generate zero samples (capture)
After the upgrade and reboot I got the following:

root@m2box:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708B Analog [VT1708B Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
root@m2box:~# aplay -L
default:CARD=NVidia
HDA NVidia, VT1708B Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, VT1708B Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
Discard all samples (playback) or generate zero samples (capture)

Posted in Linux, Mythtv.


upgrading alsa on ubuntu

After a bunch of digging trying to get audio over hdmi on my new motherboard working, I stumbled upon a script that was created for doing exactly what I need to do. If you go to http://ubuntuforums.org/showthread.php?t=962695&page=6 you will find very good info on this subject.  What i have done is download the script file.  Untared it and then ran it the following way.

 sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh -d
 sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh -c
 sudo ./AlsaUpgrade-1.0.x-rev-1.16.sh -i

Be patient each step can take some time.  After the upgrade reboot and then do an aplay -l to list all of your devices.  This is where it gets tricky.  Depending on your hardware you may have to do different things in mythtv to get audio going through hdmi.

Updated:  The day after I went through this process the script was updated.  I have updated the commands above.  Looks like this process worked on newer kernels but not older ones.  Intrepid it worked fine for me but hardy it did not.  The new script and version of alsa works perfect on hardy now.  New forum page is located at http://ubuntuforums.org/showthread.php?p=6589810#post6589810

Posted in Linux, Mythtv.


Windows Mobile Voice Commands Cheat Sheet

===== CALLING A CONTACT =====

Commands:

Call
Call at home
Call at work
Call on mobile
Call on cell
Call on cellular
Call at home two
Call at work two
Call at car
Call on radio
Call on pager
Call at assistant

To confirm that you want to make the call after Voice Command responds:

You can say “Yes” or “Correct” to call.
You can say “No” or “Incorrect” to try again.

If Voice Command asks you which location, you can:

Repeat one of the locations that Voice Command offers to call.
Say “No” to try again.

Related commands:

You can say “Call back” to call back the last call that you received.
You can say “Redial” to call back the last call that you made.

Examples:

Call Karen Archer on cell
Call Frank Miller
Call City Light and Power
Call Barbara Sparrow Home

Notes:

Voice Command indexes by the Contact’s first and last name if it exists. If you have a nickname entered, you can use that too. Voice Command will only let you call by company name if there is no first or last name.

You must prefix contact calling with the “call” keyword. If you use “dial”, it won’t work!

===== DIALING A NUMBER ======

Commands:

Dial <7-digit number>
Dial <10-digit number>
Dial <1+10-digits>
Dial

Examples:

Dial 555-0200
Dial 800-555-1212
Dial 1-800-555-1212
Dial 411

You must prefix digit dialing with the “dial” keyword. If you use “call”, it won’t work!

===== CHECKING CALENDAR =====

Commands:
What’s my next appointment?
What’s my schedule today?
What’s my schedule tomorrow?
Reminders On
Reminders Off
What’s my next meeting?
What are my appointments (today)?
What are my meetings (today)?
What’s my schedule (today)?
What’s my calendar (today)?
What’s my calendar for today?
What are my appointments tomorrow?
What are my meetings tomorrow?
What’s my calendar for tomorrow?
What’s my schedule tomorrow?

===== START MENU =====

Commands:

Start

Example:

Start Solitare
Start Messaging
Start Internet Explorer
Start Pictures and Video

Notes:

Voice Command will index any file that is in or inside of \windows\program files
You have to say the file name exactly as it is written. It may be helpful to rename shortcuts. Also, you can put links to web pages here and go straight to a saved web page this way.

===== MEDIA =====

Commands:

Play music (to have Voice Command guide you through selecting music)
Play media (variant of Play music)
Play anything (play all media)
Play artist
Play album
Play genre

Play
Play
Play
Play

Play
Pause
Stop
Next
Previous (track)
Shuffle on
Shuffle off
What song is this?
What track is this?

Examples:

Play The Beatles
Play The White Album
Play Rock
Play Everything

Notes:
You cannot play individual tracks using voice Voice Command will index the media based on the metadata. You can use a metadata editor to groom the fields.

===== Phone Stuff/Status =====

What time is it?
What date is it?
What is my battery level?
Turn flight mode on. (to turn on flight mode and disable all wireless radios including Bluetooth, WIFI and cellular phone)
Turn flight mode off.
What is my signal strength?
What calls have I missed?
What missed calls do I have? (to hear each missed call and reset the missed call count)
Set Ringer High
Set Ringer Loud (to set ringer volume to 5)
Set Ringer Medium
Set Ringer Middle (to set ringer volume to 3)
Set Ringer Low
Set Ringer Soft (to set ringer volume to 1)
Set Ringer Quiet
Set Ringer Off
Set Ringer Mute to set ringer volume to off
Set Ringer Vibrate to set ringer to vibrate

Posted in General.


Testing after updating subscribe2

I found out that the post notifications plugin is not supported in wordpress 2.7. I have remove it and enabled subscribe2 once again. Hopefully notifications are working again.

Posted in Blog Stuff.


Mythtv box in livingroom finally working

Well I have been fiddling with the myth box in the living room. It is all built and working great. Still have a few things to tweak. So after going back and forth, for some reason audio does not work the way I was trying to get it to work with the 3rd hdmi input on the tv. It worked the first time we hooked it up. So last night I just hooked it up via vga. Bam it worked great. I am going to order a new vga cable so I can get it working that way and run the cable in the wall. Then I will, as time permits, work on getting hdmi working again.

Posted in Mythtv.


fstab uuid

If you want to mount a drive using uuid just partition the drive and then run
vol_id -u /dev/sda1 (in karmic just do a ls -la /dev/disk/by-uuid)
sda1 is an example, you may have a different drive you are working on.
when you get the uuid you can create the entry in /etc/fstab.  You will need to reboot at least once after the drive has been partitioned.

Posted in Linux.


Cron job example of optimize_mythdb.pl

#!/bin/sh
# Optimize the database
OPT_MYTHDB=’/usr/share/doc/mythtv-docs-0.21/contrib/optimize_mythdb.pl’
LOG=’/var/log/mythtv/optimize_mythdb.log’
echo “Started ${OPT_MYTHDB} on `date`” >> ${LOG}
${OPT_MYTHDB} >> ${LOG}
echo “Finished ${OPT_MYTHDB} on `date`” >> ${LOG}

Posted in Mythtv.


USB-Serial Port adapter on linux

First type “lsusb”. You will see a list of output similar to this.

Bus 003 Device 001: ID 0000:0000
Bus 002 Device 007: ID 03f0:4f11 Hewlett-Packard
Bus 002 Device 006: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 004: ID 15d9:0a33

Next plug in the USB-Serial Port adapter to one of your USB ports. Wait for a couple of second, then type “dmesg”. You should see these message at the end of dmesg output.

usb 1-1: new full speed USB device using uhci_and address 2
usb 1-1: configuration #1 chosen from 1 choice

Now run “lsusb” again, and you shall see an additional line, like this.

Bus 003 Device 001: ID 0000:0000
Bus 002 Device 007: ID 03f0:4f11 Hewlett-Packard
Bus 001 Device 002: ID 4348:5523 — — — (notice the additional line!)
Bus 002 Device 006: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 004: ID 15d9:0a33

Now we know the vendor id and the product id of the USB-Serial Port converter, this will enable us to load the linux kernel module “usbserial” to activate the device, like this :

sudo modprobe usbserial vendor=0×4348 product=0×5523

Run “dmesg” again and you shall see lines similar like this :

usbserial_generic 1-1:1.0: generic converter detected
usb 1-1: generic converter now attached to ttyUSB0
usbcore: registered new interface driver usbserial_generic

As you can see, the new serial port device is mapped to /dev/ttyUSB0. You can instruct Ubuntu to load this module automatically by include the line : “usbserial vendor=0×4348 product=0×5523″ inside “/etc/modules” file.

When I plugged the usb adapter I bought into my hardy box it automatically configured the port for me.  I didn’t have to do anything to get it working.

Instructions found at http://blog.mypapit.net/2008/05/how-to-use-usb-serial-port-converter-in-ubuntu.html

Posted in Linux.


New cell phone service

Well everything worked out at the sprint store yesterday. I have the new Touch Pro. After sitting and waiting for a bit and then starting the activation process. I find that someone else was using my ssn in the sprint system. After talking to fraud prevention they corrected a typo on the other account and I was able to get the new phone activated and I was out the door. The phone is pretty nice. Still learning about it. It gets a bit warm when using it. Still a bit worried about battery on it but time will tell. I have already had problems with the new account. Notice I was some lady when I called from my cell phone. That tells me it was a reused number. Well I got a call this morning for that lady. Not good. Called sprint and find out it is a reused number. I have a new number now and they tell me it has never been used before. I will find out if that is true. Hopefully not calls for other people anytime soon. Now to clean up my contacts. About 175, can get that number down I am sure. Already tried calling Jen my brother and parents by saying call persons name and it calls, that is pretty cool. Now to figure out the battery usage and if it will be enough and if I want to get a bluetooth microphone. I am happy with it so far.

Posted in New toys.