Author Archives: Anil

Synce and TyTN II

Got my TyTN II (aka Kaiser) a week ago inspite of bad feeling about the driver and performance issues it is believed to have. The reason I bought it is that it has lots of the connectivity options (not that I use all of them all the time), GPS, more RAM, more stuff to ‘tweak’ (than symbian) (well I could have done with openmoko but dunno when and how to get it to my country, later perhaps). If you ask me again its just bad habit.

With linux

There are some things you can half-do, with SynCE.

  1. Connecting and listing files: It works fine, plus gnomevfs plugin makes the phone appear in the file browser (nautilus) like in windows (BTW, did not see that in Thunar – the one that comes with xfce).
  2. Syncing : Using Opensync. SynCE folks have written a ‘synce’ plugin to it. I could see syncing between the phone (synce plugin) and evolution plugin as well as ‘file’ plugin. However contact and calendar field mappings are screwed up (I’d rather back up before I try something stupid).
  3. Internet on phone using net connected PC: It works when you have ‘sync-engine’ running (which is like the application layer part of activesync).
  4. Internet on PC using net connected phone: Not tried it yet.

Gps

  • Google earth works – it uses cell tower in case you dont have GPS (or disable it)..
  • Mapking (no TomTom 🙁 ) – a bundled piece of s/w with license to one map. I’ve tried Bangalore (its got Chennai and Delhi) – Not useful as the traffic police spend their spare time blocking and unblocking routes.

Sloppy part

  • Battery: With big stuff comes big battery drain. On standby its decent :-).
  • The graphics issues: Well it is present. But it varies from app to app. I wonder if its old apps (counting on GDI to perform at a minimum level) that suffer. Google maps was fast, some screens are painted real fast.
  • Tilt screen: Its a good thing to show off but I am always worried about making it ‘loose’ – Its way too much weight hanging by two (metal I suppose) rails.

So why not other phones ?

Mio A701

Mio A701

  • N95: The 8Gig version is good. But currently I am sold out to Win mobile and no touch screen and registry to mess around with (atleast none so obvious as in WM).
  • HTC P3300: Actually this could have done the job but I was tempted by the RAM of Kaiser and prospects of 3G in India.
  • Mio (A701/A501/A702): Expensive, could not find in India.

HDD problems overdose.

HDD problems love me a lot. Now I have my old HDD getting ‘hot – unplug’ events from nowhere. I’ve no idea why that should come in. This ‘unplugging’ causes a momentary freeze and the drive being reset. Googling did not help too much except that I now know people had problems with getting ‘hotplugging’ to work with the nForce sata (sata_nv driver). The resetting happens quite unpredictably. Smartctl says the disk is OK. Now how do we get a ‘hot unplug’ event without unplugging it. Tried moving the cable around (the SATA cables feel a bit loose) dont know if that is going to help. I’ve not heard the ‘reset-clicking’ in windows though which makes me feel that it might not be the hardware. But then it appeared first without any reason when running 2.6.19.2 (which does not give any detail on whats going). 2.6.22.1 tells me that its a hot unplug event that preceds the hard reset. The good part is that you get to do some learning surrounding this. For me the next good thing in sata is the AHCI (well, actually it is here, just not in my home computer though).

Let me know if you can figure out what is happening from this fragment of kern.log:

... Jul 22 15:22:01 localhost kernel ...
15:22:01 ata3: exception Emask 0x10 SAct 0x0 SErr 0x1810000 action 0x2 frozen
15:22:01 ata3: (ADMA status 0x00000502: hot unplug)
15:22:01 ata3: hard resetting port
15:22:07 ata3: port is slow to respond, please be patient (Status 0x80)
15:22:11 ata3: COMRESET failed (errno=-16)
15:22:11 ata3: hard resetting port
15:22:12 ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
15:22:12 ata3.00: configured for UDMA/133
15:22:12 ata3: EH pending after completion, repeating EH (cnt=4)
15:22:12 ata3: EH complete
15:22:12 sd 2:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
15:22:12 sd 2:0:0:0: [sda] Write Protect is off
15:22:12 sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
15:22:12 sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA

Kerberos and fun

I run a local svn repository and it was adrenaline pumping action the time I discovered you could use the Windows Active directory as a kerbreos KDC for authentication. Some helpful links:

What these leave out (at least when it comes to educating a n00b) is that active directory is needed only for setting up the service principal not necessarily in creating the keytab. I could create the keytab with ktutil on linux with the command:

bash$ ktutil
ktutil: addent -password -p 'serv/yadayada@REALM' -k kvno -e <enctype>
ktutil: wkt xyz.keytab

The info needed here is the password to the user account to which the service principal is mapped, the kvno for the key given by KDC (which you can find using ‘kvno principal’ after getting authenticated). The enctype is the same as the one reported by ktpass while creating (or if you have specified one, then that one) it was des-cbc-md5 in my case. The kvno should match the one sent by KDC (for mod_auth_kerb in apache to work). The Active directory server I was dealing with would increment the kvno if I so much as sneeze while thinking of the user account involved. Looks like its a Win 2003 behavior.

Hard disk woes.

After a month since the first error popped up on dmesg I got a few more error messages. This time the disk was serious. Last Sunday morning when I was planning to experiment with ffmpeg and x264 this comes up. Callup shop. For them I was just another guy and emitted a standard lecture on how to return the Seagate hdd. They wont give me a spare hard disk to copy my stuff temporarily. So I go get another hard disk for backing up (I’ve really lost it, right ?) an SV35.2 (foolishly) which they were selling as 250GB Seagate SATA HDD. What I did not see was that it was cheap because it was cheap and used as on surveillance video storage racks.

When I get home my machine decided to have some fun with me. I’ve got 3 Hard disks and 2 operating systems and one BIOS. The 2 OSes and BIOS decide to give these 3 hard disks 3 different names. Grub (the boot loader) decides it should also try calling the hard disks something different from what BIOS and the OSes do. So they all have fun watching me sweat. After a couple of combinations my linux installation boots up. Now, there is no way I can safely handle plugging and unplugging of HDDs with the upcoming trip to service center and still have linux work without much effort.

Labels

I recollected my RHEL installation at work using volume ‘labels’ to mount partitions. Never thought that would help me. It did. Now I use volume labels to mount partitions. The thing is quite simple:

Use the e2label and reiserfstune programs to add volume label to your current partitions (and mkswap to set a label for swap partition). Use LABEL=<label> instead of device special file names in your fstab. A funny thing that happened was that a tool called blkid uses a cache file (/etc/blkid.tab) to remember the label to block device map. Another funny thing is that putting ‘LABEL=’ on the kernel command line does not seem to work for the (while specifying root). Apparently that was only for Redhat patched kernel to understand how to read the ‘LABEL=’ command.

Thing remaining: After a long time I tried booting my 32 bit installation. It fails to get the console among lot of other with /dev/ devices. It has something to do with udev. Let me try figure it out.

Another cool thing is that udev (I think) now has trees with symlinks that look like :

/dev/disk/by-label/<lablel>
/dev/disk/by-uuid/<uuid>
/dev/disk/by-path/<subsys-bus-unit thingy>
/dev/disk/by-id/<symbolic subsys-bus-unit thingy with product and serial number>

Eye of Newt

After years of drooling, got myself a DSLR camera. Though it costed a bomb, I am liking it. I’ve put some pictures here. Just like most other machines I bought this guy has a little problem. Actually not the body but the lens. It was prepackaged with some dust that shows up in the pictures at low aperture settings. That one plus LCD “lands” connecting AF areas showing up, plus chromatic abberation in lens when hard light is present are the negative points.