2008年4月23日星期三

Dry Run For the presentation of OpenSolaris Group

At 10:30 am today, I gave a presentation in the JDS forum to the some guys from our department and QE group. I found that I couldn't express myself successfully that is because of lacking of practice.

They gave me a lot of suggestions and I will change the slides after the presentation. The lecture focuses a lot on the driver part while not desktop part, I should add more content to JDS. Moreover, I'm not familiar with the driver part hence I shouldn't talk much about it.

2008年4月17日星期四

GNOME Power Manager Needs Power Scheme option?

A power scheme is a collection of settings that controls the power usage
of your computer. You can use power schemes to reduce the power
consumption of individual devices or the entire system.

In Windows XP, User can set options for a power scheme in the Power
Options dialog box. Windows XP comes with several pre-configured
profiles, they are Home/Office Desk, Portable/Laptop, Presentation, Always on,
Minimal Power Management and Max Battery. User also can easily create
custom profiles that fine tune the properties for his particular circumstances.

In Max OS, Laptops get a menu option in the Energy Saver panel:
Optimize Energy Settings. These are energy profiles you can quickly
switch between depending on the circumstance: Better Battery Life,
Normal, Better Performance and Custom.

In KDE, KPowersave ships with a set of four preconfigured schemes which
you can adjust to your needs. To switch schemes with KPowersave just
right-click the panel icon and select Set Active Scheme. The following
schemes are available:


Performance
Keep your machine running with full power and full speed to
achieve maximum performance.
Acoustic
Apply any measure that makes sure your machine runs as quietly
as possible.
Presentation
Disable any display power management and screen savers to make
sure that your presentation is not interrupted by a blanked
display or such like.
Powersave
Apply aggressive power management methods to make sure that your
machine runs as long as possible when put on battery power
instead of AC power.

How about GNOME Power Manager? Do we need such options which allow user
select power profiles which they like?

2008年4月9日星期三

Find the root cause of Java Bridge Bug

Having spent so long time on this bug and finally I found the root cause of this bug:http://bugzilla.gnome.org/show_bug.cgi?id=526700

At first, I tried to make orbit to output its log, but at-spi-registryd output too many logs and it is nearly unuseful for the investigation.

Later I wrote two simple test applications, one is the corba server: bonobo-echo-2 and the other is java test client. This can help me narrow the problem.

ORBit2 can output its log information also, but there are two kinds of log: orbit2 log and linc2 log. Until I enable the linc2 log (I don't know until I look at the source code), I could see the communication information to orbit2 server.

truss is a good tool which can help to see system call. truss -t open process name
snoop can get the tcp packets in the ethenet network.

About one year ago, Brian changed /etc/orbitrc as the requirement of Secure by Default. java access bridge didn't work any more since then. It would have been easy If we had notify Brian about this problem.

2008年4月8日星期二

GPM's problem

1. Need to query Richar Hughs about the opions on the new features of profiles
2. Get opinions of profiles from desktop-discusss.

2008年4月7日星期一

Lecture for OpenSolaris User Group - Bio and Abstract

个人介绍

蔡庆明1998年毕业于北京清华大学计算机系,2005年加入太阳计算机公司桌面系统
部门。有10年的软件开发经验。作为一名Sun的软件工程师,他是软件产品
Evolution和GNOME Power Manager的技术负责人。他也为开放源码社区做了许多贡
献,例如GNOME社区和Opensolaris社区。

Cai Qingming graduated from Tsinghua University with Master degree in
1998 and joined Java Desktop department in Sun Microsystems in 2005. He
has 10 years of experience in software development. As a software
engineer in Sun, he is the technical lead of Evolution and GNOME Power
Manager. He also contributed more to open source communities like GNOME
and OpenSolaris.

摘要

一直到现在, Solaris都没有一个方便的应用程序来允许用户管理和监控电源的消
耗和电池状态。特别是对笔记本电脑用户,他们不知道如何像Window或者Linux那样
进行电源管理。尽管现在电源状态的Applet已经在Nevada中了,但是仍然不能用它
来控制电量不足或者用户合上笔记本后应该执行的动作。在Solaris 10中,我们提
供dtpower来帮助用户进行参数配置。但是,这些配置已经不够了。我们经常听到用
户抱怨Solaris消耗了太多的电量而且不能挂起或者休眠。如果要向用户提供一个
好的桌面系统,我们必须解决这一问题。

在这个演讲中, 演讲者从桌面的角度介绍了电源管理的方案。首先,他描述了一些
有关电源管理的背景信息和Solaris的电源管理框架。然后,他介绍了和电源管理相
关的一些标准和概念。最后,他主要介绍了GNOME Power Manager是什么,它的结构
和如何将它从Linux移植到Solaris中。

Until now, Solaris doesn't have a convenient desktop application which
enables users to manage and monitor power consuming and battery status.
Especially for laptop users, they don't know how to manage their power
consuming easily like Windows and Linux. Though battery status applet
has been put into Nevada, they still can't control what the system
should do if the battery power is critically low or what should be done
if they close the lid. In Solaris 10, we provide dtpower to help users
configure some power parameters. However, nowadays the features it
provides are obviously no longer sufficient. We often hear users
complaining that the Solaris consume much battery power and it can't
suspend/hibernate. To offer an excellent desktop for users, we must
solve this problem.

In this presentation, the lecturer introduces the power management
solution in Solaris from desktop perspective. First, he describes some
background information about power management and Solaris Power
Management framework. Then he introduces some concepts regarding to
power management. Lastly he introduces what GNOME Power Manager is, its
architecture and how it is ported to Solaris from Linux.