I'm using HP Pavillion dv6 and some time ago I decided to install Linux on it. I've heard a lot of positive feedbacks about Ubuntu distribution, it's ease of use, good support and great community. The choise was made. But right from the start I faced some problems, and in this post I will describe how I've solved them.
Problem #1: Headphone jack don't work
Solution:
Open terminal and edit file analog-output-headphones.confsudo gedit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf
Modify the [Element Speaker] section as follows:
[Element Speaker] ; link to muting switch = mute ; set volume to zero, so only the master slider controls playback volume. This gives better linearity. volume = zero
Problem #2: Impossible to change brightness
Solution:
Open terminal ( Ctrl+Alt+T ) and type:
sudo gedit /etc/default/grub
You will find this line in the new opened window:
sudo gedit /etc/default/grub
You will find this line in the new opened window:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change it to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
Save and close the window and type this in the terminal:
Change it to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
Save and close the window and type this in the terminal:
sudo update-grub
This will update your grub and while rebooting your PC, it will set an extra parameter on the grub menu during boot. This problem might have occur on due to the upgrade on kernel.
This will update your grub and while rebooting your PC, it will set an extra parameter on the grub menu during boot. This problem might have occur on due to the upgrade on kernel.
Problem #3: Debuggers in C/C++ IDEs don't work properly
Solution:
I've tried some popular Linux IDEs like Geany, Code::Blocks, Monodevelop, Eclipse, CodeLite and I stopped on CodeLite or pure g++ & gdb & Sublime Text (or gedit).
Quick IDE overview:
- Geany don't have debugging option from the start but you can use a plugin called "Debugger". I experienced problem with it: user session was closing after the stopping of Debugger.
- Code::Blocks: I couldn't set up gdb to work with this IDE.
- I experienced some problems with either Monodevelop and Eclipse, but Eclipse is pretty good for C/C++ development. I just don't need so heavy IDE.
- CodeLite was working great directly from the start. It's light and comfortable for me. (http://codelite.org/)
- But for simple projects I prefer Sublime Text + g++. (http://www.sublimetext.com/)