Thursday, April 18, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 5382  / 2 Years ago, thu, june 23, 2022, 4:57:40

The battery in my Dell Inspiron 17 laptop is terrible and I'd like to get a replacement. Of course I have Ubuntu (22.04) installed, and I'd like to know how it will handle the replacement.


Will I be able to simply power off the laptop, insert the new battery, power it on, and Ubuntu will act as if nothing happened and continue working properly? Or will I get errors, will I have to change lots of configuration files, etc?


For those who asked - I wish to be replacing my battery because its capacity is at 68% (at the time of posting, it was 76%)


More From » 22.04

 Answers
2

In Brief


No special procedure or configuration will be required in Ubuntu.


i.e. If you follow your hardware manufacturer's specifications / guidelines and use a compatible battery, the new battery should work exactly like the one that you want to replace when it was new. It should work simply by swapping the old battery with the new one out of the box.




In Detail


Ubuntu like most modern OSes, for this matter, has little to do with your battery. Communication between the OS and the battery happens indirectly and across many layers. Nowadays, laptop batteries are equipped with their own management and reporting Smart Battery System that is made possible by electronics inside the battery package itself and it looks something like this:


enter image description here


The communication process with the OS happens, more or less, like so:


The battery state information is transmitted over a (System Management Bus) SMBus (which is a single-ended simple two-wire bus for the purpose of lightweight communication) to an (embedded controller) EC (which is a microcontroller in computers that handles various system tasks that the operating system does not handle). The EC is interfaced by (Advanced Configuration and Power Interface) ACPI (which provides an open standard that operating systems can use to discover and configure computer hardware components). Ubuntu kernel then gets informed about the battery via ACPI calls / methods.


i.e. Battery <-- EC <--> BIOS ACPI Methods <--> Ubuntu OS:



  • EC reads battery information and status from a battery.

  • EC generates a (System Control Interrupt / System Configuration Information) SCI to BIOS / OS.

  • OS reads via ACPI methods, which query data from EC.


For further details please see the Advanced Configuration and Power
Interface (ACPI) Specification
(section 10 starting at page 379 )


[#571] Friday, June 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
throecember

Total Points: 274
Total Questions: 118
Total Answers: 132

Location: India
Member since Thu, Jun 11, 2020
4 Years ago
;