Showing posts with label Ubuntu/Linux Tips. Show all posts
Showing posts with label Ubuntu/Linux Tips. Show all posts

Saturday, January 28, 2012

AMD Catalyst 12.1 Driver on HP Pavilion dv6t-6100 CTO Quad (LM720AV) Hybrid Radeon with Linux Mint 12 / Ubuntu 11.10 Oneiric

I found a way to fully use the powerful AMD/ATI Radeon 6770M Hybrid Graphics Card inside HP Pavilion dv6t Quad Edition in Linux Mint 12 / Ubuntu 11.10 Oneiric. Thanks to the comment by Linux Hybrid Graphics blog!

Right now, I have configured by AMD hybrid graphics laptop to use the Radeon card when on AC power (and get dramatically improved 3D rendering performance), and use the Intel built-in card when on battery power. I'm not sure if I will actually ever need the 3D since I almost never do 3D gaming on Linux, I mainly work as programmer. But the functionality is there and ready. :-)

Here's my steps to get it to work:
  1. First, if you use vgaswitcheroo to switch off the dedicated Radeon graphics card, disable the command in /etc/rc.local by commenting it :
    #echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
  2. Install additional prerequisite packages:
    sudo apt-get install linux-headers-generic dkms
  3. On 64-bit systems, create a symlink from /usr/lib64 to /usr/lib :
    sudo ln -svT lib /usr/lib64
  4. Follow the steps in Installing Catalyst Manually from AMD/ATI Website.
    In AMD/ATI Catalyst Linux Driver download page, make sure to download new AMD Catalyst Linux Driver version 12.1 (aka 8.930) or newer
  5. Use the Intel i915 VAAPI driver to get hardware accelerated decoding when playing videos using VLC, to install:
    sudo apt-get install i965-va-driver
  6. If you mess up the system, follow instructions in ATI driver re-install fail.
After reboot, your laptop should work just fine.
I have several minor issues (not a blocker by any means):
  • I still experience video tearing, even after I do:
    sudo aticonfig --sync-video=on
    and turned VSync sldier to Always On in AMD Catalyst Center.
    Maybe it's because I need to do this configuration on the Intel card?
  • KDE 4.8.0 multi-monitor setup is acting weird on the Radeon card only. It does detect multiple monitors, and can configure the resolution, position, etc. but doesn't detect that it is using multiple monitors, i.e. maximizing/full-screen-ing windows make it fill the whole desktop, not just one screen.
    This is a bit annoying as I watch movies a lot on a 32" HDMI LCD TV but still want to browse or do other stuff on the laptop while watching.

    KDE 4.8 multi-monitor setup works flawlessly when the Intel card is active.
I'll give an update when I've got more news on them...

Find tips to optimize your Ubuntu 11.10 in Ubuntu Unleashed 2012 Edition: Covering 11.10 and 12.04 (7th Edition) !

Tuesday, December 6, 2011

How to Fix GNOME 3 Shell Screen Blanking / Monitor Turned Off in Ubuntu 11.10 Oneiric / Linux Mint 12

In my AMD/ATI Radeon-powered HP dv6t Quad Edition notebook, sometimes the screen is blank or the LCD monitor turned off and it cannot turn itself on again.
This did not happen in GNOME 2 / Ubuntu 10.04 Natty / Linux Mint 11, and happens only after I upgraded to GNOME 3 / GNOME Shell / Ubuntu 11.10 Oneiric / Linux Mint 12.
To solve this problem when the screen is blank:
  1. Press Ctrl+Alt+F1 (to go to the console).
  2. Close the laptop lid.
  3. Reopen the laptop lid.
  4. You should be able to see the Linux console. Enter your username and password to login.
  5. Type:export DISPLAY=:0
    xset dpms force on
    ( Note : if you type "xset q" right after the "export" command, you'll notice that "Monitor is Off", which is both strange and scary )
  6. Press Ctrl+F7 to go back to your desktop.
Note that you may need to change your Power Settings, so that it will do nothing when the laptop lid is closed.
You may also want to configure your Screen Settings to disable turning off the screen.
I have not yet found a more permanent, properly working solution. So right now the above is a temporary hack that works.
You can learn more about Ubuntu and Linux Mint in Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) !

Thursday, December 1, 2011

How to Fix Error: bash: warning: setlocale: LC_CTYPE: cannot change locale (id_ID.UTF-8) in Ubuntu 11.04 / Linux Mint 12

If you get error/warning message similar to this when press Tab for bash command autocompletion :

bash: warning: setlocale: LC_CTYPE: cannot change locale (id_ID.UTF-8)

Solution is:
  1. Install the required locale. In my case this is the "id" :

    sudo apt-get install language-pack-id

  2. Reconfigure locales:

    sudo dpkg-reconfigure locales

Now bash Tab completion should work just fine. :-)

You can learn more about Ubuntu and Linux Mint in Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) !

Wednesday, November 30, 2011

How to Restore Notebook Synaptics/Touchpad Not Working in Ubuntu 11.10 Oneiric / Linux Mint 12 Lisa

Sometimes the desktop in several Linux distributions freezes for no apparent reason; active windows can still be used, and the mouse pointer can be moved around, but clicking is impossible. Furthermore, your touchpad can no longer be controlled; the ‘Touchpad’ tab disappears from the System / Preferences / Mouse menu. Even if mouse functionality eventually returns, the touchpad remains uncontrollable. This extremely annoying bug occurs randomly and may last for a couple of seconds, or until you restart your X server.

I am facing this problem on a HP Pavilion dv6 Quad Core Edition on Linux Mint 12 Lisa 64-bit.

If you check your system’s log after such an event (/var/log/messages) you will notice a few entries similar to these:

Sep  9 09:38:15 umbra kernel: [ 4939.006198] psmouse.c: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
Sep  9 09:38:15 umbra kernel: [ 4939.012220] psmouse.c: DualPoint TouchPad at isa0060/serio1/input0 - driver resynched.

Basically this indicates an IRQ conflict between your mouse and your touchpad. This is a Linux kernel bug (I am currently using 2.6.28) and as such it affects most distributions. An easy way to recover both mouse and touchpad functionality without having to restart your X server is restarting the mouse driver. Run the following commands on a terminal window:

sudo rmmod psmouse
sudo modprobe psmouse

If there is no terminal window open, you can use one of the following:

  • In Gnome or KDE, press Alt + F2, type gnome-terminal and press Enter
  • Press Control + Alt + F1, login with your username and password, type the commands, then press Control + Alt + F7 to get back to X

Hopefully a future kernel release will fix this problem for good.

You can learn more about Ubuntu in Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) !

Source: http://xpapad.wordpress.com/2009/09/09/dealing-with-mouse-and-touchpad-freezes-in-linux/

Sunday, October 9, 2011

How to Fix Adjust Screen Backlight of HP dv6t Quad Core Edition with ATI/AMD Radeon HD in Ubuntu/Linux Mint 11.04

Hp-dv6t-quad-core-edition-ati-
If you're looking to fix LCD screen backlight adjustment controls in HP dv6t Quad Core Edition notebook with Intel Core i7 2630QM and powered by ATI/AMD Radeon HD 6770M Switchable/Hybrid Graphics Card, here's the tutorial for you.


For a few problems, I have posted solutions on how to run Ubuntu / Linux Mint 11.04 on HP dv6t Quad Core Edition with ATI/AMD Radeon HD 6770M Switchable Graphics Card.
To fix adjusting monitor/screen backlight functionality with Fn/action keys, follow these steps:
1. Add the Kamal PPA repository that contains patched Linux kernel and gnome-power-manager :
sudo add-apt-repository ppa:kamalmostafa/linux-kamal-mjgbacklight
2. Upgrade your packages (especially linux-* and gnome-power-manager packages)
sudo apt-get update
sudo apt-get upgrade
3. Edit the GRUB2 boot parameters in /etc/default/grub to add acpi_vendor=backlight , as follows:
GRUB_CMDLINE_LINUX_DEFAULT="splash acpi_backlight=vendor"
GRUB_CMDLINE_LINUX="acpi_backlight=vendor"
4. Update GRUB configuration:
sudo update-grub
Reboot Ubuntu / Linux and you should have LCD monitor screen backlight adjustment fully working!
I am now very happy with this HP dv6t Quad notebook! Very powerful, good battery life, cool-looking, and runs Linux quite flawlessly :-)
Find tips to optimize your Ubuntu 11.04 in Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) !

How to Run Ubuntu / Linux Mint 11.04 on HP dv6t Quad Core Edition with ATI/AMD Radeon HD 6770M Switchable Graphics

Hp-dv6t-quad-core-edition-ati-

I just upgraded my notebook to a HP dv6t Quad Core Edition (September 2011) with Intel Core i7 2630QM and powered by ATI/AMD Radeon HD 6770M Switchable/Hybrid Graphics Card.

Running Ubuntu / Linux Mint 11.04 64-bit on it has a few problems like:

  • cannot boot Live CD / Live USB installer
  • crash / kernel panic during boot / stack trace regarding radeon module
  • cannot control screen backlight
  • screen is blank (completely dark black)
  • CPU / VGA / graphics / notebook fans are always on
  • power usage is high / sucking up battery / battery life is short
Fortunately, there are solutions and I will post how to solve them in this article series.

First of all please check your BIOS (press F10 during boot) to see if there's a switch for Switchable Graphics to Fixed/Dynamic. Or check if you have BIOS version F.1A or later.

If so then the switch feature should be there.

If not then I suggest upgrading to the latest BIOS from HP website. Please contact HP for further information as I cannot provide support on this.

Which mode should you pick? In my experience either Fixed or Dynamic works fine, what matters most is blacklisting radeon kernel module/driver.

To launch the Ubuntu 11.04 / Linux Mint 11 (Katya) Live CD / Live USB installer properly, at the GRUB2 boot choices screen press "e" or <Tab> (if you use unetbootin) to edit the GRUB2 boot command as follows:

  • remove : splash quiet
  • add (before "--") : radeon.modeset=0 rdblacklist=radeon xdriver=i915
I haven't tested which exact switches actually make the difference. If installer still hangs / crashes / blank screen, go to the BIOS and switch from Fixed to Dynamic and vice versa, then try again.

If you already installed Ubuntu / Linux Mint, follow these steps to blacklist radeon kernel module driver:
  1. Boot using Recovery choice (when prompted by GRUB2), or use Live CD / Live USB installer
  2. As root, create file /etc/modprobe.d/blacklist-radeon.conf with the following contents:blacklist radeon
  3. Save the file and reboot.
Now you should be able to boot into Linux GUI / GNOME / X Server properly with the Intel Graphics card driver.

However even though you are using Intel graphics, the AMD/ATI Radeon HD 6770M graphics card is still powered on, consuming precious battery life.

To power off ATI Radeon HD card, as root, edit the file /etc/rc.local and append (before "exit 0") :

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

Save the file and reboot. Now you should have better battery life.
To check the Intel / ATI switchable graphics power state you can use:

$ sudo cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :Off:0000:01:00.0

The "1:DIS: :Off" means the discrete graphics (ATI Radeon HD) is powered off, so it's deactivated and not consuming any power.

Right now pretty much everything (except the ATI Radeon HD graphics card, which I'm not interested in activating right now) is working on my notebook/laptop.

Next what we can also fix screen / backlight display brightness setting not working. Watch this space for updates. :-) UPDATE: Solution found!

Find tips to optimize your Ubuntu 11.04 in Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) !

Thursday, May 26, 2011

Linux Mint 11 "Katya" Ubuntu-based OS released

The Linux Mint development team has announced the release of version 11 of Linux Mint – the project's latest major release of its Ubuntu-based Linux distribution. Code-named "Katya", Linux Mint 11 is based on Ubuntu 11.04 "Natty Narwhal" and includes the 2.6.38 Linux kernelLinux 2.6.39 was released one week ago.

I highly recommend Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) for learning more about Linux Mint and Ubuntu.

Linux Mint Logo

Unlike the latest version of Ubuntu upon which it is based, the distribution features the GNOME 2.32 desktop environment, as well as the traditional Linux Mint desktop layout – Ubuntu uses Unity, developed in-house by the Ubuntu developers, as its default desktop. In an email, Linux Mint Founder and lead developer Clement Lefebvre previously told The H that the developers initially wanted to use GNOME 3, however, "With GNOME 2 we could rely on one of the most stable desktops available, full compatibility with GTK (on which most applications including our own tools are developed) and our current themes."


Linux Mint 11 features the GNOME 2.32 desktop environment, as well as the traditional Linux Mint desktop layout.

Other changes include a faster update manager with several user interface improvements, updates to the desktop settings tool, and a "much more polished" software manager. Software selection updates include replacing OpenOffice.org with the LibreOffice office suite, Banshee becoming the default music player and gThumb replacing F-Spot as the default photo application – Gwibber is no longer being installed by default.

Highlights of Linux Mint 11 :

  • Based on Ubuntu 11.04
  • Linux kernel 2.6.38
  • No Unity shell
  • GNOME 2.32.1
  • One-click installer for multimedia codecs and extra apps
  • Lots of improvements to The Software Manager tool
  • Performance improvements to The Update Manager tool
  • Various improvements to The Desktop Settings tool
  • A new set of wallpapers
  • mint-search-addon for Firefox 4, Chrome and Opera web browsers
  • Removed Gwibber
  • gThumb as default photo viewer
  • Banshee as default music player
  • LibreOffice 3.3 office suite
  • Overlay scrollbars
  • Updated Mint-X theme
  • Added 'apt download' command
  • Adobe Flash Player 10.2 plugin
  • Lots of bug fixes

More details about the release, including a list of known problems, can be found in a post on the Linux Mint Blog, in the release notes and on the New features in Linux Mint 11 page. Linux Mint 11 is available to download as a CD or DVD ISO image file for 32- and 64-bit systems from the project's site. A user guide and upgrade instructions are provided. The OEM Edition provides the same features as the standard version, but without including proprietary software, patented technologies or support for restricted formats.

Linux Mint aims to be user friendly and to provide a more complete out-of-the-box experience by including support for DVD playback, Java, plug-ins and various media codecs. It is currently the second most popular distribution on DistroWatch.com behind Ubuntu.

To learn more about Linux Mint and Ubuntu, the book Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) is highly recommended.

(Article copied mostly verbatim from H Online announcement.)