Internet connection with Ubuntu 10.04 in Toshiba U500-1F0

Asked by Luciano Oliveira

Hi,

I recently bought a Toshiba U500-1f0 with Realtek 8111/8168B NIC. After installing Ubuntu 10.04, it seems to recognize my network card and install Realtek drivers. However, I have no internet connection. The roaming system is not working, and I am not able to connect either using Wireless or Ethernet cable. I have other computers in my home network, and everything is working fine: an HP dv2750e with Ubuntu 9.10 and the other with Windows XP.

Sniffing around some forums, I read that it is better to change to Realtek 8168 driver, since that which comes with ubuntu 10.04 is the 8169 one. My kernel is 2.6.32-21-generic. And the result of a lspci -v command is this with a fresh install:

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8172 (rev 10)

 Subsystem: Realtek Semiconductor Co., Ltd. Device 8181

 Flags: bus master, fast devsel, latency 0, IRQ 17

 I/O ports at c000 [size=256]

 Memory at f4700000 (32-bit, non-prefetchable) [size=16K]

 Capabilities: <access denied>

 Kernel driver in use: rtl819xSE

 Kernel modules: r8192se_pci

08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)

 Subsystem: Toshiba America Info Systems Device ff40

 Flags: bus master, fast devsel, latency 0, IRQ 34

 I/O ports at a000 [size=256]

 Memory at f4624000 (64-bit, prefetchable) [size=4K]

 Memory at f4620000 (64-bit, prefetchable) [size=16K]

 Expansion ROM at f4600000 [disabled] [size=128K]

 Capabilities: <access denied>

 Kernel driver in use: r8169

 Kernel modules: r8169

After that, I installed the 8168 and uninstalled the 8169 driver, and I got this:

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8172 (rev 10)
 Subsystem: Realtek Semiconductor Co., Ltd. Device 8181
 Flags: bus master, fast devsel, latency 0, IRQ 17
 I/O ports at c000 [size=256]
 Memory at f4700000 (32-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: rtl819xSE
 Kernel modules: r8192se_pci

08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)

 Subsystem: Toshiba America Info Systems Device ff40

 Flags: bus master, fast devsel, latency 0, IRQ 34

 I/O ports at a000 [size=256]

 Memory at f4624000 (64-bit, prefetchable) [size=4K]

 Memory at f4620000 (64-bit, prefetchable) [size=16K]

 Expansion ROM at f4600000 [disabled] [size=128K]

 Capabilities: <access denied>

 Kernel driver in use: r8168

 Kernel modules: r8168

Could you please help me to solve this problem with specific information?

Thanks a lot
Luciano

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Luciano Oliveira
Solved:
Last query:
Last reply:
Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#1

After a couple of tries, I got a connection, but the IP sent to me is a 10.42..43.1, which is really strange because my internal network (given by the router) is a 192.168.1.XX. And now I can't get an internet access! The behavior of the driver is really awkward!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Can you give the output of:

sudo lshw -C network; ifconfig; sudo iwlist scan | head -n 20

The capabilities are hidden in your text because you failed to use sudo.

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#3

Sorry for capabilities missed... I just realized it after sending the message!

Here the output of the command above:

*-network

       description: Wireless interface

       product: Realtek Semiconductor Co., Ltd.

       vendor: Realtek Semiconductor Co., Ltd.

       physical id: 0

       bus info: pci@0000:03:00.0

       logical name: wlan0

       version: 10

       serial: 70:f1:a1:30:d9:3c

       width: 32 bits

       clock: 33MHz

       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless

       configuration: broadcast=yes driver=rtl819xSE driverversion=0014.0115.2010 firmware=62 latency=0 link=no multicast=yes wireless=802.11bgn

       resources: irq:17 ioport:c000(size=256) memory:f4700000-f4703fff

  *-network

       description: Ethernet interface

       product: RTL8111/8168B PCI Express Gigabit Ethernet controller

       vendor: Realtek Semiconductor Co., Ltd.

       physical id: 0

       bus info: pci@0000:08:00.0

       logical name: eth0

       version: 03

       serial: 00:1f:c6:f8:ab:11

       capacity: 1GB/s

       width: 64 bits

       clock: 33MHz

       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation

       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.018.00-NAPI duplex=half latency=0 link=no multicast=yes port=twisted pair

       resources: irq:35 ioport:a000(size=256) memory:f4624000-f4624fff(prefetchable) memory:f4620000-f4623fff(prefetchable) memory:f4600000-f461ffff(prefetchable)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

You missed:

ifconfig; sudo iwlist scan | head -n 20

Thanks

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#5

The rest of the ouput:

eth0 Link encap:Ethernet HWaddr 00:1f:c6:f8:ab:11

          UP BROADCAST MULTICAST MTU:1500 Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

          Interrupt:35 Base address:0xa000

lo Link encap:Local Loopback

          inet addr:127.0.0.1 Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING MTU:16436 Metric:1

          RX packets:76 errors:0 dropped:0 overruns:0 frame:0

          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:5840 (5.8 KB) TX bytes:5840 (5.8 KB)

wlan0 Link encap:Ethernet HWaddr 70:f1:a1:30:d9:3c

          UP BROADCAST MULTICAST MTU:1500 Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

          Interrupt:17 Memory:f8130000-f8130100

lo Interface doesn't support scanning.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Ok looks like your wifi isn't picking up a signal so I'm guessing the driver you have used is not correctly installed or you'd get something like this:

andy@D420:~$ sudo iwlist scan | head -n 20
[sudo] password for andy:
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

pan0 Interface doesn't support scanning.

wlan0 Scan completed :
          Cell 01 - Address: 00:1C:10:A9:22:D2
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=70/70 Signal level=-36 dBm
                    Encryption key:on
                    ESSID:"**************"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000522d71d917
                    Extra: Last beacon: 4ms ago
                    IE: Unknown: 000443554E54
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: Unknown: 32040C121860

etc. I'd review your drivers.

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#7

Ok. My drivers come with Ubuntu 10.04, except the rtl8168, which comes from Realtek. I ran this command in my HP laptop, and the output is quite similar to yours.

sudo lsmod | grep r81
output:
r8168 91277 0
r8192se_pci 446468 0

Anyway, none of the drivers seem to work. The problem is that, what are the drivers?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Wait you lost me, if you run the command:

sudo iwlist scan

You see wireless acess points?

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#9

I sent it right after the first output. Sorry for the broken output, it is because I have no internet in my computer, so I have to copy in a pen from there to here. No scans, no access points detected!

If I want to try to connect, I have to configure my access point as hidden in NetworkManager!

After thousands of tries, I can get to connect once. For one time, I could connect for 10 secs, and then failed again.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

after it disconnects run:

dmesg | tail -n 20

What is output?

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#11

Connection is a matter of luck here. After trying thousand times, with fixed IP, automatic dhcp, sudo ifdown/up wlan0... no success.

Anyway, even without connecting, the output of the command is this:

[ 2829.284579] ----------->rtl8192se_check_hw_scan()

[ 2829.284583] FW Scan long time without stop, stop hw scan

[ 2829.285583] <-----------rtl8192se_check_hw_scan()

[ 2834.405697] rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1

[ 2838.546234] GPIOChangeRF - HW Radio OFF

[ 2838.546242] -------------->rtl8192se_cancel_hw_scan()scan abort start...

[ 2840.552624] GPIOChangeRF - HW Radio ON, RF ON

[ 2840.670141] rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1

[ 2855.435936] rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1

[ 2862.444338] ----------->rtl8192se_check_hw_scan()

[ 2862.444342] FW Scan long time without stop, stop hw scan

[ 2862.445342] <-----------rtl8192se_check_hw_scan()

[ 2867.568737] rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1

[ 2874.576061] ----------->rtl8192se_check_hw_scan()

[ 2874.576065] FW Scan long time without stop, stop hw scan

[ 2874.577066] <-----------rtl8192se_check_hw_scan()

[ 2879.698196] rtl8192_SetWirelessMode(), wireless_mode:10, bEnableHT = 1

[ 2886.704084] ----------->rtl8192se_check_hw_scan()

[ 2886.704088] FW Scan long time without stop, stop hw scan

[ 2886.705088] <-----------rtl8192se_check_hw_scan()

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#12

One more thing: the card is perfect under Windows!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

What windows does and doesn't do is completely moot. It is a different OS with different support so is of no interest.

Use the web to see if you can find any guides or bugs relating to the outputs.

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#14

This answer was very uneducated. I provided the last information to prove (if you thought a little bit) that there is no physical problem with my card. If this is the kind of information that ubuntu team provides... gosh!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

No its of no information. Thats like saying if you didn't have windows we have no way of knowing if the card is faulty or not which is preposterous. If the card worked in Redhat or Puppy then that is interesting as both Ubuntu and redhat are Linux which would make an interesting scenario and we can probe the other OS for the settings it uses to transfer to Ubuntu.

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#16

Ok... but I don't have this scenario. For me, doesn't matter the OS, I use Linux for a long time, I don't have this kind of OS shit. What it is important is the solution of my problem. This is the last answer for you, because I won't waste my time anymore with you!

You asked me obvious things, proposed me obvious thing, and didn't help me at all... So take this Linux/windows shit out of the conversation and try to give a focus in your life!

Subject closed!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#17

Could drop the native driver and use ndisgtk + windows driver

Might be a bit more stable.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#18

Just rememer who brougt Windows into the conversatio initially. ndisgtk may just be the tocket tough, make sure you get the XP32 bit driver if your Ubuntu install is 32bit and XP64bit if your Ubuntu install is 64bit

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#19

Now, we are being more productive! I was thinking of doing this, but without courage to accomplish! Since it is a fresh install... Anyway, after reading in some forums, I think it is better trying win2k driver: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/401126

I will try it, and post the results here, later!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#20

Let us know how you get on.

Revision history for this message
Luciano Oliveira (luciano-reboucas) said :
#21

At this point, I got the 8168B win2k driver from https://bugs.launchpad.net/ubuntu/+source/linux/+bug/401126, and, with ndisgtk, I got my wireless up and working. Side effect: I got my eth0 disappeared! But, at least, I have internet connection now.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#22

Glad you got the gold. ndisgtk is a good fall back but isnt ideal.