Midori won't connect to internet


47 posts   Page 1 of 2   1, 2
by jeffhaddow » Thu Jun 14, 2012 2:07 pm
Hello
I've just today started up my raspberrypi and the Midori won't connect to the internet. When I try, after a while, it returns with the error message "Cannot resolve host name".

I have added a line to the DHCP configuration file to send the host name "raspberrypi" to the router and the router now has recognised the cable connection (IP address 192.168.1.4 MAC address B8-27-eb-66-4C-10).

The distro/SD card image I am using is (Debian6-19-2012).

Can anyone suggest what to do to fix this. I don't have little experience with Linux.

Many thanks
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by bredman » Thu Jun 14, 2012 2:17 pm
This is probably a fault in your power supply. A lot of people report that the network connection fails when the startx command is entered.

To check this, power off the Pi and turn it on again.

Do not enter the startx command. Enter this command
ping www.google.com
and press ctrl-c to stop it after a minute.

This will check if you have a network connection or not.
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by SN » Thu Jun 14, 2012 2:42 pm
or not... there is other examples of networking is fine at the command line and then dying once X is started - I got it today with a WLAN card which is sat off a 3A PSU powered hub - so NOT power there methinks

I think there is something seriously wrong with USB handling in the current kernel/drivers that needs to be sorted
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?
User avatar
Posts: 1008
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
by NickT » Thu Jun 14, 2012 2:47 pm
SN wrote:or not... there is other examples of networking is fine at the command line and then dying once X is started - I got it today with a WLAN card which is sat off a 3A PSU powered hub - so NOT power there methinks

I think there is something seriously wrong with USB handling in the current kernel/drivers that needs to be sorted


Of course there is, but it's like the mad woman in the attic that nobody talks about.
User avatar
Posts: 91
Joined: Mon May 21, 2012 10:43 am
by jeffhaddow » Thu Jun 14, 2012 5:21 pm
I tried the Ping test and it seemed to work ok -- multiple lines with 38 ms result .

So do I need a new power supply?

All the best
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by jeffhaddow » Thu Jun 14, 2012 6:12 pm
Well I tried a new charger/powersuply with a current rating of 1000ma, but still the same problem

Error
The page " .... " couldn't be loaded
Cannot resolve hostname.

Any thoughts?
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by marsman2020 » Thu Jun 14, 2012 11:53 pm
What device(s) do you have attached to your Pi's USB ports? Please be as specific as you can about model numbers.

Can you open a terminal (LXTerminal) in the menu and type 'dmesg' while you are trying to access the internet from Midori, and tell us if you see any error messages?

If you type a URL into Midori's address bar, unplug your mouse, and then hit 'enter', does the page load?
Posts: 70
Joined: Sun May 20, 2012 11:26 pm
by jeffhaddow » Fri Jun 15, 2012 10:13 am
There is only one thing attached to to the USB
It is a USB-HUB-113A 13 port USB 2.0 Hub

I tried Your test with the dmesg command and

Before I asked Midori to do anything there were a lot of messages
smsc95xx 1-1.1:1.0: eth0: kevent 4 may have been dropped

Along with one error message: Failed to read register index 0x00000114

There was nothing happened while Midori was looking up a website and it came back with "Cannot Resolve hostname " error message.

I tried unpluging my usb dongle for the mouse and when I reconnected it there was a burst of text about The USB and some error messages at the end:

Failed to read register index 0x00000114
Failed to read register index 0x00000118
Failed to write register index 0x00000114
Failed to read register index 0x00000114
usb 1-1.3.2: usbfs: USBDEVFS_CONTROL failed cmd hald-addon-usb- rqt 192 rq 9 le
n 8 ret -110

I do not understand any of it!

Do you want the serial nos of the mouse and keyboard that I have connected to the USB Hub?

All the best
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by jeffhaddow » Fri Jun 15, 2012 10:19 am
I tried the test with entering a URL address then unpluging the mouse and hitting enter and the page did load

Is the problem therefore with the mouse? Its a wireless mouse.

All the best
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by bredman » Fri Jun 15, 2012 10:28 am
This is unlikely to be a Midori problem.

Go into LXTerminal and enter a ping www.google.com command.

Leave the command running while you connect/disconnect the mouse several times (wait 30 seconds each time). This will tell you if the mouse is killing your Ethernet connection.
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by jeffhaddow » Fri Jun 15, 2012 11:09 am
Thanks Bredman for your help on this problem

I'll just have to buy another mouse -- this time I'll get a wired one.

All the best
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by mm0zct_ » Fri Jun 15, 2012 11:49 am
Just to confirm for you yes it is probably your wireless mouse, I have the same problem with my wireless mouse.

I think wireless mice interact with the usb drivers differently, and there's a bug in there somewhere.

(If it was a power issue I wouldn't be able to play network quake 3 using the wireless keyboard and mouse, but unable to ping form a terminal once X is started, I think it's something more subtle)
Posts: 6
Joined: Sun Jun 10, 2012 12:42 am
by bredman » Fri Jun 15, 2012 12:08 pm
Jeff,

Have you confirmed that your mouse is killing your Ethernet connection?

