LINUX.ORG.RU
решено ФорумTalks

[Владельцам лаптопов] Покажите вывод датчиков своих батарей


0

1

Пишу для себя монитор заряда батареи лаптопа, но есть желание сделать его универсальным. Требуется вывод следующих комманд при включенном и отключенном адаптере:

grep . /sys/class/power_supply/BAT*/*
Владельцев ThinkPAD'ов с загруженным модулем tp_smapi просьба также показать вывод
grep . /sys/devices/platform/smapi/BAT*/*
соответственно при подключенном и отключенном адаптере.

Если кто знает где располагается дока по структуре этого самого /sys/class/power_supply/*, просьба поделится ссылкой. Если у других производителей (не IBM/Lenovo) существуют специальные интерфейсы к информации о батарейке вроде tp_smapi просьба рассказать о них.

Вкратце о мониторе:

  • Язык — Python
  • Тулкит - PyGTK
  • Поддержка тем значков
  • Висит в трее
  • Никаких HAL, UPower и т.п. только чтение файлов из sysfs
  • Возможность выбора между (пока) acpi и smapi интерфейсами.
  • License — BSD 2 clause
  • Лисапед — да, но ничего с похожими характеристиками не нащел

В будущем, при наличии желания (что маловероятно), возможно перепишу на C/GTK.

★★★★★

Toshiba Satellite A210-127

aydar@aydeb:/sys/class/power_supply$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:4000000
/sys/class/power_supply/BAT1/charge_full_design:4000000
/sys/class/power_supply/BAT1/charge_now:4000000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/manufacturer:TOSHIBA
/sys/class/power_supply/BAT1/model_name:PA3457U 
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:3658Q
/sys/class/power_supply/BAT1/status:Unknown
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4000000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=4000000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=4000000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=PA3457U 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=TOSHIBA
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=3658Q
/sys/class/power_supply/BAT1/voltage_min_design:14800000
/sys/class/power_supply/BAT1/voltage_now:14800000

aydar ★★★★★
()

Dell Inspiron 1525

Вкл.:

/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:2887000
/sys/class/power_supply/BAT0/charge_full_design:5200000
/sys/class/power_supply/BAT0/charge_now:5200000
/sys/class/power_supply/BAT0/current_now:1000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:Sanyo
/sys/class/power_supply/BAT0/model_name:DELL XR6948
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:5669
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12033000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=1000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=5200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=2887000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=5200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL XR6948
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=Sanyo
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=5669
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:12033000

Выкл.:

/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:2887000
/sys/class/power_supply/BAT0/charge_full_design:5200000
/sys/class/power_supply/BAT0/charge_now:2746000
/sys/class/power_supply/BAT0/current_now:2704000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:Sanyo
/sys/class/power_supply/BAT0/model_name:DELL XR6948
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:5669
/sys/class/power_supply/BAT0/status:Discharging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=11699000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=2704000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=5200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=2887000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=2746000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL XR6948
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=Sanyo
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=5669
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:11699000
post-factum ★★★★★
()
Ответ на: Toshiba Satellite A210-127 от aydar

с выключенным адаптером

aydar@aydeb:/sys/class/power_supply$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:4000000
/sys/class/power_supply/BAT1/charge_full_design:4000000
/sys/class/power_supply/BAT1/charge_now:3880000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/manufacturer:TOSHIBA
/sys/class/power_supply/BAT1/model_name:PA3457U 
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:3658Q
/sys/class/power_supply/BAT1/status:Discharging
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4000000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=4000000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=3880000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=PA3457U 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=TOSHIBA
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=3658Q
/sys/class/power_supply/BAT1/voltage_min_design:14800000
/sys/class/power_supply/BAT1/voltage_now:14800000

aydar ★★★★★
()

ASUS A6

sylvia@allure:/usr/local/firefox$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/energy_full:21240000
/sys/class/power_supply/BAT0/energy_full_design:64500000
/sys/class/power_supply/BAT0/energy_now:21240000
/sys/class/power_supply/BAT0/manufacturer:ASUSTEK
/sys/class/power_supply/BAT0/model_name:A6-4222
/sys/class/power_supply/BAT0/power_now:0
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=16621000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_POWER_NOW=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=64500000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL=21240000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_NOW=21240000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=A6-4222
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=ASUSTEK
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 
/sys/class/power_supply/BAT0/voltage_min_design:14800000
/sys/class/power_supply/BAT0/voltage_now:16621000
sylvia@allure:/usr/local/firefox$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/energy_full:21240000
/sys/class/power_supply/BAT0/energy_full_design:64500000
/sys/class/power_supply/BAT0/energy_now:21240000
/sys/class/power_supply/BAT0/manufacturer:ASUSTEK
/sys/class/power_supply/BAT0/model_name:A6-4222
/sys/class/power_supply/BAT0/power_now:29490000
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 
/sys/class/power_supply/BAT0/status:Discharging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=16043000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_POWER_NOW=29490000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=64500000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL=21240000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_NOW=21240000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=A6-4222
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=ASUSTEK
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 
/sys/class/power_supply/BAT0/voltage_min_design:14800000
/sys/class/power_supply/BAT0/voltage_now:16043000

Sylvia ★★★★★
()

DELL Inspiron 1520

~> grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:4786000
/sys/class/power_supply/BAT0/charge_full_design:5200000
/sys/class/power_supply/BAT0/charge_now:5200000
/sys/class/power_supply/BAT0/current_now:1000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:SMP
/sys/class/power_supply/BAT0/model_name:DELL NR2187
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:1732
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12419000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=1000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=5200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=4786000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=5200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL NR2187
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SMP
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=1732
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:12419000
Freiheits-Sender ★★
()

Toshiba Satellite M70-354

on

/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:4400000
/sys/class/power_supply/BAT1/charge_full_design:4400000
/sys/class/power_supply/BAT1/charge_now:4400000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/manufacturer:TOSHIBA
/sys/class/power_supply/BAT1/model_name:PA3465U 
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:3658Q
/sys/class/power_supply/BAT1/status:Unknown
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=11100000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=4400000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=4400000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=PA3465U 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=TOSHIBA
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=3658Q
/sys/class/power_supply/BAT1/voltage_min_design:11100000
/sys/class/power_supply/BAT1/voltage_now:11100000

off

/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:4400000
/sys/class/power_supply/BAT1/charge_full_design:4400000
/sys/class/power_supply/BAT1/charge_now:4400000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/manufacturer:TOSHIBA
/sys/class/power_supply/BAT1/model_name:PA3465U 
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:3658Q
/sys/class/power_supply/BAT1/status:Discharging
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=11100000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=4400000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=4400000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=PA3465U 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=TOSHIBA
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=3658Q
/sys/class/power_supply/BAT1/voltage_min_design:11100000
/sys/class/power_supply/BAT1/voltage_now:11100000

beastie ★★★★★
()

Acer Aspire 7720G

Включен.

valentin@home-3:~> grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:4101000
/sys/class/power_supply/BAT0/charge_full_design:4500000
/sys/class/power_supply/BAT0/charge_now:4101000
/sys/class/power_supply/BAT0/current_now:473000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:SANYO 
/sys/class/power_supply/BAT0/model_name:GC86508SAT0 
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12458000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=473000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4500000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=4101000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=4101000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=GC86508SAT0 
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SANYO 
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=
/sys/class/power_supply/BAT0/voltage_min_design:10800000
/sys/class/power_supply/BAT0/voltage_now:12458000

Отключен.

valentin@home-3:~> grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:4101000
/sys/class/power_supply/BAT0/charge_full_design:4500000
/sys/class/power_supply/BAT0/charge_now:4019000
/sys/class/power_supply/BAT0/current_now:333000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:SANYO 
/sys/class/power_supply/BAT0/model_name:GC86508SAT0 
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/status:Discharging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12246000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=333000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4500000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=4101000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=4019000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=GC86508SAT0 
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SANYO 
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=
/sys/class/power_supply/BAT0/voltage_min_design:10800000
/sys/class/power_supply/BAT0/voltage_now:12246000

valentin_v13 ★★★
()

dell xps 1330m - батарея увел. емкости 6600

/sys/class/power_supply/BAT0/alarm:0 /sys/class/power_supply/BAT0/charge_full:5236000 /sys/class/power_supply/BAT0/charge_full_design:6600000 /sys/class/power_supply/BAT0/charge_now:6600000 /sys/class/power_supply/BAT0/current_now:1705000 /sys/class/power_supply/BAT0/manufacturer:Sanyo /sys/class/power_supply/BAT0/model_name:DELL UM2307 /sys/class/power_supply/BAT0/present:1 /sys/class/power_supply/BAT0/serial_number:2413 /sys/class/power_supply/BAT0/status:Discharging /sys/class/power_supply/BAT0/technology:Li-ion /sys/class/power_supply/BAT0/type:Battery /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12520000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=1705000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=6600000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=5236000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=6600000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL UM2307 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=Sanyo /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=2413 /sys/class/power_supply/BAT0/voltage_min_design:11100000 /sys/class/power_supply/BAT0/voltage_now:12520000

SR
()

вообще-то, достаточно /sys/class/power_supply/BAT*/uevent

eval на него, и есть уже готовые переменные. правда, есть одна мерзость - некоторые батареи отдают заряд как
POWER_SUPPLY_ENERGY_NOW/POWER_SUPPLY_ENERGY_FULL, а другие - POWER_SUPPLY_CHARGE_NOW/POWER_SUPPLY_CHARGE_FULL

ananas ★★★★★
()
Ответ на: комментарий от Sylvia

Меня больше интересует почему у некоторых (в т.ч. и уменя) charge_full меньше charge_now, ибо первое как я понял это последний уровень полного заряда а второе текущий уровень заряда.

fat_angel ★★★★★
() автор топика
Ответ на: комментарий от ananas

Спасибо что напомнил, а то я начал со smapi интерфейса у которого нет uevent и уж было собирался городить чтение каждого файла по отдельности и тут.

fat_angel ★★★★★
() автор топика

Lenovo Y510

dmitry@dmitry-laptop:~$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/current_now:0
/sys/class/power_supply/BAT0/energy_full:24470000
/sys/class/power_supply/BAT0/energy_full_design:56160000
/sys/class/power_supply/BAT0/energy_now:24470000
/sys/class/power_supply/BAT0/manufacturer:LENOVO
/sys/class/power_supply/BAT0/model_name:LTY-TS0A0A
/sys/class/power_supply/BAT0/power_now:0
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12342000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_POWER_NOW=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=56160000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL=24470000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_NOW=24470000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=LTY-TS0A0A
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=LENOVO
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 
/sys/class/power_supply/BAT0/voltage_min_design:10800000
/sys/class/power_supply/BAT0/voltage_now:12342000
dmitry@dmitry-laptop:~$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/current_now:32424000
/sys/class/power_supply/BAT0/energy_full:24470000
/sys/class/power_supply/BAT0/energy_full_design:56160000
/sys/class/power_supply/BAT0/energy_now:24470000
/sys/class/power_supply/BAT0/manufacturer:LENOVO
/sys/class/power_supply/BAT0/model_name:LTY-TS0A0A
/sys/class/power_supply/BAT0/power_now:32424000
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 
/sys/class/power_supply/BAT0/status:Discharging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12051000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=32424000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_POWER_NOW=32424000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=56160000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL=24470000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_NOW=24470000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=LTY-TS0A0A
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=LENOVO
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 
/sys/class/power_supply/BAT0/voltage_min_design:10800000
/sys/class/power_supply/BAT0/voltage_now:12051000
mipt_student
()

ASUS K50AB
С адаптером:

/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:3296000
/sys/class/power_supply/BAT0/charge_full_design:4200000
/sys/class/power_supply/BAT0/charge_now:3251000
/sys/class/power_supply/BAT0/current_now:0
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:ASUS
/sys/class/power_supply/BAT0/model_name:K50AB
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 
/sys/class/power_supply/BAT0/status:Unknown
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12418000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=3296000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=3251000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=K50AB
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=ASUS
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:12418000

Без адаптера:
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:3296000
/sys/class/power_supply/BAT0/charge_full_design:4200000
/sys/class/power_supply/BAT0/charge_now:3297000
/sys/class/power_supply/BAT0/current_now:3077000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:ASUS
/sys/class/power_supply/BAT0/model_name:K50AB
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 
/sys/class/power_supply/BAT0/status:Discharging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=11908000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=3077000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=3296000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=3297000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=K50AB
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=ASUS
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:11908000

Okitain
()

hp nw 8240
debian sid

:~$ grep . /sys/class/power_supply/BAT*/*
grep: /sys/class/power_supply/BAT*/*: Нет такого файла или каталога

Если что, батарея убитая практически в ноль, но не отключённая. Работает всё время от сети.

Bod ★★★★
()
Ответ на: комментарий от Bod

