maicod
Posts: 16
Joined: Wed Jun 20, 2012 12:29 pm
Location: Netherlands

wifi very sluggish under X while fine under text mode

Sat Aug 18, 2012 2:17 am

I succesfully setup wifi on my Pi under Raspbian Wheezy. The internet over wifi works fine in the text mode but once I've started up X its very slow and unresponsive. If I ping a domain or IP on the internet it hangs for a while and then outputs a few pings and hangs again. Also when I type ifconfig its output hangs for a while before displaying it. Also tyring to load websites in a browser like midori takes ages too and most often times out with a resolve error. It works fine when using a wired connection (ofcourse I removed that cable when trying out wifi)

I've configured wlan manually by following this guide: http://www.raspberrypi-tutorials.co.uk/ ... s-network/

as a second attempt I started again with a fresh wheezy image and used wicd-curses to setup wlan which worked but has the same result of being unresponsive under X while working fine under text mode

I used three different USB dongles (ralink,realtek) but all give the same results. I use them via an Ultron UHN-710 7-port powered hub which is listed on the verified pheripherals list so it should work fine.

I really don't understand why the wlan starts to breakup after having loaded X. I hope someone recognizes the problem.

User avatar
mpthompson
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
Contact: Website

Re: wifi very sluggish under X while fine under text mode

Sat Aug 18, 2012 4:20 am

I've had very similar problems in the past and it is indeed a frustrating experience to figure out what is going wrong. It took me over a month to track it down. In my case, it was the low-speed USB port in my keyboard that was giving the USB drivers in my Pi problems. Even if the keyboard USB ports had nothing plugged into them, when I when into X I experienced problems almost identical to what you describe. My fix was to get a PS2 to USB adapter and use the PS2 plug on my keyboard. This took the keyboard USB hub off of the USB bus and the problems disappeared. Obviously I can't be sure that this would help you, but it's worth a try if you have a PS2 keyboard and PS2 to USB adapter.
maicod wrote:I succesfully setup wifi on my Pi under Raspbian Wheezy. The internet over wifi works fine in the text mode but once I've started up X its very slow and unresponsive. If I ping a domain or IP on the internet it hangs for a while and then outputs a few pings and hangs again. Also when I type ifconfig its output hangs for a while before displaying it. Also tyring to load websites in a browser like midori takes ages too and most often times out with a resolve error. It works fine when using a wired connection (ofcourse I removed that cable when trying out wifi)

maicod
Posts: 16
Joined: Wed Jun 20, 2012 12:29 pm
Location: Netherlands

Re: wifi very sluggish under X while fine under text mode

Sat Aug 18, 2012 4:49 am

wow thats exactly my problem. I started a ping command in a terminal window in X and as before it gives a ping reply every now and then and then freezes again BUT your reply made me think: what if I unplug the USB plug from my keyboard while the ping is going on. I did that and it immediately started giving a steady stream of ping replies ! The only weird thing is is that my keyboard doesn't have a builtin USB hub (like yours has) and I already used 2 different keyboards and they are both giving the wlan disturbance under X.

Don't you agree that much more people with Pi's and wlan under X would need to have the same problems ? My 2 keyboards that make the wlan act 'funny' under X are not of a fancy type and don't have builtin HUBs so more people will probably have those. Now it looks like everyone who wants to use wlan under X has to find a PS2 keyboard somewhere and get a PS2 to USB converter. I got one such keyboard somewhere and the converter but the keyboard is huge in size :(
I feel forced to get the PS2 keyboard out but it strengthens my feelings for the xxxth time that the Pi hardware or Pi's kernel or drivers are very picky :(

Can anyone of the wheezy developers look into this matter ?

AlArenal
Posts: 141
Joined: Sun Feb 26, 2012 6:58 pm
Location: Germany
Contact: Website

Re: wifi very sluggish under X while fine under text mode

Sat Aug 18, 2012 10:07 am

maicod wrote:Can anyone of the wheezy developers look into this matter ?
That wouldn't make much sense, because as I understand it they're not the ones developing drivers for the Pi.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13009
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: wifi very sluggish under X while fine under text mode

Sat Aug 18, 2012 11:21 am

This issue is being investigated by people working for the RPF, and hopefully will be resolved quickly.

AFAIK it seems to be an issue with the mouse driver, under some specific conditions, and for people hit with it its seems to be not completely GUI dependant, but might also arise with a command-line program that is using the mouse.

User avatar
mpthompson
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
Contact: Website

Re: wifi very sluggish under X while fine under text mode

Sat Aug 18, 2012 6:08 pm

AlArenal wrote:
maicod wrote:Can anyone of the wheezy developers look into this matter ?
That wouldn't make much sense, because as I understand it they're not the ones developing drivers for the Pi.
Plugwash and I, the maintainers of the Raspbian distribution are not kernel developers and this issue is almost certainly with one of the drivers within the kernel. I do know that the Foundation is aware of USB issues and many have already been resolved, but work is continuing to resolve the issues such as this one that are still left.

maicod
Posts: 16
Joined: Wed Jun 20, 2012 12:29 pm
Location: Netherlands

Re: wifi very sluggish under X while fine under text mode

Sat Aug 18, 2012 6:38 pm

mahjongg wrote: ......AFAIK it seems to be an issue with the mouse driver, under some specific conditions, and for people hit with it its seems to be not completely GUI dependant, but might also arise with a command-line program that is using the mouse.
oh in my case it looks like its arising by using either of my 2 keyboards. I had previously already changed my mouse for another one but it looks more like a keyboard driver problem. The mice and keyboards are all wired ones with no fancy functions.
mpthompson wrote: Plugwash and I, the maintainers of the Raspbian distribution are not kernel developers and this issue is almost certainly with one of the drivers within the kernel. I do know that the Foundation is aware of USB issues and many have already been resolved, but work is continuing to resolve the issues such as this one that are still left.
oh cool I didn't know you are a Raspbian maintainer . Do you think the foundation is aware of my post here ?

maicod
Posts: 16
Joined: Wed Jun 20, 2012 12:29 pm
Location: Netherlands

Re: wifi very sluggish under X while fine under text mode

Sun Aug 19, 2012 12:58 am

I have a new experience and it now seems the problem arises when a combination of mouse, keyboard and wifi dongle are used.

maicod
Posts: 16
Joined: Wed Jun 20, 2012 12:29 pm
Location: Netherlands

Re: wifi very sluggish under X while fine under text mode

Sun Aug 19, 2012 2:07 am

something that might be important : with every USB keyboard that I have the caps-lock LED doesn't light up when pressing the caps-lock key but its function works fine. Maybe this is caused by the same trouble as the wifi not working under X !

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13009
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: wifi very sluggish under X while fine under text mode

Sun Aug 19, 2012 2:48 am

maicod wrote:something that might be important : with every USB keyboard that I have the caps-lock LED doesn't light up when pressing the caps-lock key but its function works fine. Maybe this is caused by the same trouble as the wifi not working under X !
There can be just one cause and that is that when the keyboards sends the "the capslock key has been pressed" to the software in the PI, the software doesn't send back the "turn the capslock LED on message" to the keyboard, or that this message is somehow lost.

Return to “Raspberry Pi OS”