openSUSE 11.3 No Ethernet After Sleep(Suspend to RAM)

After updating to openSUSE 11.3, and restarting my computer, I placed my computer in sleep(suspend to RAM) mode, and I lost my internet connectivity. I noticed that my computer was only connected through ethernet.

After entering “dhclient eth0” in a terminal, I received the following output.

RTNETLINK answers: Cannot allocate memory

This is the first time that I have had issues with connecting to the Internet using ethernet. Does anyone know what the problem is? Thank you for your help!

How did you update? From what? Did the ethernet work during/after install? What happens if you do


su -c 'rcnetwork restart'

?

I updated from openSUSE 11.2 via YaST. The ethernet connection worked during the installation, and after I restarted my computer. However, after I restarted my computer and suspended the computer to RAM, the connection was lost, and I was forced to use wireless to connect to the Internet.

su -c ‘rcnetwork restart’ output


Shutting down the NetworkManager                                                                                                                  done
Shutting down network interfaces:
    eth0      device: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
    eth0                                                                                                                                          done
    wlan0     device: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
    wlan0                                                                                                                                         done
Shutting down service network  .  .  .  .  .  .  .  .  .                                                                                          done
Starting the NetworkManager                                                                                                                       done
Connecting...............    1s
                                                                                                                                                  waiting



/var/log/messages output


NetworkManager	<info>  (wlan0): preparing device.
NetworkManager	<info>  (wlan0): deactivating device (reason: 2).
kernel	[165691.795174] ADDRCONF(NETDEV_UP): wlan0: link is not ready
NetworkManager	<info>  (eth0): carrier is OFF
NetworkManager	<info>  (eth0): new Ethernet device (driver: 'r8169')
NetworkManager	<info>  (eth0): exported as /org/freedesktop/NetworkManager/Devices/1
NetworkManager	<info>  (eth0): now managed
NetworkManager	<info>  (eth0): device state change: 1 -> 2 (reason 2)
NetworkManager	<info>  (eth0): bringing up device.
NetworkManager	<info>  (eth0): deactivating device (reason: 2).
NetworkManager	Added default wired connection 'Auto eth0' for /sys/devices/pci0000:00/0000:00:1c.5/0000:06:00.0/net/eth0
NetworkManager	<WARN>  default_adapter_cb(): bluez error getting default adapter: The name org.bluez was not provided by any .service files
NetworkManager	<info>  (wlan0): supplicant interface state:  starting -> ready
NetworkManager	<info>  (wlan0): device state change: 2 -> 3 (reason 42)
NetworkManager	<WARN>  user_connection_get_settings_cb(): user_connection_get_settings_cb: Invalid connection: 'NMSetting8021x' / 'client-cert' invalid: 2
NetworkManager	<WARN>  user_connection_get_settings_cb(): user_connection_get_settings_cb: Invalid connection: 'NMSetting8021x' / 'client-cert' invalid: 2

SDB[noparse]:P[/noparse]m-utils - openSUSE

I had this problem with ASUS F3Ke notebook.
Solved with manual input in terminal:
‘rmmod ath9k’ and ‘modprobe ath9k’ - restart wireless module (Atheros in ASUS F3Ke).

Now, how to automate this process?

Just solved the problem with my Lenovo B560, with the difference that my wireless didn’t work on restore, not Ethernet. The link SDB: Pm-utils helped very much.

If your network modules can’t survive hibernation, you can unload them on suspend and reload on restore. Pm-utils does it all, just add your custom modules to configuration at /etc/pm/config.d/

You can (re)initialize variables there, which actually results in values concatenation with those predefined, so don’t be afraid to overwrite something. I added one file and that did the trick.

cat /etc/pm/config.d/suspend_wireless
SUSPEND_MODULES="iwlagn acer_wmi"

You can find this variable’s usage in /usr/lib/pm-utils/sleep.d/75modules

I’ve been noticing the same thing,
I seemed to have solved this(knock on wood) by simply turning off the WiFi NIC using a hardware switch on my laptop before going into sleep mode, then re-enabling when I’m on a network again.

Since 802.3 (hard wired) NICs usually don’t have a hardware switch, I guess it’s a YMMV solution.

Am still investigating possible cause in my spare time…