Roalt Dot Com
Welcome to Roalt Dot Com
Asus HDP-R1 media player Print
Gadgets
Sunday, 04 April 2010

Choosing a media player

I've just acquired the ASUS O!Play HDP-R1 media player for about 90 EUROs. Media players have become really cheap and there are a number of popular choices including the Western Digital WD TV Live, the Popcorn hour (C-200 or A-200), and the Xtreamer.

I didn't want an expensive one, just one to play my media files and one that could mount my network shares on my server. Further more, I have my Harmony 885 remote, so the remote should work with infrared so I could replace it (that knocked out the Popcorn C-200 that works on radio/frequency, except that it is too expensive for my need).

Valid options were the WD, the Asus, and the Xtreamer. I really wanted to play DVD media files that are stored as .iso and use the DVD menu functionality. Only the ASUS HDP-R1 supports this functionality which made my choice easy. The ASUS also has an ethernet connector (no wireless, therefore you need the Asus HDP-R3 one) and an e-SATA connector for a fast external hard-drive connection (next to the more commonly found USB connectors).

Connecting the ASUS O!Play HDP-R1 to your local (SAMBA) shares

It's quite simple to adjust the HDP-R1 to your needs because it runs linux. Of course, it's a scaled down version, based upon Venus linux, and you see this when you logon using telnet. Just use root as username name with no password.

The storage devices are mounted under /tmp/ramfs/volumes, and to add your own storage device, just create a mount point there and use mount:

# mkdir -p /tmp/ramfs/volumes/media
# mount -t cifs -o username=my_username,password='my_password' //my_server_ip_address/media /tmp/ramfs/volumes/media/

In this example, you have to replace my_username, my_password, and my_server_ip_address with the settings from your own server and network. And, of course, you have to replace media by the name of the share you use. Additional shares can be added just as easy.

After this effort, you will see your share appear in the list of Storage devices when playing movies or other media.

Keeping your shares active after a power-outage

The HDP-R1 does have a power button (via the remote), but does not have a physical switch. When turning it off, it only goes into a sleep mode, which has the advantage that after turning you device on again, your shares are still mounted. But when you remove the power cord from the wall and put it back in, you will see that your shares (and even your created mount-directory) will be removed.

To get your shares back after a power outage, we have to modify the boot process. The /etc/init.d directory is read-only, but you can add your own script at the end of the /usr/local/etc/rcS script:

 
echo 2 /tmp/hdd/volumes/HDD1/ > /sys/realtek_boards/misc_operations
# here end the regular rcS script


(. /usr/local/etc/mount_shares.sh ) &

I've created a separate shell-script that contains the above-mentioned mkdir&mount commands and stored it in  /usr/local/etc/mount_shares.sh

This files looks as follows:

echo "Start mount_shares.sh" >>/tmp/ramfs/mount_shares.log
date >>/tmp/ramfs/mount_shares.log
mkdir -p /tmp/ramfs/volumes/media
# first make sure Asus has right IP address
ifconfig >>/tmp/ramfs/mount_shares.log
ifconfig eth0 10.0.0.81 netmask 255.255.255.0
route add default gw 10.0.0.138
echo "modified IP address" >>/tmp/ramfs/mount_shares.log
ifconfig >>/tmp/ramfs/mount_shares.log
# After that make sure CIFS is mounted correctly
mount -t cifs -o username=my_username,password='my_password' my_server_ip_address/media /tmp/ramfs/date >>/tmp/ramfs/mount_shares.log                                               
echo "End mount_shares.sh" >>/tmp/ramfs/mount_shares.log

Note that my ip address for the device is configured for 10.0.0.81. This caused me a bit of a headache, because when you power-up the Asus device, it does not have this address until you first turn it off using the remote and then turn it on again. The strange thing is that after the reboot, the device (on the television) presents itself on this 10.0.0.81 address but it does not react to ping commands. I assume this is a bug in the device. To circumvent this, I set the IP address manually. 

So after this script, the media player mounts my SAMBA devices quickly and I can use it to watch my video collection, mp3 music and show my photos to friends. And as it is a linux-device, it will have a range of hacking opportunities for the future... 

