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上的争论后,我的心情大受影响。反复思考了再思考,刚刚我向她告知不参赛的决定。很不容易的决定,但我想应该是正确的。我们的想法、观点实在相差太远。沟通上也因为语言的障碍而事倍工半。勉强参赛,只怕会有更多的争执,怕连朋友都做不成吧。做出了这不参赛的决定后,我已没有把握还有参赛的机会了。该痛快的哭一场吧?可我只能苦笑,一直都是这样。

为什么

究竟是怎么了?好朋友怎么会突然间变得如此冷漠?我的心很痛、很难过……  对你的关爱,一切都是那么的真诚,为什么突然间……  见了面却是那么的陌生,发个信息也不见回复……  究竟是为什么呢欣欣?难道我注定要失去你这个朋友吗?

新的开始

一切的不开心,就此切断。现在开始,多写些快乐的人与事吧  :)

 

Leave behind all the unhappy things, more happy post from now on.  Yeah!

句号

昨晚,终于上完了最后一堂星期一的拉丁舞课。无需再忍受老师那不怎么理睬我的态度。尤其是昨晚,有一分钟的时间是放在我身上吗?算了算了,没必要再生气了。近三年的课,就此画上句号。

昨晚的聚餐,老师的出席让我完全没有了兴致。广东话的闲谈让我插不上口,真是后悔出席。

月底的 Crystal 拉丁舞比赛,学妹们有参加,可是没一个人告诉我!?为什么这样呢?

 

Last night was my final lesson for the Monday Latin dance class.  Did my teacher pay his attention on my dancing for at least a minute last night?!  Very upset, but it’s the last.  I don’t have to bear with it any more.  Attending the Monday class for almost 3 years, I’m putting a full stop to it now.

Debian Wheezy – Mate Desktop 1.8.1- Lowering The Volume Into Mute But Cannot Unmute By Increasing The Volume

Since the installation of Wheezy, I’ve been struggling to find a good and reliable desktop environment.  From Gnome 3 to XFCE to LXDE and back to XFCE.  Still, some of the things just didn’t work as I wanted it to be.  A few weeks ago I learnt that Debian’s Wheeze-backports have provided the Mate Desktop package.  It’s a fork from Gnome 2 which is the best Linux desktop environment I’ve ever used, so I decided to give it a try (I did try Mint Linux with Mate desktop for a short while quite some time ago).  It’s been a few weeks using the Mate desktop and I’m very happy with it except one thing: the sound will be muted when lowering the volume to 0% but it won’t be unmuted by increasing the volume.  I’ll have to fire up the “Sound Preferences” to unmute the audio device.  After some googling, the solution is easy:

aptitude install mate-media-pulse mate-settings-daemon-pulse

The two packages will replace the mate-media-gstreamer and mate-settings-daemon-gstreamer installed.

See here for a discussion of the issue: http://askubuntu.com/questions/118675/mute-key-mutes-alsa-and-pulseaudio-but-unmutes-only-alsa

不再是帮手了

上星期四,接到学院的电话,说是“暂时”不要我当帮手了。我问:是有什么问题吗?“这是学院的决定”,她说。

过了一个星期,得到证实,只有我不再是帮手了!其他人,依旧。

这件事困扰了我一个星期,终于,我想通了。能做此决定的只有院长或我的老师,而无论是谁,我都不可能再继续呆下去了。很不舍…  不舍在这里认识的朋友们、舞伴们。她们是我继续努力、坚持不懈的原因。如今要挥手道别,真的很难过…

 

Last Thursday, the studio called and said that, they do not want me to be the helper anymore.  “Is there a problem?”, I asked.  “It’s the studio’s decision”, she replied.

One week passed.  It’s clear that I’m the only one being outcast.  Others are still helping.

This has been bothering me for a week, and now it’s clear.  Only the principal or my teacher could make this decision.  Either one, there’s no way for me to stay anymore.  I’ll miss my friends and dance partners.  They are the reason for me to keep dancing and improving.  To say goodbye…  it hurts…  deep inside…

NATD Exam 2014: Worst result ever!

IMG-20140630-WA0021
早就知道成绩会不理想,可是没有想到会如此糟糕… 四支舞蹈竟然都在90分以下!真的很失望…

Already knew that the result would not be good, however, I’ve never expected it to be this bad… All four dances are under 90 marks!  This is really a let-down.  Very disappointed with myself…

NATD Medalist Competition 2014

20140629_231855

东奔西跑的找服装、到其他学院租借舞蹈室、上私人班,忙碌了一整个星期就为了昨天的比赛。虽然只拿了第二名,也不算太坏。还第一次收到花束,真是谢谢 Cindy 和 Jade 的到场支持。还有 Elizabeth,一直等到最后,真是不好意思。

比赛大约在11:30am开始,由街舞和 Hip Hop 拉开战幔。选手们都挺好的,表演的都不错。之后是国标舞和free style,大约2pm才开始拉丁舞比赛。开始都是小孩子的单人舞环节。由于参赛人数不少,比赛组别更是繁多,我们看得都有些累。除了一小部份跳得不错的小朋友之外,大多时候都很是无聊。一直等到五、六点钟,拉丁舞比赛才开始有些看头儿,应为有朋友参加嘛 :) 那班中学学妹们陆续上场,跳得都不错,可圈可点。

比赛当中有穿插颁奖环节。一来可让比赛完毕的小朋友们先回家、二来可以让裁判休息片刻。最后的穿插颁奖环节后,真正的拉丁舞 bronze, silver 和 gold 的比赛环节开始了。由于在场边热身,错过了欣欣的 silver 比赛。:( 真是不应该… 最后一项比赛,终于轮到我们上场了。Cha cha cha 和 Rumba 都还可以,Samba 也没犯下什么大错,可是却败在 Jive!一开始就 timing 不对,之后还弄错舞步… 没救了…

最后的 Jive 很是遗憾。不过人生总是会有些许不如意的,不是吗? :)

One busy week to look for costumes, renting dance hall for practice, going for private classes, all for the competition yesterday.  Only got the 2nd place, but it’s not too bad already.  Also, sincere thanks to Cindy and Jade who came to support us, and with flower!  Our former classmate Elizabeth wait till the end to see us danced. Thanks beth beth.

The competition began at about 11:30am.  It was started with street dance and hip hop.  The competitors were pretty good. Quite enjoying watching them dancing.  Next were standard ballroom and free style.  At about 2pm, latin events started.  First, it was the latin children events.  There were a lot of young children competing and a lot of different categories.  Most of the events were quite boring except for a few which had some pretty good young competitors taking part.  Also, mostly solo events so we were not really interested in them.  It wasn’t until 5 or 6pm that the latin events started to get interesting.  Why?  Because our gang finally started competing.  The teenage girls juniors started to walk down the dance floor.  They danced pretty good indeed.  :)

There were a few prize giving ceremonies in between the events during the competition.  It’s a good arrangement so that young children could leave earlier and the judges could take a short break.  After the second last prize giving ceremony, the real latin ballroom bronze, silver and gold events followed.  I was doing some warm up by the dance floor and missed Siew Xin’s Silver event.  My bad :(  Finally, it’s our turn.  Cha cha cha and Rumba were quite OK.  Samba was so so, no significant mistakes.  Jive was a let-down. Started with wrong timing and followed with wrong steps… Just a mess…

Was really dissapointed with Jive.  But hey, nothing is perfect, so just keep it on and keep dancing.  :)

 

 

NATD Exam 2014

10492500_10152449961952225_1296241443961169184_n
过去的星期六,我参加了Gold Level的拉丁舞晋级考试。虽然花了许多时间练习,考试当天还是错误百出… 有些许失望,可是早有心里准备。平时练习就已经很糟糕了,考试当天又怎么会有奇迹呢?不怪舞伴,她这次已经有认真练习了。只能说,自己还需要多加努力。来临星期日的比赛,加油吧!

Last Saturday, I had my Gold Level Latin dance exam. My partner and I did spend a lot of time practicing, but the outcome was not good. This was not a surprise actually. During our practice, the dances were very bad already. There’s no miracle on the exam day, so it was all expected. Not blaming anyone, just to conclude that I need to put in more effort in dancing. There’s a competition on the coming Sunday, I’ll give it my best!

Follow

Get every new post delivered to your Inbox.