Re: Shutdown with the power button

2008-10-16 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
see /etc/rc.shutdown and set: 

powerdown=YES   # set to YES for powerdown

Good Luck.
On Thu, Oct 16, 2008 at 11:30:02PM +1100, Mikel Lindsaar wrote:
 On Thu, Oct 16, 2008 at 11:22 PM, Gregory Edigarov
 [EMAIL PROTECTED] wrote:
  Mikel Lindsaar wrote:
  Wondering if anyone knows how (or if it is possible) to be able to
  gracefully power down an OpenBSD box by hitting the power button on
  the server.
  Mine does clean  shutdown on power button just from the box
 
 Hmm... here is the dmesg then any ideas?
 
 
 
 OpenBSD 4.3 (GENERIC) #698: Wed Mar 12 11:07:05 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Xeon(TM) CPU 3.06GHz (GenuineIntel 686-class) 3.07 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
 real mem  = 2147028992 (2047MB)
 avail mem = 2068054016 (1972MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @
 0xf, SMBIOS rev. 2.3 @ 0xec000 (42 entries)
 bios0: vendor HP version P31 date 03/03/2005
 bios0: HP ProLiant DL360 G3
 acpi0 at bios0: rev 0
 acpi0: tables DSDT FACP APIC SPCR
 acpi0: wakeup devices
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 1 (PCI1)
 acpiprt2 at acpi0: bus 4 (PCI2)
 acpicpu0 at acpi0
 acpitz0 at acpi0: critical temperature 31 degC
 bios0: ROM list: 0xc/0x8000 0xc8000/0x4000 0xee000/0x2000!
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 ServerWorks CNB20-HE Host (GC-LE) rev 0x31
 pchb1 at pci0 dev 0 function 1 ServerWorks CNB20-HE Host (GC-LE) rev 0x00
 pchb2 at pci0 dev 0 function 2 ServerWorks CNB20-HE Host (GC-LE) rev 0x00
 pci1 at pchb2 bus 1
 em0 at pci1 dev 1 function 0 Intel PRO/1000MT (82546EB) rev 0x01:
 irq 15, address 00:04:23:c8:03:f6
 em1 at pci1 dev 1 function 1 Intel PRO/1000MT (82546EB) rev 0x01:
 irq 11, address 00:04:23:c8:03:f7
 bge0 at pci1 dev 2 function 0 Broadcom BCM5703X rev 0x02, BCM5703 A2
 (0x1002): irq 11, address 00:0b:cd:83:67:89
 brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
 vga1 at pci0 dev 3 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 ciss0 at pci0 dev 4 function 0 Compaq Smart Array 5i/532 rev.2 rev 0x01: 
 irq 3
 ciss0: 1 LD, HW rev 1, FW 2.76/2.76
 scsibus0 at ciss0: 1 targets
 sd0 at scsibus0 targ 0 lun 0: COMPAQ, LOGICAL VOLUME, 2.76 SCSI2
 0/direct fixed
 sd0: 34727MB, 4427 cyl, 255 head, 63 sec, 512 bytes/sec, 71122560 sec total
 Compaq iLO rev 0x01 at pci0 dev 5 function 0 not configured
 Compaq iLO rev 0x01 at pci0 dev 5 function 2 not configured
 piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling
 iic0 at piixpm0
 spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM registered ECC PC2300CL2.5
 spdmem1 at iic0 addr 0x52: 512MB DDR SDRAM registered ECC PC2100CL2.5
 spdmem2 at iic0 addr 0x54: 512MB DDR SDRAM registered ECC PC2100CL2.5
 spdmem3 at iic0 addr 0x56: 512MB DDR SDRAM registered ECC PC2100CL2.5
 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
 atapiscsi0 at pciide0 channel 0 drive 0
 scsibus1 at atapiscsi0: 2 targets
 cd0 at scsibus1 targ 0 lun 0: COMPAQ, CRN-8245B, 2.19 SCSI0 5/cdrom 
 removable
 cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
 pciide0: no compatibility interrupt for use by channel 1
 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05:
 irq 10, version 1.0, legacy support
 pchb3 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00
 pchb4 at pci0 dev 17 function 0 ServerWorks CIOB-X2 PCIX rev 0x05
 pchb5 at pci0 dev 17 function 2 ServerWorks CIOB-X2 PCIX rev 0x05
 pci2 at pchb5 bus 4
 bge1 at pci2 dev 2 function 0 Broadcom BCM5703X rev 0x02, BCM5703 A2
 (0x1002): irq 15, address 00:0b:cd:83:67:ab
 brgphy1 at bge1 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0 ServerWorks OHCI root hub rev 1.00/1.00 addr 1
 isa0 at mainbus0
 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
 pmsi0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pmsi0 mux 0
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
 biomask 65ed netmask eded ttymask ffef
 mtrr: Pentium Pro MTRR support
 softraid0 at root
 root on sd0a swap on sd0b dump on sd0b
 

-- 
Guillermo Bernaldo de Quirss Maraver Pedroche.



Problem with Matrox MGA G450

2008-09-05 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
Hi guys, i have added one Matrox G450 in OpenBSD, 
and have enabled mgadrm in the GENERIC file, i build
and install, and, when try to launch X, get the next
error: 


xauth:  creating new authority file /root/.serverauth.27834


X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 4.4 amd64 
Current Operating System: OpenBSD rasputin.debugg.org 4.4 GENERIC#0 amd64
Build Date: 02 September 2008  03:39:02PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Fri Sep  5 09:59:25 2008
(==) Using config file: /etc/X11/xorg.conf
(II) Module ddc already built-in
(II) Module i2c already built-in
(II) Module ramdac already built-in
(EE) MGA(0): failed to create server context
(EE) MGA(0): [drm] DRIScreenInit failed.  Disabling DRI.
(EE) AIGLX error: drmOpenOnce failed (Operation not permitted)
(EE) AIGLX: reverting to software rendering
The XKEYBOARD keymap compiler (xkbcomp) reports:
 Warning:  Type ONE_LEVEL has 1 levels, but RALT has 2 symbols
   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

Fatal server error:
Caught signal 11.  Server aborting

X connection to :0.0 broken (explicit kill or server shutdown).

anyone have idea about why i'm getting this errors?
the matrox, works fine without mgadrm, but, i need 
3D for development and, for not install linux...

Thanks to all.
Next my dmesg:

OpenBSD 4.4-current (GENERIC) #0: Fri Sep  5 09:48:47 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2134134784 (2035MB)
avail mem = 2072264704 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0100 (37 entries)
bios0: vendor Award Software International, Inc. version F8 date 08/03/2004
bios0: Gigabyte Technology Co., Ltd. K8T800-8237
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB6(S3) USB7(S3) USB8(S3) 
USB9(S3) UAR1(S5) LPT1(S5) ECP1(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3400+, 2412.37 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD errata 86, 89, 97, 104 present, BIOS upgrade may be required
cpu0: Cool'n'Quiet K8 2412 MHz: speeds: 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 VIA K8HTB Host rev 0x01
ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 Matrox MGA G400/G450 AGP rev 0x85
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp at vga1 not configured
mgadrm0 at vga1 Matrox G400/G450 (AGP)(0):couldn't find agp
Creative Labs SoundBlaster Audigy LS rev 0x00 at pci0 dev 12 function 0 not 
configured
pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide1 channel 0 drive 0: ST3160021A
wd0: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd1 at pciide1 channel 0 drive 1: ST3160021A
wd1: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-H12N, UL01 ATAPI 5/cdrom 
removable
cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 10
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 10
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 5
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 5
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
iic0 at viapm0
iic0: addr 0x4e 01=02 02=10 03=72 05=80 06=0f 0a=ff 0e=e0 0f=ff 3e=80 48=80 
4a=80 4e=80 fe=80 words 00=00ff 01=02ff 02=10ff 03=72ff 04=00ff 05=80ff 06=0fff 

Re: Problem with Matrox MGA G450

2008-09-05 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
Ohh, ok, thanks for all, and sorry.

On Fri, Sep 05, 2008 at 10:18:28AM +0200, Landry Breuil wrote:
 On Fri, Sep 5, 2008 at 10:03 AM, Guillermo Bernaldo de Quiros Maraver
 Pedroche [EMAIL PROTECTED] wrote:
  Hi guys, i have added one Matrox G450 in OpenBSD,
  and have enabled mgadrm in the GENERIC file, i build
  and install, and, when try to launch X, get the next
  error:
 
 if you were really following -current development and oga@'s work,
 you'll know that currently only inteldrm and radeondrm works.
 
 Landry

-- 
Guillermo Bernaldo de QuirC3s Maraver Pedroche.



Re: Problem with Matrox MGA G450

2008-09-05 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
Yes, the same problem with agp: 
agp at vga1 not configured
Thanks.

On Fri, Sep 05, 2008 at 10:21:32AM +0200, Julian Leyh wrote:
 Guillermo Bernaldo de Quiros Maraver Pedroche wrote:
  xauth:  creating new authority file /root/.serverauth.27834

 you shouldn't use root..

 Guillermo Bernaldo de Quiros Maraver Pedroche wrote:
 ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 function 0 Matrox MGA G400/G450 AGP rev 0x85
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 agp at vga1 not configured
 mgadrm0 at vga1 Matrox G400/G450 (AGP)(0):couldn't find agp

 Seems you have a problem with your agp...

 Does it look the same without mgadrm? Or if you boot a i386 kernel?

-- 
Guillermo Bernaldo de QuirC3s Maraver Pedroche.



Problem with SoundBlaster.

2008-08-11 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
Hi all.

I have installed a SoundBlaster, which it's not configured by the current
kernel, then for get configured by the kernel, i had to modify the file

/usr/src/sys/dev/pci/emuxki.c 

adding the line 206 which by default not there: 
202 const struct pci_matchid emuxki_devices[] = {
203 { PCI_VENDOR_CREATIVELABS, PCI_PRODUCT_CREATIVELABS_SBLIVE },
204 { PCI_VENDOR_CREATIVELABS, PCI_PRODUCT_CREATIVELABS_AUDIGY },
205 { PCI_VENDOR_CREATIVELABS, PCI_PRODUCT_CREATIVELABS_AUDIGY2 },
206 { PCI_VENDOR_CREATIVELABS, PCI_PRODUCT_CREATIVELABS_AUDIGYLS },
207 };

Then, i rebuild the kernel, reboot with the new kernel, and now i can see 
that the kernel has configured the device, but now, the problem is with
ac97 codec: 

--- dmesg fragment ---
emu0 at pci0 dev 12 function 0 Creative Labs SoundBlaster Audigy LS rev 0x00:
 irq 10
ac97: codec id not read
audio0 at emu0
--- end dmesg fragment ---

Then my question, is: where can i find the codec that my soundblaster needs? or
 
what can i do for enable the AC97 codec?.

Thanks for all.
( Sorry for my bad english )

--- all dmesg ( KERNEL TEST )---
OpenBSD 4.4-beta (TEST) #0: Sun Aug 10 23:01:36 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/TEST
real mem = 2134208512 (2035MB)
avail mem = 2072334336 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0100 (37 entries)
bios0: vendor Award Software International, Inc. version F8 date 08/03/2004
bios0: Gigabyte Technology Co., Ltd. K8T800-8237
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB6(S3) USB7(S3) USB8(S3) USB
9(S3) UAR1(S5) LPT1(S5) ECP1(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3400+, 2412.41 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,C
FLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD errata 86, 89, 97, 104 present, BIOS upgrade may be required
cpu0: Cool'n'Quiet K8 2412 MHz: speeds: 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 VIA K8HTB Host rev 0x01
ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 NVIDIA GeForce FX 5700LE rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp at vga1 not configured
drm at vga1 unsupported
emu0 at pci0 dev 12 function 0 Creative Labs SoundBlaster Audigy LS rev 0x00:
 irq 10
ac97: codec id not read
audio0 at emu0
pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide1 channel 0 drive 0: ST3160021A
wd0: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd1 at pciide1 channel 0 drive 1: ST3160021A
wd1: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-H12N, UL01 ATAPI 5/cdrom r
emovable
cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 10
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 10
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 5
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 5
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
iic0 at viapm0
iic0: addr 0x4e 01=02 02=10 03=72 05=80 06=0f 0a=ff 0e=e0 0f=ff 3e=80 48=80 4a=
80 4e=80 fe=80 words 00=00ff 01=02ff 02=10ff 03=72ff 04=00ff 05=80ff 06=0fff 07
=00ff
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC3200CL3.0
spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC3200CL3.0
spdmem2 at iic0 addr 0x52: 1GB DDR SDRAM non-parity PC3200CL3.0
rl0 at pci0 dev 19 function 0 Realtek 8139 rev 0x10: irq 11, address 00:0f:ea
:4d:bf:36
rlphy0 at rl0 phy 0: RTL internal PHY
pchb1 at pci0 dev 24 function 0 AMD AMD64 0Fh HyperTransport rev 0x00
pchb2 at pci0 dev 24 function 1 AMD AMD64 0Fh Address Map rev 0x00
pchb3 at pci0 dev 24 function 2 AMD AMD64 0Fh DRAM Cfg rev 0x00
kate0 at pci0 dev 24 function 3 AMD AMD64 0Fh Misc Cfg rev 0x00
usb1 at uhci0: USB