As part of OpenMoko testing I looked into Neod. It is a daemon which handle few interesting functions on Neo1973 phone such as launching Today screen (short AUX press), closing active window on short Power press and two menus.
First one is available on hold of AUX button.
Available options are:
- Toggle fullscreen (state is remembered)
- Swap orientation (calls
xrandr
to rotate screen to landscape) - Screenshot (calls
gpe-scap
application)
Second menu is available on hold of Power key.
Available options are:
- Bluetooth On/Off (disabled currently)
- GPS On/Off (also disabled)
- GSM On/Off (disabled)
- Profile: Full PM (phone will suspend if needed)
- Profile: Dim Only (backlight off if needed)
- Profile: No PM
- Lock Phone (phone will suspend to ram)
- Reboot Phone
- Power Off
Yesterday I looked into source code and pushed few changes to neod
recipe — mainly added few runtime dependencies to get everything working. During evening I got idea that it should be GConf key so user will be able to define which direction screen has to rotate when “Swap Orientation” option is used from AUX menu. Resulting patch can be found in OpenMoko bug 929. I hope that it will be included soon.
My other idea is to drop xrandr
command usage and use libxrandr directly. But this needs to wait.