Thursday, August 1, 2013

Setting up HP Pavilion G6-2313AX on Ubuntu 12.04 with led and button working :-)

Hello,

             I recently purchased the HP Pavilion G6-2313AX from flipkart, the specs of the laptop got me into buying it and well the advertisements that flipkart issues on the right panes of it's pages.


I had successfully installed Ubuntu 12.04 with everything working, that's right even the bluetooth, led light and wifi on/off button. This tutorial is for all those people who are struggling to run linux in the laptop.

Files you'll need to download :

Wireless Driver

Bluetooth Driver

Please note that these drivers stop working after Kernel 3.2 and you'll start getting kernel panics, you can try any linux distribution but i recommend Ubuntu 12.04 LTS at the moment as it will be supported till 2017 which is feasible even if the driver doesn't get fixed.

First we'll need to get the build environment ready in order to compile anything :

(You can skip this step if you know you have the neccessary build tools)
 

Open up a terminal window and type the following in it:


sudo apt-get install linux-headers-$(uname -r) linux-headers-generic build-essential dkms  


Now that the tools required to compile are installed, we can proceed with compiling the drivers.

Open up a terminal and cd to the directory in which the files mentioned in the links above were downloaded and execute the following commands :  

tar -xvf 2012_0508_RT3290_Linux_STA_v2.6.0.0.tar.bz2
cd 2012_0508_RT3290_Linux_STA_v2.6.0.0
make
sudo make install
sudo modprobe rt3290sta

If the last command executes successfully then everything installed correctly and we're good to go ahead with installing the bluetooth driver.

Now in the same directory execute the following commands :

tar -xvf NB087_BT_ubuntu_release.tar.bz2
cd NB087_BT_ubuntu_release
cd rtbth_3.9.3
cd rtbth_3.9.3
make
cp rtbth.ko ~/bluetooth cd ..
cd ..
cp rtbt.bin /etc/Wireless/RT3290
cp rtbt.bin ~/bluetooth
cp 49rtbt /usr/lib/pm-utils/sleep.d/
cd ~/bluetooth gedit bluetooth.sh

Now copy the following and paste it into the gedit window to make the script for initiating the bluetooth driver

#!/bin/bash insmod rtbth.ko mknod /dev/rtbth c 192 0 ./path/to/the/file/rtbt.bin exit 0

Now we need to execute the script during boot, this can be done by editing the /etc/rc.local file as done below :

gksu gedit /etc/rc.local

Now copy and paste the below commands in the gedit window before exit 0.

cd /home/YourName/bluetooth/
sh bluetooth.sh

Restart your computer and if everything wen't perfectly the bluetooth and wifi on/off button should work.

Please do let me know if you are facing problems with the above mentioned steps or i have made a mistake in this post and +1 if you like my work.

Thank You!

Saturday, June 16, 2012

Beginning of a beginning

The Beginning of a Beginning...........


This is a humble beginning of my blog, and well frankly i don't quite know what it's gonna be about ( P.S I decided to start a blog just because recently blogging has become quite a fashion and most of my colleagues and friends are actively involved in) but it's gonna be mostly about Tech. around me and people too.

Oh sorry! I forgot to introduce myself to you who is currently reading this blog, (basic courtesy of course)
i was planning to submit a C.V. here but it just wasn't good enough so i decided to shorten it out :

Mohit Tokas, 19
Engineering Student Currently Enrolled in PDM College Of Engineering, Bahadurgarh
Currently living in Dwarka, New Delhi

uhhh....... i think that should be enough, there's no reason you would be interested in knowing about who i am.

It's 3:00 P.M. and i am still trying to get the game Diablo 3 to work on my PC(Thanks to SKIDROW), nothing much has been going lately as my college is off and i have got absolutely nothing to do. The first thing in my mind is to get my blackberry fixed, its a bold 9700 and has somewhat weak reception. For the last 5 days or a week or so my phone is reported switched off when i'm at home, thanks to the damn thing. I had a chat with my cousin who owns a shop in Saket, according to him it's just a mere problem in the antenna and it could be fixed no more than Rs. 100. I'll get back to him as soon as i think of another reason to visit him.......

I must be leaving now.............

Happy Blogging