Log in User page Discussion History Go to the site toolbox

User:Sam Odio/Stuff/My Computers/My Powerbook

From BluWiki

reema sen video house addition plans fallo a lot links

A picture of Lynn

This will be a site where I chronicle the adventures with my new 12 inch g4 powerbook --Sam Odio 03:18, 13 Nov 2005 (EST)

Specs

  • 12.1-inch TFT Display with 1024x768 resolution
  • 1.5GHz PowerPC G4
  • 1.25 GB memory (DDR PC2700 SDRAM)
  • 80GB 5400 rpm hard drive
  • Slot-load 8x SuperDrive (DVD±RW/CD-RW)
  • NVIDIA GeForce FX Go5200 graphics card with 64MB DDR memory
  • Full size keyboard
  • 10/100BASE-T Ethernet
  • USB 2.0 and FireWire 400

Hacks

(if you can call them that)

Apahce is running

I now have apache running on the laptop... you can visit Lynn (when she's online at home) at http://71.1.141.92/

PowerBook "ipod hack"

So I wanted a way to play music on my powerbook while I'm carrying it around (or studying or whatever) with the lid closed. So I've cobbled together some software and code that will allow me to play music with the lid close, and jump forward or backwards a track by tilting the powerbook. Cool huh? Here are the steps...

  1. Sleepless allows the powerbook to run with the lid closed. Just start the program before you close the lid.
  2. AMStracker will get motion data from later edition powerbooks (and ibooks). download AMSTracker here. (save to your user folder)
  3. lapbump.py and ipodbump.py are customizations of bumptunes.py. These bump my songs forward and backward. The sensitivity has been adjusted down for my lap (laptunes.py) and up for when I have the book on my desk (ipodbump.py). You want to save them in your user folder.
  4. Once you have AMStracker & the lapbump.py (or ipodbump.py) in your user folder, fire up your terminal and simply run this script:
~/amstracker -u 0.1 -s | python ~/lapbump.py
or
~/amstracker -u 0.1 -s | python ~/ipodbump.py

I'm hoping to make an applescript GUI interface (maybe a widget?) that will open Sleepless and then run one of the two above commands automatically when I push a button... we'll see if that ever gets done. --Sam Odio 03:18, 13 Nov 2005 (EST)

UPDATE: When using sleepless with OS X 10.4.4 - the mac will shut off if the lid is closed for more than ~5 minutes and the laptop is running on battery. To prevent this, leave the powerbook plugged in.
If anyone has a more elegant solution, they should put it here. --Sam Odio 21:35, 5 August 2006 (EDT)

Bugs

11/12/2005 Mac update

So I just updated my mac (don't remeber what the updates were) - and now I am having two problems:

System clock is reset on reboots

This seems to happen most often when I turn off & uplug the machine. Maybe it's a bad CMOS battery? Not sure... This is the exact error:

Your computer's clock is set to a date before March 24th, 2001.  This may cause some applications to behave erratically.
Please use the Date & Time preference panel to set the clock manually.  For more information, choose Mac Help from the Help menu.

Apple Sudden Motion Sensor is buggy

For some reason, AMStracker is no longer working. When I execuate amstracker I get the error:

Lynn:~ sodio$ ./amstracker
AMS hardware present and initialized
failed to retrieve data from motion sensor hardware

Or when I try to run it with my perl script:

Lynn:~ sodio$ ./amstracker -u 0.1 -s | python ./lapbump.py
failed (error e00002c7)
failed (error e00002c7)
...
failed (error e00002c7)

As far as I can tell, the sensor itself is working. It appears as enabled in the system profiler. Also, when I drop the powerbook on my bed, a quicktime movive stops, indicating the hard drive has been parked.

Sudden Motion Sensor Update

It seems other users are having a similar problem:

"I did the Mac OS X 10.4.3 update this morning and everything seemed OK.. though after reading a few Apple Discussion threads I see that the Apple Motion Sensor feature of the last PowerBooks has mysteriously been broken. It doesn't show up in system Profiler and gives me this in the log files: "Nov 1 10:40:10 localhost kernel[0]: AMS::writeBytes ERROR: failed to write to I2C" Users are also reporting that the AMSTracker utility, which retrieves and displays x, y, and z orientation values from the motion sensor hardware hardware, reports the motion sensor as present and initialized after the Mac OS X 10.4.3 update, but also reports that it failed to retrieve data from the motion sensor. - source


The problem lies in a change in where the data can be gotten from (not really sure of the correct terminolgy for this) but its something to do with AMSTracker using "code 24" and it now being "code 21" . See the open-source GPL equivalent of AMSTracker "Motion" for details. It, btw, works but lacks the autorefreshing capability of AMSTracker. (It also supports the new iBooks and Nov '05 PB's)

In Summary, AMS/SMS/MMM still works fine, AMSTracker just needs to be updated, but the author doesn't respond to email about it.

Site Toolbox:

Personal tools
GNU Free Documentation License 1.2
This page was last modified on 5 August 2009, at 23:12.
Disclaimers - About BluWiki