USB wireless adapter DWA-140 no internet connection in suse 12.3

From:
“Welcome” <- sticky topic in Wireless section
1 ) make and model of wireless device.
D-Link RangeBooster N 300 USB Adapter, model: DWA-140, H/W Ver.: B2, F/Ver.: 1.60
2 ) driver version in use
I don’t know.
3 ) any error message.
None. OpenSuSe doesn’t see my wireless internet connection.
4 ) what you have tried to rectify the problem.
Nothing, since I installed the distribution (no changes made).
5 ) any trouble-shooting guide you have tried to follow.
Tried to follow sticky topics in opensuse Wireless forum section.
6 ) openSUSE version
12.3 i586
7 ) type /sbin/lspci -v" in a terminal; copy and paste the section that identifies your wireless card and it’s chipset.
No entries referring to my wireless adapter there.
8 ) if it is a usb device type lsusb in a terminal;copy and paste the result
Pasted below.

From:
“Getting Your Wireless to Work” <- sticky topic in Wireless section
YaST=> Hardware Information:
“Wireless LAN” entry is present.
Kernel Driver: rt2800usb

In the file: boot.log
string: firmware <- string not found

Determining what device I have:
jdoe@linux-svuj:~> /usr/bin/lsusb
Bus 001 Device 002: ID 152e:2571 LG (HLDS)
Bus 001 Device 003: ID 07d1:3c0a D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT3072]
Bus 002 Device 002: ID 06a3:0d25 Saitek PLC
Bus 003 Device 002: ID 0461:4d42 Primax Electronics, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
jdoe@linux-svuj:~>

From:
“My wireless doesn’t work - a primer on what I should do next” <- sticky topic in Wireless section
Section 3) I don’t know how to copy the whole output of:
dmesg|less
into a text editor in order to look for strings containing my network adapter.

Okay, so you have a Ralink USB wireless device

Bus 001 Device 003: ID 07d1:3c0a D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT3072]

This is supported by the rt2800usb driver, but also requires firmware to operate. AFAIU, this should be provided by the ‘kernel-firmware’ package. Do you have a wired ethernet connection available?

No, I don’t. My PC is set to dual-boot with Windows XP Pro, and the internet works there. I can also use the internet in the local library.
I can download stuff on windows, then reboot to openSuSe, and access NTFS partitions from there.

I’ve found linux drivers for my modem (mine is revision B) at:
D-Link | DWA-140 Wireless N USB Adapter

but I don’t want to worsen things more.

