發表文章

Power cycling tool for suspend/hibernation/reboot

There are some tools for myself to doing the work and I do believe those tools are very helpful for you guys doing power cycling either suspend/hibernate/reboot. To obtain the tool on ubuntu: Download link is hosted on Launchpad: https://edge.launchpad.net/~jouston-huang/+archive/ppa/+files/fae-tools_0.9-2ubuntu1_lpia.deb Following also a way you can do to add my PPA: * Create a file in /etc/apt/sources.list.d/ call jouston-PPA * Put below two lines into it: deb http://ppa.launchpad.net/jouston-huang/ppa/ubuntu hardy main deb-src http://ppa.launchpad.net/jouston-huang/ppa/ubuntu hardy main * sudo apt-key adv --recv-keys BCE861C1 --keyserver keyserver.ubuntu.com * sudo aptitude update * sudo aptitude install fae-tools In this version of s5_reboot you will need to make the system start run my script by doing this in the target unit: * cp /usr/local/doc/s5_reboot.desktop Please logout and login again to start the reboot testing. So far, the BIOS 1.20 passed 300 cycle and 1.20.1 is running...

Show off: Happy Hacking Keyboard Professional 2 + Pcally Q-Ball

圖片
這次去日本國,理所當然的跑了一趟秋葉原(Akihabara),這是一個比起光華商場更先進10年而且規模超龐大的地方。 我心目中全世界最好的鍵盤,就只有這裡可以實際試試看它的手感,撫摸它。然後帶它回家。 結果就是,除了夢幻逸品PCally QBall,我的桌面上現在多了一隻HHKB pro2。 如果你還不知道這隻鍵盤,請參考以下說明: 新PD-KB400B(黑體同刻印,英文印刷),日本售價24800日圓。 對,我想你沒有看錯。這是一把很高貴、很高貴的逸品級鍵盤。鍵盤玩家心目中逸品中的逸品,2006年底已經停產,限定日本販售,除非你現在飛去日本或是請日本親友購買,未來再也買不到。 這隻鍵盤採用靜電無接點的鍵,剛好45克的敲擊壓力允許你長時間使用鍵盤卻不會疲勞,而且它極為耐久,可以耐敲擊3000萬次以上。鍵帽也提供極高的質感。 鍵盤的高度有三段式調整,可以適應絕大部分的使用模式。內建usb hub允許你接取指標裝置或是另外的usb裝置。採用Sun Type3鍵盤排列加上極小化的Layout(60key)達成只有A4一半的桌面體積,重量也只有530克。可以客製化部份按鍵,可以適應你的習慣。 支援Linux, Windows, Dos和Mac OSX。 PFU提供6個月保固,含購買原發票,鍵盤有問題你可以隨時送回去修理。PFU為Fujitsu的子公司,提供極高品質的日式售後服務。 這絕對不是一隻電競鍵盤,它是一隻programmer的超高品質鍵盤。如果你有大量輸入數字的需求,建議配合外接數字鍵盤使用。 原廠網站(網站目前只有販賣採用薄膜設計的Lite2了。) http://www.pfusystems.com/hhkeyboard/hhkeyboard.html FAQ: http://www.pfusystems.com/hhkeyboard/support.html 照片可參考友站: http://www.mobile01.com/topicdet ... 10&last=7868978 日本販售價格參考: http://www.geekstuff4u.com/happy-hacking-keyboard-pro-2.html Happy Hacking Keyboard系列: http://en.wikipedia.org/wiki/Happy_Hacking_...

X200 WWAN ready

圖片
裝上Ubuntu Jaunty 9.04的ThinkPad X200要怎麼連上HSDPA(3.5G)網路呢? 啊就是裝上Ericsson 3507G,升級WWAN firmware之後就可以自然而然連上HSDPA network了。 有沒有這麼簡單啊?(最好是就這麼簡單...) 有興趣裝起來用的各位,還是認命的繼續看下去吧... 第一件事,我想要定義 Fn+F6 就是WAN的開關: 1. 在 /etc/acpi/events/ 裡面新增 ibm-wan 內容如下: # /etc/acpi/events/ibmwireless # This is called when the user presses the wireless button and calls # /etc/acpi/wireless.sh for further processing. event=ibm/hotkey HKEY 00000080 00001006 action=/etc/acpi/ibm-wan.sh 2. 在 /etc/acpi/ 新增 ibm-wan.sh #!/bin/sh test -f /usr/share/acpi-support/state-funcs || exit 0 # Find and toggle wireless of bluetooth devices on ThinkPads . /usr/share/acpi-support/state-funcs WAN=/proc/acpi/ibm/wan CONTROL_DEVICE=/dev/ttyACM1 GPS_DEVICE=/dev/ttyACM2 if [ -r $WAN ]; then grep -q disabled $WAN wan_state=$? fi # Note that this always alters the state of the wireless! toggleAllWirelessStates; # Sequence is Both on, Bluetooth only, Wireless only, Both off if ! isAnyWirelessPoweredOn; then # Wireless was turned off ...

打算在Yahoo購物中心購物的朋友請三思

真是沒有想到,原來一個購物的經驗也可以變成Kuso。本來是不想寫,給廠商一些面子的,不過這件事情真的變得太扯。 由於老婆的要求(撒嬌),幫她買一個Samsung i608用的耳機轉接線給她。她想要裝比較好的入耳式耳機。由於不放心副廠的品質,找到了Yahoo購物中心有這個貨品。 信用卡刷下去買的時間是2月18日,隔天貨就到了。送來了一組Nokia耳機(!) 是,那是分離式的,但是上面大大的Nokia標誌告訴我這絕對不能用。向Yahoo反應之後,他們答應要儘快處理。 後來接到精傑科技來電,說來回件太貴,要我自付郵資寄出。他們收到以後會立刻寄出(含我當時先墊的郵資),我當天就由台北101的郵局寄出了,這時候是2月19日。 等了許久,到了3月3日,還是沒有任何反應,我就火大了。向Yahoo購物中心反應,當天收到了回覆告訴我他們會儘快處理。巧合的是,不久後確實收到了。只不過,整整9天啊!走路去內湖精傑科技再回來都沒有那麼久。-_- 晚上我高高興興拿回家給老婆,打算讓她高興一下。手機拿出來,接頭插上去。咦?接頭不合?(這時候心裡面的聲音是:Gan! 這家公司搞什麼鬼啊?) 當然,馬上我又再次上Yahoo購物中心抱怨,這實在太扯了。第二次寄錯?Yahoo購物中心想當然的回覆說他們非常重視、廠商會在1~2天之內跟我聯絡,請我務必保持手機暢通等等之類,如果3月9日之前都沒有聯絡,我再回去反應。很聰明,1~2天加上隔一個週末的週一,幫廠商爭取了一點時間。 3月9日,確實沒有人聯絡。我保持手機暢通有個鳥用?我打算明天白天來退貨。 3月10日上午,接到不明電話,響兩聲就掛掉。連續兩次。我回電之後才發現,原來就是這家很寶的精傑科技。電話那頭有位小姐很高興,跟我說他們正在確認是否有可用的耳機,一旦找到會立刻辦來回件過來收。 3月11日中午,我再次收到第三次換貨。這是在幹什麼!一個耳機寄錯三次!!!強!有你的! 我要的耳機,是給老婆耳機轉接線。她要接上另外一個入耳式的耳機來聽,結果送來的這隻不管怎麼樣,是連在一起的。跟當時網頁上的照片明顯不符。 剛剛我又上去Yahoo購物中心抱怨,從信用卡刷下去2月18日到今天3月11日,都快滿月了。 3月12日,抱怨原文: 發問時間:2009/3/11 下午 12:14:31 (問題分類:物流-採購) 今天收到精傑科技來回件寄來的耳機,只不過... 怎麼又寄錯...

GlassyBleu佈景主題真漂亮啊

圖片
Click to Enlarge GlassyBleu就是HP Mini 1000 MIE的佈景主題啦。 安裝的方法也相當的簡單: 網路上就有人這麼做啦:http://ubuntuforums.org/showpost.php?p=6680821&postcount=17 裝完之後強烈建議 Customize -> Colors -> Input Boxes / Text 的顏色換成 #4C4C4C 不然Spreadsheet打開甚麼都看不到...

Treo 680 在Ubuntu上透過藍芽同步 jpilot

Treo手機除了Treo 600以外,都已經內建藍芽,透過USB來同步固然是一個方法,但是傳輸線的攜帶畢竟是一個大麻煩。目前大部分的筆記型電腦都已經有內建藍芽了,透過藍芽來同步在Windows上面算是相當普遍的常態,但是Linux上面卻是相當的麻煩。 目前我已經成功的在Ubuntu上透過藍芽讓Treo 680和網路連線以及同步Jpilot,你也可以試試看! 步驟如下: 配對手機與電腦如下: 1. 手機設定:Prefs->Bluetooth, 點選 "Setup Devices" -> "Trusted Devices" -> "Add Device". "Nearby devices" 中選擇你的PC -> "OK". 2. PC設定:Bluetooth applet點右鍵 -> "Setup New Device" 手機端連網設定: 1. 連線部份:控制台 -> 連線 -> 新增, 名稱寫 BT2Linux, 連接到: PC, 經由:Bluetooth, 然後點選"用點選尋找", 選擇你的PC -> OK 2. 網路部份:控制台 -> 網路 -> 按鍵盤右下角Menu按鈕 -> 新增. 名稱寫Ubuntu, 使用者名稱和密碼都留空白就好 3. 讓手機維持在這個畫面 PC端藍芽撥接設定: 1. $ sudo gedit /etc/ppp/peers/dun 2. 填入以下資料: 115200 10.0.1.8:10.0.1.40 local ms-dns noauth debug 3. 測試連線 $ dund --nodetach --listen --persist --msdun call dun 如果你的使用者不被允許執行以上命令,則在前加上sudo 然後回到手機點選"連接", 你會看到手機試著跟PC連線。如果正常的話,你會在PC上面看到一些debug message 4. 寫一個自家目錄的script來跑 $ mkdir -p ~/bin $ sudo gedit ~/bin/TreoConnect 填入以下資訊: dund --li...

[Ubuntu Intrepid] Pidgin message notification using ThinkPad's "standby" LED

Recently I purchased a Lenovo ThinkPad X200. Just wondering why nobody is using some LED to do the notification. After a while searching, there is a software called " led-notification ". Unfortunately, to blink my thinkpad's LED I will need to echo "7 blink" instead of "1" or "0". So I just modified the code and packaging it then leave it in my launchpad PPA. To install this package, please make sure you are running Ubuntu Intrepid Ibex, then follow the steps: === Install with apt === Add these two lines to your /etc/apt/sources.list $ sudo gedit /etc/apt/sources.list deb http://ppa.launchpad.net/jouston-huang/ppa/ubuntu intrepid main deb-src http://ppa.launchpad.net/jouston-huang/ppa/ubuntu intrepid main Now you will need to add gpg key for my PPA: $ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5627B79802F9CAEF70E58319B51F433BBCE861C1 After you done, install package now: $ sudo aptitude update $ sudo aptitude install pidgin-...