[prev in list] [next in list] [prev in thread] [next in thread]
List: openmoko-community
Subject: Re: FSO Control - New Project and Initial Package
From: yves mahe <ymahe () zindep ! com>
Date: 2008-10-31 15:57:58
Message-ID: gef9ub$ong$1 () ger ! gmane ! org
[Download RAW message or body]
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
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic