ACPI and APM testing on Dell Inspiron 8200

2003-11-22 Thread Ryan Sommers
I'm having difficulty getting battery and thermal status. If I compile the 
kernel with APM support I get battery statistics but if I try to put 
APM/ACPI in the kernel ACPI reports that another PM system is enabled and 
doesn't load the /dev/acpi device. If I take APM out and compile in ACPI I 
get /dev/acpi and all that goes with it; but the battery status does not 
show up correctly. 

I've attached 2 files, test1.log which is with: 

device acpi
device apm 

in the kernel. (Which brings me to the point, in the NOTES file it's noted 
that device acpi is deprecated, but if you don't add the device you don't 
get acpi support...) 

Then test2.log is with only acpi support compiled in. 

Another thing I tested while I was testing was suspend states. With apm 
compiled in I tried doing a 'apm -z'. Suspending seems to work fine, 
however, when you try to bring it back it says it is resyncing the disks 
(think this was the last message) and then it sits there frozen; meanwhile 
the harddrive light is constantly on. I let it sit there for a minute and 
still had no signs of activity. If I go into X suspend works with the only 
hitch that the screen goes all white before it blacks out and upon 
unsuspending the screen is still all white with traces of colors of the 
background. 

Then with ACPI compiled in I tried dropping it to S1 with 'acpiinfo -s 1'. 
Again it seems to drop into the state just fine, however the LCD does not 
black out upon suspending. But the power light starts flashing like it 
should. Then when you hit the power button the screen blanks out. However, 
otherwise it unsuspends, I was able to sucessfully Ssh into the machine. I 
don't know if it's related but changing the hw.acpi.reset_video to 0 made no 
difference. Also to note, with X running S1 works fine with the exception 
that when it is suspended the display does not turn off, but when you come 
out of S1 the display goes back into X. I was able to sucessfully suspend it 
and bring it back using the lidswitch too, with same exceptions. S3, S4 and 
S5 all result in the computer rebooting though. 

Processor is P4m. Video card is ATI Radeon 9k mobility. 

If you need any other information please feel free to contact me. 

--
Ryan leadZERO Sommers
Gamer's Impact President
[EMAIL PROTECTED]
ICQ: 1019590
AIM/MSN: leadZERO 

-= http://www.gamersimpact.com =-Script started on Sat Nov 22 13:53:08 2003
lilshadow# dmsegsg| | grep -i apm
apm0: APM BIOS on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
WARNING: apm_saver module requires apm enabled
lilshadow# dmesg | grep -i apmacpi
Preloaded acpi_dsdt /boot/acpi_dsdt.aml at 0xc07811cc.
  
Features=0xbfebf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
ACPI: DSDT was overridden.
ACPI-0375: *** Info: Table [DSDT] replaced by host OS
acpi0: Other PM system enabled.
lilshadow# apm
APM version: 1.2
APM Management: Enabled
AC Line status: on-line
Battery status: charging
Remaining battery life: 100%
Remaining battery time:  2:34:00
Number of batteries: 2
Battery 0:
Battery status: not present
Battery 1:
Battery status: charging
Remaining battery life: 100%
Remaining battery time:  2:34:00
Resume timer: disabled
Resume on ring indicator: disabled
APM Capabilities:
global suspend state
resume timer from suspend
lilshadow# acpiinfoconf -i 0
acpiconf: /dev/acpi: No such file or directory
lilshadow# acpiconf -i 01
acpiconf: /dev/acpi: No such file or directory
lilshadow# exit
exit

Script done on Sat Nov 22 13:53:50 2003
Script started on Sat Nov 22 14:11:19 2003
lilshadow# dmesg | grep -i apm
lilshadow# dmesg | grep -i apmacipi
Preloaded acpi_dsdt /boot/acpi_dsdt.aml at 0xc077e1cc.
  
Features=0xbfebf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
ACPI: DSDT was overridden.
ACPI-0375: *** Info: Table [DSDT] replaced by host OS
acpi0: DELL   CPi R   on motherboard
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_cpu0: CPU on acpi0
acpi_tz0: Thermal Zone on acpi0
acpi_acad0: AC Adapter on acpi0
acpi_cmbat0: Control Method Battery on acpi0
acpi_cmbat1: 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
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0
pci2: ACPI PCI bus on pcib2
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
fdc0: Enhanced floppy controller (i82077, NE72065 or clone) port 0x3f7,0x3f2-0x3f5 
irq 6 drq 2 on acpi0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
ppc0 port 

Re: ACPI and APM testing on Dell Inspiron 8200

2003-11-22 Thread Lukas Ertl
On Sat, 22 Nov 2003, Ryan Sommers wrote:

 I'm having difficulty getting battery and thermal status. If I compile the
 kernel with APM support I get battery statistics but if I try to put
 APM/ACPI in the kernel ACPI reports that another PM system is enabled and
 doesn't load the /dev/acpi device.

Yes, you can have either ACPI or APM, but not both at the same time.

 If I take APM out and compile in ACPI I get /dev/acpi and all that goes
 with it; but the battery status does not show up correctly.

The log you have posted shows that you're running on AC, that's why
battery time is 0.  Plus, you somehow made it to fill up the battery to
118%. :-)

The log also shows that you're loading a customized DSDT at boot, maybe
that is borked.

 (Which brings me to the point, in the NOTES file it's noted
 that device acpi is deprecated, but if you don't add the device you don't
 get acpi support...)

Yes, this info is currently out-of-date.  There were some recent changes
to the interrupt code that made it necessary to compile acpi into the
kernel.  I'm not sure if someone already works on making it a module
again.

Generally, you should use acpidump(8) to dump your ACPI tables and ASL,
put it on a website and post a link to it here.  Maybe someone can take a
look at it then.

regards,
le

-- 
Lukas Ertl eMail: [EMAIL PROTECTED]
UNIX Systemadministrator   Tel.:  (+43 1) 4277-14073
Vienna University Computer Center  Fax.:  (+43 1) 4277-9140
University of Vienna   http://mailbox.univie.ac.at/~le/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]