#FIX Ubuntu: Realtek 8723BE Weak WiFi

So, I bought my new Laptop on November 2015,  two months after my old Lenovo Z510 was stolen. And this is a hp pavillion with i5 6200U ULV Processor. Well, I couldn’t tell how much frustrating it was to downgrade from Ravaging quadcore i7 to an i5 that has only 2 cores. However, it couldnt be helped and I gotta improvise now.

Now, this laptop came with preinstalled Windows 10 but I am pretty much a Linux guy,
you see. So I needed to get any Linux distro running on my system asap.
I chose Ubuntu over any other Linux distro (2nd fav Fedora 😀 ), cause I’m very much fond of it.

I dual booted my laptop with Win10 and Ubuntu 14.0.4 LTS. It was running on top of latest Linux kernel 3.8.11 , after successfully installing Ubuntu I noticed someting,
I found that my WiFi signal is weak.

Screenshot from 2016-08-11 16-23-14.png

I was completely Stunned at this cause I was just sitting next to my router and my WiFI signal is just two bars only. Not only that it was getting disconnected often due to poor signal. I thought my WiFi driver is not updated so I quickly updated them using following commands:

$ sudo add-apt-repository ppa:hanipouspilot/rtlwifi
$ sudo apt-get update
$ sudo apt-get install rtlwifi-new-dkms linux-firmware

But it Didn’t work . It was a frustrating experience and no solutions could be found.
I thought then this might be a hardware issue so, I booted back to Windows and there
it was all acting normally . I was clueless . I searched in Ubuntu Forums but did found no suitable solution to this problem.

I reinstalled Ubuntu with a version upgrade 15.04
But the problem remained at it was. I thought this maybe some bug in Ubuntu, So
I decided to give it a try with other distros, so one by one Solus, Fedora 23, RedHat, Mint
I installed all these but got the same WEAK wifi signal in not only Ubuntu but in every Linux Distros.

I understood that the bug is in the Linux Kernel itself. So i tried to upgrade the Kernel  to latest mainline version . Even after upgrading the kernel the problem remained.

Months have passed during al these . And there was still no solution to this problem.
I subscribed to every forum concerning this problem. One day, I found something on
a forum about my wifi driver RTL8723BE . A folk named Jerry Gorland wrote some
intereseting things about this problem .

“…for my particular case (HP Stream 11-r010 Cloudbook with N3050 Celeron and HP Model No. 792204-001 30x22mm M.2 Wi-Fi card): Moving the single antenna cable from one connector to the other (as shown in the attached diagram) solved the problem. This would explain why the laptop worked only when sitting right next to the Wi-Fi router: With Linux the card is configured to use the other connector compared to Windows. Now I am two floors up from my router and connected well with Xubuntu 14.04. With Xubuntu, all the hotkeys work…”

In his case the problem seem to have solved after he moved the single antenna cable to the other connector. If you gut-open your laptop then you would probably found something like this. This is the Wireless chip (wlan) inside our laptops and as you could see in the top-left corner of the picture there are two connectors there. By default the cable is connected to port 1 . But in this case as Jerry suggested we have to change it to port 2 .

HP_Stream_11_WIFI_792204-001_30x22mm_Use_Port_1_Instead.png

Well, Jerry’s solution was risky but it was effective. People around the world were saying this is working. But too bad for me is my Laptop is still in warranty period I couldn’t just
gut-open my laptop and operate on it. I had to think of some other solution.

So, I researched a lot and learned that this may be a problem with the Driver Configuration in modprobe . Because the configuration was set up wrongly so the modules weren’t correctly loading into the OS Kernel . I reported this to Realtek  but they didn’t seem to take any notice of it. But, the good thing about Opensource community is here people help each other.

Screenshot from 2016-08-27 02-49-04.png
A FOSS developer named Larry Finger (aka lwfinger) decided to take things into own hands. And he created a new repository and rebuilted the drivers for rtl8192ce, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, and rtl8821ae.

Now it was all good to go, downloaded the zip and then used simple make command to install it .

$ make
$ sudo make install

Now the problem should have been solved by now but somehow it remained . So, we figured it out that this still have the issue with the Antenna part . The hardware fixing part
was seemed impossible to avoid now. We did a last try using this command

$ sudo modprobe -rv rtl8723be
$ sudo modprobe -v rtl8723be ant_sel=2

It was an wild attempt to somehow manipulate the kernel to treat the 2nd antenna as active . And Guess what ?

IT WORKED  .

Quite miraculuosly! Did a quick scan around the networks . And it showed all networks with expected signal strength. But the setting wasn’t permanent after a reboot it’ll change back to default .

$ sudo iw dev wlp2s0 scan

But that is easy to handle . One just need to modify the modprobe configuration under root priviledge and save it as permanent.

$ sudo echo "options rtl8723be ant_sel=2" > /etc/modprobe.d/50-rtl8723be.conf

Signal strength is Excellent now! The Problem which consisted for so long a time period has now been solved. Finally : )
Screenshot from 2016-08-31 22-35-58.png

Life is all good now .

Humanity is Lost

Well, today I was travelling in train and as you probably know in India many hawkers and beggars could be seen in your train journey as free or improvised entertainment services, and sometimes the hawkers do actually come in handy but the Beggars Never .

Today, I encountered such dramatic experience that I think has had gone too far. I was sitting (not quite sitting you know the word ‘Improvise’ ) in general compartment.

When at Bolpur (Santiniketan) Station some kids got in. One girl probably 7 years old holding an infant child in one hand and some musical pebbles at other with the company of her another brother who is no more than 5 years in this planet.

They started their act (or not) as such, the infant child was crying helplessly, I looked into its eyes, it was heart-breaking sadness, and his elder sister was consoling him saying things like “Don’t cry baby, mamma is just there you see.. Don’t cry mamma is there..” (and pointing fingers accordingly ) with no absolute sign of their Mamma or Whomsoever she is.

The passengers can easily understand that who ever their Mother is, Is Either Dead or worse happened to her. And that leaves these kids totally insecure.

The act started growling, the young brother brought a toy with him. A fluffy rubbery plastic bird shaped toy with a hit sensor-ed dancing light mechanism in it.

He was hitting that toy on passenger seats and the light was twinkling and that made that infant child smile for a while. Then he put the head of that toy inside his mouth, chewing on it.

The sister took the toy from his brother and gave it to the infant and he also put it in his mouth the head of the bird was working like a nipple.

All this going on and the sister was repeatedly saying “mamma is there..mamma is here..” The brother was holding an empty stainless steel glass at other hand often biting and stretching the edges with hands and was giving creepy smiles frequently.

I was watching or rather observing this with rapt attention with both my hands resting on my lap. When Suddenly, the boy held the glass in front of me, actually touching my hands with it.

It was the time when you put some coins in that glass overwhelmed by emotions thinking about those unfortunate kids and how they’ll survive this cruel world!

I looked into his eyes and said No, I could’ve given them one rupee or two but that would have been gone in vain. Because Whosoever has sent them into this business actually wants this to happen.

The child started crying again, and nothing could stop it. I asked the sister to take him home . She didn’t answer.

They don’t even know counting to hundred, yet they were collecting money trading on human emotions risking their lives, their future, everything .

They  can get mid-day meal in any government primary school, if they are orphan then enormous clubs are there in Bolpur who would happily help them.

At the age when you are supposed to play childish games with friends, some people have thrown them in the gutter of the society. And instead learning counting to hundred they learned even more mature element of life – Lying .

Some people gave them some coins and they went to the next section repeating the same act recursively .

arv_poor_61047f1
The image is only for representation purpose and of not the ones mentioned in here.

That newborn came to our world only months ago, and just how did we Welcome him!??

Windows 10 and|vs Android Lollipop True Performance Test

Okay, Here’s a statistical experiment,

Every Computer is basically a Calculator.
And do you know how to push a calculator to its limit?

The FACTORIAL function. Obviously, there are some other methods but it is the easiest one indeed.
So, I compared the new Operating Systems like,
WINDOWS 10 and Android Lollipop with Python 3.4.3 IDLE.
Firstly I checked the Famous 65! (Ya! the limit of most of the
CASIO Calculators).Then eventually I increased the value and while in,
fact(171)
Lollipop just gave up already!
Windows 10 and Python IDLE were pretty good actually,
They just kept going. I have to admit this Windows 10 is better in terms of performance than the previous versions of Windows.
But at last in,
fact(3249)
Windows 10 gave up too.
Lollipop had just shown upto 6 decimal numbers then it summoned
the exponential function to save his ass. Windows 10 had proudly
shown upto 30 decimal numbers and then did the same.
But, on the other side Python didn’t stop at all.
As I expected.screenshot2b25285532529Operating Systems are the greatest abstractions made by the developers. Developers focus on the User Interface of an OS to make it as friendly as possible but that compromises some serious computing performance. So, as the Python IDLE actually work at hardware level, it gets to use the Quad CORE i7 Processor at its full potential. Wonder how much it scored?

Actually Python is not an abstraction, It basically shows how much
my Processor is capable of. But still for the stat lovers,
I have tested fact(1000000)
Yes! ONE MILLION . and moreover I got the result as it is, without any kinda exponential drag. See the numbers and the scroll bar in the picture. So, you guys now might have an idea of how much potential and power your Processors houses, and how less you get to use actually, because of these abstractions!!
We have to make more efficient codes in the future, till then use CLI instead of GUI for greater and richer Computation, if you already know it teach other people. Do not rely much on GUI based Operating Systems.

What is Life?

Life is a journey towards the end… Its a flow that proceeds through some kinda outrageous obstacles.
As for now, I’m in a train, heading home.. But who can say I’ll return?
The best I can answer is, ‘I’m coming..’. Not sure enough that I Shall, an uncertainty lies within our hearts. That Uncertainty keeps us all bound together. All the Co-passengers here are willing to reach their destiny as soon as possible.
And that huge amount of +ve energy is called The Society. And those who are waiting for us at the end of our journey, praying for us at end of our sufferings, those who care for us, so that we can reach our niche destinies safely and securely are sometimes called the fruits of Life, that is Love.
I mean to say, There is no life without danger, without uncertainty, without risks..
The fear of losing something, losing someone, the fear of never reaching our destiny make us feel alive.
Ain’t so? #ThinkOfIt

Found in a Soldier’s diary

This is a small poetry, which has been found in a Dead Soldier’s diary. I don’t know much of him, but i found this on facebook and wish to share it.
If I die In a war zone,
Box me up and send me home,
Put my Gun on my chest,
And tell my mom I did my

Best,

N Tell My Dad Not To Bow,
He Will Never Get Tension

From Me Now,

Tell My Bro Study
Perfectly,
Keys Of My Bike Will Be His

Permanently,

Tell my sis don’t be upset,
Her bro will not rise after
This Sunset,
Don’t Tell My Friends They Are
Hearties,
And start to ask for parties
Tell my Love not to cry
Cause I’m a Solider
Born to Die.
Respect our Soldiers .

The f__kin Secularism in India

>Old-post-alert! the author had written this when 17 years old, the author have grown much more mature now and do not hold the same view as before, that being said its still amazing to revisit this old posts for self analysis<
… .
People can’t be Secular.

Secularism is not a such thing, that could be poured into people’s mind with ease.
But wait, before you start judging me as a racist, I’ve to confess something.
You know Why do people need a Religion?
Its because people need a clear path to follow through his lifeline.
It gives them a steady pace in Life, a Rhythm, an Organised Way out. So that they Don’t have to find it out themselves. People just put themselves in one of the religion and done.
They start to follow the Rules and Regulations, the festivals, the Unity.
Once they get adapted with it, they can’t live without it. Gens after Gens follow the same path, and thus they grow the idea of living in a great society, where only like minded people stays. They Problem comes when they meet some other people from different community. They start judging and comparing the other ways of living.
When You are part of something, and you believe it with all your nuts, then you become possessive about it. Instead of using logic, you start growing up a blind faith.
That everything in your religion is the holiest and others are full of shits.
That everything you do in your religion is the most logical, others are full of misconceptions. Things get worse, when they start thinking it like,.. like,
Who will be the Last Man Standing??

Well, You know why i’m telling all this?
All that I’m trying to say is that,
People who chose different path of living the life, No matters if the two path meets the same end,
But as the Life is Path Integral of Faith,
You can’t force them to live together, You can’t force them to live alike, You can’t force them to be brothers.
The More You Say Secular, the Irony inside the word rings in.
Whenever someone says, He is Secular, an instant though comes to mind that, the man ain’t believe in any of the Religious Controversies.
The simple meaning of this is, The man is not a Pure Hindu, Pure Muslim, Pure Christian or Any other.
The Man isn’t showing respect to the way of life his predecessor used to follow.
The Man thinks himself as well educated, scientific minded.

But this is not true, even Einstein had said that, Science and Religion can’t live without each other.
Science and Religion are the two face of a coin.

Enough Contradiction, now whats the solution?
The solution is,
True Nationalism could only born if all the different people from different communities, be a part of a bigger Community.
The Solution is Replacing the “Secular” word from the Constitution with “INDIAN”..,
Thus, Every people could rear up their own religions, and as they are a Part of a Big One. They’ll start growing up possessiveness for this “INDIAN” -term.
Thus all the Hindu, Muslims, Christians, Sikhs, Buddhists will come under a Same Roof.

All the other countries will know them as,
Indian Hindu, Indian Muslims, Indian Christians, Indian Sikhs, Indian Buddhists.

Then and only then it’ll be possible to build a Great Society.

Thank You.

Yuvi’s Dilemma

Its Yuvi, for whom India lost the T20 World cup, though some people are still stuck at calling up his Previous records.
Although those Yorkers were not easy to handle but Yuvi is an International Batsman, Experienced Batsman. He had to practice for that. All of us knew that this Finale is never going to be easy. He had to be prepared for that as its not the first time he faced the Srilankan Bowlers. Dhoni too has some flaws, his ‘Reverse Psychology’ is not always do a favour as in that match. He had to send Raina instead of Yuvi or himself, he himself had wasted many bowls, When inform well settled Virat is Crying.
We The People of India make these Players Great! So we’ve the definite right to analyse and criticise them. And Why some people are accidentally falling in love with Yuvi? who haven’t scored good for a long time. In the tournament Just one day he’d played hardly Satisfactory. yuvraj-singh-latest-photos
Say me, If my father refused to go to office or unaccustomed to do work for the sake of illness then Will they still pay the salary by months to him??? If my father rests one day (after using all of the ‘Sick‘ holidays) then will they give him the Payment without any hesitation??? Its India Man, Be Practical.. In India, there are hefty of NGOs but still there are people – Starving.. One will be remembered by his success! not by his failures…in INDIA.. Its a damn truth.
No one had stood aside Sourav Ganguly when he had been eliminated by showing the official reason as, “He is now unaccustomed, his forms are down for long times“.. No one had cared for Rahul Dravid as well. Remember All men have their share of pains and Sympathising is not the way to Love or Respect..
So, Just don’t give the f__kin Emotional Shit… Men have to be the Fittest to Survive in Natural Selection. Mind it!!!

US Government Shuts Down NASA

Every Space Enthusiasts out there,
there is a Real Bad News awaiting you.

Did you hear it guys that NASA has been shut down entirely by the US Governs..
today, at a press conference,
President Obama told ” NASA will shut down almost entirely, but Mission Control will remain open to support the astronauts serving on the Space Station.” As Congress failed to approve a budget for federal agencies they’ve decided to shutdown NASA.. So as an instant effect, around 97% of NASA’s 18,000 employees are off the job. nasa_shutdown_twitter-crop-original-original
Twitter, Facebook, Google Plus and other social media accounts are going dark. NASA’s website is being pulled offline. NASA Television has also ceased broadcasting. this news is resulting in grievances spreading all over the world.
But some are hoping that soon it’d be retaken. but the MAVEN Mars Mission, which was all set to launch in November 18, has got postponed and delayed by sometime..