Add Comments
 
 
gthumb import per date Print
Linux
Sunday, 14 June 2009

About 11/2 year ago, I helped the gthumb development by adding some functionality that I needed, and is also useful for others: The ability to import the photos from your digital camera to your computer and sort them by the date taken. The current functionality could only import all photos into one folder. 

My experience is that I want my photos sorted in a subfolder for each activity I photograph. In general this means that I want the sorted by the day the photos are taken.

 I offered my help to the gthumb-team via the bugzilla website after finding a similar bug report (431187).I implemented the main functionality with help from Matthias Hawran and  Michael Chudobiak (and others as well), and the result is the following option in gthumb:

Image

Unfortunately, the development of other features of gthumb got into a bit of a slowdown, and up until now the gthumb development branch (called the trunk) was not getting into the main GNOME releases. However, since this month, a new mailinglist for gthumb has opened and it looks that this makes it easier for the developers to communicate. I'm sure this will speed up the development of gthumb, and getting new features into the main GNOME release sooner.

To get this new trunk functionality running in Ubuntu Jaunty Jackalope 9.04, I've created the following HOWTO. Note that gthumb trunk development is highly experimental, so don't use is with your sole copy of your honeymoon pictures.

HOWTO install gthumb trunk on Ubuntu Jaunty Jackalope 9.04

sudo apt-get install git-core autoconf libgnome2-dev libgtk2.0-dev libgnomeui-dev libexiv2-dev libglade2-dev gnome-common libgphoto2-2-dev libgnomedesktop2.20-cil gnome-devel

(it could be that not all packages above needs to be included as gnome-devel may already include those packages above, I added gnome-devel later to get all dependencies resolved)

(alternatives to get extra functionality:

    $ sudo apt-get install  libopenraw-dev

)

$ mkdir -p $HOME/src/gthumb_trunk

$ cd $HOME/src/gthumb_trunk

git clone git://git.gnome.org/gthumb

cd gthumb

./autogen.sh

Note: you might need to specify some options here to configure it for the right place if you use a different distribution. For instance for Fedora 11 you can use:

		./autogen.sh --prefix=/usr CFLAGS="-ggdb" --libdir '/usr/lib64' --build 
x86_64

Otherwise, libgthumb can end up in the wrong place.
(tip by Michael Chudobiak)

#Configuration:
#
#    Source code location:     .
#    Compiler:                 gcc
#    Have gdk-x11:             yes
#    Have XRender:             yes
#    Have XTest:               false
#    Have libtiff:             no
#    Have libgphoto:           yes
#    Have libopenraw:          no
#    Have gstreamer:           no
#    Use Mac OS X menu:        no

$ make

$ sudo make install

$ sudo ldconfig

The new gthumb version will be installed in /usr/local. To make sure you use this version, you could de-install the default gthumb version via synaptic. Check the Gthumb photo import screen to see if you have the above functionality.
Add Comments
 
 
Nuevasync to sync contacts Print
iphone
Wednesday, 03 June 2009

I just discovered that Scheduleworld stopped their free contact syncing service. Although the service worked fine, I didn't think it justified the $30 USD/year subscription service for just my personal addresses.

So it's time to look for alternative solutions. I've looked at several alternatives, that satisfied the following requirements:

  • It should sync my addresses from my iphone 'over the air', without the use of iTunes or another PC solution. My opinion still is that the iPhone is a internet device that should not be connected to a computer to make it work.
  • It should sync my Thunderbird (addressbook) contacts in some way with my iPhone in a 2-way direction.
  • Preferably, the contacts should be stored by a well-known, free or cheap online service, but I'm also willing to set-up a web-application myself if it's not available.

For now I settled for both ZIndus to sync my thunderbird addressbook with Google Contacts, and I use NeuvaSync to sync between the iPhone and Google contacts.

To set it up:

  1. Apply for an account with Nuevasync, and set it up to sync with google contacts. You must do this explicitly. I used NeuvaSync before for syncing my google calendar, but I initially forgot to turn it on for contacts as well. Do this by logging on to the NeuvaSync website, and you can see what you enabled.
  2. Install the Zindus Thunderbird Add On, which can be found on the  ZIndus Webiste.


