Skip to content

Instantly share code, notes, and snippets.

Sagar Karandikar sagark

Block or report user

Report or block sagark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sagark on github.
  • I am sagark ( on keybase.
  • I have a public key ASDs0w7MTFvscRjQ-ADSve3VAJ0tW3X8qm5ELs5czgffOAo

To claim this, I am signing this object:

sagark / thinkubuntu-7
Created Jun 14, 2012
Holding the package
View thinkubuntu-7
sudo -s
echo xserver-xorg-video-intel hold | dpkg --set-selections
sudo apt-get update
sudo apt-get upgrade
sagark / thinkubuntu-6
Created Jun 14, 2012
Running the Second Display
View thinkubuntu-6
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
View 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.
# The secondary Xorg server DISPLAY number
# 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.
sagark / thinkubuntu-5
Created Jun 14, 2012
/etc/bumblebee/bumblebee.conf modifications
View thinkubuntu-5
sagark / thinkubuntu-4
Created Jun 14, 2012
Setting up hybrid-screenclone
View thinkubuntu-4
git clone 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 / thinkubuntu-3
Created Jun 14, 2012
Patch/Install Intel Driver
View thinkubuntu-3
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)
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)
View thinkubuntu-2
sudo apt-get install xorg-dev
sudo apt-get install git
sagark / thinkubuntu-1
Created Jun 14, 2012
Install Bumblebee
View thinkubuntu-1
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
You can’t perform that action at this time.