Re: No ACPI battery/ac status readings on a ASUS UL30A laptop.

2010-05-03 Thread Torbjørn H . Orskaug
2010/4/29 Torbjxrn H. Orskaug :
> 2010/4/29 Peter Hessler :
>> what happens if you remove and reinsert the power cord, does it do the
>> same thing?
>>
>
> Yep.
>

Just a quick update on this. I recompiled my kernel with ACPI_DEBUG
enabled and I can see that after physically removing and reinserting
the battery, the _STA method returns 0x1f and everything works as
expected. I guess I'm just stuck with a broken BIOS/AML and I'll make
a habit of removing and reinserting the battery of this laptop if I
really need battery charge status.



No ACPI battery/ac status readings on a ASUS UL30A laptop.

2010-04-29 Thread Torbjørn H . Orskaug
Hi misc!

I just got one of these babies as a present and put OpenBSD on it
right away. Everything seems to be running smoothly, with the single
exception of battery and ac status readings in apm(8):

Battery state: absent, 0% remaining, unknown life estimate
A/C adapter state: not known
Performance adjustment mode: auto (1300 MHz)

If however, I remove and reattach the battery, it's status is there in
all it's glory. I've poked around in acpibat.c and acpiac.c but my
experience with ACPI is pretty limited and I can't really make much
sense of it (yet). Has anyone else experienced this problem? Are there
any obvious things I can try to get things working? I'm currently
building a kernel with ACPI_DEBUG defined to see if I can get some
more information on what's going on.

dmesg:
OpenBSD 4.7-current (GENERIC.MP) #557: Tue Apr 27 00:36:31 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU U7300 @ 1.30GHz ("GenuineIntel" 686-class) 1.34 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
real mem  = 3184717824 (3037MB)
avail mem = 3089928192 (2946MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/28/09, BIOS32 rev. 0 @
0xf0010, SMBIOS rev. 2.5 @ 0xfcce0 (41 entries)
bios0: vendor American Megatrends Inc. version "212" date 12/28/2009
bios0: ASUSTeK Computer Inc. UL30A
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC MCFG SLIC ECDT DBGP BOOT OEMB HPET GSCI SSDT
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB5(S3) EUSB(S3)
USB3(S3) USB4(S3) USB6(S3) USBE(S3) HDAC(S3) P0P1(S3) P0P3(S3)
P0P5(S3) P0P6(S3) P0P7(S4) LAN_(S4) GLAN(S4) P0P8(S3) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 205MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU U7300 @ 1.30GHz ("GenuineIntel" 686-class) 1.34 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P0P2)
acpiprt2 at acpi0: bus 3 (P0P7)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpitz0 at acpi0: critical temperature 100 degC
acpiac0 at acpi0: AC unit in unknown state
acpibat0 at acpi0: BAT0 not present
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: CRTD
acpivout1 at acpivideo0: LCDD
acpivout2 at acpivideo0: HDMI
bios0: ROM list: 0xc/0xfe00!
cpu0: Enhanced SpeedStep 1339 MHz: speeds: 1300, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 2 int 16 (irq 10)
drm0 at inteldrm0
"Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 2
int 16 (irq 10)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 2
int 21 (irq 7)
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 2
int 19 (irq 3)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 2
int 18 (irq 6)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03:
apic 2 int 22 (irq 4)
azalia0: codecs: Realtek ALC269, Intel/0x2802, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 2 int
17 (irq 5), address 1c:4b:d6:ba:b3:4b
athn0: AR9285 rev 2 (1T1R), ROM rev 13
ppb2 at pci0 dev 28 function 5 "Intel 82801I PCIE" rev 0x03: apic 2
int 17 (irq 5)
pci3 at ppb2 bus 3
alc0 at pci3 dev 0 function 0 "Attansic Technology L2C" rev 0xc0: apic
2 int 17 (irq 5), address 48:5b:39:3f:2b:f0
atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 11
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 2
int 23 (irq 10)
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 2
int 19 (irq 3)
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 2
int 18 (irq 6)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 2
int 23 (irq 10)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 

Re: Unexpected port change inside STUN packet

2009-07-25 Thread Torbjørn H . Orskaug
I had this issue with my PS3 aswell. Adding a rule like

nat on $ext_if from $ps3 to any -> ($ext_if) static-port

solved the issue on my end, YMMV. Apparently the ps3 didn't like
it if pf altered the source port in its packets.



Re: Thank you for the quality of the FAQ and MAN

2009-07-17 Thread Torbjørn H . Orskaug
Speaking of outstanding documentation in the form of manual pages, why
do the preformatted GNU man pages have a right margin of ~66 characters,
while the BSD ones render nicely at about 80 characters? How would I
proceed to slap some "GNU" sense into the offending pages?