LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2016, 03:06 PM   #1
Abhishek112525
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Rep: Reputation: Disabled
Wireless not working, wlan0 missing


I am new to this forum and this is my first post.

So I was trying to reinstall my drivers rtl873be for HP laptop as I was getting very weak signals, but I guessed I messed it up in between and now my wifi option doesn't appear in the menu. I am working on ubuntu 14.04 LTS. My wlan0 is also missing.

I will post the details of some commands which I found on similar threads.

ifconfig
Code:
eth0      Link encap:Ethernet  HWaddr 3c:a8:2a:aa:db:4b  
          inet addr:10.6.64.60  Bcast:10.6.95.255  Mask:255.255.224.0
          inet6 addr: fe80::3ea8:2aff:feaa:db4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:365299 errors:0 dropped:0 overruns:0 frame:0
          TX packets:132228 errors:0 dropped:141 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:284102608 (284.1 MB)  TX bytes:12162916 (12.1 MB)

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:65536  Metric:1
          RX packets:7567 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7567 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1042528 (1.0 MB)  TX bytes:1042528 (1.0 MB)
iwconfig:
Code:
lo        no wireless extensions.

eth0      no wireless extensions.
ifconfig wlan0 up:
Code:
wlan: ERROR while getting interface flags: No such device
sudo lshw -c network
Code:
  *-network UNCLAIMED     
       description: Network controller
       product: RTL8723BE PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:08:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: ioport:5000(size=256) memory:c6100000-c6103fff
  *-network
       description: Ethernet interface
       product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: eth0
       version: 0a
       serial: 3c:a8:2a:aa:db:4b
       size: 100Mbit/s
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8107e-2_0.0.2 02/26/15 ip=10.6.64.60 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:49 ioport:4000(size=256) memory:c6004000-c6004fff memory:c6000000-c6003fff
rfkill list all
Code:
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
Please help me out
 
Old 09-25-2016, 05:25 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 5,168
Blog Entries: 3

Rep: Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692
Quote:
Originally Posted by Abhishek112525 View Post
Please help me out
Hello and welcome to the forum

Out of curiosity, please post the results of the following commands...

Code:
lspci -nnk | grep -i net -A2
Code:
lsmod
What is the brand and model (and model number) of your laptop?

Also, what driver did you install (please provide a link) and did it install successfully? If not, were there any error messages? Please give us exact details what happened.

Regards...
 
Old 09-25-2016, 07:44 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
$ sudo ifconfig -a

$ sudo modprobe rtl8723be

$ sudo ifconfig wlan0 up

$ sudo ifconfig -a

$ dmesg

The module might not be loaded. Or the interface might be down. You could also be missing the firmware for the driver. The $(ifconfig -a) lists the interfaces even those not currently configured. You could also be using newer stuff that renames things to wlp1s0 instead of wlan0, but ifconfig -a should still list it and it's current name. If you move between hardware that interface name could bump up a number too. Like wlan1, wlan2, and such. Removing /etc/udev/rules.d/70-net-persistent.rules and rebooting will let it grab a new default number, likely 0. In case you don't want to redo scripts with firewall rules and other stuff. Maybe even edit the udev rules to give it a custom name (also requires a reboot / simpler than restarts under systemd) like marypoppins0, although I've haven't tried that in a while.
 
Old 09-26-2016, 12:06 AM   #4
Abhishek112525
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
My laptop is HP Pavilion Notebook 15-ab032TX (M2W75PA).
My wifi was having weak signal problem so I tried to follow instructions from this link:-

http://connectwww.com/how-to-solve-r...n-ubuntu/4625/

However in the middle it did ask whether I wanted to disable UEFI settings and selected no. Apart from that I did not get any errors. But then the wifi option was permanently gone.

lspci -nnk | grep -i net -A2
Code:
08:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
	Subsystem: Hewlett-Packard Company Device [103c:804c]
09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 0a)
	Subsystem: Hewlett-Packard Company Device [103c:8096]
	Kernel driver in use: r8169
lsmod
Code:
Module                  Size  Used by
msr                    16384  0 
cuse                   16384  3 
rfcomm                 69632  8 
bnep                   20480  2 
binfmt_misc            20480  1 
nls_iso8859_1          16384  1 
uvcvideo               90112  0 
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_core         53248  1 uvcvideo
v4l2_common            16384  1 videobuf2_core
videodev              159744  3 uvcvideo,v4l2_common,videobuf2_core
media                  24576  2 uvcvideo,videodev
btusb                  40960  0 
bluetooth             491520  22 bnep,btusb,rfcomm
intel_rapl             20480  0 
iosf_mbi               16384  1 intel_rapl
x86_pkg_temp_thermal    16384  0 
intel_powerclamp       20480  0 
coretemp               16384  0 
hp_wmi                 16384  0 
kvm_intel             151552  0 
rtl_pci                40960  0 
kvm                   479232  1 kvm_intel
crct10dif_pclmul       16384  0 
sparse_keymap          16384  1 hp_wmi
crc32_pclmul           16384  0 
rtlwifi               102400  1 rtl_pci
snd_hda_codec_realtek    86016  1 
aesni_intel           172032  1 
snd_hda_codec_hdmi     53248  1 
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
cryptd                 20480  2 aesni_intel,ablk_helper
mac80211              720896  2 rtl_pci,rtlwifi
joydev                 20480  0 
serio_raw              16384  0 
cfg80211              532480  2 mac80211,rtlwifi
nouveau              1368064  0 
snd_hda_intel          36864  6 snd_hda_codec_hdmi
snd_hda_controller     32768  1 snd_hda_intel
snd_hda_codec         143360  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
mxm_wmi                16384  1 nouveau
ttm                    94208  1 nouveau
snd_hwdep              20480  1 snd_hda_codec
lpc_ich                24576  0 
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_seq_midi           16384  0 
snd_seq_midi_event     16384  1 snd_seq_midi
8250_fintek            16384  0 
snd_rawmidi            32768  1 snd_seq_midi
snd_seq                65536  2 snd_seq_midi_event,snd_seq_midi
hp_accel               28672  0 
i915_bpo             1138688  5 
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
lis3lv02d              20480  1 hp_accel
wmi                    20480  3 hp_wmi,mxm_wmi,nouveau
input_polldev          16384  1 lis3lv02d
hp_wireless            16384  0 
snd                    86016  21 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
intel_ips              20480  1 i915_bpo
int3400_thermal        16384  0 
video                  20480  2 i915_bpo,nouveau
acpi_thermal_rel       16384  1 int3400_thermal
drm_kms_helper        131072  2 i915_bpo,nouveau
shpchp                 40960  0 
acpi_pad               20480  0 
mac_hid                16384  0 
drm                   344064  8 ttm,i915_bpo,drm_kms_helper,nouveau
processor_thermal_device    16384  0 
mei_me                 20480  0 
mei                    90112  1 mei_me
soundcore              16384  2 snd,snd_hda_codec
i2c_algo_bit           16384  2 i915_bpo,nouveau
parport_pc             32768  0 
ppdev                  20480  0 
lp                     20480  0 
parport                45056  3 lp,ppdev,parport_pc
psmouse               118784  0 
ahci                   36864  3 
r8169                  81920  0 
libahci                32768  1 ahci
mii                    16384  1 r8169
sudo ifconfig -a
Code:
eth0      Link encap:Ethernet  HWaddr 3c:a8:2a:aa:db:4b  
          inet addr:10.6.64.60  Bcast:10.6.95.255  Mask:255.255.224.0
          inet6 addr: fe80::3ea8:2aff:feaa:db4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35063 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23710 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:38486859 (38.4 MB)  TX bytes:2823231 (2.8 MB)

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:65536  Metric:1
          RX packets:1278 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1278 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:154095 (154.0 KB)  TX bytes:154095 (154.0 KB)
sudo modprobe rtl8723be
Code:
modprobe: ERROR: could not insert 'rtl8723be': Invalid argument
sudo ifconfig wlan0 up
Code:
wlan0: ERROR while getting interface flags: No such device
Please guide me further how exactly I should proceed
 
Old 09-26-2016, 01:06 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
invalid argument? Something is odd for sure. At worse that should have been module not found.