acpitool -B

выводит что-нибудь ?

хотя скорее всего ядро без поддержки sys power interface
для acpi обычно тут:
/proc/acpi/battery/BAT0

Sylvia ★★★★★
()
Ответ на: Lenovo Y510 от mipt_student

>/sys/class/power_supply/BAT0/energy_now:24470000

/sys/class/power_supply/BAT0/power_now:32424000


У тебя потребляемая мощность составляет 32.4 Вт а емкость батареи 24.4 Вт•ч т.е. лаптоп должен проработать меньше часа, так? Компиляешь чего?

fat_angel ★★★★★
() автор топика
Ответ на: комментарий от fat_angel

> Меня больше интересует почему у некоторых (в т.ч. и уменя) charge_full меньше charge_now, ибо первое как я понял это последний уровень полного заряда а второе текущий уровень заряда.

почитай Documentation/power/power_supply_class.txt в исходниках ядра, там это объясняется - что, в каких единицах и каким образом отображается, и как с этим бороться

ananas ★★★★★
()
Ответ на: комментарий от ananas

>почитай Documentation/power/power_supply_class.txt

Еще раз спасибо! То что надо! А то я искал там по слову battery и само-собой ничего не нашел.

fat_angel ★★★★★
() автор топика

Fujitsu-siemens esprimo mobile u 9200

/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:4237000
/sys/class/power_supply/BAT0/charge_full_design:5200000
/sys/class/power_supply/BAT0/charge_now:4186000
/sys/class/power_supply/BAT0/current_now:320000
/sys/class/power_supply/BAT0/manufacturer:Vendor12345678901234567890
/sys/class/power_supply/BAT0/model_name:Modelxxx
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:SN
/sys/class/power_supply/BAT0/status:Charging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:PHYSDEVPATH=/devices/LNXSYSTM:00/device:00/PNP0C0A:00
/sys/class/power_supply/BAT0/uevent:PHYSDEVBUS=acpi
/sys/class/power_supply/BAT0/uevent:PHYSDEVDRIVER=battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Charging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12595000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=320000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=5200000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=4237000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=4186000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=Modelxxx
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=Vendor12345678901234567890
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=SN
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:12595000
aiqu6Ait ★★★★
()
Ответ на: комментарий от Sylvia

~$ acpitool -B
bash: acpitool: команда не найдена

# ls /proc/acpi/battery/BAT0
ls: невозможно получить доступ к /proc/acpi/battery/BAT0: Нет такого файла или каталога

Bod ★★★★
()
Ответ на: комментарий от Bod

Из относящихся к acpi стоят

acpi-support-base
acpid
powermgmt-base

Bod ★★★★
()

dell vostro 3300

/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:2800000
/sys/class/power_supply/BAT0/charge_full_design:2768000
/sys/class/power_supply/BAT0/charge_now:830000
/sys/class/power_supply/BAT0/current_now:1757000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:Dynapack
/sys/class/power_supply/BAT0/model_name:DELL XXDG007
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:25446
/sys/class/power_supply/BAT0/status:Charging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Charging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14833000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=15544000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=1757000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=2768000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=2800000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=830000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=DELL XXDG007
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=Dynapack
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=25446
/sys/class/power_supply/BAT0/voltage_min_design:14833000
/sys/class/power_supply/BAT0/voltage_now:15544000

kelyar ★★★★★
()
Ответ на: комментарий от Bod

забавно, батарейка как отключена совсем ,
userspace приложения не столь важны для /sys и /proc

какие нибудь acpi=off не используются ? )

Sylvia ★★★★★
()
Ответ на: комментарий от Sylvia

Я ничего такого не прописывал ;)

В настройках граба ничего такого.

Из ядра

# Power management and ACPI options
#
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND_NVS=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION=«»
CONFIG_PM_RUNTIME=y
CONFIG_PM_OPS=y
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_POWER_METER=m
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_EC_DEBUGFS=m
# CONFIG_ACPI_PROC_EVENT is not set
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_PROCESSOR_AGGREGATOR=m
CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_PCI_SLOT=m
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=m
CONFIG_ACPI_SBS=m
CONFIG_ACPI_HED=m
CONFIG_ACPI_APEI=y
CONFIG_ACPI_APEI_GHES=m
# CONFIG_ACPI_APEI_EINJ is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
CONFIG_SFI=y
CONFIG_X86_APM_BOOT=y
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
CONFIG_APM_DO_ENABLE=y
CONFIG_APM_CPU_IDLE=y
# CONFIG_APM_DISPLAY_BLANK is not set
CONFIG_APM_ALLOW_INTS=y

На самом деле - я и внимания никогда не обращал, т.к. за эту батарею не стоит бороться. Чисто UPS - позволяющий за 3 - 5 минут быстренько сохранить всё при перебоях с электричеством.

Bod ★★★★
()

Шото совсем не отличается.

drull@drull-laptop:~$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:1648000
/sys/class/power_supply/BAT1/charge_full_design:4000000
/sys/class/power_supply/BAT1/charge_now:1648000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:SONY 
/sys/class/power_supply/BAT1/model_name:GC86503SY90 
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/status:Full
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=12427000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4000000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=1648000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=1648000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=GC86503SY90 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=SONY 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=
/sys/class/power_supply/BAT1/voltage_min_design:11100000
/sys/class/power_supply/BAT1/voltage_now:12427000
drull@drull-laptop:~$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:1648000
/sys/class/power_supply/BAT1/charge_full_design:4000000
/sys/class/power_supply/BAT1/charge_now:1648000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:SONY 
/sys/class/power_supply/BAT1/model_name:GC86503SY90 
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/status:Full
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=12427000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4000000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=1648000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=1648000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=GC86503SY90 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=SONY 
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=
/sys/class/power_supply/BAT1/voltage_min_design:11100000
/sys/class/power_supply/BAT1/voltage_now:12427000

drull ★☆☆☆
()
Ответ на: комментарий от Bod

Проверил ещё, думал может acpid вырубил, когда стартующие сервисы оптимизировал. Нет, пожалел :)

Bod ★★★★
()

Toshiba Satellite A100-906

/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:1016000
/sys/class/power_supply/BAT0/charge_full_design:1016000
/sys/class/power_supply/BAT0/charge_now:1026000
/sys/class/power_supply/BAT0/current_now:0
/sys/class/power_supply/BAT0/model_name:PA3399U-2BAS/BRS
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number:28A8
/sys/class/power_supply/BAT0/status:Unknown
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=15000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=15000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=1016000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=1016000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=1026000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=PA3399U-2BAS/BRS
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=28A8
/sys/class/power_supply/BAT0/voltage_min_design:15000000
/sys/class/power_supply/BAT0/voltage_now:15000000
zloy_buratino
()

Всем огромное спасибо.

Думаю мне этого хватит. Жаль что с thinkpad'ами мало народу, на smapi хотелось посмотреть.

fat_angel ★★★★★
() автор топика
Ответ на: комментарий от drull

Фиг знает…

У меня за это время обычно обновляется. Проверь через сколько времени к тебя /sys/class/power_supply/BAT1/status изменится с Full на Discharging.

fat_angel ★★★★★
() автор топика
Ответ на: комментарий от fat_angel

Ааа.. сорри, я по ssh сидел на другом ноуте, а питание отключал на своем :)
[code]drull@drull:~$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:1894000
/sys/class/power_supply/BAT1/charge_full_design:2200000
/sys/class/power_supply/BAT1/charge_now:1894000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:SANYO
/sys/class/power_supply/BAT1/model_name:UM08A31
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:79FD
/sys/class/power_supply/BAT1/status:Full
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=12303000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=2200000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=1894000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=1894000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=UM08A31
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=SANYO
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=79FD
/sys/class/power_supply/BAT1/voltage_min_design:10800000
/sys/class/power_supply/BAT1/voltage_now:12303000
drull@drull:~$ grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:1894000
/sys/class/power_supply/BAT1/charge_full_design:2200000
/sys/class/power_supply/BAT1/charge_now:1826000
/sys/class/power_supply/BAT1/current_now:1097000
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:SANYO
/sys/class/power_supply/BAT1/model_name:UM08A31
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:79FD
/sys/class/power_supply/BAT1/status:Discharging
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=12048000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=1097000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=2200000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=1894000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=1826000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=UM08A31
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=SANYO
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=79FD
/sys/class/power_supply/BAT1/voltage_min_design:10800000
/sys/class/power_supply/BAT1/voltage_now:12048000
[/code]

drull ★☆☆☆
()

asus x80le батарея 63% ёмкости

ВКЛ

grep . /sys/class/power_supply/BAT*/* /sys/class/power_supply/BAT0/alarm:0 /sys/class/power_supply/BAT0/current_now:0 /sys/class/power_supply/BAT0/energy_full:32230000 /sys/class/power_supply/BAT0/energy_full_design:52800000 /sys/class/power_supply/BAT0/energy_now:31988000 /sys/class/power_supply/BAT0/manufacturer:ASUSTEK /sys/class/power_supply/BAT0/model_name:A8---24 /sys/class/power_supply/BAT0/power_now:0 /sys/class/power_supply/BAT0/present:1 /sys/class/power_supply/BAT0/serial_number: /sys/class/power_supply/BAT0/status:Unknown /sys/class/power_supply/BAT0/technology:Li-ion /sys/class/power_supply/BAT0/type:Battery /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Unknown /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12394000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=0 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_POWER_NOW=0 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=52800000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL=32230000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_NOW=31988000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=A8---24 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=ASUSTEK /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= /sys/class/power_supply/BAT0/voltage_min_design:11100000 /sys/class/power_supply/BAT0/voltage_now:12394000

ВЫКЛ

$ grep . /sys/class/power_supply/BAT*/* /sys/class/power_supply/BAT0/alarm:0 /sys/class/power_supply/BAT0/current_now:26158000 /sys/class/power_supply/BAT0/energy_full:32230000 /sys/class/power_supply/BAT0/energy_full_design:52800000 /sys/class/power_supply/BAT0/energy_now:31427000 /sys/class/power_supply/BAT0/manufacturer:ASUSTEK /sys/class/power_supply/BAT0/model_name:A8---24 /sys/class/power_supply/BAT0/power_now:26158000 /sys/class/power_supply/BAT0/present:1 /sys/class/power_supply/BAT0/serial_number: /sys/class/power_supply/BAT0/status:Discharging /sys/class/power_supply/BAT0/technology:Li-ion /sys/class/power_supply/BAT0/type:Battery /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TYPE=Battery /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=11885000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=26158000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_POWER_NOW=26158000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=52800000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL=32230000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_NOW=31427000 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=A8---24 /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=ASUSTEK /sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= /sys/class/power_supply/BAT0/voltage_min_design:11100000 /sys/class/power_supply/BAT0/voltage_now:11885000

ratte
()

Acer Aspire

От сети:
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:3390000
/sys/class/power_supply/BAT1/charge_full_design:4800000
/sys/class/power_supply/BAT1/charge_now:3390000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:SANYO
/sys/class/power_supply/BAT1/model_name:AS07B32
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:4969
/sys/class/power_supply/BAT1/status:Full
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=16205000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=3390000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=3390000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=AS07B32
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=SANYO
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=4969
/sys/class/power_supply/BAT1/voltage_min_design:14800000
/sys/class/power_supply/BAT1/voltage_now:16205000

От батареи:
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:3390000
/sys/class/power_supply/BAT1/charge_full_design:4800000
/sys/class/power_supply/BAT1/charge_now:3372000
/sys/class/power_supply/BAT1/current_now:2037000
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:SANYO
/sys/class/power_supply/BAT1/model_name:AS07B32
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:4969
/sys/class/power_supply/BAT1/status:Discharging
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=15914000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=2037000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=3390000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=3372000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=AS07B32
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=SANYO
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=4969
/sys/class/power_supply/BAT1/voltage_min_design:14800000
/sys/class/power_supply/BAT1/voltage_now:15914000

shuthdar ★★★
()

Toshiba Satellite L10

С:

grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:1780000
/sys/class/power_supply/BAT1/charge_full_design:4300000
/sys/class/power_supply/BAT1/charge_now:1780000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:TOSHIBA   
/sys/class/power_supply/BAT1/model_name:PA3420U-1BRS
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:21665
/sys/class/power_supply/BAT1/status:Full
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4300000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=1780000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=1780000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=PA3420U-1BRS
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=TOSHIBA   
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=21665
/sys/class/power_supply/BAT1/voltage_min_design:14800000
/sys/class/power_supply/BAT1/voltage_now:0

БЕЗ:

grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT1/alarm:0
/sys/class/power_supply/BAT1/charge_full:1780000
/sys/class/power_supply/BAT1/charge_full_design:4300000
/sys/class/power_supply/BAT1/charge_now:1679000
/sys/class/power_supply/BAT1/current_now:0
/sys/class/power_supply/BAT1/cycle_count:0
/sys/class/power_supply/BAT1/manufacturer:TOSHIBA   
/sys/class/power_supply/BAT1/model_name:PA3420U-1BRS
/sys/class/power_supply/BAT1/present:1
/sys/class/power_supply/BAT1/serial_number:21665
/sys/class/power_supply/BAT1/status:Discharging
/sys/class/power_supply/BAT1/technology:Li-ion
/sys/class/power_supply/BAT1/type:Battery
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_NAME=BAT1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_VOLTAGE_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4300000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_FULL=1780000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_CHARGE_NOW=1679000
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MODEL_NAME=PA3420U-1BRS
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_MANUFACTURER=TOSHIBA   
/sys/class/power_supply/BAT1/uevent:POWER_SUPPLY_SERIAL_NUMBER=21665
/sys/class/power_supply/BAT1/voltage_min_design:14800000
/sys/class/power_supply/BAT1/voltage_now:0

delusion
()
Ответ на: комментарий от fat_angel

У тебя потребляемая мощность составляет 32.4 Вт а емкость батареи 24.4 Вт•ч т.е. лаптоп должен проработать меньше часа, так? Компиляешь чего?

Нет, просто батарея дохлая: ENERGY_FULL_DESIGN=56160000

mipt_student
()
Ответ на: комментарий от mipt_student

>Кстати, а чем тебя GNOME Power Manager не устроил?

Кучей лишних сущностей (вроде регулировки яркости и частоты процессора) и отсутствие способов повырубать все это. В общем нужен только информатор, а не средство управления (для этого уже пару используется cpufreqd). Ну и отсутствие зависимостей от HAL UPower как уже было сказано.

fat_angel ★★★★★
() автор топика

MacBook Pro 5.5

/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/energy_full:52120000
/sys/class/power_supply/BAT0/energy_full_design:54500000
/sys/class/power_supply/BAT0/energy_now:51740000
/sys/class/power_supply/BAT0/manufacturer:SMPNz451D77ZCDEF0123456789ABCDE
/sys/class/power_supply/BAT0/model_name:bq20z451D77ZCDEF0123456789ABCDE
/sys/class/power_supply/BAT0/power_now:0
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/status:Unknown
/sys/class/power_supply/BAT0/technology:Unknown
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Unknown
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10950000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12501000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_POWER_NOW=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=54500000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_FULL=52120000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_ENERGY_NOW=51740000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=bq20z451D77ZCDEF0123456789ABCDE
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SMPNz451D77ZCDEF0123456789ABCDE
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER=
/sys/class/power_supply/BAT0/voltage_min_design:10950000
/sys/class/power_supply/BAT0/voltage_now:12501000
jcd ★★★★★
()
Ответ на: MacBook Pro 5.5 от jcd

Ах да, адаптер подключен, батарея на 100%

jcd ★★★★★
()

Acer TimelineX 3820T

Включен:


athost@kauna:~ > grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:5755000
/sys/class/power_supply/BAT0/charge_full_design:6000000
/sys/class/power_supply/BAT0/charge_now:5755000
/sys/class/power_supply/BAT0/current_now:0
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:SMP-SDI30
/sys/class/power_supply/BAT0/model_name:AS10B7E
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 1801
/sys/class/power_supply/BAT0/status:Full
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Full
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=13004000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=5755000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=5755000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=AS10B7E
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SMP-SDI30
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 1801
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:13004000

Отключен:


athost@kauna:~ > grep . /sys/class/power_supply/BAT*/*
/sys/class/power_supply/BAT0/alarm:0
/sys/class/power_supply/BAT0/charge_full:5755000
/sys/class/power_supply/BAT0/charge_full_design:6000000
/sys/class/power_supply/BAT0/charge_now:5735000
/sys/class/power_supply/BAT0/current_now:841000
/sys/class/power_supply/BAT0/cycle_count:0
/sys/class/power_supply/BAT0/manufacturer:SMP-SDI30
/sys/class/power_supply/BAT0/model_name:AS10B7E
/sys/class/power_supply/BAT0/present:1
/sys/class/power_supply/BAT0/serial_number: 1801
/sys/class/power_supply/BAT0/status:Discharging
/sys/class/power_supply/BAT0/technology:Li-ion
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_NAME=BAT0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_VOLTAGE_NOW=12804000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CURRENT_NOW=841000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_FULL=5755000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_CHARGE_NOW=5735000
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MODEL_NAME=AS10B7E
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_MANUFACTURER=SMP-SDI30
/sys/class/power_supply/BAT0/uevent:POWER_SUPPLY_SERIAL_NUMBER= 1801
/sys/class/power_supply/BAT0/voltage_min_design:11100000
/sys/class/power_supply/BAT0/voltage_now:12804000
athost ★★★★★
()

HP Compaq nx9420

Каталога BAT нет. Кроме C1B1 есть там же каталог C1AF (как я понял, это адаптер питания от сети). Ноут подключен к розетке, батарея заряжена на 99-100%. Ядро 2.6.35-gentoo-r5.

# grep . /sys/class/power_supply/C1B1*/*
/sys/class/power_supply/C1B1/alarm:0
/sys/class/power_supply/C1B1/charge_full:4464000
/sys/class/power_supply/C1B1/charge_full_design:4464000
/sys/class/power_supply/C1B1/charge_now:4372000
/sys/class/power_supply/C1B1/current_now:0
/sys/class/power_supply/C1B1/cycle_count:0
/sys/class/power_supply/C1B1/manufacturer:Hewlett-Packard
/sys/class/power_supply/C1B1/model_name:Primary
/sys/class/power_supply/C1B1/present:1
/sys/class/power_supply/C1B1/serial_number:51298 2006/05/27
/sys/class/power_supply/C1B1/status:Unknown
/sys/class/power_supply/C1B1/technology:Li-ion
/sys/class/power_supply/C1B1/type:Battery
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_NAME=C1B1
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_STATUS=Unknown
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_CYCLE_COUNT=0
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14400000
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_VOLTAGE_NOW=16592000
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_CURRENT_NOW=0
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=4464000
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_CHARGE_FULL=4464000
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_CHARGE_NOW=4372000
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_MODEL_NAME=Primary
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_MANUFACTURER=Hewlett-Packard
/sys/class/power_supply/C1B1/uevent:POWER_SUPPLY_SERIAL_NUMBER=51298 2006/05/27
/sys/class/power_supply/C1B1/voltage_min_design:14400000
/sys/class/power_supply/C1B1/voltage_now:16592000

Suigintou ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.