maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   wiki page about dbus-scripts a great toy to play with dbus (https://talk.maemo.org/showthread.php?t=48132)

impeham 2011-04-25 14:50

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Quote:

Originally Posted by gionni88 (Post 994937)
Code:

gconftool-2 -s /apps/osso/hildon-desktop/views/current -t int 1
Only works with modified Hildon Desktop. It is an istant switch and doesn't emulate swipe gesture.

Desktop switch works like a charm - thanks a lot :)

i still need a way to send keyboard presses from command line - do you know anything about this?

casper27 2011-05-29 12:10

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Been playing around with dbus-scripts got some cool features. Got most of what I need to work bar this one thing. I want espeak to say "welcome home" when I connect to my home network.
I've just put a very simple script together:-
Code:

#!/bin/sh
espeak "welcome home"

When I run in term with sh welcome.sh all works well. I then go into dbus-scripts gui. Add connection, select my network and put in command to run:-
Code:

sh ~./welcome.sh
Its in home/user dir so should run. Am I missing something with this one?

Zas 2011-05-29 12:50

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Quote:

Originally Posted by casper27 (Post 1017924)
Code:

sh ~./welcome.sh
Its in home/user dir so should run. Am I missing something with this one?

Just do
Code:

sh ~/welcome.sh
Without the dot after ~ or use /home/user instead

casper27 2011-05-29 13:00

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Quote:

Originally Posted by Zas (Post 1017938)
Just do
Code:

sh ~/welcome.sh
Without the dot after ~ or use /home/user instead

Cheers, I've tried both ways but it just does not seem to want to work. I have tried it manually by adding a config file in

Code:

/etc/dbus-scripts.d/
All looks ok I think the script just needs to be called differently.

mariosalhab 2012-12-28 08:51

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Hello,

I need help please. I try to make a dbus script that whenever to connect to a wifi called Home it will automatically add some routes that are written in a file called work inside /bin/ directory. when i use app dbus-scripts-settings it generate this command:

/bin/work * * com.nokia.icd * xxxxx-xxxx-xxx-xxx-xxxxxxxxx * CONNECTED

the script work contains:

route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.2.1

if I execute work in the terminal it works.. but I want it to work automatically when i connect to Home and it is not working this way.. can someone help please.. thanks

_David_ 2012-12-29 15:12

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Opera Mobile burns battery power even when not in use. How would I get Maemo to close it after 10 mins of N900 inactivity?

kureyon 2013-01-02 14:40

Re: wiki page about dbus-scripts a great toy to play with dbus
 
The difficulty is probably how to figure out that Opera is "idle". One solution might be to use autodisconnect to kill network connection when idle, then modify /opt/autodisconnect/autodisconnect-post-network-check to kill opera.

chill 2013-01-14 22:14

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Quote:

Originally Posted by _David_ (Post 1308846)
Opera Mobile burns battery power even when not in use. How would I get Maemo to close it after 10 mins of N900 inactivity?

Does it? I am using it right now, and I can't tell that it's using very much CPU% (using top and conky as the CPU% monitors) as long as I am not actively browsing. The web page displayed is talk.maemo.org; a "heavier" web page will consume more CPU%, though, but again no more than conky. Do correct me if I'm wrong.

_David_ 2013-01-30 04:15

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Quote:

Originally Posted by chill (Post 1314880)
Does it? I am using it right now, and I can't tell that it's using very much CPU% (using top and conky as the CPU% monitors) as long as I am not actively browsing. The web page displayed is talk.maemo.org; a "heavier" web page will consume more CPU%, though, but again no more than conky. Do correct me if I'm wrong.

It is a known problem.

Pages that don't burn battery when inactive are rare. My guess is that they are ones which use little or no Javascript.

I'll disable opera:config#Extensions|EcmaScriptJIT and see if it 'helps'.

jackburton 2013-03-07 20:20

Re: wiki page about dbus-scripts a great toy to play with dbus
 
Anyone know if dbus-scripts would work on Harmattan? I'll grab the source for N900 but figured I'd ask just in case somebody has experience.


All times are GMT. The time now is 12:39.

vBulletin® Version 3.8.8