APMD-List:
Archives

  
Back

to

APMD

Home

      Index: [thread] [date] [subject] [author]
  From: Peter T. Breuer <ptb@it.uc3m.es>
  To  : Joshua Gioja <jgioja@usgs.gov>
  Date: Tue, 23 Nov 1999 18:31:34 +0100 (MET)

Re: Solution to Suspend/Resume and Crystal Sound problems on ThinkPad 380XD (maybe also 385XD or other models)

"A month of sundays ago Joshua Gioja wrote:"
> 
> I had a problem with APM suspend/resume on my ThinkPad 380XD. I had installed Linux after

I believe this is the one I have, The marker underneath says 2635-3AO.
APM works perfectly (kernel 2.0.36) after compiling to ignore multiple
suspends.

> Configuration of my machine:
>    IBM ThinkPad 380XD 26358AU

You have 8AU and I  have 3AO. That's the difference (yours is newer).

>       Kernel 2.2.5
>       APM version 3.0beta9

I happen to be running a stock 2.2.10 kernel right now (from my
desktop) for comparison purposes. No .. it seems to ignore the bios
hibernate signal. Though suspend works OK. I haven't patched that
kernel at all.

> All the BIOS updates for the ThinkPad 380XD (& 385XD) are available from this webpage, and
> listings of what each is supposed to fix:
> http://www.pc.ibm.com/qtechinfo/DSHY-3S2RLY.html

Thanks!

> The BIOS upgrade files are also available directly from:
> ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/
> This directory contains a huge number of files - BIOS updates, drivers, documentation, and
> software for many ThinkPad models.
> 
> I had version 1.15 (icet27ww; filename: sytpn115.exe, available at sites listed above) on
> my ThinkPad when I installed Linux RedHat 6.0. When I used 'apm -s' to suspend my machine, it
> froze when I told it to resume. Also Crystal Sound drivers did not work, but I was able to use

Well, I just tried sudo apm -s and it seems to suspend and come out
(tap space bar) perfectly. apm -v says APM BIOS 2.2 (kernel driver 1.9).
Apm -S seems to do the same as -s.

> SoundBlaster Pro drivers just fine. (using sndconfig)

They'll always work. My crystal drivers were working fine, but then I
upgraded the bios. Maybe the ports changed. I'll have a look some other
time. 

> Recently I decided to try older versions of the BIOS for my ThinkPad. From the page listed
> above, I downloaded several and was planning to try them in order. I only tried the first one,
> version 1.01 (icet19ww; filename: sytpn101.exe, available at sites listed above), and since it
> worked and I don't use Windows 98, I kept it. I know the BIOSes starting with version 1.15 do
> not work; I don't know which versions before that work. The BIOSes after version 1.01 include
> support for Win98 which I don't use so I didn't bother to try them.

Interesting again. I looked up the bios the other day. It's 1.28
 97H4125, 26/06/98.

> Suspend/resume worked with the BIOS version 1.01. I tried <Fn>+<F4> to suspend my machine once

It's fn-F12 here.

> I recompiled the kernel with these options for APM: (this is necessary)
>     [*] Advanced Power Management
>          [ ] Ignore USER SUSPEND
>          [ ] Enable APM at boot time
>          [*] Make CPU IDLE calls when idle
>          [*] Enable console blanking using APM
>          [*] Power off on shutdown
>          [*] Ignore multiple suspend/standby events
>          [*] Ignore multiple suspend/resume cycles

These last two are required.

>          [ ] RTC stores time in GMT
>          [*] Allow interrupts during APM BIOS calls

I believe I also did this. It rings a bell.

   CONFIG_APM=y
   # CONFIG_APM_IGNORE_USER_SUSPEND is not set
   CONFIG_APM_DO_ENABLE=y
   CONFIG_APM_CPU_IDLE=y
   # CONFIG_APM_DISPLAY_BLANK is not set
   # CONFIG_APM_POWER_OFF is not set
   CONFIG_APM_IGNORE_MULTIPLE_SUSPEND=y 

(2.0.36 and 35). In the code ...

 /* defined by PTB */
 #define APM_DEBUG           
 #define ALWAYS_CALL_BUSY    
 /* undef'ed by ptb for TP380 */
 #undef APM_NOINTS          
 #define APM_ZERO_SEGS
 #define APM_RELAX_SEGMENTS 


> After the new install I also ran 'sndconfig', and selected the CS423x Crystal Sound driver. The
> DMA options must be changed - write me if you need info or use 'ps2' under DOS. I will also put
> up a webpage some time in the next month or two at:
> 
> www.students.uiuc.edu/~gioja

Interesting. My sound options always used to be:


   options cs4232 io=0x534 irq=5 dma=1,0 mpu_base=0x330 mpu_irq=9
   options opl3 io=0x388  


> The CS driver had not worked for me before, but it works now. I believe this was also fixed
> because of the older BIOS I installed.

Possibly. I have it the other way round. The crystal driver needs a firmware
key sent to it to set itself up. It may have changed.

Peter


Index: [thread] [date] [subject] [author]


Write to me! apenwarr@worldvisions.ca