FSO Control - New Project and Initial Package

yves mahe ymahe at zindep.com
Fri Oct 31 16:57:58 CET 2008


Hi,

nice work !

digger vermont wrote:
>     
>     * I'd like to launch this with a POWER button press but I can not
>       figure out how to set the DISPLAY environment when launching a
>       GUI with a rule in oevents.  You can try though.  Put a rule in
>       /etc/freesmartphone/oevents/rules.yaml like this:
> 
>       trigger: InputEvent()
>           filters:
>                   - HasAttr(switch, "POWER")
>                   - HasAttr(event, "pressed")
>           actions: Command("fso-control")
> 
1) I think we have a conflict with zhone about pressing the POWER button.
2) In the fso-control shell, the line fso-control.py don't find 
fso-control.py, even with the cd ( I have seen it with the line :

-----------------------------------------------------------
fso-control.py 1>/home/root/fso-control1.txt 2>/home/root/fso-control2.txt
-----------------------------------------------------------
)


For me, this lines work :

/usr/bin/fso-control
--------------------
#!/bin/sh
cd /usr/share/fso-control
export PYTHONPATH=`pwd`
export DISPLAY=:0
/usr/share/fso-control/fso-control.py

/etc/freesmartphone/oevents/rules.yaml
--------------------------------------
-
     trigger: InputEvent()
     filters:
              - HasAttr(switch, "AUX")
              - HasAttr(event, "pressed")
     actions: Command('fso-control')


Friendly,
Yves





More information about the community mailing list