Tag Archives: ubuntu

Vodafone K3565 Ubuntu error

I tried to get a Vodafone K3565, which is Huawei hardware. I got the
below errors while trying to make it work with Ubuntu 11.10:

Feb 13 20:16:20 HP-Laptop modem-manager[891]: <info> (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:12.2/usb1/1-1 claimed port ttyUSB2
Feb 13 20:16:28 HP-Laptop modem-manager[891]: <info> (ttyUSB1) closing serial port...
Feb 13 20:16:28 HP-Laptop modem-manager[891]: <info> (ttyUSB1) serial port closed
Feb 13 20:16:28 HP-Laptop modem-manager[891]: <info> (ttyUSB1) opening serial port...
Feb 13 20:16:31 HP-Laptop modem-manager[891]: <info> (ttyUSB1) closing serial port...
Feb 13 20:16:31 HP-Laptop modem-manager[891]: <info> (ttyUSB1) serial port closed
Feb 13 20:16:31 HP-Laptop modem-manager[891]: <info> (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:12.2/usb1/1-1 claimed port ttyUSB1
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <warn> (ttyUSB0): failed to look up interface index
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <info> WWAN now disabled by management service
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): new GSM/UMTS device (driver: 'option1' ifindex: 0)
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/2
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): now managed
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): deactivating device (reason 'managed') [2]
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: nm_system_iface_flush_routes: assertion `ifindex > 0' failed
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: nm_system_iface_flush_addresses: assertion `ifindex > 0' failed
Feb 13 20:16:31 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Feb 13 20:16:37 HP-Laptop modem-manager[891]: <info> (ttyUSB0) opening serial port...
Feb 13 20:16:37 HP-Laptop modem-manager[891]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (disabled -> enabling)
Feb 13 20:16:37 HP-Laptop modem-manager[891]: <info> (ttyUSB2) opening serial port...
Feb 13 20:16:37 HP-Laptop modem-manager[891]: Invalid error code: 500
Feb 13 20:16:37 HP-Laptop modem-manager[891]: Invalid error code: 303
Feb 13 20:16:39 HP-Laptop modem-manager[891]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabling -> enabled)
Feb 13 20:16:39 HP-Laptop NetworkManager[899]: <info> WWAN now enabled by management service
Feb 13 20:16:39 HP-Laptop modem-manager[891]: <info> Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabled -> searching)
Feb 13 20:16:41 HP-Laptop NetworkManager[899]: <info> Activation (ttyUSB0) starting connection 'Vodafone'
Feb 13 20:16:41 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Feb 13 20:16:41 HP-Laptop NetworkManager[899]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 13 20:16:41 HP-Laptop NetworkManager[899]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Feb 13 20:16:41 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): device state change: prepare -> need-auth (reason 'none') [40 60 0]
Feb 13 20:16:41 HP-Laptop NetworkManager[899]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Feb 13 20:16:45 HP-Laptop NetworkManager[899]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 13 20:16:45 HP-Laptop NetworkManager[899]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Feb 13 20:16:45 HP-Laptop NetworkManager[899]: <info> (ttyUSB0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Feb 13 20:16:45 HP-Laptop NetworkManager[899]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.

But
no matter how much I tried I could not get it running. After a while I
found out that this dongle is SIMlocked and I wanted to use it with a
non Vodafone SIM. To unlock it you need to install minicom (apt-get
install minicom) and configure it to use ttyUSB2 by running it “minicom
-s”. Then you can run minicom and type in AT^CARDLOCK? after which you
should get something like ^CARDLOCK: 2,10,0 now all you need to do is
type in the IMEI from your stick (printed on it) into this homepage
and save the code you get there. With this code you can then run
minicom again and do AT^CARDLOCK=”YOURCODEHERE” replacing the text with
your actual unlock code. You should get an OK from minicom. After that
the Vodafone dongle should work perfectly.

Build your own MythTV 0.25 packages for Ubuntu Maverick

All you need to do is get yourselft a PPA account and go to the following link:

https://launchpad.net/~mythbuntu/+archive/0.25/+copy-packages

There copy the most current version to your PPA and select Maverick as destination. Now wait for the build to be finished.

With some luck you will find your binaries in your personal PPA. Mine can be found here:

https://launchpad.net/~managementboy/+archive/ppa/+packages

Restoring partial sections of your MythTV database

I sometimes get myself into real trouble by “optimizing” the fields in my MythTV database. Today I managed to overwrite all my descriptions! My backup was two days old, so I had to figure out how to get as much data back as possible. Well here is how to do it:

Do a backup of your broken database just in case!

/usr/share/mythtv/mythconverg_backup.pl

Turn of mythbackend (on Ubuntu)

sudo service mythtv-backend stop

Make a copy of your backup to a directory you want to work in.

cp /var/lib/mythtv/recordings4/mythconverg-1264-20110119213749.sql.gz /tmp/

Then unzip the backup.

gunzip mythconverg-1264-20110119213749.sql.gz

Now extract only those parts of the database you will need. In my case I needed all fields in the “recorded” table of the database.

cat mythconverg-1264-20110119213749.sql |grep "INSERT INTO \`recorded\`" &gt; out

Now delete all the old entries in the database up to the date/time of your backup.

mysql --default_character_set utf8 -umythtv -p mythconverg -e "DELETE FROM mythconverg.recorded WHERE recorded.starttime &lt; '2011-01-19 21:37:49'"

Lastly import all the old fields to the database.

mysql --default_character_set utf8 -umythtv  -p mythconverg &lt; out

Update for Willi theme to include key bindings

Update: New version available!


Two more screens got some love today. The key bindings setup now looks good and the screen size settings, too. Get the new theme version 1.6 here. Special thanks to Chris, who made me aware that the compression I was using was not lzma but lzma2. To uncompress use "tar xfvJ 2010.11.20-Willi.tar.lzma2" within your themes directory ("/usr/share/mythtv/themes" in Ubuntu and derivatives).