Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2005 09:20:57 +0100
From:      Ulrich Spoerlein <q@galgenberg.net>
To:        acpi@freebsd.org
Subject:   Battery woes since going 6.0-BETA3 -> 6.0-STABLE
Message-ID:  <20051108082057.GB1067@galgenberg.net>

next in thread | raw e-mail | index | archive | help

--7iMSBzlTiPOCCT2k
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Good morning everyone,

I updated my system yesterday from BETA3 to  the current RELENG_6.
Booting my system this morning, I found it in a rather unusable state.

First of all, there were problems with BETA3 before. When charging the
battery (only when charging!) wmbsdbatt would periodically freeze the
system which made MP3 playback impossible. Ok, I first thought wmbsdbatt
is calling sysctl to get the values and sysctl is under Giant. So no
problem.

Funny thing is, it only occurred when charging, not when running on
batteries or without them.

Now updating to the current RELENG_6 I get the system freezes whenever
running wmbsdbatt. This goes as far as the USB devices losing contact
(!!). I thought my kbd/mouse went wacko, and found the following in
messages

Nov  8 08:57:22 roadrunner kernel: ukbd0: at uhub4 port 1 (addr 3) disconne=
cted
Nov  8 08:57:22 roadrunner kernel: ukbd0: detached
Nov  8 08:57:22 roadrunner kernel: ums0: at uhub4 port 1 (addr 3) disconnec=
ted
Nov  8 08:57:22 roadrunner kernel: ums0: detached
Nov  8 08:57:22 roadrunner moused: unable to open /dev/ums0: No such file o=
r directory
Nov  8 08:57:22 roadrunner kernel: ukbd0: CHESEN PS2 to USB Converter, rev =
1.10/0.10, addr 3, iclass 3/1
Nov  8 08:57:22 roadrunner kernel: kbd1 at ukbd0
Nov  8 08:57:22 roadrunner kernel: ums0: CHESEN PS2 to USB Converter, rev 1=
=2E10/0.10, addr 3, iclass 3/1
Nov  8 08:57:22 roadrunner kernel: ums0: 5 buttons and Z dir.
Nov  8 08:58:39 roadrunner kernel: ukbd0: at uhub4 port 1 (addr 3) disconne=
cted
Nov  8 08:58:39 roadrunner kernel: ukbd0: detached
Nov  8 08:58:39 roadrunner kernel: ums0: at uhub4 port 1 (addr 3) disconnec=
ted
Nov  8 08:58:39 roadrunner kernel: ums0: detached
Nov  8 08:58:39 roadrunner moused: unable to open /dev/ums0: No such file o=
r directory
Nov  8 08:58:40 roadrunner kernel: ukbd0: CHESEN PS2 to USB Converter, rev =
1.10/0.10, addr 3, iclass 3/1
Nov  8 08:58:40 roadrunner kernel: kbd1 at ukbd0
Nov  8 08:58:40 roadrunner kernel: ums0: CHESEN PS2 to USB Converter, rev 1=
=2E10/0.10, addr 3, iclass 3/1
Nov  8 08:58:40 roadrunner kernel: ums0: 5 buttons and Z dir.
Nov  8 08:58:50 roadrunner kernel: ukbd0: at uhub4 port 1 (addr 3) disconne=
cted
Nov  8 08:58:50 roadrunner kernel: ukbd0: detached
Nov  8 08:58:50 roadrunner kernel: ums0: at uhub4 port 1 (addr 3) disconnec=
ted
Nov  8 08:58:50 roadrunner kernel: ums0: detached
Nov  8 08:58:50 roadrunner moused: unable to open /dev/ums0: No such file o=
r directory
Nov  8 08:58:51 roadrunner kernel: ukbd0: CHESEN PS2 to USB Converter, rev =
1.10/0.10, addr 3, iclass 3/1
Nov  8 08:58:51 roadrunner kernel: kbd1 at ukbd0
Nov  8 08:58:51 roadrunner kernel: ums0: CHESEN PS2 to USB Converter, rev 1=
=2E10/0.10, addr 3, iclass 3/1
Nov  8 08:58:51 roadrunner kernel: ums0: 5 buttons and Z dir.
Nov  8 08:59:23 roadrunner kernel: ukbd0: at uhub4 port 1 (addr 3) disconne=
cted
Nov  8 08:59:23 roadrunner kernel: ukbd0: detached
Nov  8 08:59:23 roadrunner kernel: ums0: at uhub4 port 1 (addr 3) disconnec=
ted
Nov  8 08:59:23 roadrunner kernel: ums0: detached
Nov  8 08:59:23 roadrunner moused: unable to open /dev/ums0: No such file o=
r directory
Nov  8 08:59:24 roadrunner kernel: ukbd0: CHESEN PS2 to USB Converter, rev =
1.10/0.10, addr 3, iclass 3/1
Nov  8 08:59:24 roadrunner kernel: kbd1 at ukbd0
Nov  8 08:59:24 roadrunner kernel: ums0: CHESEN PS2 to USB Converter, rev 1=
=2E10/0.10, addr 3, iclass 3/1
Nov  8 08:59:24 roadrunner kernel: ums0: 5 buttons and Z dir.

This is because wmbsdbatt is polling the battery (which right now, is
not even present, as I'm running on AC).

I'm running a Dell Inspiron 8600, these are the relevant acpi lines from
dmesg
acpi0: <DELL CPi R  > on motherboard
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 11 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 11 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 11 on acpi0
pci_link4: <ACPI PCI Link LNKE> on acpi0
pci_link5: <ACPI PCI Link LNKH> irq 11 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0

I will revert 6.0-RELEASE for now, I guess the smart battery support is
causing problems for me.

Running acpiconf -i 0 in a loop makes the hiccups clearly visible, it
Will running for several seconds with no pause, then it pauses shortly

% while true; do \time acpiconf -i 0 >/dev/null;done 2>&1 | uniq
        0.92 real         0.00 user         0.91 sys
        0.00 real         0.00 user         0.00 sys
        0.13 real         0.00 user         0.00 sys
        0.00 real         0.00 user         0.00 sys
        0.76 real         0.00 user         0.76 sys
        0.00 real         0.00 user         0.00 sys
        0.13 real         0.00 user         0.00 sys
        0.00 real         0.00 user         0.00 sys
        0.38 real         0.00 user         0.37 sys
        0.00 real         0.00 user         0.00 sys
        0.38 real         0.05 user         0.33 sys
        0.00 real         0.00 user         0.00 sys
        0.13 real         0.00 user         0.00 sys
        0.00 real         0.00 user         0.00 sys
        0.13 real         0.00 user         0.00 sys
        0.00 real         0.00 user         0.00 sys
        0.13 real         0.00 user         0.00 sys
        0.00 real         0.00 user         0.00 sys
        0.13 real         0.00 user         0.00 sys
        0.00 real         0.00 user         0.00 sys


Ulrich Spoerlein
--=20
 PGP Key ID: F0DB9F44				Encrypted mail welcome!
Fingerprint: F1CE D062 0CA9 ADE3 349B  2FE8 980A C6B5 F0DB 9F44
Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn."
didn't you understand?

--7iMSBzlTiPOCCT2k
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDcF/pmArGtfDbn0QRAhFfAJ9NenSpm2Dkta7XW4hYu8gx1jUTCwCg5kHz
+BsSqWJcZe8UEMww0WQgnLM=
=qdgd
-----END PGP SIGNATURE-----

--7iMSBzlTiPOCCT2k--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051108082057.GB1067>