Re: apmd -f /dev/acpi?

2007-02-05 Thread Pau Amaro-Seoane
Hi,

to summarise again my problem...

My goal is to be able to suspend (zzz/ apm -S). apm0 is not supported in
this laptop.

Then I thought of trying to set up apmd over /dev/acpi with the current
kernel I downloaded from ftp.openbsd.org - current (both bsd and bsd.mp)
to have the latest version (I know that there has been a lot of progress
in acpi in the last weeks)

I boot with the -c option, enable acpi and when I log in I try to do

sudo apmd -f /dev/acpi

to see whether I am lucky and can suspend this way. It doesn't. I just
want to ask you whether you see something wrong.

Cheers,

Pau

These are my dmesg...

---
This is dmesg generic

OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.20GHz (GenuineIntel 686-class) 1.21 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1200 MHz (940 mV): speeds: 1200, 1100, 1000, 900, 800, 
600 MHz
real mem  = 1063809024 (1038876K)
avail mem = 962383872 (939828K)
using 4256 buffers containing 53293056 bytes (52044K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ba) BIOS, date 05/09/05, BIOS32 rev. 0 @ 0xfd720, 
SMBIOS rev. 2.3 @ 0xe80c0 (43 entries)
bios0: FUJITSU SIEMENS 00
pcibios0 at bios0: rev 2.1 @ 0xfd720/0x8e0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xd200! 0xdc000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82852GM Hub-PCI rev 0x02
Intel 82852GM Memory rev 0x02 at pci0 dev 0 function 1 not configured
Intel 82852GM Configuration rev 0x02 at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0 Intel 82852GM AGP rev 0x02: aperture at 
0xd800, size 0x800
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel 82852GM AGP rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x03: irq 11
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x83
pci1 at ppb0 bus 1
cbb0 at pci1 dev 10 function 0 Ricoh 5C476 CardBus rev 0xab: irq 11
cbb1 at pci1 dev 10 function 1 Ricoh 5C476 CardBus rev 0xab: irq 11
Ricoh 5C552 Firewire rev 0x03 at pci1 dev 10 function 2 not configured
vendor Ricoh, unknown product 0x0576 (class system subclass miscellaneous, 
rev 0x01) at pci1 dev 10 function 3 not configured
Ricoh 5C592 Memory Stick rev 0x00 at pci1 dev 10 function 4 not configured
rl0 at pci1 dev 12 function 0 Realtek 8139 rev 0x10: irq 11, address 
00:0b:5d:91:6d:e8
rlphy0 at rl0 phy 0: RTL internal PHY
iwi0 at pci1 dev 13 function 0 Intel PRO/Wireless 2200BG rev 0x05: irq 11, 
address 00:0e:35:34:e3:60
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x03
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x03: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: FUJITSU MHT2080AH
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 ignored (disabled)
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x03: irq 11
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x03: irq 11, ICH4 
AC97
ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at auich0
Intel 82801DB Modem rev 0x03 at pci0 dev 31 function 6 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0

Re: apmd -f /dev/acpi?

2007-02-05 Thread Peter Hessler
Suspend is not supported yet in ACPI.  


On 2007 Feb 05 (Mon) at 15:45:15 +0100 (+0100), Pau Amaro-Seoane wrote:
:Hi,
:
:to summarise again my problem...
:
:My goal is to be able to suspend (zzz/ apm -S). apm0 is not supported in
:this laptop.
:
:Then I thought of trying to set up apmd over /dev/acpi with the current
:kernel I downloaded from ftp.openbsd.org - current (both bsd and bsd.mp)
:to have the latest version (I know that there has been a lot of progress
:in acpi in the last weeks)
:
:I boot with the -c option, enable acpi and when I log in I try to do
:
:sudo apmd -f /dev/acpi
:
:to see whether I am lucky and can suspend this way. It doesn't. I just
:want to ask you whether you see something wrong.
:
:Cheers,
:
:Pau
:
:These are my dmesg...


--
Time flies like an arrow, but fruit flies like a banana.



Re: apmd -f /dev/acpi?

2007-02-04 Thread Vijay Sankar
On Sunday 04 February 2007 12:50, Pau Amaro-Seoane wrote:
 Hi,

 I just downloaded cd40.iso from ftp://ftp.openbsd.org/pub/OpenBSD/snapshots
 and installed openbsd on my laptop because I thought the kernel would be
 -current but when booting I tried bsd -c and then UKC enable acpi but
 nothing happened, so that I went to the site and downloaded bsd and bsd.mp,
 copied them to / with the names bsd.acpi and bsd.mp.acpi

I have seen many warnings from the developers and other knowledgeable people 
on this list to not mix the -current and snapshot, so may be that is your 
problem. 


 Then I rebooted (bsd.acpi -c and/or bsd.mp.acpi -c) and UKC said 385 acpi0
 enabled and everything was looking fine (apart from the problem that I
 didn't get any dhcp offer?).

 I wait until it's up and then make sudo apmd -f /dev/acpi with the hope
 that I could get apm to work over acpi but when I type zzz or apm -S
 nothing happens...

 I know acpi is under development and I am not complaining at all. I just
 want to check out I did everything correctly or not. Do you see something
 wrong?

I find that ACPI and APM on OpenBSD works just like or probably better than it 
does on other OS'es and distros, for my purposes. I am not very knowledgeable 
about ACPI or APM but can provide you with what happens on my system (this is 
just a desktop -- I am going to try this on my laptop as soon as I get a 
chance). When I tried to do a boot -c, it did not work for me. Basically, the 
keyboard would not function, so even though I got the UKC prompt, I could not 
enter enable ACPI. So I did a config -ef /bsd from the root prompt, enabled 
acpi and rebooted.

zzz and apm gave me the following . ..

$ zzz
Suspending system...
$
$ apm
Battery state: absent, 0% remaining, unknown life estimate
A/C adapter state: not known
Performance adjustment mode: manual (2412 MHz)

Here is part of my dmesg that had stuff about apm and acpi.

OpenBSD 4.0-current (GENERIC) #1351: Wed Jan 24 20:29:10 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (AuthenticAMD 
686-class, 512KB L2 cache) 2.42 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
real mem  = 3488051200 (3406300K)
avail mem = 3192864768 (3118032K)
using 4256 buffers containing 174526464 bytes (170436K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 12/22/06, BIOS32 rev. 0 @ 0xf22f0, 
SMBIOS rev. 2.4 @ 0xf (76 entries)
bios0: ASUSTeK Computer INC. M2N-SLI DELUXE
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0xdc44
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdb10/304 (17 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 17 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #7 is the last bus
bios0: ROM list: 0xc/0xec00 0xd/0x2800!
acpi0 at mainbus0: rev 2
acpi0: tables DSDT FACP HPET MCFG APIC
acpitimer at acpi0 not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB0)
acpibtn at acpi0 not configured
acpitz at acpi0 not configured






 I can provide you with dmesg if you wish but it looked fine to me.

 thanks,

 Pau


 !DSPAM:1,45c63d9f148709730998309!

-- 
Vijay Sankar
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6
Phone: +1 (204) 885-9535, E-Mail: [EMAIL PROTECTED]



Re: apmd -f /dev/acpi?

2007-02-04 Thread Stuart Henderson
On 2007/02/04 19:50, Pau Amaro-Seoane wrote:
 I just downloaded cd40.iso from ftp://ftp.openbsd.org/pub/OpenBSD/snapshots 
 and
 installed openbsd on my laptop because I thought the kernel would be -current
 but when booting I tried bsd -c and then UKC enable acpi but nothing 
 happened,
...
 Then I rebooted (bsd.acpi -c and/or bsd.mp.acpi -c) and UKC said 385 acpi0
 enabled and everything was looking fine (apart from the problem that I didn't
 get any dhcp offer?).

Sounds like you downloaded a snapshot cd40.iso, but then proceeded to
install files from /pub/OpenBSD/4.0/... (i.e. 4.0 release). If so, you
now have mismatched kernel and userland; at the boot prompt, type
'bsd.rd', then proceed with an upgrade install, making sure to set the
ftp path to /pub/OpenBSD/snapshots/...

 I can provide you with dmesg if you wish but it looked fine to me.

People don't just ask for a dmesg to see if 'it looks fine', it also
shows: machine architecture, which kernel you're running, exact hardware
in the machine (including version numbers of the hardware, BIOS version
in some cases), IRQ routing, etc. These aren't always useful all the
time, but the times when they are needed, having them right there in the
first email saves a back-and-forth exchange to get necessary information.



Re: apmd -f /dev/acpi?

2007-02-04 Thread Nick Nauwelaerts
On Sun, 4 Feb 2007 19:50:26 +0100
Pau Amaro-Seoane [EMAIL PROTECTED] wrote:

 I just downloaded cd40.iso from
 ftp://ftp.openbsd.org/pub/OpenBSD/snapshots and installed openbsd on
 my laptop because I thought the kernel would be -current but when
 booting I tried bsd -c and then UKC enable acpi but nothing
 happened, so that I went to the site and downloaded bsd and bsd.mp,
 copied them to / with the names bsd.acpi and bsd.mp.acpi
 
 Then I rebooted (bsd.acpi -c and/or bsd.mp.acpi -c) and UKC said 385
 acpi0 enabled and everything was looking fine (apart from the
 problem that I didn't get any dhcp offer?).

With problems like these a dmesg will make people be more interested in
your problem. Without that advice is most likely a best guess.

// nick



Re: apmd -f /dev/acpi?

2007-02-04 Thread Peter Hessler
On 2007 Feb 04 (Sun) at 19:50:26 +0100 (+0100), Pau Amaro-Seoane wrote:
:I wait until it's up and then make sudo apmd -f /dev/acpi with the hope that I
:could get apm to work over acpi but when I type zzz or apm -S nothing
:happens...

suspend is not yet supported in acpi.  



--
Horses are forbidden to eat fire hydrants in Marshalltown, Iowa.