One of the drawback I've seen with this approach, is that the address given in Thunderbird cannot be synced in a normal way. As an alternative, Zindus makes some embedded XML out of it. The result is that the address is readable from the iPhone, but it is surrounded by some special XML code. This makes entering addresses on the iPhone difficult to impossible, but you still can sync telephone number and other items. So you should use your Thunderbird addressbook to enter the addresses.

On the possible side, the set-up comes close to 'free' as in beer. Zindus is open source (MPL), and use is made of the free Google Contacts service, which will probably continue to be free for quite a while. So as long as the NuevaSync account will also be free, we have a very nice solution.

Add Comments
 
 
Ice-scating in Nieuwkoop Print
Sport news
Friday, 09 January 2009

ImageAfter some successful scating last week with Surf, Today we did a tour with Ronald and Erik-Jan. Reasonable to perfect ice conditions made the 25km trip a wonderful afternoon in Nieuwkoop.

See the picture above of a trace of my GPS during the tour.

See the photo album for some pictures of the trip as well.

Add Comments
 
 
Ice-scating in Molenpolder Print
Sport news
Saturday, 03 January 2009

ImageToday, Surf & I did some ice-scating about 10 km north of Utrecht in Molenpolder. We did a tour of 14km and ice quality was generally quite good.

See the picture above of a trace of my GPS during the tour.

See this photo album for some pictures of the trip.

 

 Hopefully the weather stays cold the coming weeks...

Add Comments
 
 
Garmin forerunner 305 under linux Print
Gadgets
Sunday, 28 December 2008

Very short because my fully typed blog entry just did a
"session expired: on me :-(

 

See following entry on the technical issues, ubuntu bug #114565:

Make following entry to give permissions to user in Ubuntu Hardy:

  /etc/udev/rules.d/45-garmin.rules

SUBSYSTEM!="usb", GOTO="garmin_rules_end"ACTION!="add", GOTO="garmin_rules_end"
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", MODE="0660", GROUP="plugdev"
LABEL="garmin_rules_end"

There are two kind of interfaces:

  • Native USB interface (mostly supported, specify usb: for instance for gpsbabel)
  • Serial interface using kernel's garmin_gps module

Note that Ubuntu has the latter one blacklisted as it disables the first one.

There is also a discussion going on over the Forerunner on Ubuntu Forum

 

Following linux tools:

  • Viking (works directly with usb-babel but cannot import google maps as it should) 
  • qlandkarte
  • gpsbabel (command-line), outputs garmin XML format
  • pytrainer (looks promising but version 1.5.0.0.1 looks like it's missing some essential garmin importing and file importing options)


Update:
pytrainer seems to work OK, just use the version from Ubuntu Gutsy Gibbon in my Hardy Ubuntu. If you get the error "Cant open garmin device" Make sure to make the following modification to get the Garmin working with Heart rate monitor (the one without works): (following is a patch file, you can also manually change the line with the '-' into the one with the '+'.

 # diff -u /usr/share/pytrainer/plugins/garmin-hr/main.py.orig /usr/share/pytrainer/plugins/garmin-hr/main.py--- /usr/share/pytrainer/plugins/garmin-hr/main.py.orig    2009-01-01 15:03:34.000000000 +0100+++ /usr/share/pytrainer/plugins/garmin-hr/main.py    2009-01-01 15:08:05.000000000 +0100
@@ -29,7 +29,7 @@
 tmpgpx = "/tmp/reg.gpx"
 dummy = 0
 
-if not os.path.exists(options.device):
+if (not os.path.exists(options.device) and not options.device == "usb:"):
     f = os.popen("zenity --error --text='Cant open garmin device. Check your configuration or connect the device correctly.'");
 
 else :

One thing I'm still looking at is importing all my track at once.

 

View Comments (1)
Add Comments
 
 
<< Start < Prev 1 2 3 4 5 6 7 Next > End >>

Results 1 - 10 of 67
© 2010 Roalt Dot Com