Monday, May 6, 2013

Disable internal display for chipset using i915 driver on Linux

Just found a quick way for disabling internal display on i915.

Using command modinfo i915, there will be an options called panel_ignore_lid.

According its description, panel_ignore_lid:Override lid status (0=autodetect [default], 1=lid open, -1=lid closed) (int).

So create a new file under /etc/modprobe.d name it i915.conf

Adding following:

options i915 panel_ignore_lid=-1

You are done! (Don't forget to reboot)

Monday, March 11, 2013

Tango Dark theme for OS X Terminal

Honestly, I really liked iTerm2, it has much nicer style than the built-in Terminal app in OS X. However, it does crash a lot. So that's why I have to switch back to the built-in Terminal app which is really stable, but don't have any good looking built-in themes.

So I decided to port the Tango Dark theme from iTerm2 back to the built-in Terminal. I also used the same font and line-spacing as iTerm2 did, so that makes the Terminal itself really looks like iTerm2.


Here is the link

https://github.com/kevinxucs/Tango-Dark.terminal

Hope you like it.

Friday, February 1, 2013

Purdue Course Parser Library

Purdue Course Parser is a Java library separated from Purdue Assistant which was an Android project I did in my freshman year.

What the library does is basically retrieve course information from myPurdue website. I am doing some rewriting and polish to the library so that it has built-in threading function by using callback style function calls. And it can process multiple course search requests simultaneously.

Here is a link to my code on github. Any help will be appreciated. Detailed description is on github too.