Asleep from Day

June 22, 2009

@oesf.jp, 6/24

Filed under: 0xlab, Android — John @ 4:30 pm

I will join the OESF (open embedded software foundation) progress conference on 6/24. Although the name suggests similarities to OpenEmbedded, this foundation has nothing to do with OE, but focuses on Android development. I’m not sure if it’s a member of OHA since I can’t read Japanese and Google Translate is very vague on this.

4/27 0xlab 成立簡報

Filed under: 0xlab, Android — John @ 11:51 am

It’s a bit old but I’ll share it anyway. The content is in traditional Chinese.

June 13, 2009

WebCam on Asus N20A notebooks

Filed under: Linux hardware — John @ 11:43 am

Well, I gave this built-in webcam a try today. `Cheese’ does show the image, but it’s upside-down.

A quick lsusb shows
Bus 002 Device 002: ID 064e:a116 Suyin Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 147e:1000
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

It’s obviously 064e:a116, so I googled it, and this turns out:

This camera module is known to be mounted upside-down in some notebooks. There is currently no documented way to rotate the image at the device level. If you don’t mind holding your computer upside-down, the camera should work fine.

WELL, if I hold my notebook upside-down, my LCD will also be upside-down, so the video I see will still be upside-down, no ?

June 11, 2009

android-pdk

Filed under: 0xlab, Android, tip — John @ 6:13 pm

Android porting development kit could be obtained by

make pdk pdk_all

in your top repo dir. You can find the pdk doc in out/target/common/docs/online-pdk . If you open index.html directly you will find the css is all messed up. The quickest way might be moving the directory to /var/www, install one web server (I use thttpd) then open http://localhost/online-pdk/ .

The document is far from complete but it’s still a good reference to save a lot of time.

June 8, 2009

Integrate emacs23 with emacsen on Debian

Filed under: tip — John @ 12:05 am

I’m quite disappointed about the unicode support of emacs22 so I decided to give emacs23 pretest a try. It turns out to be quite nice but it doesn’t include Debian’s debian-startup.diff patch and I don’t want to add it to the source code. So, I decided to solve it in my .emacs file. Here is the related script:

;; hacks to use debian emacsen in emacs23
(if (not (string-match "^23." emacs-version)) nil
  (setq load-path
;; more paths could be added here
	(append (list "/usr/share/emacs/site-lisp"
                      "/usr/share/emacs/site-lisp/global") load-path)
	)
  (defconst debian-emacs-flavor 'emacs22
    "A symbol representing the particular debian flavor of emacs running.
Something like 'emacs21, 'xemacs21, etc.")
  (load-library "debian-startup")
  (debian-startup debian-emacs-flavor))

And I also realized the GUI version of emacs doesn’t bring me any good then the console version, so I’m running it without X now. Much easier to use.

Blog at WordPress.com.