[SOLVED]Battery settings are stored in system or the battery firmware?

I am dual-booting on a Thinkpad T410 with Windows7 and Manjaro with a 55++ battery.
In Windows, I switch between "Always fully charge" and "Automatically optimize for battery lifespan" in Power Manager > Battery > Battery Maintenance, i rebooted in Linux and i think the settings are affecting Linux too.
So the question is: this settings are stored in system or the battery firmware?
Last edited by aaron8x (2012-12-23 09:07:55)

The settings are stored in firmware, and your observation is correct, the settings are affecting both operating systems. If you want to set the thresholds with linux only (i recommend you to do so) use tpacpi-bat.
When it comes to supporting other os like manjaro this forum is not ideal.
AUR: https://aur.archlinux.org/packages.php?ID=54293
github: https://github.com/teleshoes/tpacpi-bat
Necessary information:
https://wiki.archlinux.org/index.php/Tp_smapi
Last edited by teateawhy (2012-12-18 19:23:41)

Similar Messages

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • My volume buttons won't work. Music plays when I get a phone call. That is the only time my speaker makes noise. My settings are how they should be, the top button is not on silent, I've shut my phone off many times, I've totally restored my phone. Help

    My volume buttons won't work. Music plays when I get a phone call. That is the only time my speaker makes noise. My settings are how they should be, the top button is not on silent, I've shut my phone off many times, I've totally restored my phone. Help

    Genius reservation http://www.apple.com/retail/geniusbar/

  • Anyone having same prob as me? I updated to 8.1.3 and lost photo stream - all settings are set for photostream updating - the blue shirts at the Apple store seem to think that the feature was removed with the 8.1.3 update

    Is anyone having same prob as me? I updated to 8.3 and lost photo stream on my photos - all my settings are set for photostream updating - the blue shirts at the Apple store seem to think that the feature was removed from the phones with the 8.1.3 update but it is not mentioned anywhere on Apple's site

    found it
    http://gimutaowebsolution.com/missing-photos-on-ios-8-3-or-8-x/

  • Did all the updates that Apple requested in my 64 GB IPOD and the battery continues discharging very quickly. When this problem will be solved, because before these updates were downloading not the battery so quickly. Did we revive the Steve Jobs to resol

    Did all the updates that Apple requested in my 64 GB IPOD and the battery continues discharging very quickly. When this problem will be solved, because before these updates were downloading not the battery so quickly. Did we revive the Steve Jobs to resolve the problem, because each update only worsens the operation. I look forward to a quick, effective and definitive solution. Thank You. Ester

    Did all the updates that Apple requested in my 64 GB IPOD and the battery continues discharging very quickly. When this problem will be solved, because before these updates were downloading not the battery so quickly. Did we revive the Steve Jobs to resolve the problem, because each update only worsens the operation. I look forward to a quick, effective and definitive solution. Thank You. Ester

  • I got my battery replace today and must know is the battery health good or bad!

    I got my battery replace today and must know is the battery health good or bad!
    Here are the datails direct from the ibackupbot Programm
    Battery
    CycleCount: 231
    DesignCapacity: 1420
    FullChargeCapacity: 1258
    Status: Success
    BatteryCurrentCapacity: 78
    BatteryIsCharging: false
    ExternalChargeCapable: false
    ExternalConnected: false
    FullyCharged: false
    GasGaugeCapability: true
    My Phone info
    iPhone 5 64GB
    iOS 7.1.2
    Please I really have to know it!
    Thanks in advance!

    sorry but I get my battery replaced by another local Service store called "http://handy-doktor.info"!
    So accourding your answer is my battery not a new one, right??
    Thanks in advance!

  • HT201263 When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds.  While in auto-lock it is using battery power and will do so until the battery is drained.  Whats wrong

    When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds.  While in auto-lock it is using battery power and will do so until the battery is drained.  Whats wrong?

    - Try a reset. Nothing is lost:
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Connect the iPod to your computer and try to restore via iTunes. Try placing in Recovery mode if necessary to restore.
    - If you can't turn the iPod completely off, let the batter fully drain. After charging for at lerast anhour try again
    - If still not successful time for an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.

  • I am in China. When I plug in my powerblock i get a green light for 10-15 seconds then it turns orange. It seems to feed power but not charge the battery. i have a message that says the battery is not charging.

    I am in China. When I plug in my powerblock i get a green light for 10-15 seconds then it turns orange. It seems to feed power but not charge the battery. i have a message that says the battery is not charging.

    Do  these
    https://support.apple.com/kb/HT3964
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/26871.html
    https://support.apple.com/kb/TS1713
    https://support.apple.com/kb/ht1509
    could be the power isn't sufficient, use another location
    make a note of any results you get and post them

  • I have purchased a mac in 2008 but now im facing the battery issue can u people get me the battery

    i have purchased a mac in 2008 but now im facing the battery issue can u people get me the battery. Two days back i also purchased a charger from ur apple authorised service centre and even though im not able to use my mac without power once i remove the charger from the power automatically it will switch off
    kindly help me ???

    You may find a battery for your Macbook here:
    http://eshop.macsales.com/shop/Apple/Laptop/Batteries
    Ciao.

  • Hi my name is Vajra from INDIA, i am using ipod shuffle 3rd generation but it is not working properly due to battery problem, i need to change the battery please guide me how to change the battery or any chance to replace the ipod shuffle 3rd generation ?

    Hi my name is Vajra from INDIA, i am using ipod shuffle 3rd generation but it is not working properly due to battery problem, i need to change the battery please guide me how to change the battery or any chance to replace the ipod shuffle 3rd generation ?

    Seems no one care about us .no one replied till no@!!!!@ strange

  • I have just got my iPad2 and very pleased with it. I have a question regarding the monthly (recommended) battery full charge.  Should I let the battery completely die down to nothing at all or would this be bad for my iPad?

    I have just got my iPad2 and am very pleased with it. I have a question regarding the monthly (recommended) battery full charge.  Should I let the battery completely die down to nothing at all before I plug in to recharge or would this complete drain be bad for my iPad?

    It's not bad for it - on this page www.apple.com/batteries/ipad.html it says :
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).

  • HT1476 My battery dies very quickly and even when the battery indicates that it is 50% full

    My battery dies very quickly and even when the battery indicates that it is 50% full

    I had similar issue with one of the macbooks in the office. Make sure you've got latest firmware installed (run Software Update). This resolved the issue for us instantly (you may need to reboot mac AFTER firmware upgrade for this to work).

  • Tables in which Read mode and Cache settings are stored for Bex

    Hi BI Experts,
    We have a requirement for which we need to know the tables in which the read and cache modes are stored(locally and globally) when we change them in the query properties(In T code RSRT) of a query
    Thanks in advance
    Regards,
    M
    Edited by: madhu marupudi on Feb 5, 2009 5:30 PM

    Hi,
    Check in the following tables, these are related to Reports tables.
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSRREPDIR Directory of all reports (Query GENUNIID)
    RSZCOMPDIR Directory of reporting components
    RSZRANGE Selection specification for an element
    RSZSELECT Selection properties of an element
    RSZELTDIR Directory of the reporting component elements
    RSZCOMPIC Assignment reuseable component <-> InfoCube
    RSZELTPRIO Priorities with element collisions
    RSZELTPROP Element properties (settings)
    RSZELTATTR Attribute selection per dimension element
    RSZCALC Definition of a formula element
    RSZCEL Query Designer: Directory of Cells
    RSZGLOBV Global Variables in Reporting
    Thanks
    Reddy

  • Does anyone know where IAC settings are stored?

    does anybody know in which preferences file the custom IAC channel settings are being stored? i am trying to copy my settings over from 10.5.8 to 10.6
    thanks!

    I added a bus to the IAC via Audio Midi setup, closed it and then looked at which file in the preferences had the right modification time. It turned out to be this one:
    /Users/'you'/Library/Preferences/ByHost/com.apple.MIDI.000a959c7684.plist
    So try copying that one, and see if it works...
    regards, Erik.

  • Is there a settings in Win7/HP feature that the battery does not charge until it is under 95%

    I just purchased a HP Pavilion dv6-7043cl laptop and have noticed that the battery does not charge unless it is below 95%.  I am very concercerned because I had a different laptop from a different manufacturer where I had battery issues.  That manufacturer was not helpful and I will never buy from them again.
    I have heard good things about HP which is why I decided to buy this particular machine.  However,  I have only had this machine for 3 days and now this is starting.  I cannot find a Win 7 (I am running Win 7 home premuim 64 bit) setting that controls when the battery starts to charge.  Is this a function of the HP Power Manager?  Is this a feature of the battery HP ships with their laptops?  Or is this indicating a problem with this machine?   I am a college student and I need a reliable laptop for school. 
    Any information you can provide is greatly appreciated.
    Thanks,
    HanNan
    This question was solved.
    View Solution.

    Hi,
    This feature is intended by design in order to reduce unecessary charge/recharge cycles - reference to this can be found in the 5th paragragh in the document below.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00287805&cc=us&dlc=en&lc=en
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for

  • In Scope missing in Transaction tab

    Hi All, My company has recently started to work with Solution manager. We have created a template project in solution manager that contains all our processes. I'm now tasked by testing the testing functionality of solution manager. By reading and doi

  • Sub Picture problem in Encore CS6

    I am working on my first bluray project. I made the Menu for Encore as I have make many in Photoshop. The video is 1280 x 720 so I made the Menu 1280 x 720. The problem is with the Highlight layers, but not all of them. Here is a composite of 3 scree

  • BB Link crashes when trying to sync outlook calendar/contacts with Z30

    I have just purchased a Z30 and need to get my contacts and calendar to sync from Outlook 2010 using USB.  Setup of Link 1.2.3.56 worked well and shows account on the Z30.   As soon as I try to manually sync from Link, I receive a message that Link h

  • Protecting a swf from decompilation ?

    The problem is the following i have an application that needs to login to a server but in order to do that it has the admin username and password in its actionscript.There is no way of removing the password from the AS so i need a way to protect my f

  • Problems with A/V chat, Cisco 2600 routers and more...

    Don't really know where to start... First some error messages: 2005-11-17 12:38:03 +0300: AA AA did not respond. Tried to send UDP SIP-«invite» to the following IP-addresses and ports: 172.XX.X.X:1118 2005-11-17 13:33:37 +0300: AA AA svarte ikke. Tri