On 04/14/2013 07:26 AM, opensuseuser000000 wrote:
>
> I’ve found linux drivers for my modem (mine is revision B) at:
> ‘D-Link | DWA-140 Wireless N USB Adapter’ (http://tinyurl.com/b9uey64)
>
> but I don’t want to worsen things more.

I think you only need to install the kernel-firmware package. If you had plugged
in the USB adapter BEFORE you installed openSUSE, the installer should have
loaded that package, which is part of your installation medium.

As to capturing the output of some command, I recommend that you learn about
redirection. The tutorial at http://www.linuxsa.org.au/tips/io-redirection.html
should help. To summarize,


dmesg > dmesg.out

will capture the output in the file “dmesg.out” where you can edit or inspect it.

The fact that your device works in windows has no relevance with openSUSE. The firmware gets loaded into the device by the driver, and needs to be present.
Install it with

sudo zypper in kernel-firmware

then re-attach your USB wireless device, and proceed to configuring…

Everything was plugged in before the openSuSe installation, and I never unplugged anything.

Produces:

jdoe@linux-svuj:~> sudo zypper in kernel-firmware
root's password:
Failed to mount cd:///?devices=/dev/disk/by-id/usb-HL-DT-ST_DVDRAM_GP08NU6B_HitachLGda000001077-0:0,/dev/sr0 on /var/adm/mount/AP_0xeWRV3t: Mounting media failed (mount: no medium found on /dev/sr0)

Please insert medium ] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): no
Error building the cache:
|] Valid metadata not found at specified URL
Warning: Disabling repository 'openSUSE-12.3-1.7' because of the above error.
Retrieving repository 'openSUSE-12.3-Non-Oss' metadata -------------------------------\]
Download (curl) error for 'http://download.opensuse.org/distribution/12.3/repo/non-oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): a
Download (curl) error for 'http://download.opensuse.org/distribution/12.3/repo/non-oss/content':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): a
Retrieving repository 'openSUSE-12.3-Non-Oss' metadata ...........................[error]
Repository 'openSUSE-12.3-Non-Oss' is invalid.
|] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'openSUSE-12.3-Non-Oss' because of the above error.
Retrieving repository 'openSUSE-12.3-Oss' metadata -----------------------------------|]
Download (curl) error for 'http://download.opensuse.org/distribution/12.3/repo/oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): 
Download (curl) error for 'http://download.opensuse.org/distribution/12.3/repo/oss/content':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): 
Retrieving repository 'openSUSE-12.3-Oss' metadata ...............................[error]
Repository 'openSUSE-12.3-Oss' is invalid.
|] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'openSUSE-12.3-Oss' because of the above error.
Retrieving repository 'openSUSE-12.3-Update' metadata --------------------------------/]
Download (curl) error for 'http://download.opensuse.org/update/12.3/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): 
Download (curl) error for 'http://download.opensuse.org/update/12.3/content':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): 
Retrieving repository 'openSUSE-12.3-Update' metadata ............................[error]
Repository 'openSUSE-12.3-Update' is invalid.
|] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'openSUSE-12.3-Update' because of the above error.
Retrieving repository 'openSUSE-12.3-Update-Non-Oss' metadata -------------------------]
Download (curl) error for 'http://download.opensuse.org/update/12.3-non-oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): 
Download (curl) error for 'http://download.opensuse.org/update/12.3-non-oss/content':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Name or service not known

Abort, retry, ignore? [a/r/i/?] (a): 
Retrieving repository 'openSUSE-12.3-Update-Non-Oss' metadata ....................[error]
Repository 'openSUSE-12.3-Update-Non-Oss' is invalid.
|] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'openSUSE-12.3-Update-Non-Oss' because of the above error.
Loading repository data...
Reading installed packages...
'kernel-firmware' is already installed.
Package 'kernel-firmware' is not available in your repositories. Cannot reinstall, upgrade, or downgrade.
Resolving package dependencies...

Nothing to do.
jdoe@linux-svuj:~>

There are no drivers for linux on the CD, that comes with my wifi adapter, but as I wrote above, I found them on the manufacturer’s website.

My boot.log and the output of dmesg are really long text files. Should I just paste them here wrapped in

 tags?

You have your installation (DVD) repo still active. You should disable or remove it.
The following output suggests that the kernel-firmware package is already installed.

Reading installed packages...
'kernel-firmware' is already installed.

There are no drivers for linux on the CD, that comes with my wifi adapter, but as I wrote above, I found them on the manufacturer’s website.

The required driver (rt2800usb) is included as part of the kernel already.

I suggest you have another read of Larry’s post about capturing the dmesg output and saving to a text file for further examination.

I uploaded the boot (system) log and dmesg output on a free file hosting:
http://www.filedropper.com/boot2
http://www.filedropper.com/dmesg2

On 04/14/2013 11:36 PM, opensuseuser000000 wrote:
>
> I uploaded the boot (system) log and dmesg output on a free file
> hosting:
> http://www.filedropper.com/boot2
> http://www.filedropper.com/dmesg2

If you need to put files where we can read them, http://paste.opensuse.org/ is a
lot easier. Be sure to set the retention time. Most of us use infinity, as the
original post lasts forever as well.

Your device driver is not finishing its loading. With my device that uses
rt2800usb, the dmesg log finishes with


ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
usbcore: registered new interface driver rt2800usb
systemd-udevd[2422]: renamed network interface wlan0 to wlan8
phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'.
phy0 -> rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29.

Your system stops after the usbcore registration message. When you do the
command ‘ls /lib/firmware/’, is rt2870.bin there? It probably is, but check just
the same.

I just checked on my system, and the driver will never even try to load the
firmware if there is an rfkill block. You can test that with


