Hi all -- I don't know whether or not this is related to the recent battery rework, but I'm running prolepsis# uname -a FreeBSD prolepsis.math.uiuc.edu 7.0-CURRENT FreeBSD 7.0-CURRENT #5: Thu Jul 28 07:42:25 UTC 2005 kaduk_at_prolepsis.math.uiuc.edu:/usr/obj/usr/src/sys/PROLEPSIS i386 and this afternoon I had my laptop running off its battery (basically as a jukebox), which is somewhat unusual since normally I plug it in. I wanted to see how fast I was draining the battery, so I did some `sysctl hw.acpi.battery'-ing (see transcript below), and then proceeded to get very confused. Is there a known race in this sysctl code, or should I be looking for something else (like a broken acpi)? prolepsis# sysctl hw.acpi|grep battery hw.acpi.battery.life: 83 hw.acpi.battery.time: 4399 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 83 hw.acpi.battery.time: 139 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 67 hw.acpi.battery.time: 117 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 64 hw.acpi.battery.time: 92291 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 64 hw.acpi.battery.time: 80 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# prolepsis# ps -axl UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 0 0 0 6 12 0 0 0 - WLs ?? 0:00.00 [swapper] 0 1 0 4 8 0 752 372 wait ILs ?? 0:00.01 /sbin/init -- 0 2 0 0 -8 0 0 8 - DL ?? 0:00.31 [g_event] 0 3 0 0 -8 0 0 8 - DL ?? 0:01.46 [g_up] 0 4 0 0 -8 0 0 8 - DL ?? 0:02.56 [g_down] 0 5 0 0 8 0 0 8 - DL ?? 0:00.00 [thread taskq 0 6 0 0 8 0 0 8 - DL ?? 0:00.00 [acpi_task0] 0 7 0 0 8 0 0 8 - DL ?? 0:00.00 [acpi_task1] 0 8 0 0 8 0 0 8 - DL ?? 0:00.00 [acpi_task2] 0 9 0 0 8 0 0 8 - DL ?? 0:00.00 [kqueue taskq 0 10 0 0 -16 0 0 8 ktrace DL ?? 0:00.00 [ktrace] 0 11 0 48 171 0 0 8 - RL ?? 31:42.13 [idle] 0 12 0 0 -84 0 0 8 - WL ?? 0:00.00 [irq0: clk] 0 13 0 0 -60 0 0 8 - WL ?? 0:00.06 [irq1: atkbd0 0 14 0 0 -60 0 0 8 - WL ?? 0:00.00 [irq3: sio0] 0 15 0 0 -21 0 0 8 - WL ?? 0:00.00 [irq4:] 0 16 0 0 -21 0 0 8 - WL ?? 0:00.00 [irq5:] 0 17 0 0 -21 0 0 8 - WL ?? 0:00.00 [irq6:] 0 18 0 0 -60 0 0 8 - WL ?? 0:00.00 [irq7: ppc0] 0 19 0 0 -84 0 0 8 - WL ?? 0:00.00 [irq8: rtc] 0 20 0 0 -80 0 0 8 - WL ?? 0:06.10 [irq9: pcm0 a 0 21 0 0 -21 0 0 8 - WL ?? 0:00.00 [irq10:] 0 22 0 1 -80 0 0 8 - RL ?? 0:20.07 [irq11: nvidi 0 23 0 0 -60 0 0 8 - WL ?? 0:00.08 [irq12: psm0] 0 24 0 0 -21 0 0 8 - WL ?? 0:00.00 [irq13:] 0 25 0 0 -64 0 0 8 - WL ?? 0:00.67 [irq14: ata0] 0 26 0 0 -64 0 0 8 - WL ?? 0:00.00 [irq15: ata1] 0 27 0 0 -32 0 0 8 - WL ?? 0:10.54 [swi4: clock 0 28 0 0 -36 0 0 8 - WL ?? 0:00.00 [swi3: vm] 0 29 0 0 -44 0 0 8 - WL ?? 0:00.00 [swi1: net] 0 30 0 0 -16 0 0 8 - DL ?? 0:00.40 [yarrow] 0 31 0 0 -40 0 0 8 - WL ?? 0:00.00 [swi2: cambio 0 32 0 0 -24 0 0 8 - WL ?? 0:00.00 [swi6: task q 0 33 0 0 -24 0 0 8 - WL ?? 0:01.48 [swi6:+] 0 34 0 0 -28 0 0 8 - WL ?? 0:00.00 [swi5:+] 0 35 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb0] 0 36 0 0 8 0 0 8 usbtsk DL ?? 0:00.00 [usbtask] 0 37 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb1] 0 38 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb2] 0 39 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb3] 0 40 0 16 -16 0 0 8 cbb cv DL ?? 0:00.00 [cbb0] 0 41 0 0 0 0 0 8 tzpoll DL ?? 0:01.98 [acpi_thermal 0 42 0 0 -48 0 0 8 - WL ?? 0:00.00 [swi0: sio] 0 43 0 0 -16 0 0 8 psleep DL ?? 0:00.01 [pagedaemon] 0 44 0 6 20 0 0 8 psleep DL ?? 0:00.00 [vmdaemon] 0 45 0 0 171 0 0 8 pgzero DL ?? 0:00.94 [pagezero] 0 46 0 0 -16 0 0 8 psleep DL ?? 0:00.03 [bufdaemon] 0 47 0 0 20 0 0 8 syncer DL ?? 0:00.78 [syncer] 0 48 0 0 -4 0 0 8 vlruwt DL ?? 0:00.03 [vnlru] 0 49 0 0 12 0 0 8 - DL ?? 0:00.30 [schedcpu] 0 151 1 175 20 0 1216 672 pause Is ?? 0:00.00 adjkerntz -i 0 219 1 0 96 0 1336 976 select Ss ?? 0:00.03 /usr/sbin/sys 0 264 1 158 115 0 508 380 select Is ?? 0:00.00 /sbin/devd 0 355 1 0 96 0 1252 776 select Ss ?? 0:00.00 /usr/sbin/usb 0 404 1 118 110 0 3548 2564 select Is ?? 0:00.00 /usr/sbin/ssh 0 410 1 0 96 0 3576 2784 select Ss ?? 0:00.09 sendmail: acc 25 414 1 0 20 0 3476 2776 pause Is ?? 0:00.01 sendmail: Que 0 429 1 0 8 0 1368 1100 nanslp Ss ?? 0:00.02 /usr/sbin/cro 0 467 1 0 96 0 1252 728 select Ss ?? 0:00.13 /usr/sbin/mou 1001 547 1 27 99 0 24408 18864 select Is ?? 0:00.38 kdeinit: kdei 1001 550 1 0 96 0 23116 17360 select I ?? 0:00.11 kdeinit: kdei 1001 553 547 0 96 0 24236 18680 select S ?? 0:00.14 kdeinit: kdei 1001 556 1 1 96 0 27656 23020 select S ?? 0:14.40 kdeinit: kdei 1001 566 547 0 60 0 12168 9420 select S ?? 0:05.68 /usr/local/bi 1001 568 1 0 96 0 24896 19948 select S ?? 0:00.19 kdeinit: kdei 1001 571 1 0 96 0 24996 20064 select S ?? 0:00.23 kdeinit: kdei 1001 572 547 0 96 0 26372 21880 select S ?? 0:02.16 kdeinit: kdei 1001 574 1 0 96 0 27760 23788 select S ?? 0:07.09 kdeinit: kdei 1001 576 1 0 96 0 29304 24924 select S ?? 0:08.41 kdeinit: kdei 1001 578 1 0 96 0 25204 20700 select S ?? 0:01.33 kdeinit: kdei 0 579 547 0 96 0 5072 4132 select S ?? 0:00.32 xterm -xtsess 1001 580 547 1 96 0 27752 23108 select S ?? 0:01.67 kdeinit: kdei 0 582 547 0 96 0 5396 4516 select S ?? 0:00.29 xterm -xtsess 1001 583 547 6 20 0 12128 8956 kserel S ?? 3:54.76 xmms --sm-cli 1001 589 547 153 8 0 1688 1244 wait I ?? 0:00.02 /bin/sh /usr/ 1001 596 1 0 96 0 32088 25536 select S ?? 0:09.66 kdeinit: kdei 1001 598 547 0 96 0 24524 19240 select I ?? 0:00.03 kdeinit: kdei 1001 603 589 153 8 0 1700 1260 wait I ?? 0:00.01 /bin/sh /usr/ 1001 607 603 0 20 0 37912 31612 kserel S ?? 0:04.91 /usr/X11R6/li 0 505 1 156 5 0 1312 920 ttyin Is+ v6 0:00.01 /usr/libexec/ 0 506 1 156 5 0 1312 920 ttyin Is+ v7 0:00.01 /usr/libexec/ 0 503 1 156 5 0 1312 920 ttyin Is+ v4 0:00.01 /usr/libexec/ 0 504 1 156 5 0 1312 920 ttyin Is+ v5 0:00.01 /usr/libexec/ 0 501 1 156 5 0 1312 920 ttyin Is+ v2 0:00.01 /usr/libexec/ 0 502 1 156 5 0 1312 920 ttyin Is+ v3 0:00.01 /usr/libexec/ 0 499 1 156 5 0 1312 916 ttyin Is+ v0 0:00.01 /usr/libexec/ 0 500 1 11 8 0 1676 1380 wait Is v1 0:00.05 login [pam] ( 1001 507 500 12 8 0 2248 1852 wait I v1 0:00.03 -bash (bash) 1001 509 507 141 8 0 1680 1200 wait I+ v1 0:00.01 /bin/sh /usr/ 1001 521 509 19 8 0 2004 1292 wait I+ v1 0:00.01 xinit /home/k 0 522 521 1 96 0 88772 86660 select S v1 0:42.02 X :0 -noliste 1001 525 521 22 8 0 1680 1228 wait I v1 0:00.03 /bin/sh /usr/ 1001 569 525 0 8 0 1316 860 nanslp S v1 0:00.09 kwrapper ksms 1001 587 580 0 8 0 2256 1924 wait Is p3 0:00.03 /usr/local/bi 0 615 587 0 8 0 1692 1340 wait I p3 0:00.02 su 0 616 615 0 20 0 2896 2196 pause S p3 0:00.07 _su (csh) 0 697 616 1 96 0 1464 932 - R+ p3 0:00.00 ps -axl 1001 584 582 0 8 0 2264 1928 wait Is p2 0:00.04 bash 1001 696 584 0 96 0 9332 5976 select S+ p2 0:00.14 vim batter.sy 1001 581 579 0 5 0 2268 1932 ttyin Is+ p1 0:00.05 bash rolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 61 hw.acpi.battery.time: 73 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 58 hw.acpi.battery.time: 35450 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 58 hw.acpi.battery.time: 73 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 prolepsis# sysctl hw.acpi.battery hw.acpi.battery.life: 58 hw.acpi.battery.time: 4099 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 I really wish my battery would keep that much energy stored, but I don't really think it's going to happen anytime soon! Thanks Ben KadukReceived on Thu Jul 28 2005 - 22:25:02 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:40 UTC