Skip to content

Instantly share code, notes, and snippets.

Sagar Karandikar sagark

View GitHub Profile
View keybase.md

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 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
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.
[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 Jun 14, 2012
/etc/bumblebee/bumblebee.conf modifications
View thinkubuntu-5
Driver=nvidia
KeepUnusedXServer=true
PMMethod=none
@sagark
sagark / thinkubuntu-4
Created Jun 14, 2012
Setting up hybrid-screenclone
View thinkubuntu-4
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 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)
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)
View thinkubuntu-2
sudo apt-get install xorg-dev
sudo apt-get install git
@sagark
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.