Realtek r8169 & ethtool

Bug #125537 reported by wj313
6
Affects Status Importance Assigned to Milestone
linux-meta (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: linux-image-2.6-386

Hi forum,

 network settings with "ethtool" doesn't seem to affect the "r8169" kernel module.

 Plattform testet: Dapper, Gutsy (Tribe2)
 Kernel versions testet: 2.6.17-10, (and the one from Gutsy)
 ethtool versions testet: 3, 5
 r8169 driver versions testet: 2.2LK, 6.001.00 (compiled from the realtek homepage)

 We've tried almost all combinations of above versions/plattforms.

 Is there any workaround to set the speed/duplex/autoneg settings of the r8169 driver?

 (mii-tool and parameters specified at the "insmod" command line of the r8169 driver doesn't work either..)

root@ubuntu:~# ethtool eth2
Settings for eth2:
        Supported ports: [ TP ]
        Supported link modes: 10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes: 10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: yes
root@ubuntu:~# ethtool -s eth2 autoneg off
root@ubuntu:~# ethtool eth2
Settings for eth2:
        Supported ports: [ TP ]
        Supported link modes: 10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes: 100baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: yes
root@ubuntu:~# ethtool -s eth2 speed 10
root@ubuntu:~# ethtool eth2
Settings for eth2:
        Supported ports: [ TP ]
        Supported link modes: 10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes: 10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Half
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
  Current message level: 0x00000033 (51)
        Link detected: no
root@ubuntu:~#

Revision history for this message
wj313 (wj313) wrote :

Just for the record:

 It's strange, but it does work if the parameter "autoneg off" is appendend to _every_ ethtool command.

 So, "ethtool -s eth0 speed 100 duplex full autoneg off" does work,
 "ethtool -s eth0 speed 100" does not.

Revision history for this message
Andreas Moog (ampelbein) wrote : Old standing Report

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for taking the time to report this bug and helping to make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering is this still an issue
for you? Can you try with latest Ubuntu release? Thanks in advance.

 status incomplete
 subscribe

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkit6uMACgkQ06FgkPZwicSsAgCgkI25q3SE59BKf3jQf1mDwFDf
HHcAnA7QXkyZKXWPZM2JNL7bu9Zrincb
=LMeY
-----END PGP SIGNATURE-----

Changed in linux-meta:
status: New → Incomplete
Revision history for this message
Eckart Haug (ubuntu-syntacs) wrote :

thanx a lot, wj313 !

Same here - on two 8.04 machines, kernels

2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux

and

2.6.24-19-server #1 SMP Sat Jul 12 00:40:01 UTC 2008 i686 GNU/Linux

not the best idea to take out the media option support from r8169 while ethtool support doesn' work properly :-))

Revision history for this message
Andreas Moog (ampelbein) wrote :

Have you had a chance to try out with a recent kernel?

Revision history for this message
Eckart Haug (ubuntu-syntacs) wrote :

Works with 2.6.24-23-generic, e.g.

ethtool -s eth1 speed 100 autoneg off.
Autonegotiation standard is on and will immediately switch back to 1000.
-> switch autoneg off to keep non standard settings.

Best place for permanent setting is /etc/network/interfaces

e.g.

auto eth1
        iface eth1 inet dhcp
       post-up ethtool -s eth1 speed 100 autoneg off

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks. Closing the report then.

Changed in linux-meta (Ubuntu):
importance: Undecided → Low
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.