May 23 2010

Sloppy Solder Saves Shaver!

I’ve had a Remington Shortcut for quite some time now but lately its been running out of juice after only a few minutes. The blades are in great shape so I thought maybe I could just replace the batteries. In the worst case I’d have fun taking it apart and in the best case I’d have a working shaver again.

One of the original batteries looked a bit corroded around a connector and in hindsight I think this was the main problem. I ended up replacing the generic cells with my favorite Eneloops anyway. Rechargeable and hardly any discharge even over a year of storage. Lovely lovely batteries.

I haven’t soldered in years (and it shows) but I had a lot of fun fixing the shaver. It works great now too. Actually, better. The recharging indicator is once again working and my small tweak to disable the edge clipper mechanism means less resistance on the motor.

Taking apart things to learn how they work is great fun. Sometimes you can even put them back together again. ;)


Sep 9 2009

Asus G1-S Hackintosh

Asus and Apple Logo

For me, the iPhone was the gateway to all things Apple. So much so that I became interested in programming for it and that meant procuring a Macintosh. Doing so would mean parting with 17 Benjamin Franklins though. So, while my mild mannered wallet hid, my mentat mind went to work on a solution.

I already owned a very capable Asus G1-S laptop so buying a new Macbook Pro was out of the question. I could however consider it expendable and try to hack it…

With a bit of luck I’d make a hackintosh although a fried machine, temporarily upset wife and new Macbook wouldn’t be so bad either.

The Journey

I was unsure of how to even proceed until the kindly @jeffreed guided me to light side of hackintoshing . This entailed using real retail discs which maintains software update functionality unlike some pirate flavoured distros. A big relief to me too since I’ve worked hard to leave my pirate skills where they belong, in the 1990s.

After intial course guidance came hours of research and painstaking trial and error. Incremental progress was very slow at first but persistance payed off eventually and I reinstalled (only crom knows how many times) my way to success.

I couldn’t have accomplished any of this without oodles of helpful guides and the fine forum folks of InsanelyMac.

Instructions

  • Remove any existing partitions on your hard disk by using GParted.
  • Flash your motherboard using the modded ASUS G1S BIOS for better Mac OS X support.
  • Load BIOS manufacturer defaults and then customize to your liking.
  • Boot up with the GRUB-DFE.iso disc.
    • This disc combines a GNU GRUB boot loader with a Boot-132 method to allow installation of  non-hacked, retail copies of Mac OS X.
  • At the Darwin/x86 command prompt press enter.
  • Switch your GRUB-DFE disc with a Mac OS X 10.5 Retail DVD.
  • Wait for the drive indicator light on your DVD drive to stop flashing and then press enter to choose the default boot device.
    • In my case, default was the hexadecimal code [ef] also known as the dvd drive.
  • Plug in a USB mouse.
  • Install Mac OS X.
    • If your only see a blank screen or the system becomes unresponsive for several minutes, reboot with the GRUB-DFE disc and try again. In my experience it always seemed to work the second time.
  • Reboot with the GRUB-DFE disc and choose hex code 80 to boot to first HD.
  • Press enter at the next Darwin prompt to boot to the hard disk.
  • Plug in a USB keyboard.
  • Plug in an ethernet cable for internet access.
  • Finish the Mac OS X install.
  • Download Chameleon DFE for HD.
  • Open the grub-dfe.iso disc and copy the Extensions folder under /boot/initrd.img/Library/Application Support/DarwinBoot/Extra/ to the “Extra Contents” folder within the mounted Chameleon DFE for HD.
  • Run Chameleon DFE for HD.
  • Reboot without any helper discs.
  • Install the Mac OS X 10.5.8 Combo Update.
  • Reboot.
  • Download and uncompress the NVinjectGo 0.2.0 video driver.
  • Run OSX86 Tools 1.0.150 and use the “Install Kexts” feature to install the NVinjectGo.kext video driver.
  • Reboot.
  • Download and run PS2FixKeyboard (mirror) to enable the built-in keyboard and trackpad.
  • Reboot.
  • Download and uncompress Apple HDA Patcher 1.20 (mirror).
  • Download ALC660.txt (mirror) and drag it on top of the Apple HDA Patcher.
  • Download the ALC660_660VD.mpkg.zip (mirror) audio drivers, uncompress and run.
  • Choose the second driver option and install.
  • Reboot.
  • Go to Apple > System Preferences > Sound > Output and choose “Internal Speakers”.
  • Bask in the warm glow of success. :)

