[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

laptop-net: can I have my cake and eat it?



I tried laptop-net last night, and was impressed with what I saw until I
suspended the machine and then brought it back to life. I had to run
"ifup eth0" manually after resuming, which I thought laptop-net was
designed to obviate. Syslog extract follows.

Apart from this laptop-net was doing good things when I pulled the cable
out, but this misfeature made it more trouble than it's worth for me. Is
this a misconfiguration problem? I tried editing start_fn and stop_fn in
/etc/pcmcia/network.opts as suggested in the docs for laptop-net with no
visible effect.

Without laptop-net, I can suspend and resume merrily without affecting
the network status, but I have to restart networking manually if I
change to a new network.

Rupert

-------------
Syslog extract: suspend at 00:50:20, resume at 00:50:55

Note that laptop-net status goes

   up,running,connected 
-> up,running,disconnected
-> down,stopped,disconnected
-> unknown (suspended)
-> down,stopped,disconnected

I'd like it to get back to up,running,connected without intervention
from me.

Jan 26 00:50:20 sprog kernel: eth0: interrupt from stopped card
Jan 26 00:50:21 sprog cardmgr[224]: executing: './network suspend eth0'
Jan 26 00:50:21 sprog apmd[174]: apmd_call_proxy: Executing proxy: '/etc/apm/apmd_proxy' 'suspend' 'user'
Jan 26 00:50:21 sprog ifd[20713]: executing: '/usr/share/laptop-net/link-change eth0 watched up,running,connected up,running,disconnected'
Jan 26 00:50:23 sprog laptop-net: Stopping built-in network interface
Jan 26 00:50:23 sprog apmd[174]: apmd_call_proxy: + Saving the System Clock time to the Hardware Clock... 
Jan 26 00:50:24 sprog kernel: Hw. address read/write mismap 0
Jan 26 00:50:24 sprog kernel: Hw. address read/write mismap 1
Jan 26 00:50:24 sprog kernel: Hw. address read/write mismap 2
Jan 26 00:50:24 sprog kernel: Hw. address read/write mismap 3
Jan 26 00:50:24 sprog kernel: Hw. address read/write mismap 4
Jan 26 00:50:24 sprog kernel: Hw. address read/write mismap 5
Jan 26 00:50:24 sprog apmd[174]: apmd_call_proxy: + Hardware Clock updated to Sun Jan 26 00:50:24 GMT 2003. 
Jan 26 00:50:26 sprog ifd[20713]: executing: '/usr/share/laptop-net/link-change eth0 watched up,running,disconnected down,stopped,disconnected'
Jan 26 00:50:29 sprog laptop-net: Stopping built-in network interface
Jan 26 00:50:30 sprog apmd[174]: apmd_call_proxy: + ifdown: interface eth0 not configured 
Jan 26 00:50:31 sprog ifd[20713]: executing: '/usr/share/laptop-net/link-change eth0 watched down,stopped,disconnected unknown'
Jan 26 00:50:31 sprog apmd[174]: User Suspend
Jan 26 00:50:51 sprog apmd[174]: apmd_call_proxy: Executing proxy: '/etc/apm/apmd_proxy' 'resume' 'suspend'
Jan 26 00:50:51 sprog cardmgr[224]: executing: './network resume eth0'
Jan 26 00:50:52 sprog apmd[174]: apmd_call_proxy: +  Setting the System Clock using the Hardware Clock as reference... 
Jan 26 00:50:52 sprog cardmgr[224]: + eth0: error fetching interface information: Device not found
Jan 26 00:50:53 sprog apmd[174]: apmd_call_proxy: + System Clock set. Local time: Sun Jan 26 00:50:52 GMT 2003  
Jan 26 00:50:54 sprog kernel: eth0: NE2000 (DL10022 rev 05): io 0x300, irq 3, hw_addr 00:E0:98:98:CC:BB
Jan 26 00:50:54 sprog ifd[20713]: executing: '/usr/share/laptop-net/link-change eth0 watched unknown down,stopped,disconnected'
Jan 26 00:50:55 sprog apmd[174]: Normal Resume
Jan 26 00:50:55 sprog apmd[174]: Battery: 100%, charging (+0% over 0:00:24), 4:22:00 to empty



Reply to: