Monthly Archives: October 2014

Debian Jessie: Disable NVIDIA discrete graphic card in a NVIDIA Optimus laptop

Disabling NVIDIA discrete graphic card on a laptop running Debian Jessie is the same (in concept) compare to Debian Wheezy, however, the steps are a bit different.

1. First of all, install the bbswitch kernel module.

 # aptitude install bbswitch-dkms

2. Load the module.

 # modprobe bbswitch

3. Check the status of the NVIDIA graphic card (running or not).

 # cat /proc/acpi/bbswitch
0000:01:00.0 ON  <-- The card is running

4. Disable the card.

 # tee /proc/acpi/bbswitch <<<OFF

5. Check the status of the card again.

 # cat /proc/acpi/bbswitch
0000:01:00.0 OFF  <-- The card is no longer in use

6. To disable the graphic card at boot.

# echo "bbswitch" >> /etc/modules-load.d/bbswitch.conf
# echo "options bbswitch load_state=0" >> /etc/modprobe.d/bbswitch.conf
# update-initramfs -u

See the project website for more info regarding the module: https://github.com/Bumblebee-Project/bbswitch

To see the battery consumption of your laptop (remember to remove the power cord).

awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now

参赛

21st.PIBDC.2014

近日来,心情的波动太大了,上下起伏得让我非常的难受。工作上的我一笑置之,生活上的我却没办法放下。计划要去比赛,舞伴不想。之后她想去了,我也以为可以成真了。可昨晚,一轮在whatsapp上的争论后,我的心情大受影响。反复思考了再思考,刚刚我向她告知不参赛的决定。很不容易的决定,但我想应该是正确的。我们的想法、观点实在相差太远。沟通上也因为语言的障碍而事倍工半。勉强参赛,只怕会有更多的争执,怕连朋友都做不成吧。做出了这不参赛的决定后,我已没有把握还有参赛的机会了。该痛快的哭一场吧?可我只能苦笑,一直都是这样。