Archive for April, 2006|Monthly archive page

Force shutdown / restart in Mac OS X

First see if it’s just one program, or the whole machine. If the foreground program is unresponsive, before you force a restart check to see if other programs still work, because a lot of times, only one program is stuck and the rest of the system is OK. It’s actually very rare for all of OS X to freeze up. Try switching to the Finder or another program in the Dock or by pressing Command+Tab to use the Application Switcher. If these work, your whole system is not frozen, only the foreground program is.

Forcing just one program to quit. Use the Force Quit command from the Apple menu (or press Option+Command+Esc) to select the unresponsive program and quit it.

Forcing the entire system to shut down. If you cannot switch to other programs and you can’t choose the Shut Down command on the Apple menu, force a shutdown by holding down the Power button for several seconds until the machine powers off. To verify that it really is shut down, press one of the keys that lights up, like Caps Lock or Num Lock. If the key’s LED lights up, power is still on. When the machine is fully off, press the Power button to start up normally. For an emergency restart on a notebook while the machine is still running, press Command+Ctrl+Power. Using either method, any unsaved changes in open documents will be lost.

Holding the Power button to force a full shutdown works on many kinds of Macs and PCs. Use this technique only in an emergency.

In normal use on a notebook, pressing the power button without holding it down is the same as choosing Shut Down from the Apple menu; you see the same dialog box. On a desktop, the shortcut is Control+Eject.

Failing to wake up from sleep mode. If a Mac doesn’t wake from sleep when it should, or pressing the Power button doesn’t start up a Mac that appears turned off, the computer may be in a state where the screen is blank but it’s still running. This sometimes happens when something’s gone wrong while a Mac was in or waking from sleep mode.

First press Caps Lock to see if it lights up. If it does, the machine is still on. In that case, press the Increase Screen Brightness button to make sure it’s not because the screen backlight is off. If none of that brings the screen to life but you know the machine’s getting power, your machine is in a sort of coma. You might as well do an emergency shutdown at this point.

Safari: Open link as a tab in another Safari window

The shortcuts for opening a link in another tab in Safari are fairly well known. But you can also view a link in a tab in another browser window. First, arrange both browser windows so that you can see the tab area in the second window. Then, simply drag and drop the link into the tab area in the other window. You can also replace the contents of a tab by dragging a link onto the tab.

Deep-calibrate your PowerBook lithium-ion battery

Lithium-ion (li-ion) batteries work best when you partially empty them and then top them off. They don’t like to be emptied every time you use them. There is one exception: You should run your battery all the way down to empty about once a month. This ensures that the circuit that measures the battery capacity has an accurate idea of what “full” and “empty” are for your particular battery, since charge capacity decreases over time.

The standard advice for taking care of lithium-ion batteries comes from Apple and batteryuniversity.com.

When doing this kind of maintenance, most Apple laptop users simply use their laptop until Mac OS X automatically puts the computer into sleep mode. I’ve found that this doesn’t always leave the battery meter with an accurate reading of the battery capacity. However, I have found a way to empty and calibrate the battery more effectively.

I’ve noticed that my PowerBooks, when on battery power, run much longer when the iTunes visualizer is running full screen. When iTunes is in that mode, Mac OS X somehow seems to let iTunes bypass the usual automatic battery cutoff level, and forces sleep much later. To try this battery calibration method:

1. When you see a low-battery warning or when the battery level drops to around 5 minutes remaining, start iTunes.
2. Start playing your music library. It should be a long playlist (like the entire library) so that the playing time is definitely longer than the battery’s remaining time.
3. Make sure the Full Screen command is enabled under the Visualizer menu.
4. Choose Visualizer > Turn Visualizer On.
5. Wait.

You’ll probably find that iTunes keeps playing many minutes longer than the remaining time indicated by the battery meter. Eventually, Mac OS X will sleep the laptop. As a result of the longer runtime, the battery meter should indicate a longer life than it would have if you hadn’t extended the runtime with iTunes. Using CoconutBattery, I’ve confirmed that the number of milliAmp hours assumed by the Power Manager is higher after this procedure.

I don’t know why Apple keeps two different cutoff levels for sleep when on battery. It’s a mystery.

AirPort: Can’t connect to password-protected wireless network (Log error “Rx’d mesg P-1″)

If you can’t connect to an AirPort network, and the network requires a password that you’ve tried to enter correctly, try the following:

1. Open the Console utility in your Utilities folder.
2. Choose File > Open System Log.
3. Look for a line that includes the message:
kernel[0]: AirPort: Rx’d mesg P-1
4. If the message is there*, try the steps that follow.
5. Open System Preferences, and click Network.
6. Edit AirPort. (If you see the Network Status list, double-click AirPort.)
7. You might have AirPort set to “By default, join: A Specific Network.” Confirm that the network name is correct.
8. Here’s the important part. Re-enter the network password.
9. Click Apply Now. (Don’t change your Location before clicking Apply Now, or your changes probably won’t be saved.)

*If you aren’t getting that error, I don’t know what the problem is. This tip won’t help you if you’re trying to get into a network where you don’t know the password.