No more external sound from your iPhone ?

In case you have the following problem scenario on your iPhone, here’s a quick tip :

  • sound via headphones, no sound via the speakers
  • your phone rings ok, but
  • everything else you can’t hear except via the headphones

Then you need to plug in-and-out your headphones. Go on, have some iPhone intercourse !

Do that about 3 to 6 times and normally it’ll start working again. I noticed that my audio output started working again when suddenly my ipod screen came up.

iPhone Photo Sync Problem.

I just found out that I can no longer sync my photos from the iphone camera to my mac. Grrr. I’ll need to look into this.

More on this when I’ve found a solution.

Update : it worked once when I removed the sync lock file from the iPhone. I noticed that a lock file was present in the current Media directory of the iPhone, while iTunes wasn’t even open. Removing this file worked once, I could sync my camera roll again, but afterwards I had the same problem.

Jailbreaking and activating an O2 iPhone

Seems that it is possible.

Seems that there is some confusing over this, so for the newb iphone users :

  • Jailbreaking is the term used when cracking the protection on the iphone computer part so that you can install third-party apps.
  • Activating it is the term used for cracking the mobile phone part of the iphone so that you can use any sim card you want.

Moving Python on your iphone.

Moving your Applications directory to your /private/var/root partition (aka your MEDIA partition) is all well and good, but when you install python on your iphone, it’s installed in both /usr/bin where the main executable resides and the library modules are installed in /usr/lib/Python2.5 .

So they still consume a lot of space on your root partition. In fact, I finally checked my hard disk space on the root partition of the iphone, and there was a pityfull 4.2 Megabytes left over.

So I moved python over to the media partition using the following commands : I first created a python directory on my MEDIA partition, then I moved the python library directory over there and finally I created a symbolic link from there to where it is expected to be.

mkdir /private/var/root/python
mv /usr/lib/Python2.5 /private/var/root/python
ln -s /private/var/root/python/Python2.5 /usr/lib/Python2.5

After that, ‘df -h’ gave the message that 27 Megabyte was free on the root partition !

Excellent :-)

ScummVM on the iPhone ! Yaarrrrrr Me Maties !!!

At last, I just knew that somebody had to have done something about this lack of scummvm on the new platform. Even one of the original creators of Monkey Island was waiting for it…

In case you are younger than 25 or so, scummvm is a game engine emulator for the very first point-n-click adventures like ‘The Secret of Monkey Island‘ and other such ones which were hugely popular in my youth. Their 16 bit colour version would seem quaint to you now, but squashed on a small mobile phone screen this and other games are a thing of beauty you can while your time away with while travelling !

Check out the instructions on the scummvm wiki here to get some Scummy goodness on your iphone. Don’t forget to place the games on your Media space !

Moving the Applications folder on your iphone to /var/root (sequel)

I previously wrote about moving your /Applications folder to your media partition, and suggested that you could probably move individual application to your /var/root instead of the whole kaboodle.

But I’ve just experimented some, and it’s a fairly big hassle to do this for each application you want to do this for. Plus what happens when an update is available ? My guess is the whole directory is replaced, possibly destroying the symlink and installing it once more into your original Applications directory. I didn’t try to find out, though. I only had 3 megs left on my root partition, time to take action.

So I finally moved the whole directory to /var/root, the biiiig partition where you get lots of diskspace. I did try a variation though, by leaving a vestigial, thoroughly cleaned out /Applications directory instead of deleting it, but the symbolic link creation failed because the file already existed. I figured if ever anything went wrong with the moved /Applications folder, I would have still had the original one. But this does not work, so I’ve followed the original instructions, removed my /Applications directory and created the symbolic link to the new one in one go. Everything works fine after a reboot !

I was hoping for what I did when I was using Gentoo, but that was actually more playing around with mounting partitions. When working with partitions, you can have a folder with content in it, and then you can mount another partition using the folder as link point. When the partition is mounted, the original folder contents are no longer accessible. But when you unmount the partition, the original folder contents become accessible again !

Traffic Stats doubled this week.

So I just took a look at my traffic stats – since the beginning of this week, they’ve more than doubled ! From 62 unique visits to 128 !!

The search string most used to come here is apparantly “iphone” and “iphone out of diskspace” closely followed by “iphone sms crash”.

Well, I hope the information here helps you, drop me a comment here on one of the iphone entries if there is  anything you want to talk about.

Iphone out of disk space ? Move your application directory to /var !

[I notice in my logs that lots of people still visit this link - you should no longer need to do this. Simply BlackRa1n your iPhone and install Cydia or Rock. They normally do this for you - I certainly no longer muck about with version 3.x of the iPhone OS. Plus with the fact that there is a virus out there for jailbroken iPhones... Be Carefull !!]

Any user who has logged into his iPhone via ssh (and has installed the bsd subsystem) or has used the installer.app terminal application can do the “df -h” command to get a human-readable output of his iphone partition setup.

It’s basically set up in two partitions : one root (/) partition and one /private/var partition which is mounted afterwards and tacked on to the root partition. It’s actually this /private/var/ partition that contains (under another subfolder ‘root’) all your music, videos and other media.

The root partition contains your installed applications (under the folder ‘Applications’, and since Apple locked the phone down and didn’t think anybody else would add stuff to it, it only provided a minimum of space for the root partition – 300 Megabytes or so. And your /private/var partition has close to 7+ Gigabytes !

With all the applications that I installed via Installer.App, I’ve recently gotten the message that the iPhone has low disk space on its root partition. I’ve got about 13 Megs free, and I dread adding other applications for fear of running out of disk space. Lots of bad things happen when your root partition runs out of diskspace…

So I’ve stumbled over another link that documents how to move your Applications folder to the /var folder so you can install all that you want.

You basically need to do the same thing that you do when you need space on another unix/linux machine :

  • modify your fstab file (which contains the list of partitions to boot) and remove the noexec option from the media partition so that it can execute programs. You can edit the file by copying it over to your computer and editing it there and saving it back (ALWAYS MAKE A BACKUP !) or by editing it directly via the Editor program you can install via installer.app.
  • move over your /Applications folder to /private/var/root
  • and then delete /Applications and create a symlink to the /private/var/root/Applications residing on the media partitition.

I haven’t tried this out yet, but my guess is that you can be much more selective by doing this one level deeper : installer.app for example, should be able to add all the new programs to the the /private/var/root/Applications partition, and then put a symlink to it in the original /Applications folder.

The advantage would be that

  1. you don’t mess with moving the Apple programs and applications
  2. your installer.app applications get backed up (I’ll need to verify if that’s actually true or not)
  3. your root partition will be able to function, even without a media partition (this won’t normally happen, but then I’m paranoid about things like this)

I’ll probably give it a test for installing python on the media partition, I’ll let you know.

Iphone upgrading to firmware 1.1.2

While the jailbreaking and unlocking of your sim is easy as pie when you have an iphone using firmware 1.1.1, upgrading to firmware 1.1.2 can be a whole other can of fishy noodles. The process involves prepping your unlocked and jailbroken 1.1.1. iPhone and then upgrading to the latest 1.1.2 version, and then running from your mac or pc the jailbreak software for 1.1.2, which will flash it again.

It seems that most upgrade guides are particular in their wording, and if you have the ‘malchance’ to not exactly have the same files on your phone as the one providing the guide, you can be up in shit creek for several hours. I know I was.

I upgraded from my jailbroken and unlocked 1.1.1 firmware to 1.1.2 by downloading the new jailbreak program from Conceited Software, which in its latest version includes ‘hactivation’ of the sim. Or so they state, and for most people it’ll probably work (as read on several forums), but for me only the jailbreak part worked, minus the sim activation.

After much, MUCH, MUUUUUCH trial and error and repeatedly going to back to firmware 1.1.1 (thank god for that) I found out that I needed to perform two extra things while preparing for my upgrade to 1.1.2 :

  • take my sim pincode off – this probably blocked my update somewhere
  • unlock using anysim 1.2.1u (not the one in the installer list, that is not the latest one at current date)
  • and only then running oktoprep in the installer.app
  • and finally upgrading to 1.1.2 firmware, and then running the jailbreak software for 1.1.2

Phew. Was it worth it ? I’ll need some more time to check it out again, while I’m installing all my third-party programs again…

PS – if you want complete guides to hacking your iPhone, I can recommend this site.