View Single Post
Posts: 5 | Thanked: 0 times | Joined on Oct 2010 @ Berlin, Germany
#4
Hi Matan,

yes ... the scripts are 755 and doing these things i have scripted.


Code:
Nokia-N900-02-8:~# cat /tmp/state
disp on
disp off
charge on
charge off
key open
key close
Code:
Nokia-N900-02-8:~# display_on
Nokia-N900-02-8:~# display_off
Nokia-N900-02-8:~# cat /tmp/state
disp on
disp off
charge on
charge off
key open
key close
disp on
disp off
Code:
Nokia-N900-02-8:~# cat /usr/local/bin/display_on
#!/bin/sh
echo "disp on" >> /tmp/state
Code:
Nokia-N900-02-8:~# cat /usr/local/bin/display_off
#!/bin/sh
echo "disp off" >> /tmp/state
Greetings
Olli

Edit:
I've forget
Code:
Arg 1: :1.10
Arg 2: null
Arg 3: com.nokia.mce.signal
Arg 4: display_status_ind
Arg 5: off
Script display_off matches
Code:
Arg 1: :1.10
Arg 2: null
Arg 3: com.nokia.mce.signal
Arg 4: display_status_ind
Arg 5: on
Script display_on matches

Last edited by stderr; 2010-10-19 at 18:21.