[SOLVED] /sys/class/power_supply/BAT0 reads 0 for all power files

I'm on a Macbook 2,1 running Arch and just recently noticed that my conky started showing 2 billion % for my battery's charge. Conky simply uses:
${battery_percent BAT0}%
In any case, I've manually dug around as well in /sys/class/power_supply before to figure things out and in doing so found:
]$ ls /sys/class/power_supply/BAT0
alarm energy_now present type
cycle_count manufacturer serial_number uevent
device model_name status voltage_min_design
energy_full power subsystem voltage_now
energy_full_design power_now technology
$ cat /sys/class/power_supply/BAT0/energy_full
0
$ cat /sys/class/power_supply/BAT0/energy_now
0
$ cat /sys/class/power_supply/BAT0/power_now
0
$ cat /sys/class/power_supply/BAT0/present
1
$ cat /sys/class/power_supply/BAT0/status
Discharging
$ cat /sys/class/power_supply/BAT0/voltage_now
0
These use to contain non-zero values such that (energy_now/energy_full)=% charge.
Any suggestions on how to figure out what happened?
Last edited by jwhendy (2012-01-18 04:49:57)

@ManitOu:
-- Using ${battery BAT0) gives me [charging], so it must be looking at /sys/class/power_supply/status.
-- I didn't have acpid installed. I don't consider the battery an "event," but could be wrong. My read of the wiki is that acpid handles buttons and lid events and the like. This is simply looking for how much battery power I have. I installed acpid and started the daemon. There doesn't seem to be a change in /sys/class files or in conky's output. Do I need to restart after adding it to rc.conf for it to take effect?

Similar Messages

  • How to fix reading mode screen in Adobe Reader XI for all PDF files

    In Adobe Reader 9.5.1 it was enough to mark this option just once.

    My current Ver is 11.0.07   and the"view all recent files" selection is found by clicking on file and in the drop down menu it is the selection just above the list of recent files

  • Unable to open document. Please check to see if you have read permission for the above file.

    System:
    Adobe Acrobat X Pro, 10.1.2
    Windows 7 Enterprise, 32-bit
    Quad Core badass CPU
    4GB RAM
    MS Word 2010 (Office 2010)
    I installed the latest version as Administrator and am running as Administrator. I have all rights to all files on the PC.
    When I attempt to create a PDF from any Word document, whether .DOC or .DOCX, I get an error window every time:
    "Unable to open document:"
    "[document location]"
    "Please check to see if you have read permission for the above file."
    This happens after the little notice pops up "Starting the application which created the document...."
    If I open Word and create PDF from the ribbon, it works. It still won't allow me to create from Acrobat.
    It creates PDFs from Excel files but not DOC files. I've searched for solutions but found none. I did find this from July of 2011:
    "I have found out from Adobe technical support that this is a known issue with Office 2010 SP1 installed. This is an FYI for anyone else experiencing this issue, remove SP1 and it will work ok. They said an update to correct this issue will be coming within the next quarter."
    I have updated to the latest version 10.1.2 and still have this problem.
    This is a major issue, because it also fails on batch conversions, which is what I really need for the 100 or so documents that need to be PDFed. I'm not going to open each individual file and save each one from within Word.
    This is a KNOWN ISSUE at Adobe, and if you look through the forums you'll find many people having this problem, and so far, I have not seen any solution.
    If anyone has found the solution, please post it here.
    Thanks!
    B

    I think I found a solution. It seems to be relatet to normal.dotm.
    In our environment we have upgraded from XP & Office 2003 to Win7 and Office 2010. Normal.dot is stored on the users home share. When Office 2010 is started for the first time (for a user) it takes some of the old stuff from normal.dot and puts it in the new normal.dotm. When this happens, we get this error in Acrobat X.
    The solution is to rename both normal.dot and notmal.dot to e.g. normal.dot.old and normal.dotm.old. Office/Word 2010 will then create a new, "clean" normal.dotm.
    (By the way, if you are in a corporate environment, you might have changed the default path to normal.dot in Office group policies. You can see it here: HKEY_CURRENT_USER\Software\Policies\Microsoft\office\14.0\common\general\usertemplates)
    I would be interested in knowing exactly why/what in normal.dotm caused this error. I can provide you (Adobe) with a faulty normal.dot(m), if you're interested.

  • Make UDF Read-only for all users

    Hi
    Can i use any script to make a UDF read-only for all users?
    i am looking at CPRF and CUFD Tables
    thanks

    Hi,
    You should never try updating system table directly.  That will against supporting policy by SAP.
    Thanks,
    Gordon

  • READ privileges for *all the databases*

    Is it possible to grant READ privileges for all the databases objects (tables, schema, triggers, procedures, view and etc)

    SHANOJ wrote:
    Is it possible to grant privileges to all objects in one time?It depends on what you mean by 'in one time'. In one single SQL statement? No. But there's nothing stopping you issuing a billion grants one after the other in your session.
    Roles are probably better suited for this task. But are you sure you really want to grant SELECT privileges on all the tables in the database? It's more common to grant SELECT on all the 'MARKAPP' tables to the 'MARKAPP_READ_ONLY' role...

  • Change read mode for all queries

    Hello, this should be an easy question for someone.  I believe there is a way to change the "read mode" for all queries at once.
    Can you tell me how to do that ?
    Thanks very much !!
    Keith

    Hello Bhanu,
    Iam not able to change query in my BW system but when i add authorization of SAP_NEW and SAP_ALL ,then iam able to change ,can i make modification in this table and then
    change or its a authorization problem.If this issue can be resolved with changing this table, kindly tell me how i have to call this table and wt parameters to change,kindly revert at earliest.I have sent u a mail also,kindly plz check.
    Regards,
    Saumya

  • I have Adove Reader XI. All my files have a picture as the first page. I used to be able to see the picture for each file. Now all I see is the PDF logo. How can I change this so I can see the pictures instead of the logo?

    I have Adobe Reader XI. All my files have a picture on the first page. I used to be able to see that picture but now I can only see the PDF logo. How can I change that so I can see the pictures instead of the logo?

    Windows 7

  • Can we keep one action file for all jsp files in struts?"

    I have 5-6 Jsp pages and all are inter connected.
    If any one make changes, these changes should be display in the database.
    In this case, I need only one Action class which can hold or manipulate all changes from all jsp pages. I am not sure "Can we keep one action file for all jsp files?"
    If yes, then how can we configure struts-config.xml file.
    If no, then pls suggest me any altenative solution.

    hai
    go for DispatchAction class and then pass as parameters
    refer struts complete reference...
    it will solve ur problems..

  • I have a license for all adobe files but recently i had a virus and all my files were deleted.Now when i want to have them back with my redemption code it says that i cannot use it anymore.But my license is not expired.How do i get my files back??

    i have a license for all adobe files but recently i had a virus and all my files were deleted.Now when i want to have them back with my redemption code it says that i cannot use it anymore.But my license is not expired.How do i get my files back??

    Your redemption code was used to acquire an activation code.  The activation code is what you need to use when you want to reinstall/enable the software again.  Check your Adobe account online to see if the number(s) can be found there.

  • How to designate a program for all avi files

    hi. i dl-ed the vlc player recently, but i dont know how to set it as the default player for all avi files. i secondary click on a avi file and go to others... and select the vlc player with 'always use this program' checked, but this allows only that single avi file to open with vlc. the rest of avi files are still set to open with quicktime. please kindly help me to designate the vlc player to open all avi files. thank you.
    my best,
    jeff kwak

    If you use the Finder and do a 'Get Info' on your target file, you'll find additional options/dialogs that will let you choose to open all similar files with the same application...check it out and come on back if you get lost in the process, etc.

  • Safari shows "The network connection was lost" for all flv files on the internet.  Firefox plays all

    I upgraded to the lastest version of Flash to fix what I thought was a problem in Firefox.  That problem turned out to be something else but now Safari will not play ANY flash content.  I have uninstalled and reinstalled several times.  I have even installed an older version.  All of these have the exact same result.  Flash works in Firefox but not in Safari.  I have cleared the cache.  I have gone into the flash securty settings and deleted all content.  Nothing seems to change this.  Anyone have any ideas?

    Plug-Ins are installedand keep in mindthis problem affects all 3 browsers i am using IE9, Safari5 & Firefox 19NOT a SPECIFIC browser issuewhich is why i think it's either "Flash" (Adobe) or streaming web-site (Freedocast) issue.
    Date: Mon, 1 Apr 2013 01:25:24 -0700
    From: [email protected]
    To: [email protected]
    Subject: Safari shows "The network connection was lost" for all flv files on the internet.  Firefox plays all
        Re: Safari shows "The network connection was lost" for all flv files on the internet.  Firefox plays all
        created by Sunil_Bhaskaran in Installing Flash Player - View the full discussion
    Have you enabled plug-ins in Safari?Could you please go through the last question of Mac section in the following URL: http://helpx.adobe.com/flash-player/kb/flash-player-faq.html#main-pars text1 Thanks,Sunil
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5195274#5195274
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5195274#5195274
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5195274#5195274. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to export book pdf using custom presets for all book files in indesign using javascript

    How to export book pdf using custom presets for all book files in indesign using javascript.

    Hi jackkistens,
    Try the below js code.
    Note: you can change your preset name in below (e.g, Your preset name).
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "Your preset name", myBook.bookContents, "Book_PDF", false);
    example:
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "[High Quality Print]", myBook.bookContents, "Book_PDF", false);
    thx,
    csm_phil

  • Reader 9.3 produces Runtime error for all .pdf files on hard drive and email

    Does anyone have a resource that can show me how to eliminate a runtime error with Reader 9.3.1, Windows XP w/ SP3 and IE7. I have recently had all .pdf files located on my hard drive and in emails refuse to open because of this message:
    "Runtime Error!
    Program C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe
    This application has requested the Runtime to terminate it in an unusual way.  Please contact the application's support team for more information."
    So far, I have uninstalled and reinstalled Reader 9.3 from the website; added update 9.3.1 and tried to reopen files with no success.
    My organization sends a ton of .pdf files and it is not good when you can't open them for review and action.

    Hi All,
    Although I don't normally post in forums, I thought it prudent to lay this matther to rest.  I have tested the following solution:
    It appears that Adobe Reader likes to check access to each parent folder as well as the actual application data folder.  Apparantly there are other programs that also do similar things. As a result if you have your appdata redirected to \\server1\profiles\%username%\appdata adobe reader would first try directly access \\server1\profiles.  If the user does not have to Traverse folder permission, this fails. Typically you will need to change your permissions on you profile share from:
    -                   Users - Read Attributes (Apply to: This folder, subfolders and files)
    -                   Users - Read Extended Attributes (Apply to: This folder, subfolders and files)
    -                  Users - Create Folders/Append Data (Apply to: This folder, subfolders and files)
    -                   Users - Read Permissions (Apply to: This folder, subfolders and files)
    To the share permissions suggested by Microsoft in KB 274443:
    -                   Everyone - Create Folder/Append Data (Apply onto: This Folder Only)
    -                   Everyone - List Folder/Read Data (Apply onto: This Folder Only)
    -                   Everyone - Read Attributes (Apply onto: This Folder Only)
    -                   Everyone - Traverse Folder/Execute File (Apply onto: This Folder Only)
    Hopefully this helps everyone.

  • Read data : for all entries

    wht happens if v read data using FOR ALL ENTRIES in select statement

    Hi Ankur,
    You can only use FOR ALL ENTRIES IN ...WHERE ...in a SELECT statement.
    SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result set. If the internal table itab does not contain any entries, the system treats the statement as though there were no WHERE cond condition, and selects all records (in the current client).
    For Example:
    SELECT *
      FROM SCARR
      INTO TABLE t_scarr.
    LOOP AT t_SCARR INTO wa_scarr.
      SELECT SINGLE *
        FROM sflight
        INTO wa_sflight
       WHERE carrid EQ wa_scarr-carrid.
      APPEND wa_sflight TO t_sflight.
    ENDLOOP.
    Instead of the Above use below code:
    SELECT *
      FROM SCARR
      INTO TABLE t_scarr.
    SELECT *
      FROM SFLIGHT
      INTO TABLE t_sflight
       FOR ALL ENTRIES IN scARR
    WHERE carrid EQ t_scarr.
    this condition, return all entries of the sflight
    Refer the Below Links for more Info:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm
    Regards,
    Sunil

  • Read Only for all but creator of original file

    I need to accomplish the following:
     The goal is for us all to have access to read all the files associated with the audit. Only person posting the file should be able to modify it.
    Would this be:
    Everyone: Read/Write/Create
    Owner: Modify/Delete
    As right now they all can read/write/delete any document they would like.

    Ah, I see. I'll clarify: you're supposed to set these permissions on the topmost folder
    where your users are supposed to create files:
    This folder and subfolders:
    Everyone - Read and Execute, Create files
    Files only:
    Everyone - Read and Execute
    CREATOR OWNER - Modify
    The end result is that users can create files in that folder and all its subfolders - they cannot create folders, but they can read everything. Now, when a user creates a
    file in this folder structure, that user and that user only will automatically get Modify on that particular file (the CREATOR OWNER permission is translated to that user account in the ACL).
    An example:
    Let's say your topmost folder is D:\Data\Users. You apply the above permissions to
    this folder. Then, a user with the account name YOURDOMAIN\User1 comes along and creates the file "MyTasks.txt" in this folder. That file will then have the following permissions:
    Everyone - Read & Execute
    YOURDOMAIN\User1 - Modify
    As you can see, there is no need for any special groups. Try it out!

Maybe you are looking for

  • IMac no longer prints to network printer

    I am running OS 10.3.9 on our iMac G4 and it seems that we can no longer print to our networked Brother 1870N laser printer. We execute a print command and the queue opens, the printer wakes up like it normally does to start a job, but then the docum

  • [SOLVED] How to clean things up?

    Since I'm quite new to Arch, I must've installed a dozen packages which I don't need and only take space. Is there some sort of way to detect everything that isnt used? Since a lot of packaged depend on other packages before they can run properly I c

  • Is there a script that will reset preferences in Illustrator?

    I'm using Illustrator CS6 and Illustrator CC on both Mac and PC. Holding down Ctrl-Alt-Shift or Command-Option-Shift while launching Illustrator does not work to reset the preferences. Does anyone know an easy way to reset preferences?

  • Help with RMI university assignment

    Hi everybody, The assignment asks for the definition of three remote interfaces ICompany, IProject and IStaff, define one 1:M relationship (ICompany -> IProject) and print on the console the company together with the projects they have placed. There

  • [SOLVED] Uvesafb compiled into the kernel.

    I'm having some trouble getting uvesafb to work... As far as I know, compiling it into the kernel is possible, but when I do I can't get it to work the following appears at boot time: uvesafb: failed to execute /sbin/v86d uvesafb: make sure that the