On 14/05/2013 16:18, David Coppa wrote: > On Tue, May 14, 2013 at 4:41 PM, Mark Duller <mark.dul...@it.ox.ac.uk> wrote: > >> The OP was talking about laptops... Ideally one would buy a laptop that >> works well with OpenBSD, but sometimes choice is limited due to >> workplace requirements etc. >> >> For a "desktop" computer I totally agree. I wouldn't even want to >> suspend or shutdown my desktop. >> >> The Macbook Pro in this case is an Intel. > > Then try again with -current and it should work, because we have kms > for intel now.
I just tried with OpenBSD 5.3 i386 and amd64 and it indeed has working resume and video. After a fresh install, executing 'apmd' then 'zzz' from within X suspends the system. Then closing and opening the lid does indeed resume the system. However if doing this on a fresh boot with no X running, then on resume there is no video display. I wasn't able to get the webcam working this time (in previous versions I got it working, though not reliably). I used the 'video' command but it just gives 'video: could not find a usable encoding' even trying various options. dmesg shows the following but uvideo0 doesn't actually exist in /dev/, perhaps that is related to the issue. uvideo0 at uhub0 port 2 configuration 1 interface 0 "Apple Inc. FaceTime HD Camera (Built-in)" rev 2.00/5.16 addr 6 video0 at uvideo0 There is also a timeout on boot (shown in dmesg below) that delays start up for about 1-2 min, I'm not sure how one would overcome this but it's not a big deal having to wait a bit (as rebooting should be not be very frequent). The built in wireless card (BCM43xx 1.0) is not detected in default install, but wired networking is fine. IIRC there is a firmware package one can install to get BCM wifi working. So, IMO OpenBSD is quite useable on a MacBook Pro (13-inch, Late 2011). Though given a choice, I think one is better off getting a system known to work very well with OpenBSD. ----dmesg---- OpenBSD 5.3 (GENERIC.MP) #58: Tue Mar 12 18:43:53 MDT 2013 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP RTC BIOS diagnostic error af<clock_battery,config_unit,fixed_disk,invalid_time> cpu0: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz ("GenuineIntel" 686-class) 2.80 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,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC real mem = 2324434944 (2216MB) avail mem = 2275454976 (2170MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @ 0xe0000 (62 entries) bios0: vendor Apple Inc. version "MBP81.88Z.0047.B26.1110311252" date 10/31/11 bios0: Apple Inc. MacBookPro8,1 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP HPET APIC SBST ECDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT MCFG SSDT SSDT SSDT acpi0: wakeup devices P0P2(S4) GFX0(S4) PEG1(S4) EC__(S4) GMUX(S3) HDEF(S4) GIGE(S4) SDXC(S3) RP01(S4) ARPT(S4) RP02(S4) RP03(S4) RP04(S4) EHC1(S3) EHC2(S3) ADP1(S4) LID0(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 99MHz cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz ("GenuineIntel" 686-class) 2.80 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,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz cpu2: 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,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz cpu3: 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,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 acpiec0 at acpi0 acpimcfg0 at acpi0 addr 0xe0000000, bus 0-155 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P2) acpiprt2 at acpi0: bus 5 (PEG1) acpiprt3 at acpi0: bus 2 (RP01) acpiprt4 at acpi0: bus 3 (RP02) acpiprt5 at acpi0: bus 4 (RP03) acpiprt6 at acpi0: bus -1 (RP04) acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpicpu2 at acpi0: C3, C2, C1, PSS acpicpu3 at acpi0: C3, C2, C1, PSS acpibat0 at acpi0: BAT0 model "3545797981023400290" type 3545797981528607052 oem "3545797981528608836" acpiac0 at acpi0: AC unit online acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PWRB acpibtn2 at acpi0: SLPB acpivideo0 at acpi0: IGPU acpivout0 at acpivideo0: DD02 bios0: ROM list: 0xc0000/0xee00 cpu0: Enhanced SpeedStep 2794 MHz: speeds: 2801, 2800, 2400, 2200, 2000, 1800, 1600, 1400, 1200, 1000, 800 MHz memory map conflict 0xe00f8000/0x1000 memory map conflict 0xfed1c000/0x4000 memory map conflict 0xffed8000/0x28000 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09 ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: apic 2 int 16 pci1 at ppb0 bus 1 ppb1 at pci0 dev 1 function 1 "Intel Core 2G PCIE" rev 0x09: apic 2 int 16 pci2 at ppb1 bus 5 ppb2 at pci2 dev 0 function 0 vendor "Intel", unknown product 0x1513 rev 0x00 pci3 at ppb2 bus 6 ppb3 at pci3 dev 0 function 0 vendor "Intel", unknown product 0x1513 rev 0x00: apic 2 int 17 pci4 at ppb3 bus 7 vendor "Intel", unknown product 0x1513 (class system subclass miscellaneous, rev 0x00) at pci4 dev 0 function 0 not configured ppb4 at pci3 dev 3 function 0 vendor "Intel", unknown product 0x1513 rev 0x00: apic 2 int 16 pci5 at ppb4 bus 8 ppb5 at pci3 dev 4 function 0 vendor "Intel", unknown product 0x1513 rev 0x00: apic 2 int 17 pci6 at ppb5 bus 9 ppb6 at pci3 dev 5 function 0 vendor "Intel", unknown product 0x1513 rev 0x00: apic 2 int 18 pci7 at ppb6 bus 58 ppb7 at pci3 dev 6 function 0 vendor "Intel", unknown product 0x1513 rev 0x00: apic 2 int 19 pci8 at ppb7 bus 107 vga1 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09 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 0x90000000, size 0x10000000 inteldrm0 at vga1: apic 2 int 16 drm0 at inteldrm0 "Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured uhci0 at pci0 dev 26 function 0 vendor "Intel", unknown product 0x1c2c rev 0x05: apic 2 int 21 ehci0 at pci0 dev 26 function 7 "Intel 6 Series USB" rev 0x05: apic 2 int 23 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 6 Series HD Audio" rev 0x05: msi azalia0: codecs: Cirrus Logic CS4206, Intel/0x2805, using Cirrus Logic CS4206 audio0 at azalia0 ppb8 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 16 pci9 at ppb8 bus 2 bge0 at pci9 dev 0 function 0 "Broadcom BCM57765" rev 0x10, BCM57765 B0 (0x57785100): apic 2 int 16, address 3c:07:54:65:91:e8 brgphy0 at bge0 phy 1: BCM57765 10/100/1000baseT PHY, rev. 4 sdhc0 at pci9 dev 0 function 1 "Broadcom SD Host Controller" rev 0x10: apic 2 int 17 sdhc0 at 0x10: can't map registers ppb9 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 17 pci10 at ppb9 bus 3 vendor "Broadcom", unknown product 0x4331 (class network subclass miscellaneous, rev 0x02) at pci10 dev 0 function 0 not configured ppb10 at pci0 dev 28 function 2 "Intel 6 Series PCIE" rev 0xb5: apic 2 int 18 pci11 at ppb10 bus 4 "AT&T/Lucent FW643 1394" rev 0x08 at pci11 dev 0 function 0 not configured uhci1 at pci0 dev 29 function 0 vendor "Intel", unknown product 0x1c27 rev 0x05: apic 2 int 19 ehci1 at pci0 dev 29 function 7 "Intel 6 Series USB" rev 0x05: apic 2 int 22 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 pcib0 at pci0 dev 31 function 0 "Intel HM65 LPC" rev 0x05 pciide0 at pci0 dev 31 function 2 "Intel 6 Series SATA" rev 0x05: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide0: using apic 2 int 19 for native-PCI interrupt wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK7559GSXF> wd0: 16-sector PIO, LBA48, 715404MB, 1465149168 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets pciide0:1:0: device timeout, c_bcount=0, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=0, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=0, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=0, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=0, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=0, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=36, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=36, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=36, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=36, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 pciide0:1:0: device timeout, c_bcount=36, c_skip=0, status=0x58<DRDY,DSC,DRQ>, ireason=0x1 atapiscsi0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5 ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic 2 int 18 iic0 at ichiic0 iic0: addr 0x2c 03=fc 05=6f 06=a0 71=06 72=80 86=8a 90=37 91=21 92=27 93=3b 94=61 95=3c 96=66 97=85 98=3d 99=1b 9a=80 9f=7c a0=7f a1=b5 a2=bf a3=7b a4=28 a5=cf a6=64 a7=2d words 00=0000 01=0000 02=00fc 03=fc00 04=006f 05=6fa0 06=a000 07=0000 spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 SO-DIMM spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600 SO-DIMM usb2 at uhci0: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support nvram: invalid checksum uhub4 at uhub0 port 1 "Standard Microsystems product 0x2513" rev 2.00/b.b3 addr 2 uhub5 at uhub4 port 1 "Apple Inc. BRCM2070 Hub" rev 2.00/1.00 addr 3 uhidev0 at uhub5 port 1 configuration 1 interface 0 "Apple Computer product 0x820a" rev 2.00/1.00 addr 4 uhidev0: iclass 3/1, 1 report id ukbd0 at uhidev0 reportid 1: 8 variable keys, 6 key codes wskbd0 at ukbd0: console keyboard, using wsdisplay0 uhidev1 at uhub5 port 2 configuration 1 interface 0 "Apple Computer product 0x820b" rev 2.00/1.00 addr 5 uhidev1: iclass 3/1, 2 report ids ums0 at uhidev1 reportid 2: 3 buttons wsmouse0 at ums0 mux 0 ugen0 at uhub5 port 3 "Apple Inc. Bluetooth USB Host Controller" rev 2.00/0.37 addr 6 uhidev2 at uhub4 port 2 configuration 1 interface 0 "Apple Inc. Apple Internal Keyboard / Trackpad" rev 2.00/1.18 addr 7 uhidev2: iclass 3/1, 9 report ids ukbd1 at uhidev2 reportid 1: 8 variable keys, 6 key codes, country code 13 wskbd1 at ukbd1 mux 1 wskbd1: connecting to wsdisplay0 uhid0 at uhidev2 reportid 9: input=0, output=0, feature=3 uhidev3 at uhub4 port 2 configuration 1 interface 1 "Apple Inc. Apple Internal Keyboard / Trackpad" rev 2.00/1.18 addr 7 uhidev3: iclass 3/0, 68 report ids uhid1 at uhidev3 reportid 68: input=511, output=0, feature=0 uhidev4 at uhub4 port 2 configuration 1 interface 2 "Apple Inc. Apple Internal Keyboard / Trackpad" rev 2.00/1.18 addr 7 uhidev4: iclass 3/1, 2 report ids ums1 at uhidev4 reportid 2: 3 buttons wsmouse1 at ums1 mux 0 uvideo0 at uhub0 port 2 configuration 1 interface 0 "Apple Inc. FaceTime HD Camera (Built-in)" rev 2.00/5.16 addr 8 video0 at uvideo0 ugen1 at uhub0 port 2 configuration 1 "Apple Inc. FaceTime HD Camera (Built-in)" rev 2.00/5.16 addr 8 uhub6 at uhub1 port 1 "Standard Microsystems product 0x2513" rev 2.00/b.b3 addr 2 uhidev5 at uhub6 port 1 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/0.16 addr 3 uhidev5: iclass 3/0, 38 report ids uhid2 at uhidev5 reportid 36: input=4, output=0, feature=0 uhid3 at uhidev5 reportid 37: input=4, output=0, feature=0 uhid4 at uhidev5 reportid 38: input=4, output=0, feature=0 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on wd0a (c7798cdc9bd81cc2.a) swap on wd0b dump on wd0b clock: unknown CMOS layout