[ltp] T20 with 3com mini PCI

Darrell Shively linux-thinkpad@www.bm-soft.com
Thu, 14 Dec 2000 11:20:15 -0800


tils@tils.net wrote:
> 
> Hi
> 
> > I wonder if anyone has got the 3com 10/100 Ethernet Mini PCI adapter
> > to
> > work with Linux.
> 
> the driver that is included in kernel 2.2.18 works. i think there is still a
> problem with suspend/resume though

This is correct for me with an X20.  However, there seems to be a
workaround to the suspend/resume problem.  do a "network stop" before
suspending, and a "network start" after resuming.  You can automate this
by creating an "apmconinue" file in /etc/sysconfig/apm-scripts; this is
what I just did.  I've successfully suspended/resumed 12 times in a row,
and hibernated/whatevered 5 times.

I'll paste in my apmcontinue below.

   Hope this helps,
	- dash

Here's my apmcontinue:
-----------------------------------------------------------------------
#!/bin/bash
# This script is called by /etc/sysconfig/apm-scripts/apmscript
# By dash, 2000-12-14
#

case "$PROG" in
    suspend)
	/etc/rc.d/init.d/network stop
	sync

	;;

    resume)
	/etc/rc.d/init.d/network start

	rm -f "$LOCKFILE"
	;;
    change)
	case $2 in
	power)
		# Change from battery power to AC power or vice versa.
		# You might want to stop/restart any unnecessary CPU intensive
		# tasks (seti@home, distributed.net clients, etc) here.
		;;
	battery)
		# Battery low. If you want to be on the safe side, maybe put
		# the harddisk into extreme powersaving, or "apm -s" here.
		;;
	esac
        ;;
    start)
	# This occurs at system startup - you usually don't need to do
	# anything here.
	;;
    stop)
	# This occurs at system shutdown - you usually don't need to do
	# anything here.
	;;
    *)
	printf "%s doesn't know how to handle %s!\n" \
		"/etc/sysconfig/apm-scripts/apmcontinue" "$PROG"
	;;
esac
-----------------------------------------------------------------------

> til
> 
> -----------------------------------------------------------
> This mail sent through the IMP demo site: demo.uk.horde.org
>        Find out more at http://www.horde.org/imp/
> 
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html

-- 
Darrell Shively   Cisco Systems Inc.   Sometimes, too long is
(aka dash)        121 Theory Dr.       too long.
dash@cisco.com    Irvine, CA               -- Joe Crowe
949-823-1155      92612  USA
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html