PDA

View Full Version : [ubuntu] battery life



jannevanhecke
December 11th, 2008, 08:04 PM
i have a hp pavilion 6550eb and i installed ubuntu.
My battery life is only about 45 minutes and in windows it was 2 hours.
Ubuntu says my battery is broken.
Can anyone help?

jannevanhecke
December 11th, 2008, 08:26 PM
nobody?

Kareeser
December 11th, 2008, 08:26 PM
Is it only detecting the wrong time? As in, after 45 minutes, does the laptop indeed die?

We'll need more info... could be anything, from the processor not dialing down while on battery... etc

jannevanhecke
December 11th, 2008, 08:32 PM
yes the laptop dies after 45 minutes. What more info doe you want?

uarale
December 11th, 2008, 08:42 PM
post the outcome of the following command:
$ cat /proc/acpi/battery/BAT1/info

that's the info about your battery status.

jannevanhecke
December 11th, 2008, 08:49 PM
janne@janne-laptop:~$ $ cat /proc/acpi/battery/BAT1/info
bash: $: command not found
janne@janne-laptop:~$ cat /proc/acpi/battery/BAT1/info
cat: /proc/acpi/battery/BAT1/info: No such file or directory

karlr42
December 11th, 2008, 08:52 PM
cat /proc/acpi/battery/BAT0/info
The output will show us what the designed capacity of the battery is versus it's charge last time it was fully charged.
Don't know why the previous poster said BAT1, you always count from zero in computing.

uarale
December 11th, 2008, 09:02 PM
Don't know why it's BAT1 on my machine,not BAT0.

Anyway, jannevanhecke, when you type to $ cat /proc/acpi/battery/BAT try to press [TAB] and it will auto complete the right number.

LowSky
December 11th, 2008, 09:06 PM
Don't know why it's BAT1 on my machine,not BAT0.


Some machines can accept two batteries at the same time, My dell Inspiron 8100 is an example of this, the is BAT1 and 0, BAT1 is actually used as defualt layout, BAT0 uses the same spot as my my floppy drive it kinda cool to have that kind of swapable space. It just depends on the layout of the computer. Your BIOS may actually name it BAT1 from the get go.

jannevanhecke
December 11th, 2008, 09:08 PM
present: yes
design capacity: 6000 mAh
last full capacity: 1536 mAh
battery technology: rechargeable
design voltage: 14800 mV
design capacity warning: 82 mAh
design capacity low: 50 mAh
capacity granularity 1: 10 mAh
capacity granularity 2: 25 mAh
model number: Primary
serial number:
battery type: LION
OEM info: Hewlett-Packard

linux_tech
December 11th, 2008, 09:11 PM
Some suggestions to conserve battery:

Make sure laptop-mode is started:

sudo laptop-mode start

Decrease display brightness
Turn wireless switch to off if your not using a wireless connection
Stop unnecessary processes, turn off any applications not being used
Remove your battery when working with AC power

This article will show you some for power management settings ideas such as installing powertop to conserve battery power.
http://www.phoronix.com/scan.php?page=article&item=ubuntu_battery_life&num=1

karlr42
December 11th, 2008, 09:12 PM
design capacity: 6000 mAh
last full capacity: 1536 mAh
Based on that I'd have to say your battery is on the way out. Probably time to get a new one.

jannevanhecke
December 11th, 2008, 09:31 PM
but it only began when i switched to ubuntu, my attery life was much longer on windows

jannevanhecke
December 11th, 2008, 09:32 PM
janne@janne-laptop:~$ sudo laptop-mode start
[sudo] password for janne:
sudo: laptop-mode: command not found

uarale
December 11th, 2008, 09:36 PM
you need to install the package ubuntu-laptop-mode
$ sudo apt-get install ubuntu-laptop-mode

-------------------

Sorry, i was wrong. ubuntu has laptop-mode-tools installed by default. all you need to do is opening the file /etc/default/acpi-support, then change the value of ENALBE_LAPTOP_MODE to true. You may need to restart the computer.
Check the laptop mode: $ cat /proc/sys/vm/laptop_mode, if the value is 0 then the laptop_mode is disabled.

jannevanhecke
December 11th, 2008, 09:51 PM
i just installed it but still get;

janne@janne-laptop:~$ sudo laptop-mode start
sudo: laptop-mode: command not found

uarale
December 11th, 2008, 10:01 PM
No, in Ubuntu you can't run that command. Maybe it can be used in other distros.
Read this: http://www.cyberciti.biz/faq/linux-laptop-power-saving/

If you've just installed ubuntu-laptop-mode, the package laptop-mode-tools must be removed!
Now you reinstall it: $ sudo apt-get install laptop-mode-tools

linux_tech
December 11th, 2008, 10:23 PM
In Synaptic, add for installation the following packages: acpi, acpid, acpi-support, laptop-mode-detect, and laptop-mode-tools

then in terminal type

sudo gedit /etc/default/acpi-support

Set the line ENABLE_LAPTOP_MODE=true

Save, exit

gjoellee
December 11th, 2008, 10:32 PM
you should try wattOS, which is based on Ubuntu and has a goal of making an energy efficient desktop which is light and fully functional.

http://www.planetwatt.com/

uchari
December 28th, 2008, 12:36 AM
uchari@uchari1:~$ cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 6000 mAh
last full capacity: unknown
battery technology: rechargeable
design voltage: 14800 mV
design capacity warning: 250 mAh
design capacity low: 150 mAh
capacity granularity 1: 10 mAh
capacity granularity 2: 25 mAh
model number: Primary
serial number:
battery type: LION
OEM info: Hewlett-Packard

this means that my battery died? because it doesn't last too much... no more than 30min...
can I force charging it?