[ltp] 3com 3c556b mini pci lan + modem on thinkpad x20

Darrell Shively linux-thinkpad@www.bm-soft.com
Tue, 23 Jan 2001 09:04:14 -0800


This is a multi-part message in MIME format.
--------------0D13F42B96917CC304F24280
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

marco signoretto wrote:
> 
> [...]
> 
> wonderfull! i finally manage to have my card working (and also the sound
> card!!!) . i've compiled as you suggest a custom kernel (i compile the
> 2.2.18, taken at kernel.org) with the driver for the mini pci 3com and also
> for the Crystal sound card. now all works properly but... the eth0 and
> probably the sound card (i did'n verify  ) doesn't resume after the
> suspended time. i have also some error messages at the boot but i think
> fixing them it takes not a lot of time.
> Marco

D'OH!  I forgot about that.  There are two issue here: the sound card
and the nic.

I am running the 2.4.0 kernel with a 2.4.1-pre{mumble} 3c59x driver,
which finally resumes correctly.
For 2.2.18, I put in a kludge to force the apm code to stop/start the
network on suspend/resume.
I was surprised to find that this works really quite well.

Here's what you do: save the enclosed file into
/etc/sysconfig/apm-scripts
The apmcontinue file (which didn't exist in my RH7 setup) is a way to
add extra features to various APM events, like suspend & resume.
Of course, if you already *do* have an
/etc/sysconfig/apm-scripts/apmcontinue file, you will want to merge this
in rather than over-write yours.  ;-)

Regarding the sound card: I've never gotten it to work after a
suspend/resume with any kernel.
I did find that unloading/reloading the module (cs4281.o) will
reinitialize the sound hardware, but since I'm usually logged in and
already have the sounds device open, the module won't unload until I log
out or something similarly inconvenient.
Bottom line: I live without sound.
If someone has a fix for this, please let me know.

   Cheers,
	- dash
-- 
Darrell Shively   Cisco Systems Inc.   Have you come here to
(aka dash)        121 Theory Dr.       play Jesus to the lepers
dash@cisco.com    Irvine, CA           in your head?  --U2
                  92612  USA
--------------0D13F42B96917CC304F24280
Content-Type: application/octet-stream;
 name="apmcontinue"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="apmcontinue"

IyEvYmluL2Jhc2gKIyBUaGlzIHNjcmlwdCBpcyBjYWxsZWQgYnkgL2V0Yy9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BCYXR0ZXJ5IGxvdy4gSWYgeW91IHdhbnQgdG8gYmUgb24gdGhlIHNh
ZmUgc2lkZSwgbWF5YmUgcHV0CgkJIyB0aGUgaGFyZGRpc2sgaW50byBleHRyZW1lIHBvd2Vy
c2F2aW5nLCBvciAiYXBtIC1zIiBoZXJlLgoJCTs7Cgllc2FjCiAgICAgICAgOzsKICAgIHN0
YXJ0KQoJIyBUaGlzIG9jY3VycyBhdCBzeXN0ZW0gc3RhcnR1cCAtIHlvdSB1c3VhbGx5IGRv
bid0IG5lZWQgdG8gZG8KCSMgYW55dGhpbmcgaGVyZS4KCTs7CiAgICBzdG9wKQoJIyBUaGlz
IG9jY3VycyBhdCBzeXN0ZW0gc2h1dGRvd24gLSB5b3UgdXN1YWxseSBkb24ndCBuZWVkIHRv
IGRvCgkjIGFueXRoaW5nIGhlcmUuCgk7OwogICAgKikKCXByaW50ZiAiJXMgZG9lc24ndCBr
bm93IGhvdyB0byBoYW5kbGUgJXMhXG4iIFwKCQkiL2V0Yy9zeXNjb25maWcvYXBtLXNjcmlw
dHMvYXBtY29udGludWUiICIkUFJPRyIKCTs7CmVzYWMK
--------------0D13F42B96917CC304F24280--

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html