Spotlight's Impact on PowerBook Battery Life?
Viltvodlian Deoderan asks: "So, Spotlight for Mac OS X Tiger is very cool. I can now let my innate ability to disorganize things shine through. However, when using my PowerBook unplugged, it seems that my battery lasts a noticeably less time. A close reading of Ars Technica's description of how spotlight works suggests that this is due to keeping the index file up-to-date on disk. Has anyone else noticed the same thing? Does someone have a better explanation for why my battery seems to drain out, prematurely? Is there some way real-time indexing can be turned off to conserve power?"
Try turning off the pr0n. you're welcome.
From here: /Volumes/Backup .
To turn indexing on or off for a volume, run sudo mdutil -i on volume name or sudo mdutil -i off volume name, respectively. For example, if you want to turn off indexing for a volume called Backup, the command would be sudo mdutil -i off
Now to give you some grief about it:
This is pretty basic stuff - the less the hardware is used, the less power it will consume. If Spotlight, or any other app, is accessing the disk, then it will need power to do so. Likewise, if Spotlight is doing a bunch of searching through it's index that has to be loaded into RAM from the disk and those queries must be computed by the OS, then the disk and OS and RAM are all getting a workout.
What I recommend is that you check out what it is you are doing. If you are copy and moving files all over the place, or mounting and unmounting CDs, those processes would cause HD/CD usage as well as Spotlight indexing on top of that. Likewise, if you are doing a lot of Spotlight searching, there will be more usage because you are querying a DBMS.
Perhaps your battery is just coincidentally needed a replacement and/or non-spotlight related OS tweeks are changing power consumption.
I only came here to do two things; kick some ass, and drink some beer...looks like we're almost out of beer.
I've got half a gig, but I'm swapping constantly and apps like Safari regularly swell to consume all available RAM.
Widgets that access the internet regularly consume a hundred megs of swap and mdimport will start eating processor at random moments. Mail.app regularly tries to index the hundreds of thousands of files on my company's Exchange server and comes to a screeching halt.
Frankly, Tiger's been a major disappointment.
Clear, Dark Skies
Drag the volume you don't want indexed into the Privacy pane in Spotlight preferences.
No, I've experienced this too with a quite new iBook. Before Tiger I'd get battery life of just under 6 hours. Afterwards I'm lucky to get 5.
I believe it's correctly attributed to Spotlight, as every now and again, even when the machine is sitting plugged in and resting on my kitchen counter, I can hear it whirl it's harddisk as if it's indexing.
I would like a control panel applet to tune Spotlight, but I can wait. I already did my part in the deal (gave them an email and a submission on their website).
And for the trolls of the world, Apple's not perfect either. This is the first time this kind of tool has been included in an operating system, and it's something that will take quite a bit of time to tune and work out correctly. To be honest, in all of my works to do something similar, I've came out with the same results to a much lower quality, and any tool I've seen to do the same will probably harm my battery's life even more.
"Victory means exit strategy, and it's important for the President to explain to us what the exit strategy is." G.W.Bush
I'm not saying that it *isn't* Spotlight, but just about anything could be chewing up your battery. Widgets, indexing, screen savers, or even poor Engergy Saver settings. Have you checked to make sure that Spotlight is what's killing your battery?
0 808165343661
Several people have been complaining about a bug in Tiger and the 2005 Powerbooks that has to do with the trackpad:
http://www.macosxhints.com/article.php?story=2005
It seems that the new tracking features eat up a lot of processor time (and thus, a lot of battery as well).
Again, I'm not dissing the Spotlight issue: it's definitely something to look at. But if you're still having trouble, you might check on other factors that can kill your battery life.
#!/bin/bash
/usr/sbin/ioreg ] && \ /usr/sbin/ioreg -p IODeviceTree -n "battery" -w 0 | \ /^[{}]/!p
[ -x
sed -ne '/| *{/,/| *}/ {
s/^[ |]*//g
}' | \
awk '/IOBatteryInfo/ {
A=$3 $4
gsub("[{}()\"]","", A)
gsub(","," ",A)
print($1, $2, A)
}'
# EOF
Save that as a shell script, when you run it from terminal it will produce info like this:
"IOBatteryInfo" = Capacity=4046 Amperage=1157 CycleCount=483 Current=2837 Voltage=12187 Flags=838860807 AbsoluteMaxCapacity=4400
The difference between AbsoluteMaxCapacity and Capacity gives you an idea of how much my battery has faded since it was new...
Clear, Dark Skies
All it does now is respond to new files being created or files being changed. It doesn't need to scan for these as it is told directly by the operating system when the changes take place.
The constant disk access must be some other process.
Read this:
0 808165343661
http://www.macosxhints.com/article.php?story=2005
It is actually a bug with the driver for the new USB scrolling trackpad. This has been noted in various forums and Apple are aware of this problem.
If you plug in an external mouse and disable the trackpad, or replace the driver with SideTrack, the problem goes away.
This only effects the 2005 Powerbooks, and causes much higher CPU and memory load.
Will
per mere, per terras
Open Terminal and type this command, followed by return:
defaults write com.apple.dashboard mcx-disabled -boolean YES
Restart the dock, dashboard is dead.
To get dashboard back type:
defaults write com.apple.dashboard mcx-disabled -boolean NO
Spotlight put the machine through hell for a few days while it indexed everything it could find -- then it went to sleep.
Dashboard was eating battery life by 20% and increasing wait times on certain apps significantly -- that is until I killed it. Battery life instantly jumped right back up.
Spotlight is a one off issue that lasts about a day -- Dashboard is the ongoing PITA.
Mod me up, mod me down, flame me, praise me -- whatever you do, you help prove I exist...
Every time you modify a file, it is re-indexed. If you are downloading a lot of files, or touching a lot of files, then it is a good idea to add the folder containing them to the privacy list in the Spotlight settings in System Preferences. I have ~/tmp set to ignore, and I do anything here that I don't mind not being indexed. Although considering how rarely I use Spotlight, I should probably add a lot more...
I am TheRaven on Soylent News
Add this to /etc/hostconfig:
SPOTLIGHT=-NO-
Reboot, and you're done. The indexing service won't even load at boot. The spotlight icon will still be in the corner but will do absolutely nothing when you type in a string.
And by the way, a watched pot also never boils. I think you're just imagining that it's sucking up all your battery. But hey, it may use a few extra cycles and use up your battery a little quicker.
I just wasted your mod points! HA!
1. Open spotlight preferences, select privacy tab /tmp
2. Open finder window
3. Select go to folder in the finder menu
4. Type
5. Drag tmp folder to privacy list in spotlight preferences tab.
6. profit!
seSales, Point of Sale software for OS X.