Cyber Note

Cyber memos for my personal knowledge.

2012-07-18

Setup customized default bookmarks in Chrome browser for Android

Well, recently I have noticed that in the Android open source tree there is a provider apk called "PartnerBookmarksProvider". This could be used to setup the default "out-of-box" bookmarks for Android Chrome browser..:)

In the Android open source tree under ./packages/providers/PartnerBookmarksProvider where you can see below directory called "res".
Navigate into ./res/values and edit the file called "strings.xml".

Below is an example of strings xml. You can customize white color text area as you like.


You will find the bookmark setting in Chrome browser just like below.




Then, of course you can also customize above bookmarks with your icons and thumbnails. You may need to edit the file "bookmarks_icon.xml" and add the icon files within a folder under same path as bookmarks_icon.xml.
I will update the usage of the bookmarks_icon xml later if I have time..;)

2010-02-13

Android Git server always fatel error?

WTF..Android repo init -u always return the error:

fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)

Someone said that this may be caused by the DNS resolving issue.
So I did some work on my /etc/hosts as adding a line:

149.20.20.141 android.git.kernel.org

It depends on your network environment and ISP...

OK, now repo tool finally works!! What an idiot script it is!!
...Orz

2010-01-14

Chromium OS on TOSHIBA NB300

Recently I am working on the Google Chromium OS for my TOSHIBA netbook.
I've successfully build the OS image and create a live USB pen drive.
For convenience, I install it into HDD...;-)

But, Chromium OS is useless if you don't have an internet connection........

Some notes here:
1. root file system is read only, so need to remount to read-write mode.
$ sudo mount -o remount,rw /

2. My Chromium OS kernel is 2.6.30-chromeos-intel-menlow.
In this archived version of Chromium OS, I setup some Chrome browser default settings in this file: /usr/bin/chromeos-chrome (This is a shell script text executable).

You can setup your own start-up pages and tabs here within this script.
Or you setup additional property values to Chrome browser.

Here I set my favorite proxy server (maybe you know Chromium OS got some problems for internet proxy setting........).

Use vi to edit it (remount root fs to rw first), find the last while-do section that including a variable called "$CHROME".

Add one string to the top of this variable such as:
"$CHROME" --proxy-server=aaa.bbb.ccc.ddd:8080 \
...
[...rest of the code..]
...

Else, you can just read the script for fun, it's interesting...;-)

My next step is connecting my Chromium OS with wifi.
And maybe I will tune the ACPI subsystem by some extra programming (If I got free time to do this..).

Ethernet controller performance is perfect (Realtek 8101E/8102E, PCI-E)
My Atheros wifi card is well detected (AR9285, PCI-E) and kernel module works fine (ath9k, mac80211 and cfg80211).

NPNT...X-D
For fun, I also change the login screen background image..



2009-10-28

Standard Linux uvcvideo doesn't work for Bison camera module 5986:0241

Usually, current uvcvideo driver kernel module can handle all uvc complaint devices.
But I got a special module which ID is 5986:0241, can not work w/ it.
You can see a dmesg log as "No valid video chain found.", and driver never drive this device.
There is no device file created under /dev and /sys.

This is a FW bug, so that driver doesn't parse video steaming data well.
I patch the uvcvideo source to skip this checking.....:-(
Not a good way but it works.

Use kernel 2.6.31.5 source as an example to patch the driver:

-> drivers/media/video/uvc/uvc_driver.c, Line 430:
modify "return -EINVAL;" to "break;"

-> drivers/media/video/uvc/uvc_driver.c, Line 723:
modify "goto error;" to "break;"

Save and compile the uvcvideo.ko again.
After install this new kernel module, your 5986:0241 camera should be back to work.

2009-09-02

RHEL / CentOS 5.3 never read MAC address on SiS 190/191 NIC

Oops........
This issue was reported for a while from my FAE.
The kernel of default RHEL 5.3 is v2.6.18........(WTF..)

I personally think that it's a bug of sis190.c driver but I don't have time to dig into the source code.
The NIC MAC address can not be read correctly from EEPROM.

I use sis190.c and mii.c from kernel v2.6.19.7 w/o any modification, and then compile them on RHEL 5.3.
Well, they still taint kernel a bit because no version magic.
But works well (so far..), and my MAC address of SiS 190/191 NIC was now detected.

Use root permission and just # modprobe -rfv sis190
Make mii.ko and sis190.ko by yourself. If you see warnings, forget about it now......
# install -m 644 *.ko /lib/modules/`uname -r`/kernel/drivers/net/
You can make a backup of original mii.ko and sis190.ko if you want.
# depmod -ae
# modprobe -fv sis190

2009-07-22

Linux SiS 190/191 NIC lose traffic on 64bit kernel with 4GB RAM

SiS190.x driver got a bug on 64bit Linux kernel with 4GB RAM.
NIC can get IP via DHCP correctly but can not have any traffic any more...Orz

If you limit RAM size while bootup to "mem=3G", everything works fine ( Of course......XD ).

See this for bugzilla report: here.

I test the patch on Mandriva 2009.1 and it works.
But I never test it on Ubuntu or any other distro yet.
Here is the duplicated issue on launchpad for Ubuntu.



CM Linux is a small distro which is based and modified from Mandriva Linux......囧rz

2009-07-06

clevo_laptop v1.0.0 is released

Finally, I uploaded the first release of Clevo ACPI WMI Linux kernel driver module to Sourceforge.net.
The release is clevo_laptop_1.0.0.tar.gz.

After a long time investigating of BIOS ASL code, I found so many bugs and NGs on their laptops.
For the ACPI supportinf about Linux.
Even I have told them, the BIOS engineers, no body gives a shit about my opinion........

Will keep developing this kernel module to support Linux on Clevo platform as much as possible.
('Cauz BIOS guys don't want to pay efforts to Linux, this is not listed in their spec........)