Hi,

I started noticing about a month ago, that shutting down using the
"quit" option from XFCE had stopped working. It kind of locks the system
up and does a fsck on next boot. Annoying.

I went digging in the xfce source code and found that it uses a call to
`sudo shutdown -p -h now` for shutting down. I did some tests:

- `sudo shutdown -p -h now` from an xterm in xfce locks up in the 
  same way.
- `sudo halt -p` from an xterm in xfce works fine. The system powers
  right down
- `sudo shutdown -p -h now` from a plain console (no X11) session works.
  Again the system correctly powers down.

Why is this? Is there a fix perhaps? Suggestions welcome.

My kernel has ACPI and APM enabled.


Dmesg:
OpenBSD 4.4-current (GENERIC) #1646: Sun Jan  4 13:14:33 MST 2009
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz ("GenuineIntel" 686-class) 3 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,CNXT-ID,xTPR
real mem  = 2397855744 (2286MB)
avail mem = 2310586368 (2203MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/05/04, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.3 @ 0xfbe40 (76 entries)
bios0: vendor Intel Corp. version "BF86510A.86A.0058.P15.0404050012" date 
04/05/2004
bios0: Intel Corporation D865GLC
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC ASF! TCPA WDDT
acpi0: wakeup devices TANA(S4) P0P3(S4) AC97(S4) USB0(S3) USB1(S3) USB2(S3) 
USB3(S3) USB7(S3) UAR1(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P2)
acpiprt3 at acpi0: bus 2 (P0P3)
acpicpu0 at acpi0
acpibtn0 at acpi0: SLPB
bios0: ROM list: 0xc0000/0xa200! 0xca800/0x1000 0xcb800/0x2800 0xce000/0x1000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82865G Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82865G Video" rev 0x02
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 0xf0000000, size 0x8000000
inteldrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at inteldrm0
ppb0 at pci0 dev 3 function 0 "Intel 82865G CSA" rev 0x02
pci1 at ppb0 bus 1
em0 at pci1 dev 1 function 0 "Intel PRO/1000CT (82547EI)" rev 0x00: apic 2 int 
18 (irq 10), address 00:0c:f1:f5:13:3c
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 16 
(irq 11)
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 19 
(irq 5)
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 18 
(irq 10)
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: apic 2 int 16 
(irq 11)
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: apic 2 int 23 
(irq 9)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xc2
pci2 at ppb1 bus 2
ahc0 at pci2 dev 1 function 0 "Adaptec AHA-2940" rev 0x00: apic 2 int 22 (irq 
11)
scsibus0 at ahc0: 8 targets, initiator 7
bktr0 at pci2 dev 2 function 0 "Brooktree BT878" rev 0x11: apic 2 int 17 (irq 3)
bktr0: Hauppauge Model 44805 C135
bktr0: Hauppauge WinCast/TV, Philips PAL I tuner.
"Brooktree BT878 Audio" rev 0x11 at pci2 dev 2 function 1 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <IC35L060AVV207-0>
wd0: 16-sector PIO, LBA48, 58644MB, 120103200 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus1 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-R1202, 1026> ATAPI 5/cdrom 
removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd1 at pciide0 channel 1 drive 0: <Maxtor 6E040L0>
wd1: 16-sector PIO, LBA, 39205MB, 80293248 sectors
wd2 at pciide0 channel 1 drive 1: <HDS728080PLAT20>
wd2: 16-sector PIO, LBA48, 78533MB, 160836480 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 31 function 2 "Intel 82801EB SATA" rev 0x02: DMA, channel 0 
configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 18 (irq 10) for native-PCI interrupt
ichiic0 at pci0 dev 31 function 3 "Intel 82801EB/ER SMBus" rev 0x02: apic 2 int 
17 (irq 3)
iic0 at ichiic0
adt0 at iic0 addr 0x2e: emc6d100 rev 0x65
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC2700CL2.5
spdmem2 at iic0 addr 0x52: 256MB DDR SDRAM non-parity PC2700CL2.5
spdmem3 at iic0 addr 0x53: 1GB DDR SDRAM non-parity PC3200CL3.0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
uhub5 at uhub1 port 1 "ALCOR Generic USB Hub" rev 1.10/3.12 addr 2
uaudio0 at uhub2 port 1 configuration 1 interface 0 "M Audio MobilePre" rev 
1.10/1.03 addr 2
uaudio0: audio rev 1.00, 9 mixer controls
audio0 at uaudio0
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Sun Microsystems Type 6 
Keyboard" rev 1.00/1.01 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes, layout 32
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 0 "Sun Microsystems Type 6 
Mouse" rev 1.00/1.02 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons
wsmouse0 at ums0 mux 0
softraid0 at root
root on wd1a swap on wd1b dump on wd1b
kqemu: kqemu version 0x00010300 loaded, max locked mem=1170828kB
DDB symbols added: 334864 bytes

Thanks

-- 

Best Regards

Edd Barrett
(Freelance software developer / technical writer / open-source developer)

http://students.dec.bmth.ac.uk/ebarrett

Reply via email to