LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   WiFi does not work (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/wifi-does-not-work-4175437787/)

aoqingxin 11-19-2012 07:08 AM

WiFi does not work
 
Quote:

Originally Posted by Mcorbett1 (Post 4832214)
I have a new Asus laptop that I would like to run Ubuntu on, but the wireless will not connect. It sees the network and asks for the password, but does not connect. I have tried editing the connection to match my other laptop (an older HP) which works fine, but still no luck. I have 12.04 LTS running alongside Win7. The connection works fine in Win7.
Any ideas how to get the WiFi connected in Ubuntu? I'd really like to get rid of the Win7, but I need to be able to connect to the internet via the WiFi.
Thanks for any help.
Mcorbett1@gmail.com

I have the same problem with you, but my laptop is HP ProBook, my system is fedora-17-X86_64, and my laptop has Win7 besides.
I can see some WiFi'name under my fedora, but there signals are all weak, and I can't connect them, but I can connect them well under Win7.
I run "lspci | grep Network", then get :
04:00.0 Network controller: Ralink corp. Device 5390
I run "iwconfig",then get:
p4p1 no wireless extensions.

lo no wireless extensions.

wlan0 IEEE 802.11bgn ESSID: off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry long limit:7 RTS thr: off Fragment thr: off
Encryption key: off
Power Management: off
Help!

markush 11-19-2012 07:20 AM

Quote:

Originally Posted by aoqingxin (Post 4832542)
...
I run "lspci | grep Network", then get :
04:00.0 Network controller: Ralink corp. Device 5390

What do you think how this information helps to find the problem?

You should execute lspci -k (with option k) and find the lines (more than one) for your wireless interface!

Markus

aoqingxin 11-19-2012 08:08 AM

Quote:

Originally Posted by markush (Post 4832549)
What do you think how this information helps to find the problem?

You should execute lspci -k (with option k) and find the lines (more than one) for your wireless interface!

Markus

Thank you for your attention!
I tried the command "lspci -k | grep -iA3 wire", but there was nothing reply.

markush 11-19-2012 09:41 AM

Then check the whole output of lspci -k or post it here

Markus

aoqingxin 11-19-2012 11:48 PM

Quote:

Originally Posted by markush (Post 4832636)
Then check the whole output of lspci -k or post it here

Markus

These are all of the outputs:

00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Complex
Subsystem: Advanced Micro Devices [AMD] Family 12h Processor Root Complex
00:01.0 VGA compatible controller: ATI Technologies Inc Device 9643
Subsystem: Hewlett-Packard Company Device 168f
Kernel driver in use: radeon
00:01.1 Audio device: ATI Technologies Inc Device 1714
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: snd_hda_intel
00:03.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
Kernel driver in use: pcieport
00:04.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
Kernel driver in use: pcieport
00:05.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
Kernel driver in use: pcieport
00:07.0 PCI bridge: Advanced Micro Devices [AMD] Family 12h Processor Root Port
Kernel driver in use: pcieport
00:10.0 USB Controller: Advanced Micro Devices [AMD] Hudson USB XHCI Controller (rev 03)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: xhci_hcd
00:10.1 USB Controller: Advanced Micro Devices [AMD] Hudson USB XHCI Controller (rev 03)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: xhci_hcd
00:11.0 SATA controller: Advanced Micro Devices [AMD] Hudson SATA Controller [AHCI mode] (rev 40)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: ahci
00:12.0 USB Controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: ohci_hcd
00:12.2 USB Controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: ehci_hcd
00:13.0 USB Controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: ohci_hcd
00:13.2 USB Controller: Advanced Micro Devices [AMD] Hudson USB EHCI Controller (rev 11)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: ehci_hcd
00:14.0 SMBus: Advanced Micro Devices [AMD] Hudson SMBus Controller (rev 13)
Subsystem: Hewlett-Packard Company Device 168e
00:14.2 Audio device: Advanced Micro Devices [AMD] Hudson Azalia Controller (rev 01)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices [AMD] Hudson LPC Bridge (rev 11)
Subsystem: Hewlett-Packard Company Device 168e
00:14.4 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI Bridge (rev 40)
00:14.5 USB Controller: Advanced Micro Devices [AMD] Hudson USB OHCI Controller (rev 11)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: ohci_hcd
00:15.0 PCI bridge: Advanced Micro Devices [AMD] Device 43a0
Kernel driver in use: pcieport
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3
Kernel driver in use: k10temp
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7
01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] (rev ff)
Kernel driver in use: radeon
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: r8169
03:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 30)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: sdhci-pci
03:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 30)
Subsystem: Hewlett-Packard Company Device 168e
03:00.3 System peripheral: JMicron Technology Corp. MS Host Controller (rev 30)
Subsystem: Hewlett-Packard Company Device 168e
Kernel driver in use: jmb38x_ms
04:00.0 Network controller: Ralink corp. Device 5390
Subsystem: Hewlett-Packard Company Device 1636
Kernel driver in use: rt2800pci

What can you find from these information?

markush 11-20-2012 01:03 AM

This
Quote:

04:00.0 Network controller: Ralink corp. Device 5390
Subsystem: Hewlett-Packard Company Device 1636
Kernel driver in use: rt2800pci
is your wirless adapter and the module is loaded. But the support for this card is said to be "experimental" in the documentation of the kernel source (probably there's your problem).

Try the following commands as root
Code:

ifconfig wlan0 up
iwlist wlan0 scan | grep -i ssid

the first command brings the adapter up, it isn't needed when it's already (when ifconfig shows information about it). The second line scans for wireless networks and grep filters the ssid. If the command gives some output you can at least be sure that your wireless adapter is working.

Markus

aoqingxin 11-20-2012 04:52 AM

Quote:

Originally Posted by markush (Post 4833045)
This is your wirless adapter and the module is loaded. But the support for this card is said to be "experimental" in the documentation of the kernel source (probably there's your problem).

Thank you so much!
I'm waiting for fc18 to support the card "fine".

Quote:

Originally Posted by markush (Post 4833045)
If the command gives some output you can at least be sure that your wireless adapter is working.

It's working, but the signal is too weak. I think what I can do now is just waiting for fc18 to solve this problem.

markush 11-20-2012 06:32 AM

Quote:

Originally Posted by aoqingxin (Post 4833156)
Thank you so much!
I'm waiting for fc18 to support the card "fine".

Thats useless. The hardwaresupport depends on the kernelversion, not on the distribution, could you please tell us, which kernel you are using? If you don't know, please look at the output of
Code:

uname -r
Quote:

It's working, but the signal is too weak. I think what I can do now is just waiting for fc18 to solve this problem.
I don't believe that the signal is the problem (unless you have a problem with your Accesspoint).

I would try to connect "manually", i.e. without any networkmanager or how they call it. Do you have wpa_supplicant installed?

Markus

aoqingxin 11-20-2012 07:43 AM

Quote:

Originally Posted by markush (Post 4833206)
which kernel you are using?

It's 3.6.6-1.fc17.x86_64

Quote:

Originally Posted by markush (Post 4833206)
Do you have wpa_supplicant installed?

I think my laptop has installed wpa_supplicant, when I run "which wpa_supplicant", the console replys "/usr/sbin/wpa_supplicant".

markush 11-20-2012 09:44 AM

Well, it's a recent kernel, so it should work.

As root open your /etc/wpa_supplicant.conf and configure the settings for your network, here an example:
Code:

ctrl_interface=/var/run/wpa_supplicant GROUP=0

network={
        ssid="your ssid here"
        proto=WPA RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        psk="your key here"
}

This should work for most wireless networks with wpa2 encryption. Be sure to insert the correct ssid and key for your network.

Afterwards start wlan0
Code:

ifconfig wlan0 up
and start wpa_supplicant
Code:

wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
and look for errormessages. In another terminal you can execute iwconfig and check if your computer is connected to the wireless Accesspoint. If this works, you may use your favorite DHCP-client to get an IP-configuration. If it doesn't work, please post the errormessages here.

Markus

aoqingxin 11-21-2012 02:20 AM

Quote:

Originally Posted by markush (Post 4833329)
Well, it's a recent kernel, so it should work.

As root open your /etc/wpa_supplicant.conf and configure the settings for your network

I can't find this file in my fedora 17.

markush 11-21-2012 03:46 AM

At first check if wpa_supplicant is really installed
Code:

which wpa_supplicant
then search the dokumentation for Fedora and find out where wpa_supplicant.conf is. But you can also create one (if wpa_supplicant is installed). The command I posted above sets the path for the configuration anyway.

Markus

aoqingxin 11-21-2012 05:13 AM

Thank you Markus! You are a nice guy! But I think you didn't understand me, or maybe it's all because my poor english, sorry about that!

I repeat my problem now:

My laptop can get several WIFI signals, my library's WIFI signal included.

I check them from the gnome's UI, and find all the signals are weak,so does my library's WIFI signal(the router is at most 3 meters from me). I can connect the signal sometimes, but the speed is very slow and will disconnect soon.

OK, this is my trouble.

Thank you for your time!

PS: I google this problem and find some guys said that linux can't work well with WIFI signals which has high frequency band. Is this the real problem?

markush 11-21-2012 05:35 AM

Quote:

Originally Posted by aoqingxin (Post 4833922)
...
PS: I google this problem and find some guys said that linux can't work well with WIFI signals which has high frequency band. Is this the real problem?

I don't know, I'm not that familiar with the hardware. But in general if it works with Windows it should also work with Linux.

My idea is that because wpa_supplicant comes with very verbose errormessages, it could help to finde the cause of the trouble.

Markus


All times are GMT -5. The time now is 10:46 AM.