Battery info in the terminal...

According to this article at MacFixit you can get info about your battery in the terminal using the following command.
ioreg -w0 -l | grep Capacity
When I type this in terminal I get something that says
usage: ioreg [-b] [-c class etc...
where options are:
-b show object name in bold
etc...
I was looking for the info like the article shows. Does anybody know how to obtain this info?
Chris
iBook G4   Mac OS X (10.4.8)   1.2 GHZ 1.25 GB RAM

This Syntax works for me. i think that you not type correct. But, you could try this: ioreg -p IODeviceTree -n battery -w 0 | grep IOBatteryInfo.

Similar Messages

  • MY SCREEN WILL NOT ROTATE! THERE IS ALSO A PICTURE OF A LOCK WITH A CIRCLE AROUND IT IN THE UPPER RIGHT CORNER BESIDE MY BATTERY INFO. HOW DO I GET MY SCREEN TO ROTATE?

    my screen will not rotate, how do i change this. there is also a picture of a lock w a circle around it in the upper right corner of screen beside my battery info.

    ok ipad or iphone??
    iphone - double tap the home button (the round button with the white square) then drag your finger across the button across the bottom of the screen (left to right) when the quick access bar opens. then u will see a icon on the left hand side that looks like that icon next to the battery. tap on that and it will disable the rotation lock fetcher
    ipad - double tap the home button (the round button with the white square) then drag your finger across the button across the bottom of the screen (left to right) when the quick access bar opens. then u will see a icon on the left hand side that looks like that icon next to the battery. tap on that and it will disable the rotation lock. if it dose not open try the switch on the side of the ipad that is a rotation lock switch in ios 3.x and in ios 4.3 it has the option to be a rotation lock switch.
    David

  • Looking for App that displays more Battery info?

    Hello
    I looking for an App wo gives me indication if the battery is in good health. This means gives me the actual battery capacity versus the original capacity. Every PowerBook and MacBook gives this info in the System Profiles or with Coconut
    eg.
    Model Information:
    Serial Number: 9G019049ABCDF
    Manufacturer: DP
    Device name: bq20z951
    Pack Lot Code: 0000
    PCB Lot Code: 0000
    Firmware Version: 0301
    Hardware Revision: 0001
    Cell Revision: 0119
    Charge Information:
    Charge remaining (mAh): 12404
    Fully charged: No
    Charging: No
    Full charge capacity (mAh): 13093
    Health Information:
    Cycle count: 13
    Condition: Normal
    Battery Installed: Yes
    Amperage (mA): -3
    Voltage (mV): 8235
    Is their such an App or is it not possible to read out this information out of the iPhone?
    Who knows more?
    Gérard

    I recently purchased the mSecure app for the same purpose but cannot get it to sync with the desktop version via wifi as it is supposed to do. Support response from mSecure has been good but still no luck syncing. All of these types of apps require syncing via wi-fi but not much good if it doesn't work. I've tried all of the suggested work-arounds to no avail. Any suggestions would be welcome. I'm trying to sync to a Windows laptop. I'm reluctant to use the same type of apps that back up to an online storage site for security purposes.

  • MISSING: Time, Date, Battery Info

    Since the new update, the Time, Date, Battery Info, etc that is normally in the top right hand corner toolbar is gone.
    Going into system preferences to click the box for time doesn't work, because it is checked.

    I am using a Panasonic  HDC TM 300.
    I have tried copying the individual .mts files and copying the entire folder structur. Neither of these show the EXIF info in the PPro cs 4 metadata (EXIF section).
    As I said the date/time info etc  shows up in  Adobe Bridge.
    Am I missing something or is this a problem with PPro cs 4??
    Kaybee

  • Pressing ^[ causes screen to pause redrawing the terminal, annoyingly

    I've come across an annoying behavior in GNU Screen. It's most prominent in vim: when I enter insert or command-line mode and press ^[ (escape), nothing happens for about .75 seconds, then the 'INSERT' indicator (or prompt) disappears. However, if I press a key during that interval, the change takes effect immediately. This annoyingness does not happen if I don't use screen.
    It seems ^[ causes screen to pause before redrawing the terminal. I haven't found any documentation on it though. Anyone have a solution?
    Clarification: This seems to happen with all command-line utilities in screen, not just vim.
    Might this have something to do with the ESCDELAY environment variable (ncurses(3))?
    Last edited by Peasantoid (2010-02-18 00:42:25)

    inxi -F output
    System:    Host: gort Kernel: 4.0.5-1-ARCH x86_64 (64 bit) Desktop: Xfce 4.12.2 Distro: Arch Linux
    Machine:   System: TOSHIBA product: Satellite L355 v: PSLD8U-06C01E
               Mobo: TOSHIBA model: Portable PC Bios: INSYDE v: 2.20 date: 12/09/2009
    CPU:       Dual core Intel Pentium Dual T3400 (-MCP-) cache: 1024 KB
               clock speeds: max: 2166 MHz 1: 2166 MHz 2: 2166 MHz
    Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller
               Display Server: N/A driver: intel Resolution: 132x42
    Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller driver: snd_hda_intel
               Sound: Advanced Linux Sound Architecture v: k4.0.5-1-ARCH
    Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169
               IF: enp2s0 state: down mac: 00:1e:33:88:c2:90
               Card-2: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) driver: ath5k
               IF: wlp3s0 state: up mac: 00:21:63:ba:02:86
    Drives:    HDD Total Size: 660.3GB (27.2% used) ID-1: /dev/sda model: FUJITSU_MHZ2250B size: 250.1GB
               ID-2: USB /dev/sdb model: MK1637GSX size: 160.0GB ID-3: USB /dev/sdd model: Portable size: 250.1GB
               ID-4: USB /dev/sdc model: Multi size: 0.1GB
    Partition: ID-1: / size: 87G used: 5.6G (7%) fs: ext4 dev: /dev/sda7
               ID-2: /home size: 20G used: 1.2G (7%) fs: ext4 dev: /dev/sda5
               ID-3: swap-1 size: 3.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda6
    Sensors:   None detected - is lm-sensors installed and configured?
    Info:      Processes: 159 Uptime: 17 min Memory: 625.8/2883.9MB Init: systemd Client: Shell (bash) inxi: 2.2.25

  • What Is The Terminal Command For PRAM & SMC Reset?

    Hi Folks - Cant get my Macbook Pro to shut down (instead it does a re-start) thus the key combination for these re-sets doesnt seem to function (no chimes). I saw in another thread a terminal command entry "sudo nvram boot-args=”-p -r” but I also saw it mentioned that entering that casued the following to pop-up "Note that resetting the PRAM will wipe out the contents of the boot-args environment variable, which means the command would need to be reissued each startup." Whats with "reissued each startup"? Also would like a an SMC re-set command. THANKS in advance!

    I dont know of a terminal command but here is how to reset the SMC:
    Resetting the System Management Controller (SMC)
    Resetting the SMC on Mac portables with a battery you can remove
    Shut down the computer.
    Disconnect the MagSafe power adapter from the computer, if it's connected.
    Remove the battery (to remove the battery - click here: MacBook or MacBook Pro).
    Press and hold the power button for 5 seconds.
    Release the power button.
    Reconnect the battery and MagSafe power adapter.
    Press the power button to turn on the computer.
    Resetting the SMC on portables with a battery you should not remove on your own
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer.

  • Cannot find Battery Info in System Profiler

    Cannot find "Battery Info" in System Profiler (4.0.4).
    Originally, I was going to title this post "battery not charging" - which is why I am looking for battery details. Of course, as soon as I started typing the battery clicked up a notch (29% to 30%).
    So, I got a confused battery and a confused System Profiler.
    A couple of weeks ago I had drained the battery completely and had to even run off the backup battery as I quickly finished what I was doing. I had since fully charged the battery and thought there were no problems.
    Then suddenly a couple of days ago, I looked up and it was stuck at 33%. When I tried to switch from "Percentage" to "Time", all I got was a "Calculating...", which it never actually did. I tried unplugging the computer, and it indeed did run off battery power, so it was at least communicating power-wise, if not information-wise. Two days of fiddling around offered no solutions. (Zapped the PRAM, reset PMU). Meanwhile the battery kept on not charging.
    Then, I start typing here and suddenly the battery is communicating with the computer. Percentage is ticking up and there is even an estimated "time until full". However, System Profiler still does not see any battery, or in fact even give me anything to click on for power management. It's not under Hardware, Software, Network or Logs. "Extended Report" doesn't find it either. I'm hoping I am just missing it somehow... is "Battery Information" hidden somewhere?
    The battery plug has now switched from green to orange and the indicator icon from a battery with a plug, to a battery with a lightning bolt. While I was trying to figure out the problem, I have taken out the battery several times, so I doubt it would be a simple connection issue.
    While I would like to believe my computer has magically healed itself, I suspect that something is still amiss. Maybe earlier versions of System Profiler did not have Battery Info?

    Hi, RW, and welcome to Apple Discussions. System Profiler prior to the version that came with Tiger doesn't report any battery info. If you're running Panther, that's why you can't find anything about your battery in SP. Jeremy Kezer's XBattery will provide info about your battery in Panther.
    Test to see whether your battery charges with a different, known-good AC adapter. That's the cheapest component of the charging system to replace if yours is faulty, and with luck that will prove to be where the problem lies. Other possibilities are a bad battery, DC-In board, or logic board.

  • How to show file names in russian (for instance) in the terminal window?

    I have a file with its name in russian. It shows fine in Finder. The terminal, however, shows it in question marks like this:
    *mark:/Users/Shared/Documents >l*
    *total 8*
    *drwxrwxr-x 5 yana parents 170 Jun 2 19:51 ForPrint/*
    *drwxrwxr-x 8 mark parents 272 Jul 6 22:30 Movies & Multiki/*
    *drwxrwxr-x 338 mark parents 11492 Aug 17 17:14 Photos & Clips/*
    *drwxrwxr-x 2 mark parents 68 May 29 21:50 SC Info/*
    *drwxrwxr-x 35 yana parents 1190 Jun 1 10:15 StarOfWeek/*
    *drwxr-xr-x 17 mark parents 578 Sep 15 15:11 ?????????????? ??????????????/*
    But when I run the directory listing through cat the contents display all right:
    *mark:/Users/Shared/Documents >l | cat*
    *total 8*
    *drwxrwxr-x 5 yana parents 170 Jun 2 19:51 ForPrint/*
    *drwxrwxr-x 8 mark parents 272 Jul 6 22:30 Movies & Multiki/*
    *drwxrwxr-x 338 mark parents 11492 Aug 17 17:14 Photos & Clips/*
    *drwxrwxr-x 2 mark parents 68 May 29 21:50 SC Info/*
    *drwxrwxr-x 35 yana parents 1190 Jun 1 10:15 StarOfWeek/*
    *drwxr-xr-x 17 mark parents 578 Sep 15 15:11 Детские песенки/*
    Any ideas?
    Thanks.

    This seems to have a lot of info.
    http://homepage.mac.com/thgewecke/mlingos9.html
    I got the same question marks when I used a translator on the net to make a file called hello world.txt and hello world.rtf.
    doug-penningtons-Computer:~/Desktop dougpennington$ ls
    Dictionary.app russian.txt ???????????? ??????.txt
    Yahoo Search.app ???????????? ??????.rtf
    Dictionary
    russian.txt
    Yahoo Search
    привет мир
    привет мир.txt

  • Can't write to Desktop ƒ; contradictory permissions info in the Get Info window

    I don't have write permission for my Desktop folder.
    In the folder's Get Info window, under Sharing & Permissions, it reports a contradiction:  it says "You can only read," and at the same time under Privilege it says I have "Read & Write" access. If try I use the popup menu to change "Read & Write" to something else, it goes right back to "Read & Write" upon releasing the menu.  At any rate, "You can only read" is the correct part of the contradictory info.
    My account is an Admin account.  I am typing the correct password to unlock the fields in the Get Info window.  I've tried repairing permissions in Disk Utility, and that didn't help.
    A user named bennarsson reported the exact same problem in this thread:  https://discussions.apple.com/thread/3039851?start=0&tstart=0
    baltwo responded that "If you've selected your Desktop folder, then something is extremely wrong if it says You can only read, while showing you under name with read and write privileges."  No kidding!  Other than that, bennarsson didn't get any solution to the problem. 
    Any ideas?  It's pretty frustrating not being able to modify anything in my Desktop folder!

    Try this. Launch the Terminal app in /Utilities, copy & paste this this command into TextEdit, substitute your actual username for the placeholder, copy and paste it into the window that pops up, and hit the return key. So if your username was mike, it would be sudo chown -R mike:admin ~/Desktop
    sudo chown -R username:admin ~/Desktop
    When the Password: prompt pops up, carefully type in your admin password, since nothing shows up on the screen, and hit the return key. That should do it.

  • HT1199 I have a MacBook Pro  10.7.3  I purchased finalemusic 2011.  When I try installing it, the Terminal on my macbook opens up a box and then does nothing. Is the problem with my mac? what do I do.

    I have a macbook pro 10.7.3.  I purchased finalemusic 2011.  when I try to install it the terminal opens up on my mac and nothing happens.  What do I do
    and is there a problem with my mac.   the program loads on my pc and it is for either windows or mac,

    Yeah the default program for installing Applications somehow got changed from the proper program to Terminal.
    Right click on the App .DMG file and select Open With. It should say DiskImageMounter.App. If it says Terminal then select Other, at the bottom of the list, and then find DiskImageMounter.app.
    Or after you right click on it select Get Info thenn in the Open With area select Other then find DiskImageMounter.app.
    By the way you are in the correct forum. It is a Mac problem.

  • What are all the 'Terminal' Commands?

    I use Terminal for fun with the commands and the killall argument command but i really want to know all the terminal commands so that i am not that bored. I always use the commands i know but they are getting old so please help.
    PLEASE!!!!!!!!!!!!
    Thanks,
    Andrew.

    The commands are be scattered around the hd.  A command is any file with the execution bit set on.
    The best way to go is to go to your local library and find any book on unix or bash.  There will be some difference between what you read and what is available in X.  the man command should key you in on the differences.
    A book on Bash would be helpful.
    Here is the book that I use:
    Mac OS X Tiger in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))
    This is also good & was in my local library.
    Practical Guide to Linux Commands, Editors, and Shell Programming, A (2nd Edition) [Paperback] the book Don't be fooled by the name, the second addition includes Mac OS X.  
    Advanced Bash Script. premise: Examples for everything. I have revision 6.2.
    tldp.org/LDP/abs/abs-guide.pdf
    BASH Programming - Introduction HOW-TO
    http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html#toc14
    Apple administrative commands
    http://manuals.info.apple.com/en_US/IntroCommandLine_v10.6.pdf
    Apple Shell Scripting Primer
    https://developer.apple.com/library/mac/documentation/OpenSource/Conceptual/Shel lScripting/ShellScripting.pdf
    Check you local library. Any book on Bash syntax will do. There will be minor differences but they will not be great.
    Sometimes you can get a good deal on used books in Amazon.
    Bash Cookbook, Carol Albing, JP Vossen & Cameron Newham (O'Reilly)

  • Battery Info Normal?

    I've been having battery problems which I described in another post, but I was just wondering if the battery information below from the system profiler is normal or not, so I will know if there is something wrong with my battery.
    Here's my battery info per system profiler.
    Is this normal?
    Battery Information:
    Battery Installed: Yes
    First low level warning: No
    Full Charge Capacity (mAh): 1263
    Remaining Capacity (mAh): 1263
    Amperage (mA): 0
    Voltage (mV): 12541
    Cycle Count: 82
    AC Charger Information:
    AC Charger (Watts): 65
    Connected: Yes
    Charging: No

    A new battery should have a capacity of 4400mAh, yours is only about a third of that, try recalibrating it by running it down completely then fully recharging it.
    I suspect its a bad one though.

  • [SOLVED] The terminal in the Arch installation

    I've notice that the terminal in the Arch installation has interesting features: the TAB autocompletion shows lots of information, typing a command and using up/down arrow only navigates through the history of this command... I love it. I'm using Arch with LXDE and its lxterminal does not have those features. Is it possible to install the Arch-installation terminal in LXDE? Or maybe adapt lxterminal someway? Thanks.
    Last edited by David López (2012-09-03 22:52:50)

    Background info: http://mailman.archlinux.org/pipermail/ … 02683.html
    The config it uses: http://www.archlinux.org/packages/extra … sh-config/

  • Battery plugged all the time ?

    If I plugged it to the power and use it all the time ,the battery wont be harm? Or I should remove the battery when I want to plug it to the power and use it ? can you tell me some advice about the battery ? I only know that I should recharge it only if it be under 20%.

    Hi:
    This link is provides all the information you wanted to know about battery care.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00596784&cc=us&dlc=en&lc=en&jumpid=reg_r1002_us...
    Here is the specific info regarding the battery when the notebook is primarily plugged in all the time.
    "Remove the battery from the notebook if the notebook will be plugged into AC power continuously (via a wall adapter or docking station) for more than 2 weeks."

  • My ipods battery keeps showing the battery is fully charged and i tried resetting it but the problem keeps occuring, My ipods battery keeps showing the battery is fully charged and i tried resetting it but the problem keeps occuring

    My ipods battery keeps saying its fully charged but its not and i tried reseting it and the problem still persits

    It may just be giving you false battery info. Unless it actually dies prematurely, Its just a software error. I would recommend restoring. http://support.apple.com/kb/ht1414

Maybe you are looking for