Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an HP TX2 laptop and am using Ubuntu 10.04 with the 2.6.34 kernel. When I close the lid of my computer, put it to sleep, and then open it later, I've lost the ability to connect to the Internet. There's an ethernet cable plugged in by the network manager can no longer find it. I have no choice but to reboot.

Any suggestions? Thanks.

share|improve this question
    
What is the chipset of your network card. I know that some cards use firmware and need their state restored/reset. –  Phil Hannent Nov 9 '10 at 12:06
add comment

5 Answers

It looks like your ethernet driver does not work after suspending your machine. You can tell Ubuntu to unload it before suspend and load it again after resuming your computer. To do so, you must create a file /etc/pm/config.d/unload_modules and put in it the next entry:

SUSPEND_MODULES="your_module_name_here"

where your_module_name_here must be the name of the driver. You can find it using network manager.

Hope it helps

Ignacio

share|improve this answer
add comment

Can't help you with the cause, but a possible solution is manually forcing it.

sudo ifconfig eth0 up
sudo dhclient eth0

This COULD work, but it's obviously just a stop gap for figuring out the real problem.

share|improve this answer
add comment

This sounds like an ACPI issue. On my own laptop a simple case of unplugging and replugging the network cable solves the issue.

Are you using Linux drivers or Windows drivers through NDISWrapper?

share|improve this answer
    
I am using Linux and have a Broadcom B43 wireless card, though that shouldn't matter because it doesn't get ethernet either. Thanks. –  Lawrence Goodman Nov 9 '10 at 14:16
add comment

I created the /etc/pm/config.d/unload_modules file and entered the line:

SUSPEND_MODULES="r8169"

Do I have the name right? I took the name of the driver. Should there be quotes?

Thanks for the help.

share|improve this answer
    
This isn't really an answer... this should have been a comment on the original post, or an edit to it. –  AJMansfield Apr 7 '13 at 23:54
add comment

For anyone having the same issue.

The command lsmod can be used to see all the loaded modules. Type the command in the terminal.

lsmod

Use the above command, when your wireless card is working otherwise you will not get the wireless driver name in the list.

When you have found the name of the driver module use that in /etc/pm/config.d/unload_modules:

SUSPEND_MODULES="your_module_name_here"

In my case it was "ath9k" This is the driver for Atheros Wireless driver. I simply used google to find further information about this driver.

SUSPEND_MODULES="ath9k"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.