Limitations

Everything seems to works except eSata, the memory card reader and wireless. Of these I only miss the wireless but I’m sure a compatible USB device could remedy that.

Epilogue

While many of my previous computer endeavors were based simply on the joy of discovery, I find that I’m now drawn to challenges that require tenacity. A migration from simple pleasures to the greater rewards of delayed gratification perhaps?

Either way… confidence gained is a wonderful currency for future ventures. :)

Cheers!


Jul 28 2009

Windows Mo’bile

Samsung-BlackjackThe Samsung Blackjack is the best Windows Mobile phone I’ve ever owned.

It crashes daily, drops calls and is as sluggish as Pizza the Hut is delicious.

I upgraded my particular phone from Windows Mobile 5 to 6 mostly to enable fuzzy positioning in Google Maps.

Overall, each OS had a similar issues so you can choose either faster performance in version 5 or prettier interfaces in 6.

Living with my aging phone was becoming a hassle but I wanted to keep using it for maximum monetary efficiency. I thought the best way to do this would be to customize the phone and make it more pleasurable to use. Adding various sound effects and backgrounds was easy but I needed something a bit more custom. I needed something that I could be amused by while restarting for the umpteenth time. I needed a startup animation… with sound!

The device already had an AT&T animation with a swooshy sound effect so it seemed I would just need to track down the file format and replace. Easy yes?

Actually… no. It turns out that the animation is obfuscated within a file called “OemAnimationDll.dll”. The sound effects are at least in the open as “start.wav” and “stop.wav”. They are each 4 seconds long and easy to replace if you are using Windows XP with Active Sync 4.5. Vista is a bit more complicated.

Windows Mobile Device Center in VistaUsing Vista means you will have to deal with the  Windows Mobile Device Center. A shiny product which mostly complicates accessing dialogs which are much easier to find in Active Sync. It also means you won’t be able to overwrite protected files in your smartphone\windows directory. To get around this issue we can edit the registry to change the pointers to both the animation and sound effects to files with new unique names.

Moding the Startup

Make a copy of  smartphone\windows\OemAnimationDll.dll and then open the cloned file with Resource Hacker. Each folder is a frame of animation, 40 total, stored in PNG format. The first 20 images are for starting up and the last 20 are for shutting down.

Resource Hacker

Select the first of the PNG items (titled 1033 within any folder) and then choose Action > Save Resource as Binary File. Name it 1.png then open up the image to see the first frame of animation that your phone uses. The dimensions of these files are 320 by 240.

To replace an animation frame simply right click the image in question, choose “Replace Resource…” select the new PNG you want then enter anything in the Resource Type and Name fields. Press “Replace”.

If you try to copy the updated OemAnimationDll.dll to your phone now you may get an error like this.

Error Cannot Copy File

Unfortunately many system files on your Windows Mobile device are protected in this manner. To get around this issue we’ll have to edit the registry on your phone.

To make sure registry changes persist, download and run SDA Application Unlock. This will also grant also your device the ability to run unsigned code and supposedly overwrite system files although that part didn’t work for me.

Next, install and run MobileRegistryEditor 1.2.

Mobile Registry Editor

Navigate to HKEY_LOCAL_MACHINE\System\Startup\1 and then change the value of Dll to “CustomAnimationDll.dll” or whatever you named your file to.

Copy the file to your smartphone\windows directory and then restart your device.

Frak!

Up to this point I was very hopeful but to my dismay, no animation played. :(

I proceed to go through a soul crushing amount of technological incantations. Different resource editors, image formats, digital signatures and more esoteric experiments but nothing worked.  It’s a damn shame too because I had the perfect TV static animation to go along with the following soundbite from Max Headroom.

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Perfect for a communication device that goes down more often than a narcoleptic nymphomaniac at a romance novel convention!

I console myself with the idea that sharing my experience may help someone else in the same situation. Hopefully they will be able to take the process to completion and make this particular Windows Mobile phone a little easier to live with.

Epilogue

A minor car dismounting accident cracked the screen of my Samsung Blackjack. This led me to the phone I had been secretly lusting after all this time, le perfection.

*Nuzzle*