ok, then you are going to change the following code to read a config instead?
Yes, the config file should be copy to /etc/powerctrl.cfg or ~/Choice/powerctrl.cfg. Puting the config file to HOME should avoid the problem of user right.
The /proc/cpuinfo can be used or not? Only cpu model stored in it.
Also, can you add another option so you can choose whether you want to display cpu info/memory info/battery status or the suspend/screensaver status which the original blanker is displaying?
This maybe not easy if you want to change the status bar on tray image. As you know, the all drawing work is based the icon file. If you really want to do this, drawing the whole icon's backgroud is needed.
If you just wat ignore it and leave the bar no change, it should by more easy.
1. In the original blanker, screensaver and suspend option were always enabled by default when you start the applet (even when they really were enabled or disabled), so I changed the code to check whether those features really were enabled or disabled when the applet started and had it show the status accordingly.
Do you mean check lightnpower.cfg?
Disable screen save or suspend if the value of config file is 0. Yes, I have done it.
2. Yep, I also found that xset didn't properly set those options so made it call xset-wrapper instead which when fiddled with the options to set things properly, ie if you have xscreensaver installed, it would also enabled/disable xscreensaver as well and not only the build in screensaver in X
I have copy it from your blanker, even do not know why. Now you explain it.
3. Exactly. power.cfg has backlight settings for AC and battery mode, so set backlight according to what is set there.
Yes. powerctrl read lightnpower.cfg to get the baklight config, and also read
/proc/driver/fl/corgi-bl to get current backlight value.
4. Battery applet calls lightnpower.py to set dpms when power changes between AC/battery, so when it is running, blanker/powerctrl does not need to do anything
I have copy it from your blanker, and check battery applet is running or not.
5. since there is no battery applet, powerctrl applet needs to change settings. maybe it should check whether blanker applet is running as well.
In fact, I want to replace replace battery applet and blanker applet. Any way, I shill check the blanker.
Another nice to have feature would be an extra option to turn on/off swap...
This should be easy by exec "swapon -a" and "swapoff -a". I will try.
the speedstep feature has a problem. when i am on battery power and doing nothing it correctly steps down to a lower cpu frequency, however, when i am plugged into the AC and do a compile, i can see it steps up the cpu frequency but then it shuts down my Zaurus and I have to reset it...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163638\"][{POST_SNAPBACK}][/a][/div]
I have found the "make" program may be error when overclock.
The same problem occurs one times before modify the screensaver and suspend control. It seems powerctrl always call dpms_set.
Now the new ipk and source is changed screensaver and suspend control according meanies' blanker. I have not shuts down after modified.
You may try new ipk and source.
Someone said, overclock may not safe, and suggest 7500 can not over clock for 30 minutes, and C1000 can not for one hour. Is it truth? I can design a time protect. Is it nessary?
Thanks meanie very much, I will conside those ideas carefully.