/usr/sbin/rfkill list

You may need to install the rfkill package for that command to work.

The rt2870.bin is there.

jdoe@linux-svuj:~> /usr/sbin/rfkill list
bash: /usr/sbin/rfkill: No such file or directory
jdoe@linux-svuj:~> 

I set the retention time on filedropper.com for 1 year - should I paste the logs in http://paste.opensuse.org/, and link them here?
How do I install the rfkill package?

On 04/15/2013 03:56 PM, opensuseuser000000 wrote:
>
> The rt2870.bin is there.
>
> Code:
> --------------------
> jdoe@linux-svuj:~> /usr/sbin/rfkill list
> bash: /usr/sbin/rfkill: No such file or directory
> jdoe@linux-svuj:~>
> --------------------
>
> I set the retention time on filedropper.com for 1 year - should I paste
> the logs in http://paste.opensuse.org/, and link them here?
> How do I install the rfkill package?

No need to repaste them this time, but please use the openSUSE paste site next time.

If you have network access with Linux, run ‘sudo zypper in rfkill’ to get rfkill
installed.

If no access in Linux, download


http://download.opensuse.org/distribution/12.3/repo/oss/suse/i586/rfkill-0.4-16.1.1.i586.rpm

Copy that file to the openSUSE system, and then


sudo rpm -i rfkill-0.4-16.1.1.i586.rpm

No network access in openSuSe, but package installed successfully.

jdoe@linux-svuj:~> /usr/sbin/rfkill list
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
jdoe@linux-svuj:~>

On 04/15/2013 05:26 PM, opensuseuser000000 wrote:
>
> No network access in openSuSe, but package installed successfully.
>
> Code:
> --------------------
> jdoe@linux-svuj:~> /usr/sbin/rfkill list
> 0: phy0: Wireless LAN
> Soft blocked: no
> Hard blocked: no
> jdoe@linux-svuj:~>
> --------------------

What do you see with


sudo /usr/sbin/iwlist scan

BTW, the correct spelling is openSUSE.

jdoe@linux-svuj:~> sudo /usr/sbin/iwlist scan
wlan0     Interface doesn't support scanning : Network is down

lo        Interface doesn't support scanning.

jdoe@linux-svuj:~>

On 04/15/2013 06:16 PM, opensuseuser000000 wrote:
>
> Code:
> --------------------
> jdoe@linux-svuj:~> sudo /usr/sbin/iwlist scan
> wlan0 Interface doesn’t support scanning : Network is down
>
> lo Interface doesn’t support scanning.
>
> jdoe@linux-svuj:~>
> --------------------

Have you configured the network? The “network is down” message means either that
there is an rfkill block, or the network is not configured. We have already
shown the first not to be true. :slight_smile:

So this question goes to the first thing I tired to do; my natural move, since I’m a still (because of games being developed to work on windows) a windows user, and it was to click the openSUSE start menu -> System -> Network Connections

Problem is, everything there is grayed-out. The only clickable items are all the tabs, the Cancel button in these tabs, and all the Add buttons, but those lead to more of what I already mentioned. So there is nothing I can Add, or configure.
That’s how I’m stuck without internet on the openSUSE 12.3.

Even if it wasn’t grayed-out, as a GNU/Linux newbie, I’m not sure if I’d be able to configure the WiFi correctly, but I would try.

Navigate to YaST>>Network Devices>>Network Settings. Under the ‘Global Options’ tab, make sure that ‘User Controlled with NetworkManager’ is selected, then click ‘OK’. Now you should be able to configure the wireless device via the network manager utility.

This allowed me to configure the network, but… I don’t know what to choose/type in all the fields in the network manager. All I know is my SSID and the wireless network key.
I’m using the Xfce GUI, and once I accepted the ‘User Controlled with NetworkManager’ option this message popped up:

Oh wow, the edit post function is set to a really short time here, but anyways here’s the message:

NetworkManager is controlled by desktop applet (knetworkmanager for KDE and nm-applet for GNOME). Be sure it's running and if not, start it manually.

The taskbar network icon says the network is available, and I can see all the other networks in the area, but I still don’t know how to configure mine.