Once upon a time Miod so kindly wrote:

> in a land far, far away /Jason wrote:
> > Has anyone using the Plextor PX-EHxxL landisk hardware gotten the > power toggle switch to fulfill its intended purpose? > Under the original Linux-based OS, the switch would send a signal to > the OS to start a shutdown procedure and once properly shutdown, the > OS would then power off the device.
> Under OpenBSD, this switch does nothing.

You need to sysctl machdep.kbdreset=1, for example by uncommenting the
entry in /etc/sysctl.conf. See power(4) for details.

Miod

I have a couple of Plextor PX-EH25L running a 4.1 snapshot from March 11, 2007 that panic when the power button is turned to the off position. If I type in "cont\r" the shutdown continues on properly, including powering off the system.

OpenBSD/landisk (somesystem.bob.foo) (console)

login: Stopped at      Debugger+0x6:   mov     r14, r15
ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT       COMMAND
  5504      1   5504      0  3      0x4082  ttyin      getty
  8986      1   8986      0  3        0x80  select     cron
 18296      1  20275      0  3        0x80  select     snmpd
  3914      1   3914      0  3     0x40180  select     sendmail
 11592      1  11592      0  3        0x80  select     sshd
 11912      1  11912      0  3       0x180  select     inetd
 17584   9990   9990     83  3       0x180  poll       ntpd
  9990      1   9990      0  3        0x80  poll       ntpd
 20739  25694  25694     73  3       0x180  poll       syslogd
 25694      1  25694      0  3        0x88  netio      syslogd
    12      0      0      0  3    0x100200  crypto_wa  crypto
    11      0      0      0  3    0x100200  aiodoned   aiodoned
    10      0      0      0  3    0x100200  syncer     update
     9      0      0      0  3    0x100200  cleaner    cleaner
     8      0      0      0  3    0x100200  reaper     reaper
     7      0      0      0  3    0x100200  pgdaemon   pagedaemon
     6      0      0      0  3    0x100200  pftm       pfpurge
     5      0      0      0  3    0x100200  usbevt     usb2
     4      0      0      0  3    0x100200  usbevt     usb1
     3      0      0      0  3    0x100200  usbtsk     usbtask
     2      0      0      0  3    0x100200  usbevt     usb0
     1      0      1      0  3      0x4080  wait       init
     0     -1      0      0  3     0x80200  scheduler  swapper
ddb> trace
Debugger() at Debugger+0x6
power_intr() at power_intr+0x3e
extintr_disable_by_num() at extintr_disable_by_num+0xa0
intc_intr() at intc_intr+0x48
<EXPEVT 000; SSR=40000101> at idle+0x14
idle() at idle+0x14
cpu_switch_search() at cpu_switch_search+0x22
cpu_switch() at cpu_switch+0x7e
ddb> show registers
r0                   0x1
r1            0x8c18a360        Debugger
r2                  0xf0
r3                 0x360
r4            0xc001b3c0
r5            0x8c18bcb4        idle+0x14
r6            0xc59e0f78
r7                     0
r8                   0x1
r9            0x8c286c14        kbd_reset
r10           0xc59e0f78
r11           0x40000101
r12                    0
r13           0x8c1efd78        wi_card_ident+0x1a74
r14           0xc59e0f34
r15           0xc59e0f34
pr            0x8c1e8f5e        power_intr+0x3e
spc           0x8c18a366        Debugger+0x6
ssr           0x400001c1
mach                   0
macl               0x2a0
Debugger+0x6:   mov     r14, r15
ddb> cont
/etc/rc.shutdown in progress...
/etc/rc.shutdown complete.
syncing disks... done

Other pertinent info follows:

# grep kbd /etc/sysctl.conf
machdep.kbdreset=1              # permit console to do a nice halt
# grep power /etc/rc.shutdown
powerdown=YES   # set to YES for powerdown

[ using 253576 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2007 OpenBSD. All rights reserved. http://www.OpenBSD.org

OpenBSD 4.1 (GENERIC) #18: Sun Mar 11 01:04:38 MST 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/landisk/compile/GENERIC
I-O DATA USL-5P
real mem = 67108864 (65536K)
avail mem = 59068416 (57684K)
using 844 buffers containing 3457024 bytes (3376K) of memory
mainbus0 (root)
cpu0 at mainbus0: HITACHI SH4 266.666 MHz PCLOCK 33.333 MHz
cpu0: 16KB/32B 2-way associative I-cache, 32KB/32B 2-way associative D-cache
shb0 at mainbus0
scif0 at shb0
scif0: console
rsclock0 at shb0: RS5C313 real time clock
shpcic0 at mainbus0: HITACHI SH7751R
pci0 at shpcic0
re0 at pci0 dev 0 function 0 "Realtek 8139" rev 0x20: RTL8139C+ (0x7480), irq 5, address 00:d0:a9:01:81:02
rlphy0 at re0 phy 0: RTL internal PHY
pciide0 at pci0 dev 1 function 0 "Acard ATP865-R" rev 0x10: DMA
pciide0: using irq 6 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <HDT722525DLAT80>
wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd0(pciide0:0:0): using PIO mode 4
ohci0 at pci0 dev 2 function 0 "NEC USB" rev 0x43: irq 7, version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NEC OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 1 "NEC USB" rev 0x43: irq 8, version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 2 function 2 "NEC USB" rev 0x04: irq 5
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NEC EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
obio0 at mainbus0
wdc0 at obio0 port 0x14000000-0x1400000f irq 10
power0 at obio0 irq 11
boot device: <unknown>
rootdev=0x1000 rrootdev=0x1000 rawdev=0x1002

If you need any more data let me know.

diana

Reply via email to