Date: Sun, 15 Nov 1998 16:26:19 +0000 From: Scott Mitchell <rsm@acm.org> To: freebsd-mobile@FreeBSD.ORG Subject: APM on ThinkPad 380? Message-ID: <19981115162619.63931@goatsucker.org>
next in thread | raw e-mail | index | archive | help
--GYHOYXEY6WxJCY8h Content-Type: text/plain; charset=us-ascii Just wondering if anyone has managed to get suspend/resume (with or without PAO) working on any IBM ThinkPad 380 series machine? On my 380D, - apm -z doesn't suspend, but locks the machine. - suspend through hotkeys or closing the lid works, but the machine locks on resume. Shutdown -x works just fine, as does the PCCARD stuff. I get the same behaviour with and without PAO, with and without PC cards in the slots. I've tried knocking it back to APM1.0 mode -- no luck. Avoiding conflicts with the built in sound card (from the FAQ) -- no luck. Running with APM_DEBUG turned on didn't reveal anything that jumped out at me and said 'this is broken'. This is all under 2.2.7R, with PAO-980913. Everything works fine under Win95 and DOS. The 380 is a bit weird in that there is no access to the APM settings from the BIOS setup -- it's all done through a DOS utility or the Win95 power management panel. Any clues? Or am I SOL here? I've attached my kernel config and dmesg output in case these are of any use. TIA, Scott -- =========================================================================== Scott Mitchell | PGP Key ID |"If I can't have my coffee, I'm just <scott@dcs.qmw.ac.uk> | 0x54B171B9 | like a dried up piece of roast goat" QMW College, London, UK | 0xAA775B8B | -- J. S. Bach. --GYHOYXEY6WxJCY8h Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.boot" Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2.7-RELEASE #0: Sun Nov 15 15:39:31 GMT 1998 root@orac.dcs.qmw.ac.uk:/usr/src/sys/compile/ORAC CPU: Pentium/P54C (152.13-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping=12 Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> real memory = 33554432 (32768K bytes) avail memory = 30556160 (29840K bytes) Initializing PC-card drivers: sio wdc Probing for devices on PCI bus 0: chip0 <Intel 82437MX mobile PCI cache memory controller> rev 2 class 60000 on pci0:0:0 chip1 <Intel 82371MX mobile PCI I/O IDE accelerator (MPIIX)> rev 3 class 68000 on pci0:1:0 vga0 <VGA-compatible display device> rev 2 class 30000 int a irq 11 on pci0:3:0 pcic0 <Cirrus Logic PD6729/6730 PC-card Bridge> rev 7 class 60500 int a irq ?? on pci0:19:0 Probing for PnP devices: No Plug-n-Play devices were found Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> Add hook "system keyboard" sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x3bc-0x3c3 irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface psm0 at 0x60-0x64 irq 12 on motherboard psm0: model Generic PS/2 mouse, device ID 0 pcm0 at 0x530 irq 5 drq 1 flags 0xa610 on isa mss_attach <mss>0 at 0x530 irq 5 dma 1:0 flags 0xa610 fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 flags 0x80ff80ff on isa wdc0: unit 0 (wd0): <IBM-DMCA-21440>, 32-bit, multi-block-16 wd0: 1376MB (2818368 sectors), 2796 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (atapi): <CD-38E/1.0D>, removable, accel, ovlap, dma, iordis wcd0: 1377Kb/sec, 128Kb cache, audio play, 16 volume levels, ejectable tray wcd0: door open, unlocked pcic0 at 0x3e0-0x3e1 irq 11 on isa PC-Card ctlr(0) Cirrus Logic PD-6729/6730 [i82365 compatible mode] (5 mem & 2 I/O windows) Add hook "Cirrus Logic PD-6729/6730 [i82365 compatible mode]" Add hook "Cirrus Logic PD-6729/6730 [i82365 compatible mode]" pcic0: slot 0 controller I/O address 0x3e0 Add hook "Cirrus Logic PD-6729/6730 [i82365 compatible mode]" Add hook "Cirrus Logic PD-6729/6730 [i82365 compatible mode]" pcic0: slot 1 controller I/O address 0x3e0 npx0 flags 0x1 on motherboard npx0: INT 16 interface apm0 on isa apm: APM BIOS version 0102 apm: Code32 0xf00f75e0, Code16 0xf00f0000, Data 0xf009fc00 apm: Code entry 0x00000000, Idling CPU disabled, Management enabled apm: CS_limit=0xffff, DS_limit=0x400 apm: Engaged control enabled apm: found APM BIOS version 1.1 apm: Slow Idling CPU disabled Add hook "default suspend" Add hook "default resume" called apm_event_enable() Intel Pentium F00F detected, installing workaround WARNING: / was not properly dismounted. Card inserted, slot 1 --GYHOYXEY6WxJCY8h Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ORAC # # Kernel config for orac, with PAO extensions # machine "i386" cpu "I586_CPU" ident ORAC maxusers 10 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options NFS #Network Filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15 #Be pessimistic about Joe SCSI device options BOUNCE_BUFFERS #include support for DMA bounce buffers options UCONSOLE #Allow users to grab the console options FAILSAFE #Be conservative options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor # If your laptop have not had Windoze95-Ready BIOS, please update it. # Such old BIOS'es sometimes have critical bugs at 32-bit protected # mode APM BIOS interface (which have not used by Windoze 3.1). # PC-card suspend/resume support (experimental) options APM_PCCARD_RESUME options PCIC_RESUME_RESET # Keep power for serial cards when the system suspends # (If your machine hangs up when you try to suspend the system with # FAX/Modem PCMCIA card, uncomment this option). #options SIO_SUSP_KEEP_PWR # Detach SCSI devices when the SCSI card is removed options SCSI_DETACH # Detach ATAPI devices when the ATA card is removed options ATAPI_DETACH # Japanese version of WaveLAN PCMCIA uses 2.4GHz band instead of 915MHz # band that US version uses. If you want to use Japanese version of # WaveLAN, uncomment this line, or edit the corresponding config entry # of /etc/pccard.conf. #options "WAVELAN_PCMCIA_24" # Suspend the system when the battery status is "Low" #options "APM_BATT_LOW_SUSPEND" # If you want to use NTP on laptop machines, uncomment the following # option. Current APM implementation affects NTP client. #options "APM_NO_CLOCK_ADJUST" # Some X-servers cannot survive suspend/resume on laptop. # This option kicks her when the system is resumed from suspended mode. #options SYSCONS_VTY_RESUME config kernel root on wd0 controller isa0 controller pci0 controller pnp0 # Dont remove these two lines! pseudo-device card 1 # You must use "flags 0x1" when you don't hear any negotiation noise(?) # if you use modem card, or pccardd doesn't read cis tuple, tell you # 'No card in database for"(null)"("(null)")' in case of Cirrus Logic's # pcic is your PC. #device pcic0 at isa? port 0x3e0 flags 0x1 irq 11 vector pcicintr device pcic0 at isa? port 0x3e0 irq 11 vector pcicintr #device pcic0 at isa? port 0x3e4 irq 11 vector pcicintr controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 options "CMD640" # work around CMD640 chip deficiency controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0x80ff80ff vector wdintr disk wd0 at wdc0 drive 0 options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device wcd0 #IDE CD-ROM # syscons is the default console driver, resembling an SCO console device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr # If the screen flickers badly when the mouse pointer is moved, try this. #options SC_BAD_FLICKER # Mandatory, don't remove device npx0 at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr # Laptop support (see LINT for more options) device apm0 at isa? # Advanced Power Management #options APM_BROKEN_STATCLOCK # Workaround some buggy APM BIOS device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device lpt0 at isa? port? tty irq 7 vector lptintr device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr # Controls all "VOXWARE" driver sound devices. See Luigi's driver # below for an alternate which may work better for some cards. # #controller snd0 #device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr #device sbxvi0 at isa? drq 0 #device sbmidi0 at isa? port 0x330 #device mss0 at isa? port 0x530 irq 10 drq 1 vector adintr #device opl0 at isa? port 0x388 # Luigi's snd code (use INSTEAD of snd0 and all VOXWARE drivers!). # You may also wish to enable the pnp controller with this, for pnp # sound cards. # device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x10 vector pcmintr pseudo-device loop pseudo-device ether pseudo-device log pseudo-device gzip pseudo-device sl 1 pseudo-device ppp 1 pseudo-device vn 1 pseudo-device tun 1 pseudo-device bpfilter 4 pseudo-device pty 16 options DDB options DDB_UNATTENDED options KTRACE options SYSVSHM options SYSVSEM options SYSVMSG --GYHOYXEY6WxJCY8h-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981115162619.63931>