Tuesday, February 17, 2015
Fuction keys for brightness not working in Ubuntu 14.04 and 16.04
Try adding the acpi_osi=\"!Windows 2012\" to the grub command line. You can do that by adding acpi_osi=\"!Windows 2012\" to the variable "GRUB_CMDLINE_LINUX_DEFAULT" in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=\"!Windows 2012\"
Then run "sudo update-grub"
Restart computer
Enjoy!
Friday, August 22, 2014
Posting code to your blog
For those interested in posting code to their blog this link is a pure treat http://www.craftyfella.com/2010/01/syntax-highlighting-with-blogger-engine.html
Installing opencv in Ubuntu 12.04
sudo apt-get install libopencv-dev libcv-dev
g++ `pkg-config --cflags opencv` codename.cpp `pkg-config --libs opencv` -o codename
# include <highgui>
#include "opencv2/highgui/highgui.hpp"
Friday, May 2, 2014
Visual studio 2012 and windows 7 compatability issues
Upon installing visual studio 2012 in windows 7 you may notice that it gives compatibility warning on running visual studio. It fix is plain simple. Just go to the following link and download and install the patch. And get cracking :D
http://www.microsoft.com/en-pk/download/confirmation.aspx?id=36020
http://www.microsoft.com/en-pk/download/confirmation.aspx?id=36020
Friday, April 4, 2014
Purple screen on windows start when dual booting with ubuntu
Recently i installed Ubuntu alongside windows 7 on my Dell 15R 5537. Initially everything worked fine but after some update perhaps; windows stopped working. On selecting windows from the boot menu, it would show a purple screen, however i could hear windows boot and its start screen. Googled for days but did not find an exact solution. Here is what I did
First try doing this
On the grub menu highlight the windows menu item using the keyboard and then press 'e' to the end of the line that begins with "set root= *******" add 'quiet splash' so that it becomes
"set root= ******* quiet splash"
now press ctrl + x
Does it solve the problem? If it did now you proceed to make the change permanent
Start ubuntu
press ctrl + alt + t to open up terminal
type 'sudo gedit'
in the editor navigate to /boot/grub/grub.cfg and open the file
In the file select the menu entry for windows and copy it
Now open the file /etc/grub.d/40_custom
Paste the menu entry that you copied previously after the comments on a new line
In the menu entry add the "quiet splash" as done before
Save the file
Now run
sudo update-grub
Reboot, enjoy!
First try doing this
On the grub menu highlight the windows menu item using the keyboard and then press 'e' to the end of the line that begins with "set root= *******" add 'quiet splash' so that it becomes
"set root= ******* quiet splash"
now press ctrl + x
Does it solve the problem? If it did now you proceed to make the change permanent
Start ubuntu
press ctrl + alt + t to open up terminal
type 'sudo gedit'
in the editor navigate to /boot/grub/grub.cfg and open the file
In the file select the menu entry for windows and copy it
Now open the file /etc/grub.d/40_custom
Paste the menu entry that you copied previously after the comments on a new line
In the menu entry add the "quiet splash" as done before
Save the file
Now run
sudo update-grub
Reboot, enjoy!
Sunday, January 13, 2013
Root HTC Wildfire S
Wasted a day of my life trying out links that never worked.
This link was a life saver
http://forum.xda-developers.com/showthread.php?t=1702542
Saturday, January 12, 2013
Missing power option in Ubuntu 12.04
There is a feature/bug in Ubuntu 12.04 that does not let you choose actions on critical battery. I finally found a solution to the problem
As it turns out the option can be set if you use the non-GUI method. For those who wish that the laptop suspends instead of hibernate (defult action). You should use
NOTE: sudo is not required
gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action 'nothing'
gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action 'suspend'
Labels:
Bugs,
hibernate,
power options,
suspend,
terminal,
ubuntu 12.04
Subscribe to:
Posts (Atom)