Sunday, October 07, 2012

A Fix for Broken Autohide in Unity's Launcher

If you've recently updated your Nvidia graphics driver and Unity's launcher bar no longer awakens from auto-hide, this is a known bug in the driver. Rather than revert to an earlier version, a simple addition to xorg.conf fixes the problem nicely.

if /etc/X11/xorg.conf is missing, create it with these lines:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "ConstrainCursor" "no"

If xorg.conf does exist, simply add 

Option         "ConstrainCursor" "no"

to Section "Device" where the nvidia information is stored.

Restart Xorg by logging out and back in. 

Of course, you can just put up with it like I did by waking the launcher with the Super key (Windows key usually). Or you can turn auto-hide off.

Thanks to Doug McMahon for this tip!

No comments: