Fedora Linux Support Community & Resources Center
  #1  
Old 13th May 2012, 09:12 PM
trekker92 Offline
Registered User
 
Join Date: May 2012
Location: fr
Posts: 4
linuxchrome
network card and 'suspend'

hello

since a year, under windows i just suspend my computer the night, and the next day he is working fine, with ethernet.
But with fedora, it's differents :
when i suspend it, the next day, only the green led works. the orange don't light up;
i've tried to plug and unplug the ethernet wire, that do nothing.
i always need to reboot to use network..

i've try this :

[root@HP-PAVILION-DV7-2130SF init.d]# ./network restart


but it's doesn't works.. help me please
Reply With Quote
  #2  
Old 13th May 2012, 09:14 PM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: network card and 'suspend'

WHICH Fedora are you using ?
Which ethernet interface is involved ?
Is this wifi or the wired enet ?

he output of 'uname -a' and 'lspci -vnnk' would be very useful.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 13th May 2012, 10:12 PM
trekker92 Offline
Registered User
 
Join Date: May 2012
Location: fr
Posts: 4
linuxchrome
Re: network card and 'suspend'

fedora 16 x86_64

09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 03)
Subsystem: Hewlett-Packard Company Device [103c:3063]
Flags: bus master, fast devsel, latency 0, IRQ 46
I/O ports at 2000 [size=256]
Memory at d1004000 (64-bit, prefetchable) [size=4K]
Memory at d1000000 (64-bit, prefetchable) [size=16K]
Expansion ROM at d1010000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169
Reply With Quote
  #4  
Old 14th May 2012, 05:45 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: network card and 'suspend'

Great F16 and an r8169. (I hate the realteks, but they are very common).

The green vs amber LED likely means your interface is set at 100Mhz, not 1G.
This command as root should tell you the speed.
mii-tool eth0
You may need to install the mii-tool binary as
yum install net-tools
You need to use YOUR interface name, which may not be 'eth0'. The command
ip link
shows all the interfaces.


So I suggest you test speed with the mii-tool while it's working and after it's wedged.

If the speed looks wrong - then this command may fix it (again as root)
mii-tool -r eth0

If that doesn't fix it try these two commands as root
modprobe -r mod r8169
modprobe r8169


You can create your own script to patch this up in /usr/lib64/pm-utils/sleep.d, once we know what fixes it.

Probably something like ...
Code:
#!/bin/sh
# r8169 hack

case "$1" in
	hibernate|suspend)
		;;
	thaw|resume) 
             /sbin/mii-tool -r eth0
		;;
	*) exit $NA
		;;
esac
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #5  
Old 14th May 2012, 11:34 AM
trekker92 Offline
Registered User
 
Join Date: May 2012
Location: fr
Posts: 4
linuxopera
Re: network card and 'suspend'

hello

thanks you for answering

so i've do that :

[root@HP-PAVILION-DV7-2130SF tkr]# mii-tool p6p1
p6p1: negotiated 100baseTx-FD flow-control, link ok
[root@HP-PAVILION-DV7-2130SF tkr]# yum install net-tools
Modules complémentaires chargés*: langpacks, presto, refresh-packagekit
Le paquet net-tools-1.60-126.fc16.x86_64 est déjà installé dans sa dernière version
Rien à faire
[root@HP-PAVILION-DV7-2130SF tkr]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: p6p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:23:8b:92:3e:26 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:25:56:ac:1d:ea brd ff:ff:ff:ff:ff:ff

When i need to load the script? after the suspend?

thanks again
Reply With Quote
  #6  
Old 15th May 2012, 10:47 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: network card and 'suspend'

Remember if you use NetworkManager you'll have to enable the Connect automatically option otherwise the network will be offline after resuming untill you manually reconnect.

This is a feature and not a bug ;-)
Reply With Quote
  #7  
Old 15th May 2012, 05:40 PM
trekker92 Offline
Registered User
 
Join Date: May 2012
Location: fr
Posts: 4
linuxopera
Re: network card and 'suspend'

hello

thanks for your answer..
the 'connect automatically' option is aleady active..
Reply With Quote
  #8  
Old 16th May 2012, 09:02 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: network card and 'suspend'

What does dmesg say after resuming? Usually it should look something like this:

Code:
[33884.413679] Restarting tasks ... done.
[33884.572014] r8169 0000:08:00.0: p6p1: link down
[33884.572020] r8169 0000:08:00.0: p6p1: link down
[33884.572762] ADDRCONF(NETDEV_UP): p6p1: link is not ready
[33887.542708] r8169 0000:08:00.0: p6p1: link up
[33887.543421] ADDRCONF(NETDEV_CHANGE): p6p1: link becomes ready
[33897.764320] p6p1: no IPv6 routers present
Reply With Quote
  #9  
Old 30th May 2012, 11:48 AM
nefg Offline
Registered User
 
Join Date: Feb 2008
Posts: 4
linuxchrome
Re: network card and 'suspend'

I have had a similar problem with fc 12. Only way the network runs was after a reboot.
Now tried this-
Suspended.
Reset router and waited till it worked - all lights on and blinking
Resumed pc by pressing swith
fedora network restarted automatically
PLEASE DISREGARD THIS DOES NOT WORK ALWAYS
PROBLEM AND SOLUTION IS ELSEWHERE

Last edited by nefg; 3rd June 2012 at 06:18 AM. Reason: mistake
Reply With Quote
  #10  
Old 5th June 2012, 04:51 AM
nefg Offline
Registered User
 
Join Date: Feb 2008
Posts: 4
linuxchrome
Re: network card and 'suspend'

Final Solution for me was "service NetworkManager restart" from root terminal (not "service network restart"). There are other threads e.g. http://forums.fedoraforum.org/archiv.../t-262356.html which say the same thing.
Main thing reboot is not needed.
Reply With Quote
Reply

Tags
card, network, uspend

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI Card and suspend staf0048 Hardware & Laptops 1 18th September 2011 12:30 AM
Wake from suspend over the network darkis Using Fedora 0 11th October 2008 02:03 PM
PCI wireless card not coming back from suspend pavka Hardware & Laptops 0 28th March 2008 12:41 AM
restarting network manager after suspend? high Using Fedora 5 5th December 2006 11:05 PM
Suspend?resume Not working on HP NC6230 with ATI Card and FC5 parunkum Hardware & Laptops 0 1st September 2006 11:32 PM


Current GMT-time: 22:56 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat