f.zz.de
archives / 2008 /

11

udev and the option umts 3G card

Posted Tue 18 Nov 2008 06:33:02 PM CET in

How i hate to debug udev - i did it a couple of times and everytime i hate do to it again. I wanted udev to create a modem symlink in case i plug in my 3G Option UMTS Card. The problem is the Card has an OHCI USB Host Controller presenting 3 usb-serial devices. Only the first one can be used to connect - Ignoring the fact that all three run through udev create a random symlink on any device whatever comes first. Here is how i solved this:

SYSFS{idVendor}=="0af0", SYSFS{idProduct}=="6000", PHYSDEVPATH=":1.0/ttyUSB", SYMLINK+="modem"

the PHYSDEVPATH makes shure i am only attaching the modem symlink to the device :1.0 on the new OHCI bus. As i also match
vendor and product of the Option card this will only create a symlink on the first port of the option card.

text/html pain

Posted Thu 20 Nov 2008 04:26:35 PM CET in

A couple weeks ago i was fed up with all the unreadable html stuff and put a

auto_view text/html

into my .muttrc. This at least showed all html as painless as possible. Now i found that
it also preferred to show me the html instead of the text/plain on multipart mails. The solution is to set the
multipart/alternative order.

alternative_order text/plain text text/enriched text/html application/postscript image/*

udev and the option umts 3G card #2

Posted Thu 20 Nov 2008 09:07:26 PM CET in

After some days of usage you find udev is ever more complicated to deal with than you initially thought. The inability to check for sysfs attributes more than one parent device away makes it difficult for my usage - so i made it 3 rules to set an appropriate symlink:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0af0", ATTRS{idProduct}=="6000", \
ATTRS{product}=="Fusion UMTS GPRS WLAN", ENV{fusiongt}="yes"
SUBSYSTEMS=="usb", DRIVERS=="option", ATTRS{bInterfaceNumber}=="00", \
ENV{fusiongt}=="yes", ENV{fusiongt_primary}="yes"
SUBSYSTEMS=="tty", ENV{fusiongt_primary}=="yes", SYMLINK+="modem"

The first sets a environment variable if this run is on a Fusion Globetrotter Card. The second one only triggers on the first serial on the Fusion GT Card. And the last sets the symlink for the tty ...

Stolen goods (long time ago)

Posted Sun 23 Nov 2008 11:08:12 AM CET in

In 2003 when we were visiting Australia i got stolen my complete foto gear. This happened on the Airport of Alice Springs which is really cute and small - but a short time getting the rental car moved my concentration away from our luggage and that was enough the bag got taken. Its a long time ago but i just found all the old cases for the lenses so i thought of publishing the serial numbers of the stolen body and lenses. I wished google would enable to search for exif fields in the pictures. I might be able to find pictures on the net made with my body after the time it got stolen.

The gear stolen was:

Canon EOS 10D - Serial: 259149884 (Serial from the last taken picture)
Canon EF 28-135 3.5-5.6 IS USM - Serial: 5103475G
Canon EF 100 2.8 USM - Serial: 5001109B
Canon EF 75-300 4.5-5.6 IS USM - Serial: 4901279G