$ egrep -r -i rtl8723 /etc/modprobe.d/*

$ dmesg

$ sudo modinfo rtl8723be

Seems like you have "options" being passed to rtl8723be if it's error-ing on invalid instead of missing. My hp stream 11 has this chipset and aside from having to use outside of distro sources and firmware (for stability), it works fine.
 
Old 09-26-2016, 01:24 PM   #6
Abhishek112525
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
egrep -r -i rtl8723 /etc/modprobe.d/*
Code:
/etc/modprobe.d/rtl8723be.conf:options rtl8723be ant_sel=2 fwlps=0 ips=N swenc=Y msi=1 swlps=0
/etc/modprobe.d/rtl8723be.conf~:options rtl8723be ant_sel=2 fwlps=0 ips=N swenc=Y msi=1
sudo modinfo rtl872323be
Code:
modinfo: ERROR: Module rtl872323be not found.
I have attached the output of dmesg in a text file since the output could not be posted here due limitation in number of lines.

Please guide me further.
Thanks!
Attached Files
File Type: txt dmesg.txt (92.3 KB, 5 views)
 
Old 09-26-2016, 04:48 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Put a # in front of the lines in that file in /etc/modprobe.d/rtl8723be.conf. This will comment it out so it doesn't get used (after a reboot).

Otherwise ubuntu vivid is a bit old. It works out of the box for me on debian 8 / jessie. Caveats, unstable after an hour or more without updating the driver and firmware. Out of the box and flawless on fedora 23 for me. Otherwise the lwfinger github repo for rtlwifi_new and the newest firmware from kernel.org (manually installed).

I don't know if you noticed, but you used modinfo on rtl872323be not rtl8723be.

You should be able to bypass the options thing if you use the insmod on the kernel module file directly.

$ sudo insmod $(find /lib/modules/$(uname -r)/ -iname '*rtl8723*ko*')

Or just comment that line from the .conf and reboot and modprobe it. If it doesn't load at boot when it doesn't fail.

$ lsmod | grep -i rtl

From your dmesg:

[ 15.011444] rtlwifi: module verification failed: signature and/or required key missing - tainting kernel

Seems that your driver didn't pass the verification step. I'm not sure if that's a secure boot thing or if you need to depmod -a and other old school steps. Perhaps reinstalling the kernel would help. By distro means hopefully.
 
Old 09-27-2016, 04:35 AM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Not sure if this one will help, try the link below:

http://unix.stackexchange.com/questi...r-wireless-usb
 
Old 09-27-2016, 03:31 PM   #9
Abhishek112525
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
I tried adding # before the line then rebooting and again running sudo modprobe rtl8723be, but with no success.

sudo modprobe rtl8723be
Code:
modprobe: ERROR: could not insert 'rtl8723be': Invalid argument
I had mistyped rtl872323be, After typing correctly I get the following output:

sudo modinfo rtl8723be
Code:
filename:       /lib/modules/3.19.0-69-generic/kernel/drivers/net/wireless/rtlwifi/rtl8723be/rtl8723be.ko
firmware:       rtlwifi/rtl8723befw.bin
description:    Realtek 8723BE 802.11n PCI wireless
license:        GPL
author:         Realtek WlanFAE	<wlanfae@realtek.com>
author:         PageHe	<page_he@realsil.com.cn>
srcversion:     2DA37D00E0E770F2130B511
alias:          pci:v000010ECd0000B723sv*sd*bc*sc*i*
depends:        rtl_pci,rtlwifi,btcoexist,mac80211
vermagic:       3.19.0-69-generic SMP mod_unload modversions 
parm:           swlps:bool
parm:           swenc:using hardware crypto (default 0 [hardware])
 (bool)
parm:           ips:using no link power save (default 1 is open)
 (bool)
parm:           fwlps:using linked fw control power save (default 1 is open)
 (bool)
parm:           msi:Set to 1 to use MSI interrupts mode (default 0)
 (bool)
parm:           debug:Set debug level (0-5) (default 0) (int)
parm:           disable_watchdog:Set to 1 to disable the watchdog (default 0)
 (bool)
parm:           ant_sel:Set to 1 or 2 to force antenna number (default 0)
 (int)
sudo insmod $(find /lib/modules/$(uname -r)/ -iname '*rtl8723*ko*')
Code:
insmod: ERROR: could not insert module /lib/modules/3.19.0-69-generic/kernel/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko: Invalid parameters
perhaps it was taking rtl8723ae

So I also tried the following:
sudo insmod $(find /lib/modules/$(uname -r)/ -iname '*rtl8723be*ko*')
Code:
insmod: ERROR: could not insert module /lib/modules/3.19.0-69-generic/kernel/drivers/net/wireless/rtlwifi/rtl8723be/rtl8723be.ko: Invalid parameters
Also,
lsmod | grep -i rtl
Code:
rtl_pci                40960  0 
rtlwifi               102400  1 rtl_pci
mac80211              720896  2 rtl_pci,rtlwifi
cfg80211              532480  2 mac80211,rtlwifi
So I am completely clueless now.. Do I have to reinstall kernell?
If so please help me how to do it as I am a complete newbie in this area, and whether I would lose any data in the process.

Thanks!
 
Old 09-27-2016, 04:33 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
What's the dmesg output after the insmod?

$ dmesg

Invalid parameters is odd since you're not technically passing any parameters(i'd suspect missing firmware). The output of dmesg might shed some light about what is actually going on. Or cut your losses and re-install or use a different kernel, that one is obviously not working for you.
 
Old 09-27-2016, 04:41 PM   #11
Abhishek112525
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
I have attached the file containing the output of dmesg
Attached Files
File Type: txt dmesg.txt (76.8 KB, 4 views)
 
Old 09-28-2016, 11:19 AM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Per the dmesg, a lot of symbol not founds. Which implies that your driver was not compiled against your kernel.

$ sudo apt-get install linux-image-amd64 linux-headers-amd64

$ mkdir temp_wifi
$ cd temp_wifi
$ git clone https://github.com/lwfinger/rtlwifi_new
$ cd rtlwifi_new
$ make
$ sudo make install
$ sudo shutdown -r now

Assuming the build doesn't fail. Ubuntu Vivid (15.04) is kind of dated. The wifi firmware that came out July-ish 2015 fixed my stability issues with my rtl8723be. It worked before that, but would lose connection after an hour or two, and progressively shorter amounts of time after that if I didn't reboot.
 
Old 09-28-2016, 11:28 AM   #13
Abhishek112525
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
I am getting the following error:-
sudo apt-get install linux-image-amd64 linux-headers-amd64
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-amd64 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package linux-image-amd64
E: Package 'linux-headers-amd64' has no installation candidate
 
Old 09-28-2016, 11:40 AM   #14
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
$ apt-cache search --names-only headers | grep -i linux

If you don't have the headers for the kernel that you're using you cannot compile against it. Otherwise re-install that kernel and hope the drivers that came with it works.

$ sudo apt-get install --reinstall linux-image-amd64

Or whatever package name applies based on distro search results.
 
Old 09-28-2016, 02:49 PM   #15
Abhishek112525
LQ Newbie
 
Registered: Sep 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
I am not sure which package you are mentioning to reinstall
I ran the following command in the terminal:-

apt-cache search --names-only headers | grep -i linux

I get the output as in the attached file.

I don't get what exactly do I have to change
Coz when I run
sudo apt-get install --reinstall linux-image-amd64

I get the output
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-amd64
Please help!
Attached Files
File Type: txt result.txt (37.9 KB, 2 views)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless not working in Backtrack 5r3 - wlan0 stopped bring recognized. RedKarma Linux - Wireless Networking 1 10-02-2013 12:40 PM
[SOLVED] Wireless not working - wlan0 missing brandonmat Linux - Wireless Networking 12 10-02-2013 09:44 AM
wireless card ifup-wlan0 missing geek1234 Linux - Wireless Networking 1 12-04-2007 12:27 PM
Netgear WG111T Wireless USB Adapter Missing wlan0 nisgar2k Linux - Hardware 3 08-21-2007 04:59 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 06:39 PM


All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration