Skip to content

Instantly share code, notes, and snippets.

View sagark's full-sized avatar

Sagar Karandikar sagark

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sagark on github.
  • I am sagark (https://keybase.io/sagark) on keybase.
  • I have a public key ASDs0w7MTFvscRjQ-ADSve3VAJ0tW3X8qm5ELs5czgffOAo

To claim this, I am signing this object:

@sagark
sagark / thinkubuntu-7
Created June 14, 2012 19:58
Holding the package
sudo -s
echo xserver-xorg-video-intel hold | dpkg --set-selections
sudo apt-get update
sudo apt-get upgrade
@sagark
sagark / thinkubuntu-6
Created June 14, 2012 19:54
Running the Second Display
optirun true
##(this starts the xserver and the settings you've modded above will prevent bumblebee from shutting it off)
xrandr --output LVDS1 --auto --output VIRTUAL --mode 1440x900 --right-of LVDS1
##(this activates the virtual screen on the intel chip - a 1440x900 external display placed to the right of the laptop's internal display)
screenclone -d :8 -x 1
@sagark
sagark / bumblebee.conf
Created June 14, 2012 19:48
bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes
## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=true
@sagark
sagark / thinkubuntu-5
Created June 14, 2012 19:46
/etc/bumblebee/bumblebee.conf modifications
Driver=nvidia
KeepUnusedXServer=true
PMMethod=none
@sagark
sagark / thinkubuntu-4
Created June 14, 2012 19:40
Setting up hybrid-screenclone
git clone git://github.com/liskin/hybrid-screenclone.git
cd hybrid-screenclone
sudo make
sudo cp screenclone /usr/bin/
sudo chmod +x /usr/bin/screenclone
sudo cp xorg.conf.nvidia /etc/bumblebee/xorg.conf.nvidia
sudo rm /etc/X11/xorg.conf
@sagark
sagark / thinkubuntu-3
Created June 14, 2012 19:31
Patch/Install Intel Driver
sudo apt-get build-dep xserver-xorg-video-intel
sudo apt-get source xserver-xorg-video-intel
cd xserver-xorg... #(the source you just downloaded, tab to autocomplete)
wget https://raw.github.com/liskin/patches/master/hacks/xserver-xorg-video-intel-2.18.0_virtual_crtc.patch
patch -p1 < xserver-xorg-video-intel-2.18.0_virtual_crtc.patch
sudo dpkg-buildpackage -b
cd ..
sudo dpkg --install xserver-xorg-video-intel_2.17.0-1ubuntu4_amd64.deb #(again, tab to autocomplete will let you avoid typing this long name)
@sagark
sagark / thinkubuntu-2
Created June 14, 2012 19:26
Dependencies
sudo apt-get install xorg-dev
sudo apt-get install git
@sagark
sagark / thinkubuntu-1
Created June 14, 2012 19:24
Install Bumblebee
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia