[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pmu_battery in sid



Hi Risto,

in /var/log/syslog I see something similar as you, although I have the
battery status in the panel:

Jul 31 10:54:25 debian laptop-mode: WARNING: Battery does not report a
capacity. Minimum battery
Jul 31 10:54:25 debian laptop-mode: charge checking does not work without
a design capacity.
Jul 31 10:54:25 debian laptop-mode: WARNING: Battery does not report a
design capacity. Auto hibernation
Jul 31 10:54:25 debian laptop-mode: does not work without a design
capacity.
Jul 31 10:54:25 debian laptop-mode: Failed to determine battery charge.
Battery charge units are not in
Jul 31 10:54:25 debian laptop-mode: mWh, uWh, mAh or uAh.

Do you have pbbuttonsd running / installed ?

My /etc/pbbuttonsd.conf looks like this:
# Configuration file for PBButtonsd >= Version 0.5
# for complete list of options please see pbbuttonsd.conf man-page

# [SYSTEM]
#userallowed           = "paranoid"	; user who is allowed to use IPC
autorescan            = yes		; automatic rescan of event devices
CmdTimeout            = 8

# [MODULE POWERSAVE]
onAC_policy           = performance	; nochange, performance, custom or
powersave
onAC_TimerAction      = none		; none, suspend-to-ram, suspend-to-disk,
blankscreen
onAC_CoverAction      = suspend-to-ram
onAC_KeyAction        = suspend-to-ram	; SleepKey
onAC_SuspendTime      = 0		; time in 1/10 seconds
onAC_DimTime          = 0		; time in 1/10 seconds

onBattery_policy      = powersave
onBattery_TimerAction = suspend-to-ram	; none, suspend-to-ram,
suspend-to-disk, blankscreen
onBattery_CoverAction = suspend-to-ram
onBattery_KeyAction   = suspend-to-ram	; SleepKey
onBattery_SuspendTime = 3000		; time in 1/10 seconds
onBattery_DimTime     = 600		; time in 1/10 seconds

SleepKey              = 116
SleepKeyDelay         = 0		; values > 0 may be dangerous, if the power
key is used to trigger sleep
BWL_first             = 22		; first battery warnlevel, time in minutes
BWL_second            = 10		; second battery warnlevel, time in minutes
BWL_last              = 3		; last battery warnlevel, time in minutes
Script_PMCS           = "/etc/power/pmcs-pbbuttonsd %s %s %s"
EmergencyAction       = sleep		; action, if battery is critically low
HeartbeatBeep         = no		; beep, if nothing else showed that the
computer lives
CPULoad_sleeplock     = yes
CPULoad_min           = 20		; value in percent
CPULoad_period        = 20		; time in seconds
NETLoad_sleeplock     = yes
NETLoad_min           = 4096		; traffic in Bytes/s
NETLoad_period        = 20		; time in seconds
NETLoad_device        = "eth0"

# [MODULE DISPLAY]
#LCD_Brightness        = 75		; initial LCD brightness level in percent
LCD_FadingSpeed       = 0		; 0 = no smooth fading
LCD_AutoAdjust        = yes		; only on Aluminum PowerBooks
LCD_IllumUpKey        = 225
LCD_IllumDownKey      = 224
LCD_Threshold         = 94
LCD_AutoAdjMin_Bat    = 2		; autoadjust parameter
LCD_AutoAdjMax_Bat    = 7
LCD_AutoAdjMin_AC     = 1
LCD_AutoAdjMax_AC     = 15
#KBD_Brightness        = 0		; initial keyboard illumination level in
percent
KBD_OnBrightness      = 35		; initial level in percent if KBD on/off key
is pressed
KBD_FadingSpeed       = 0		; 0 = no smooth fading
KBD_AutoAdjust        = yes		; only on Aluminum PowerBooks
KBD_IllumUpKey        = 230
KBD_IllumDownKey      = 229
KBD_IllumOnKey        = 228
KBD_Threshold         = 28		; only on Aluminum PowerBooks
dev_FrameBuffer       = "/dev/fb0"
UseFBBlank            = no
DimFullyDark          = no
CRT_MirrorKey         = 65 + ctrl

# [MODULE MIXER]
SoundSystem           = auto		; none, auto, OSS or ALSA
#Volume                = 50		; initial volume level in percent
Speakers_muted        = no		; mute after startup?
VolumeUpKey           = 115
VolumeDownKey         = 114
MuteKey               = 113
OSS_Mixer             = "/dev/mixer"	; settings for OSS
OSS_Channels          = "volume, speaker"
ALSA_Card             = "default"	; settings for ALSA
ALSA_Elements         = "Master, 'PC Speaker'"
MixerInitDelay        = no

# [MODULE CDROM]
dev_CDROM             = "/dev/cdrom"
EjectCDKey            = 161
EjectCDKeyDelay       = 0

# [MODULE PMAC]
dev_PMU               = "/dev/pmu"
dev_ADB               = "/dev/adb"
TPModeUpKey           = 225 + alt
TPModeDownKey         = 224 + alt
TPMode                = drag
KBDMode               = fkeysfirst
Batlog                = none
NoTapTyping           = no

Hope this helps
Jeroen

Op 31/7/2011 schreef "Risto Suominen" <risto.suominen@gmail.com>:

>Now I think I'm beginning to understand. I installed the powerprefs
>package, but I don't think that it made any difference. But I found in
>the panel preferences a battery meter applet. Unfortunately it doesn't
>seem to support my machine (PowerBook G3 Lombard). It pops up a
>battery low message box, even when the battery is full. The following
>messages appear at boot:
>
>Enabling laptop mode...cat:
>/sys/class/power_supply/PMU_battery_0/alarm: No such file or directory
>[: 1038: Illegal number:
>[: 1038: Illegal number:
>Failed to determine battery charge. Battery charge units are not in
>mWh, uWh, mAh or uAh.
>done (WARNING: Battery does not report a capacity. Minimum battery
>charge checking does not work without a design capacity.
>WARNING: Battery does not report a design capacity. Auto hibernation
>does not work without a design capacity.
>enabled,
>active [unchanged]).
>
>Risto
>
>
>--
>To UNSUBSCRIBE, email to debian-powerpc-REQUEST@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>Archive: [🔎] CACyRQa2dr_J8kvNopCiTra_EDjUphgiC+qH7CLnPOYu=SNB_hA@mail.gmail.com">http://lists.debian.org/[🔎] CACyRQa2dr_J8kvNopCiTra_EDjUphgiC+qH7CLnPOYu=SNB_hA@mail.gmail.com
>
>


Reply to: