Neodconfig
First thing: it's beta
Second: I am not a well c-programmer - started 4 weeks ago ... reviewers are welcome
Third: -
Requirements
- because of some changes (sys-paths) in the "latest" kernels this modification will only work with versions >=2.6.28. As for me, i am using a modified andy-tracking kernel (2.6.29), but it should work with his standard version as well.
Changes - Features
- neod reads some values out of a config file: /etc/neod/neod.conf (should be created automatically)
- keyboard exchangeable (including options)
- if WIFI,BLUETOOTH,GPS are turned "on" or "off" within the "POWER menu" or by using openmoko-panel-icons some scripting could be done
- Timeouts before going to Dim, Lock and Suspend are configurable
- Screen Lock has the Tux-Road Design
- Wifi interface (ethX) can be specified
Config File
The problem I had was the keyboard ... that's why I modified the neod and now on startup it reads some values from a config file like this:
# Config File for neod # Options [matchbox-keyboard|xkbd|<keyboard-programm-name>] #Example: KEYBOARD = xkbd KEYBOARD = matchbox-keyboard # Parameter String # Example xkbd: KEYBOARD_OPTIONS = -geometry 480x180 KEYBOARD_OPTIONS = # Serveral Timeouts related to PowerManagement Options (in seconds) # TIMEOUT_DIM until DIM, defaut 10 s # TIMEOUT_LOCK until LOCK , default 30 s # TIMEOUT_SUSPEND until SUSPEND, default 120 s TIMEOUT_DIM = 10 TIMEOUT_LOCK = 30 TIMEOUT_SUSPEND = 120 # WIFI Interface to use. It is also possible to change interface in udev.rules WIFI_INTERFACE = eth0 # Additional Peripheral Actions: As default the PowerManagement only switch power # on/off. If you want to do more than that you have two options. # 1: A single Command Line Instruction (ifup eth0) or # 2: Using a shell script to do the job (/usr/local/bin/wlan-start.sh), containing # serveral commands like changing MAC address, start firewall, load modules, etc. # This pattern can be used when starting/stopping WLAN, GPS and Bluetooth. # # WLAN Start/Stop - leave commented to do nothing but switching power on and off # Example: WIFI_ON = ifup eth0 WIFI_ON = /etc/neod/wifi_on.sh WIFI_OFF = /etc/neod/wifi_off.sh # GPS Start/Stop - leave commented to do nothing but switching power on and off GPS_ON = /etc/neod/gps_on.sh GPS_OFF = /etc/neod/gps_off.sh # Bluetooth Start/Stop - leave commented to do nothing but switching power on and off BT_ON = /etc/neod/bt_on.sh BT_OFF = /etc/neod/bt_off.sh
If this file is not automatically generated, please copy the provided neod.conf to /etc/neod/neod.conf. An example file is within the svn tree (see next point) as well as examples for (wifi-,bt-,gps-) start and stop scripts
Getting the Source
I also set up a public svn server where you can feel free to checkout the source:
svn co svn://clubraum.dyndns.org:23420/openmoko/application/tags/neod-0.1+svn4878-mod
Installation
cd neod-0.1+svn4878-mod
and
./configure && make && make install
will put it to: /usr/local
running
./configure --prefix=/usr
will overwrite the version installed !!!
Ongoing Work
- a friend of mine is going to prepare a .deb package - hopefully soon
- any ideas ?
- openmoko-panel-* stuff
Contact
duncan clubraum.dyndns.org