If yes, send us the model number of your mouse so that somebody can put a warning on the wiki.
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by jeffhaddow » Fri Jun 15, 2012 12:27 pm
I can confirmed that my mouse is killing your Ethernet connection or severely slowing it down anyway(Ping times of 2 to 3 Seconds which don't apear till I unplug the dongle).

The Mouse is Branded Logitech, but has little information about its origin it was one that I recieved as a complimentary item for a foul-up with a computer delivery.

The Box has the following
DESC: MSE,C/L,MASSI ROEM, PREPAIRED, OPOSSUM
EAN/ UCC-14 (SCC)
Made in China
Certified for Windows Vista

Sorry I can't be more specific.

Thanks again

All the best
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by mm0zct_ » Fri Jun 15, 2012 12:59 pm
Mine is a logitech also, M325 with unifying receiver, also the latching k260 wireless keyboard.

The mouse+kbd works fine in X and playing quake3, but X+mouse&kbd kills the network.

Maybe a note to avoid logitech wireless devices should be put on the wiki?
Posts: 6
Joined: Sun Jun 10, 2012 12:42 am
by ashbash » Fri Jun 15, 2012 1:07 pm
mm0zct_ wrote:...Maybe a note to avoid logitech wireless devices should be put on the wiki?


Dont think that's fair, unless supported by empirical and/or statistical evidence, i will try my logitech mouse tonight and report back. :D
Posts: 50
Joined: Fri Jun 01, 2012 9:20 am
by jeffhaddow » Fri Jun 15, 2012 2:50 pm
So I went out and purchased a cheap microsoft mouse and theproblem was the same.

The cause is in fact the 13 port USB Hub as when I plugged directly into the Pi with the mouse and keyboard -- cured.

In fact I'm posting this on the Raspberry Pi!! --- very slowly.!!

I bought it from Farnell

Part No 1947864
Product description: PSG90293 HUB USB 2.0, 13 Port, UK Plug
Manufacturer Part# PSG90293

All the best
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by marsman2020 » Fri Jun 15, 2012 2:56 pm
I had similar issues with my Logitech wireless mouse and powered hub. I did eventually find a cheapo mouse the kind of works on the hub, but connecting the Logitech mouse directly to the Pi without my powered hub also solved the problem.

Is there any chance you'd be willing to create a github account and post your troubleshooting findings on this issue on github - https://github.com/raspberrypi/linux/issues/29
Posts: 70
Joined: Sun May 20, 2012 11:26 pm
by jeffhaddow » Fri Jun 15, 2012 3:49 pm
Hello marsman2020

I had a look at the site but cannnot see how to comment on the posts. But to be honest I'm not familiar with the inns and outs of the hardware. I'm going to keep an eye on this site to see if there is a new SD card download that can fix this problem

All the best
Jeff
Posts: 94
Joined: Thu Jun 14, 2012 1:50 pm
by herrbruce » Sun Jun 17, 2012 2:05 pm
Similar results here, with a GE branded USB 2.0 hub, an old Apple iMac G4 keyboard (with internal hub) and Apple mouse.

Started LXTerminal, started a ping command, then plugged and unplugged the mouse. No responses when plugged in, reasonable responses when unplugged.

However:

0% packet loss. The responses did come back, but out of sequence. (4,5,3,1,2...) So, it's probably not a power issue, but a sequencing of buffers, or a shared hardware queue between mouse and ethernet.
Posts: 1
Joined: Sun Jun 17, 2012 2:01 pm
by slimplynth » Sun Jun 17, 2012 3:26 pm
Same issue here ( debian6-19-04-2012)

Trying to download the driver for my wifi dongle so I can hopefully get away from ethernet connection.

If I have the mouse connected (Technika OMS05) the internet connection is lost (pings google fine before startx).. anyway I'm happy I know the answer now so cheers..

.. just plugging/unplugging the mouse, to click links until the download is complete and fingers crossed - get on wifi.
Posts: 8
Joined: Tue Dec 27, 2011 12:50 am
by slimplynth » Sun Jun 17, 2012 4:00 pm
p.s the same thing happens if I plug the mouse into the powered USB Hub (Logik - LP7HUB11 - 2.0A)
Posts: 8
Joined: Tue Dec 27, 2011 12:50 am
by pisit » Mon Jun 18, 2012 2:06 am
I have the same problem, but i'm using a wire mouse.
Posts: 2
Joined: Mon Jun 18, 2012 1:51 am
by tonychang-uk » Mon Jun 18, 2012 1:48 pm
I have the same problem, if I use hub connect mouse and keyboard, won't have internet in x-windows, but if I remove hub, connect mouse and keyboard to raspberry-pi the the internet work fine, the internet through ethernet. seems the one board usb port and ethernet port have small problem. not power problem, i use 5V 2.1A ipad adapter for raspberry, use 5V 1A iphone adapter for USB hub, same probelm.
Posts: 12
Joined: Mon Jun 18, 2012 1:42 pm
by TallTUK » Mon Jun 18, 2012 7:29 pm
Hi Folks

I had a similar problem, went through a similar process above with a wired mouse and keyboard connected to a powered 7 port usb 2.0 hub. My tech mate hypothesised that the problem may lie with the multiple ports. When we disconnected the hub my ping speed went from 15589 m/s to 39 m/s. Connected the mouse and keyboard to the Pi's two ports and it works fine (high CPU usage for Midori though).

The final hypothesis is that it can't handle splitting the usb into so many ports. The two straight off the Pi are already split from a single connection to the board. Splitting them multiple times more may mess with it to much.

Anyway, all better now. Next task, how do I watch youtube?
Posts: 1
Joined: Mon Jun 18, 2012 7:20 pm