2011年2月24日 星期四

Mock-up of Auto-Config of External Monitor on Linux

The following image is the UI for setting auto-config of external monitor. I had spent a few minutes on tracing the code of nvidia-setting and added a button on it. The dialog is displayed at the clicked of apply button. Once you click the Set Auto-Config button, the app saves the setting into file system and confirms the choice which equals ok button.

That's the start of this project. But I may be busy after March. Hope I can finish it before April.


2011年2月22日 星期二

Auto-config of External Monitor on Linux

It is so strange that Windows and Mac OS X both have the ability to auto config the external monitor on plugging in, but not in Linux. It should not be hard to implement it. And it is so convenient to have this kind of service.

In my environment, I use a Lenovo T410 notebook with NVidia display card. This card only supports the nvidia-settings to configure the external monitor instead of Screen Resolution. I don't know if Screen Resolution has the ability to auto config it, but I do know the nvidia driver doesn't support it.

The nvidia-settings coming with Ubuntu restricted driver has the good interface for configuring external monitor. After investigation, it is released with GPL license. So, it is possible to add addition button to dump the setting of the combination of LCD and external monitor and to auto config it while the same external monitor is plugged in.

The auto config service can use the code of "Apply" button and the restored screen settings to change the monitor settings while the same monitor is plugged in. The screen settings should use the name of LCD and the external monitor, ie LEN + Philips 47PFL5609D, as the key. Once a monitor with the same name is plugged in, the auto config should know it and auto apply the screen settings for them.

If I have free time, I can modify the nvidia-settings app to add the "Auto-Apply it" button and write the program to auto detect the change of external monitor.

2011年2月21日 星期一

HTC Tattoo WIFI 掃描找不到任何 AP 之解法

是的, 福克斯最近經常拿著 Tattoo 刷來刷去。一個不小心發生了 WIFI 沒辨使用的情況,它的特微是:

1. WIFI 打開,但找不到任何可以用的 AP。
2. WIFI 打開,即使之前有使用過的 AP 也會被當成沒看見。

當發生這個情況的時候,福克斯馬上開始 google,後來發現了這篇文章:

它裡面有教如何在不 root 的情況下修正回去,但是,福克斯的 Tattoo 早就已經 root 過了,所以無法測試它是不是真的可以在『不 root 的情況下』修正回去。

經過 google 過後,其實這個問題的主因是 WIFI 在設定的過程中,把一個暫存檔給改壞了(冏rz, 這種情況應該算 bug)。

所以只需要把這個壞掉的檔案給刪除,再讓它重建就可以了。

Tattoo 的檔案正確位置是在:/data/misc/wifi/wpa_supplicant.conf (與上述網址的檔案有些差異)。老實說,福克斯也很驚訝這原 po 可以在沒有 root 的情況下看到這個檔,因為在沒 root 的情況下,/data/ 資料夾底下的檔案應該是全看不到的才對。如果看得到的話,應該算是 bug。

另外,由於這個檔案會自動重新產生,所以將它刪掉之後,Android 會從 system 的資料夾中複製一個檔案過來。只是,它複製過來的檔案,並不會有先前的記錄,所以,之前連過的 AP、輸入過的密碼、找到可以不用密碼使用的 AP 都全會消息。但是,為了讓 WIFI 可以再度使用,這些應該不算什麼才對。

HTC Tattoo - Gingerbread ROM (Android 2.3) 現況,非刷機 (目前不建議刷)


==== 這篇已經過期了...目前,福克斯已經改為建議參考下列文章刷機 =====


近日在XDA上已經出現不少 Gingerbread 的 ROM,當然抱持著福克斯為人人、人人為福克斯的精神。福克斯當然非常勇敢地把手上的 tattoo 刷進這個 ROM。基本上,福克斯是以 Kalim 的 ROM 為主,它也是福克斯推薦的 CM 系列的 ROM。

這個版本的刷機流程跟之前的也有點不同,但最終的結果,福克斯還是建議:先不要刷進這個 ROM。以下是這個 ROM 目前有的問題跟優點:

問題:
1. GPS 無法使用(但已有解決方案)
2. 有些人的照相機依然無法使用
3. 有些人的 APN 會被清除(但可手動建回)
4. 有些人的 MMS 不能使用
5. 電池續航力不足

優點:
1. 運作速度比 Froyo 快
2. 動態桌布不會影響到主程式的速度
3. 福克斯的相機可以使用(不是每個人的都行)
4. 先前電話響鈴會有約 1 秒的時間差,現在已經正常了


從上面的比較看來,優點比缺點多很多。但是,因為福克斯要常開車載福克嫂外出,如果沒有 GPS 就麻煩大了,所以還是不推薦安裝這個版本的 ROM。不過說真的,這個版本目前是RC-0的版本,福克斯還是建議等它穩定一點再進行安裝(到時福克斯也會寫出安裝的文章)。