Re: dbus-send command/python dbus way for launching voip call through GTalk on N900

2010-10-06 Thread praveen koduru
I did dbus-monitor on manual voip Gtalk call and from the dump, I think that
the below trace is actually making the call. here I called from my Gmail
account(prawin1...@gmail.com) to another gmail account(
mail_under_t...@gmail.com) through Gtalk.

*method call sender=:1.17 - dest=org.freedesktop.Telepathy.Client.CallUI
serial=262 path=/org/freedesktop/Telepathy/Client/CallUI;
interface=org.freedesktop.Telepathy.Client.Interface.Requests;
member=AddRequest*
*   object path /com/nokia/MissionControl/requests/r4*
*   array [*
*  dict entry(*
* string org.freedesktop.Telepathy.ChannelRequest.Account*
* variant object path
/org/freedesktop/Telepathy/Account/gabble/jabber/prawin_40gmail_2ecom0
*
*  )*
*  dict entry(*
* string org.freedesktop.Telepathy.ChannelRequest.UserActionTime*
* variant uint64 1234133*
*  )*
*  dict entry(*
* string org.freedesktop.Telepathy.ChannelRequest.PreferredHandler
*
* variant string *
*  )*
*  dict entry(*
* string org.freedesktop.Telepathy.ChannelRequest.Interfaces*
* variant array [*
*]*
*  )*
*  dict entry(*
* string org.freedesktop.Telepathy.ChannelRequest.Requests*
* variant array [*
*   array [*
*  dict entry(*
* string
org.freedesktop.Telepathy.Channel.TargetHandleType*
* variant uint32 1*
*  )*
*  dict entry(*
* string org.freedesktop.Telepathy.Channel.TargetID*
* variant string 
mail_under_t...@gmail.com*
*  )*
*  dict entry(*
* string org.freedesktop.Telepathy.Channel.ChannelType
*
* variant string
org.freedesktop.Telepathy.Channel.Type.StreamedMedia*
*  )*
*   ]*
*]*
*  )*
*   ]*

Please anybody help me writing python-dbus code or dbus-send command for the
above dbus-monitor trace.
Thanks in advance.





On Wed, Oct 6, 2010 at 10:35 AM, praveen koduru prawin1...@gmail.comwrote:

 I am looking for voice call through Gtalk on N900 from command line like
 dbus-send command or python-dbus.

 I am able to set the status i.e GTalk presence(Online/Offline/Busy)
  through mc-tool command,
 *mc-tool account presence*
 *
 *
 *python-dbus way:*
 *

 xmppaccount=/org/freedesktop/Telepathy/Account/gabble/jabber/prawin_40gmail_2ecom0

 def set_status(presence_type):
print screen has been off for defined number of  seconds
sessionbus = dbus.SessionBus()
gmailobj =
 sessionbus.get_object('org.freedesktop.Telepathy.AccountManager',
 xmppaccount)
gmailinterface=dbus.Interface(gmailobj,
 'org.freedesktop.DBus.Properties')
gmailstruct=dbus.Struct((dbus.UInt32(presence_type), '', ''))
gmailinterface.Set('org.freedesktop.Telepathy.Account',
 'RequestedPresence', gmailstruct)

 bus = dbus.SystemBus()
 set_status(telepathy.constants.CONNECTION_PRESENCE_TYPE_BUSY)
 *
 *
 *

 And also I am able to do voice call through GSM network using dbus-send
 command.
 *dbus-send --system --type=method_call --print-reply
 --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith
 string:$NUMBER uint32:0*

 But i need to make a voice call through Gtalk using dbus-send or
 python-dbus.
 Thanks for the time. and Help needed.








___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


dbus-send command for launching voip call through GTalk on N900.

2010-10-05 Thread praveen koduru
Is there a dbus-send command for launching a voip call through GTalk on
N900?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


dbus-send command/python dbus way for launching voip call through GTalk on N900

2010-10-05 Thread praveen koduru
I am looking for voice call through Gtalk on N900 from command line like
dbus-send command or python-dbus.

I am able to set the status i.e GTalk presence(Online/Offline/Busy)  through
mc-tool command,
*mc-tool account presence*
*
*
*python-dbus way:*
*
xmppaccount=/org/freedesktop/Telepathy/Account/gabble/jabber/prawin_40gmail_2ecom0

def set_status(presence_type):
   print screen has been off for defined number of  seconds
   sessionbus = dbus.SessionBus()
   gmailobj =
sessionbus.get_object('org.freedesktop.Telepathy.AccountManager',
xmppaccount)
   gmailinterface=dbus.Interface(gmailobj,
'org.freedesktop.DBus.Properties')
   gmailstruct=dbus.Struct((dbus.UInt32(presence_type), '', ''))
   gmailinterface.Set('org.freedesktop.Telepathy.Account',
'RequestedPresence', gmailstruct)

bus = dbus.SystemBus()
set_status(telepathy.constants.CONNECTION_PRESENCE_TYPE_BUSY)
*
*
*

And also I am able to do voice call through GSM network using dbus-send
command.
*dbus-send --system --type=method_call --print-reply
--dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith
string:$NUMBER uint32:0*

But i need to make a voice call through Gtalk using dbus-send or
python-dbus.
Thanks for the time. and Help needed.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Sending Instant Message on N900 through PyQt (using PySide QtMobility)

2010-10-04 Thread praveen koduru
Hi,

I want to send IM(Instant Message) from GTalk of N900 using PyQt. I have
found sending sms  PyQt script here
http://wiki.maemo.org/Phone_control#Send_SMS. and tried to modify for
Instant Messaging. But I am getting send failed error. I am new to PyQt.

I have logged in to gtalk before running the script  then started the
script.
the following is the code I have modified.

app = QCoreApplication(sys.argv)

'*''get number and name'''*
stringit = sys.argv
numpertemp = str(stringit[1:2])
mesits = str(stringit[2:])[2:-2]

num = str(numpertemp[2:-2])

if (mesits == ):
  print Usage:
  print python ssms.py 01234567 'message text here'
  sys.exit(69)
else:
  print number is  + str(num)
  print message is  + str(mesits)

'*''define message to be sent'''*
numperi = QtCore.QString(num)

numper = QMessageAddress(QMessageAddress.InstantMessage, u...@gmail.com)
mesitsi = QMessage()
mesitsi.setType(QMessage.InstantMessage)
mesitsi.setTo(numper)
mesitsi.setBody(mesits)

'*''send message'''*
sender = QMessageService()
if (sender.send(mesitsi)):
  print success
else:
  print fail

where as  modifying  writemessage example of QtMobility(C++) I am able to
send IM by making the above changes only. but not with PyQt. I need with
PyQt. any help would be greatly appreciated


-Praveen.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How to launch facebook app through dbus on N900

2010-10-04 Thread praveen koduru
I have installed Facebook application from App manager. I am able to launch
the application by clicking the facebook app on Desktop. But i want to
launch the app through command line (like dbus-send ).
I have tried the following but doesnt helped.

*dbus-send --session --dest=com.nokia.HildonDesktop.AppMgr
--type=method_call /com/nokia/HildonDesktop/AppMgr
com.nokia.HildonDesktop.AppMgr.LaunchApplication string:facebook*

Any help would be greatly appreciated.

-Praveen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Exit offline mode - troubling me a lot

2010-09-08 Thread praveen koduru
I am running a local browser benchmark, it is supposed to be run in Offline
mode, where all radios are off. The pages are displayed from local
filesystem. But Sometimes when I am running the browser,  I am asked Exit
offline mode? , I will press NO and thus varying my results, which I dont
want. Probably one of the page is trying to connect through WiFi.
Surprisingly, This question is posed, once in 5 times I  run the benchmark.

Is there a way to force not to display the Question??

-Praveen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


not able to launch fennec through command line on N900

2010-08-26 Thread praveen koduru
I have installed fennec browser from firefox website. I am able to launch
fennec browser through Menu  clicking on firefox icon. and absolutely
working fine.

Whereas When I tried to launch the same fennec through command line from
X-terminal. it executes and comes out no error messages nothing and still
the browser will not be launched.
Surprisingly!! the above problem happens only as root user(I mean sudo
gainroot on N900 X-terminal). Fennec launches well with normal user login.
But i need it as a root user to perform it. Help would be greatly
appreciated.

-Praveen.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to create an icon on desktop on N900 and link my binary to that

2010-08-16 Thread praveen koduru
I am trying to do a test by creating an icon, the requirement is very
simple. I need to open a browser and launch google.com through DBUS-SEND
command. The dbus-send command in kept in a shell script(run.sh) and run.sh
is hooked to test1.desktop file. I created test1.desktop file and test1
appears in the menu. but when I clicked it is not launching. it tries for  a
while and disappears.

*test1.desktop:*
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=TEST1
Exec=/usr/bin/run.sh
Icon=qtdone
StartupWMClass=qtdone
X-Window-Icon=qtdone
X-HildonDesk-ShowInToolbar=true
Terminal=false

*/usr/bin/run.sh:*
dbus-send --system --type=method_call --dest=com.nokia.osso_browser
--print-reply /com/nokia/osso_browser/request
com.nokia.osso_browser.load_url string:google.com

*ls -l /usr/bin/run.sh:* -rwxr-xr-x

if I execute simply run.sh, works fine. But the same thing I am trying to do
it through Icon. Am I missing something. I am new to N900. Help would be
gretaly appreciated.

-Raja



On Tue, Aug 10, 2010 at 7:00 PM, Ville M. Vainio vivai...@gmail.com wrote:

 On Tue, Aug 10, 2010 at 4:02 PM, Fred Lefévère-Laoide
 f...@lefevere-laoide.net wrote:

  You simply have to create a .desktop file associated with your program
  (don't forget to initialize dbus session with osso_init)

 osso_initialize is not needed if you don't specify X-Osso-Service in
 the .desktop file.

 Here's a .desktop file that works properly:

 [ville~/qtdone]|4 cat qtdone.desktop
 [Desktop Entry]
 Encoding=UTF-8
 Version=1.0
 Type=Application
 Name=qtdone
 Exec=/usr/bin/qtdone
 Icon=qtdone
 StartupWMClass=qtdone
 X-Window-Icon=qtdone
 X-HildonDesk-ShowInToolbar=true
 X-Osso-Type=application/x-executable
 Terminal=false


 --
 Ville M. Vainio @@ Forum Nokia

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread praveen koduru
I know that Display Resolution is 800x480, But I need to see from software
the display resolution.
I used to check Display Resolution in fedora using xrandr -q.  But maemo
doesnt have xrandr.

Does maemo has similiar command to print Display resolution?
or Can I install xrandr on maemo N900?

Praveen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread praveen koduru
Hi Ian,
I have tried apt-get install xrandr on my N900, Errror: couldnt find the
package.
Can you tell me which package you installed to make xrandr work for you on
N900?
-Praveen

On Tue, Aug 10, 2010 at 11:55 AM, Ian Stirling ma...@mauve.plus.com wrote:

 praveen koduru wrote:

 I know that Display Resolution is 800x480, But I need to see from software
 the display resolution. I used to check Display Resolution in fedora using
 xrandr -q.  But maemo doesnt have xrandr.

 Does maemo has similiar command to print Display resolution?
 or Can I install xrandr on maemo N900?


 While yes, you could install it.

 ssh -x u...@phone
 ssh -X u...@yourdesk
 xrandr -q
 Screen 0: minimum 480 x 480, current 800 x 480, maximum 800 x 800
 LCD connected 800x480+0+0 (normal left inverted right x axis y axis) 0mm x
 0mm
   800x48057.2*+

 xrandr is run on the desktop, with X forwarded to the X server on the
 phone.

 You can also if you're feeling silly run any X app like this, from xlander
 to firefox.
 X performance blows if you don't turn off powersave though.


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How can I get Display Resolution in N900 maemo5?

2010-08-10 Thread praveen koduru
Thanks Koos,

This will help me. but I thought some program like xrandr will be nice to
have on maemo. If so, we can quickly check the resolution. I dont know why
they have removed the xrandr binary.

For getting the display resolution itself you should write X11 code, doesnt
look fare?

-Praveen

On Tue, Aug 10, 2010 at 12:47 PM, koos vriezen koos.vrie...@gmail.comwrote:

 2010/8/10 praveen koduru prawin1...@gmail.com:
  I know that Display Resolution is 800x480, But I need to see from
 software
  the display resolution.

 I've googled it for you and in the Xlib Programming Manual, chapt_03
 there are three methods described getting the screen dimensions.
 (found this one http://www.sbin.org/doc/Xlib/chapt_03.html)

 Koos

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How to create an icon on desktop on N900 and link my binary to that

2010-08-10 Thread praveen koduru
Hi,

I have developed some program and am having it running on my N900 through
command line.

Now I want to create an icon on N900 home and on clicking that I need to
launch that binary.

Help would be appreciated.

-Praveen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


is there a way to make N900 Display doesnt OFF?

2010-08-09 Thread praveen koduru
is there a way to make N900 Display doesnt go OFF?

I am able to set it maximum to wait for only 2 mins. I need it for long
time.

Praveen.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: need help on Capturing Image via Dbus-send command on N900 Maemo5

2010-08-04 Thread praveen koduru
Any help on this

On Mon, Aug 2, 2010 at 1:09 PM, Andre Klapper aklap...@openismus.comwrote:

 Am Montag, den 02.08.2010, 09:35 +0530 schrieb praveen koduru:
  Any help on this.
  -Raja

 Any patience on this?
 (As seen in: Asking again after only half of a workday)

 andre ;-)

 --
 Andre Klapper (maemo.org bugmaster)

 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Controlling N900 Display Brightness Display turn on

2010-08-03 Thread praveen koduru
Hi,

I need to control the Display Brightness  Display Turn off(While it went to
standby).
For Display Turn on, I have increased the standby timer to 2 mins(max). But
I need to increase it further more say 10 mins. Can I control that?

For Display Brightness, I need to dim and bright the Display
programatically, like using dbus commands.

-Raja
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: need help on Capturing Image via Dbus-send command on N900 Maemo5

2010-08-01 Thread praveen koduru
Any help on this.
-Raja

On Fri, Jul 30, 2010 at 12:03 PM, praveen koduru prawin1...@gmail.comwrote:

 hi,

 I am able to open viewfinder through Dbus-send command. but I am not able
 to capture the image through the dbus-send as I am not aware of which
 interface to use.
 Unfortunately qdbus is also not working.

 Does anybody help to figure out which interface to use.

 Thanks,
 Raja.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


showkey command on N900

2010-08-01 Thread praveen koduru
Hi All,

 I didnt have showkey command on my N900. this is part of which package?
I tried apt-get install kbd. but package is not there. Any body let me
know the package.

-Raja.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


need help on Capturing Image via Dbus-send command on N900 Maemo5

2010-07-30 Thread praveen koduru
hi,

I am able to open viewfinder through Dbus-send command. but I am not able to
capture the image through the dbus-send as I am not aware of which interface
to use.
Unfortunately qdbus is also not working.

Does anybody help to figure out which interface to use.

Thanks,
Raja.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: on N900 after gainroot, executing shell script throws permission denied error.

2010-07-21 Thread praveen koduru
Yes it has executable permissions

but not able to execute the shell script.

On Wed, Jul 21, 2010 at 4:38 PM, Marchant, Jan 
jan.marchan...@imperial.ac.uk wrote:

 Silly answer - are you sure you have execute permissions set?

 See for example http://www.dartmouth.edu/~rc/help/faq/permissions.html

 Cheers,
 Jan

 
 From: maemo-developers-boun...@maemo.org [
 maemo-developers-boun...@maemo.org] On Behalf Of praveen koduru [
 prawin1...@gmail.com]
 Sent: 21 July 2010 11:57
 To: Daniil Ivanov
 Cc: maemo-developers@maemo.org
 Subject: Re: on N900 after gainroot, executing shell script throws
 permission   denied error.

 I have used both the ways Daniil, but no use..

 I mean sh shellscript.sh works fine,, but ./shellscript.sh doesnt work

 I have even tried
 1. /bin/sh
 2. ./shellscript.sh

 also,
 1.bash
 2. ./shellscript.sh

 but same error permission denied

 On Wed, Jul 21, 2010 at 4:13 PM, Daniil Ivanov daniil.iva...@gmail.com
 mailto:daniil.iva...@gmail.com wrote:
 Hi Praveen!

 Use
 sh shellscript.sh or ./shellscript.sh

 Thanks, Daniil.

 On Wed, Jul 21, 2010 at 1:39 PM, praveen koduru prawin1...@gmail.com
 mailto:prawin1...@gmail.com wrote:
  Hi,
  on N900 after gainroot, executing shell script throws permission denied
  error.
  But the same shell script runs fine when I ran with /bin/sh
 shellscript.sh
  Any body can help me to resolve this
  -PK
  ___
  maemo-developers mailing list
  maemo-developers@maemo.orgmailto:maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: qdbus needed on my N900

2010-07-20 Thread praveen koduru
Hi Vainio,

I have downgraded my N900 to PR1.1 and installed qdbus but it still showing
me some problem.

Please point me to right repo, where I can get the repos for PR1.1 qqdbus

Thanks,
Praveen

On Mon, Jul 19, 2010 at 2:45 PM, praveen koduru prawin1...@gmail.comwrote:

 Hi,

 Introspect, doesnt helped me much. for Example: *dbus-send
 /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view*
 I am not getting the services listed as it will with qdbus.

 I am looking for some help with respect to the above example. the above is
 the command I am using for exiting the application view and showing the
 dashboard , I need command to get focus on application again. I am not able
 to query what are the method_calls/signals  available with hildon_desktop
 service.

 Any help would be greatly appreciated.

 -Praveen Koduru

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Controlling Browser App how to???

2010-07-19 Thread praveen koduru
Hi,

Anybody has some pointers.

On Mon, Jul 19, 2010 at 4:42 PM, praveen koduru prawin1...@gmail.comwrote:

 Hi,

 I am trying to control browser app launch,close, load_url, savepage
 features.

 I found I can do it easily through dbus-send command. But I am able to
 launch  close browser application and able to load url into that app. But I
 am not able to find a way for save page.
 I tried dbus introspectable, but doesnt helped.

 I even tried dbus-monitor, but no use.

 Any help would be greatly appreciated.

 Thanks,
 Koduru

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: qdbus needed on my N900

2010-07-15 Thread praveen koduru
Hi,

Any one please help me with the dbus-command for knowing the method_call's.
 for Example: *dbus-send /com/nokia/hildon_desktop
com.nokia.hildon_desktop.exit_app_view*

the above is the command I am using for exiting the application view and
showing the dashboard , I need command to get focus on application again. I
am not query what are the method_calls available with hildon_desktop
service.

Any help would be greatly appreciated.

Thanks in Advance.

-Praveen Koduru.


On Thu, Jul 15, 2010 at 12:42 PM, Daniil Ivanov daniil.iva...@gmail.comwrote:

 Hi Praveen!

  You can use dbus-send instead
  http://linux.die.net/man/1/dbus-send

 Thanks, Daniil.

 On Thu, Jul 15, 2010 at 8:24 AM, praveen koduru prawin1...@gmail.com
 wrote:
  Hi,
  I want qdbus on my N900 Maemo device. I have tried extras-devel, but
 there
  is no qqdbus package listed.
  Please provide some way to get qdbus on my N900.
  Thanks,
  Praveen
 
  ___
  maemo-developers mailing list
  maemo-developers@maemo.org
  https://lists.maemo.org/mailman/listinfo/maemo-developers
 
 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


qdbus needed on my N900

2010-07-14 Thread praveen koduru
Hi,

I want qdbus on my N900 Maemo device. I have tried extras-devel, but there
is no qqdbus package listed.
Please provide some way to get qdbus on my N900.

Thanks,
Praveen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


qdbus command needed on my N900

2010-07-14 Thread praveen koduru
Hi
I want qdbus command  on my N900 Maemo device. I have tried extras-devel,
but there is no qqdbus package listed in the extras-devel repo.
Please provide some way to get qdbus on my N900.

Thanks,
Praveen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread praveen koduru
Hi Timo,

thanks for the quick reply.

But I am not able to open the mediaplayer on N900.
dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open string:file:///$1

dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open string:
file:///home/user/MyDocs/.sounds/Total Fantasy.mp3

doesnt gave errror,, but media player is not launched.

-Praveen



On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen timop.harko...@gmail.comwrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread praveen koduru
This also not working. whereas I am able ot open browser and other
applications except mediaplayer.
Any suggestions or way to debug.

-Praveen Koduru

On Fri, Apr 9, 2010 at 12:10 PM, Timo Härkönen timop.harko...@gmail.comwrote:

 Hi

  2010/4/9 praveen koduru prawin1...@gmail.com

 Hi Timo,

 thanks for the quick reply.

 But I am not able to open the mediaplayer on N900.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:file:///$1

 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.sounds/Total Fantasy.mp3


 Try

 dbus-send --session --print-reply type=method_call
 --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayler.mime.open string:file:///path/to/your/file.mp3

 BR

 -Timo



 doesnt gave errror,, but media player is not launched.

 -Praveen



  On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen timop.harko...@gmail.com
  wrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo





___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread praveen koduru
Hi,

I am trying  to launch media player from command line prompt.
dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open string:
file:///home/user/MyDocs/.videos/9.mp4

But this not launching mediaplayer and even No error was found on the
terminal.

Whereas I am able to launch browser and all other from command line through
dbus-send commands.

Any help will be greatly appreciated.

-Praveen.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread praveen koduru
It is giving the following error from N900 shell prompt,
 Failed to open connection to session message bus: (null)
-Praveen



On Fri, Apr 9, 2010 at 3:42 PM, praveen koduru prawin1...@gmail.com wrote:

 Hi,

 I am trying  to launch media player from command line prompt.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.videos/9.mp4

 But this not launching mediaplayer and even No error was found on the
 terminal.

 Whereas I am able to launch browser and all other from command line through
 dbus-send commands.

 Any help will be greatly appreciated.

 -Praveen.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread praveen koduru
Hi Timo,

Thanks for the help.

I am able to launch the application now.

I am trying to launch it from putty(WiFi) instead of tools--shell prompt.

-Praveen

On Fri, Apr 9, 2010 at 4:15 PM, Timo Härkönen timop.harko...@gmail.comwrote:

 Hi

  2010/4/9 praveen koduru prawin1...@gmail.com

 This also not working. whereas I am able ot open browser and other
 applications except mediaplayer.
  Any suggestions or way to debug.


 You could try using dbus-monitor to see what's going on. Put it in the
 background and forward it's output to some file.

 dbus-monitor  debugfile.txt 

 When you're done bring it back up and terminate it

 fg
 [ctrl+c]

 Notice that the dbus-monitor produces quite alot of output.

 Otherwise if you're executing the command as user it should work. At least
 I'm out of ideas.

 -Timo



 -Praveen Koduru

   On Fri, Apr 9, 2010 at 12:10 PM, Timo Härkönen 
 timop.harko...@gmail.com wrote:

 Hi

  2010/4/9 praveen koduru prawin1...@gmail.com

 Hi Timo,

 thanks for the quick reply.

 But I am not able to open the mediaplayer on N900.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:file:///$1

 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.sounds/Total Fantasy.mp3


 Try

 dbus-send --session --print-reply type=method_call
 --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayler.mime.open string:file:///path/to/your/file.mp3

 BR

 -Timo



 doesnt gave errror,, but media player is not launched.

 -Praveen



  On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen 
 timop.harko...@gmail.com wrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo







___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-08 Thread praveen koduru
Hi Piñeiro,

at-spi is running.
Nokia-N900-42-11:/# ps aux | grep at-spi
 1795 root 13832 R/usr/lib/at-spi/at-spi-registryd
 2458 root  2088 Sgrep at-spi
I am able to run some applications on N900. But I am able to run only with
dogtail.rawinput functions.
Does it supports Object based refernce to the applications?.

Example. I have tried with Filemanager. I have launched the filemanager with
following command
GTK_MODULES=gail:hail:atk-bridge ossofilemanager

It launched filemanager and I am able to see Nokia N900 folder in that.
and i tried tree.root.dump() and i have got
 tree.root.dump()
{root}
 Node roleName='application' name='ossofilemanager' description=''
  Node roleName='frame' name='File manager' description=''
   Node roleName='filler' name='' description=''
Node roleName='filler' name='' description=''
 Node roleName='push button' name='' description='' text=''
  press
  release
  click
  Node roleName='label' name='' description='' text=''
  Node roleName='label' name='' description='' text=''
 Node roleName='label' name='' description='' text=''
Node roleName='panel' name='' description=''
 Node roleName='application' name='.' description=''
But I am not able to click the Nokia N900 folder. I am not able to click
any object in the appliation. Please help

-Praveen




On Wed, Apr 7, 2010 at 7:25 PM, Piñeiro apinhe...@igalia.com wrote:

 From: praveen koduru prawin1...@gmail.com

  I have checked atspi is running or not like this
  import atspi
 
  (no errors). Is this the way to check whether it is running or not??

 No, I mean something more simple:

 ps aux | grep at-spi

  I am trying to get the object of Calculator app on N900. I really dont
  know how to do that. where as on desktop I did like this for opening an
  Totem application.
  totem = tree.root.application('totem')
  MovieMenu=totem.menu('Movie').click()
  This justed worked on Desktop. Whereas to get the object of Calculator 
  App on Maemo. I did this
  Calc=tree.root.application('/usr/bin/osso_calculator')
  searching for child of {root}: /usr/bin/osso_calculator application
  (attempt 3)
  searching for child of {root}: /usr/bin/osso_calculator application
  (attempt 4)
  ... and the trying went on.

 As I told you before, arm-for-testing on doesn't enable a11y for all
 applications. Take into account that this link is for a automatic
 testing framework, so it only include some applications.

 In order to load the a11y modules, GTK_MODULES need to be set to
 GTK_MODULES=gail:hail:atk-bridge.

 arm-for-testing on change the launcher of the supported applications
 in order to be sure that GTK_MODULES has the correct values.

  So could you please suggest me how to get the object of Calculator and
  click one button with that.

 You could try the same suggestion I made in the previous mail related
 with the contacts application. Try to change the calculator launcher,
 in order to use the summoner and have the envvar with the correct
 value:

  #!/bin/sh
  unset AF_DEFINES_SOURCED
  source /etc/osso-af-init/af-defines.sh
  export GTK_MODULES=gail:hail:atk-bridge
  exec maemo-summoner /usr/bin/osso-addressbook.launch

 In the same way, you could create a simple gtk application, without
 maemo-launcher, and then try to execute it by hand in this way:

 $GTK_MODULES=gail:hail:atk-bridge ./my-gtk-application

  Thanks a lot for your help.

 You are welcome, sorry for not be enough clear in my explanations, and
 thanks to test it. I have Try if all a11y pieces works on n900 in my
 TODO list for a long time.

  -Praveen

 BR

 ===
 API (apinhe...@igalia.com)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Launching mediaplayer from command line in N900

2010-04-08 Thread praveen koduru
Hi

Can anybody suggest me how to launch media player from command line?
I want to play an mp3/mp4 file through N900 media player. How can I do that
thorugh command line?
Do I need to send any dbus command to the /usr/bin/mediaplayer??

Any Help greatly appreciated.

-Praveen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread praveen koduru
 Hi ,
I tried the steps suggested in the following link.
http://hildon-test-aut.garage.maemo.org/installation.html

Steps I have tried:

1. Installed all .deb packages as pointed by the above link.

2. arm_for_testing on. executed the command  rebooted

3. Install Dogtail from the above link

   cd dogtail; ./setup.py install
4.  Then tested an example application sniff, which is present in the
dogtail.
- sniff not working
- It throws error
  ImportError: cannot import name checkForA11yInteractively
I enabled Accessibility through gconftool-2 --type bool --set
/desktop/gnome/interface/accessibility true
But still the same error.

I jus tried the following
1. python2.5
 2. import pyatspi
   Traceback (most recent call last):
   File stdin, line 1, in module
   ImportError: No module named pyatspi
I installed python-at-spi_0.6.1-1osso2_armel.deb package from the above
link. but still it is showing no module pyatspi.

All I need is to install dogtail and thus Hildon Test Automation framework
successfully and write some test scripts on N900.
any Help will be greatly appreciated.

-Praveen.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread praveen koduru
Thanks for the quick response Piñeiro.
I tried your 2 steps. Please find the results below.

Step 1:
Nokia-N900-42-11:/home/opt# python
Python 2.5.1 (r251:54863, May 23 2007, 17:32:51)
[GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
Type help, copyright, credits or license for more information.
 from dogtail import tree
Creating logfile at /tmp/dogtail/logs/log_20100407-130759_debug ...
Detecting distribution: Debian (or derived distribution)
Warning: AT-SPI's desktop is visible but it has no children. Are you running
any AT-SPI-aware applications?
 tree.root.dump ()
{root}
(I have opened contacts and then did tree.root.dump(). but stilll giving
{root} only)

Step 2:
 import atspi
works fine; I tried the script you have given. script executed but with no
prints
Nokia-N900-42-11:/home/opt# ./Piñeiro.py
Nokia-N900-42-11:/home/opt#

-Praveen

On Wed, Apr 7, 2010 at 3:14 PM, Piñeiro apinhe...@igalia.com wrote:

 From: praveen koduru prawin1...@gmail.com

   Hi ,
  I tried the steps suggested in the following link.
  http://hildon-test-aut.garage.maemo.org/installation.html

 This is a really old guide. The target were the Nokia 770/810, not
 sure if works fine on N900.

  Steps I have tried:
 
  1. Installed all .deb packages as pointed by the above link.
 
  2. arm_for_testing on. executed the command  rebooted
 
  3. Install Dogtail from the above link
 
 cd dogtail; ./setup.py install
  4.  Then tested an example application sniff, which is present in the
  dogtail.
  - sniff not working
  - It throws error
ImportError: cannot import name
 checkForA11yInteractively

 AFAIK, sniff have never worked.

 Have you tried to use directly dogtail? Something like:

   from dogtail import tree
   tree.root.dump ()


  I enabled Accessibility through gconftool-2 --type bool --set
  /desktop/gnome/interface/accessibility true

 This is the way to enable the accessibility in the desktop, and it is
 more recently that the package version number used in that link.

 So, in this framework, this gconf variable is not used at all, it is
 just based on GTK_MODULES and other custom things.

  But still the same error.
 
  I jus tried the following
  1. python2.5
   2. import pyatspi
 Traceback (most recent call last):
 File stdin, line 1, in module
 ImportError: No module named pyatspi
  I installed python-at-spi_0.6.1-1osso2_armel.deb package from the above
  link. but still it is showing no module pyatspi.

 pyatspi is the last python accessibility bindings. This python-at-spi
 package is about the old python bindings. Try something like:

 $python2.5
  import atspi

 And if it works, you could a script like this:

 #!/usr/bin/env python
 # Return the name of the applications currently registered

 import atspi
 desk = atspi.registry.getDesktop(0)
 for i in xrange(desk.getChildCount()):
app = desk.getChildAtIndex(i)
print Index: %d % i
try:
print Application name: %s % app.getName()
print Application elements: %d % app.getChildCount()
except Exception: print Error getting name or childcount
print

  All I need is to install dogtail and thus Hildon Test Automation
 framework
  successfully and write some test scripts on N900.
  any Help will be greatly appreciated.

 As I said, have you tried to use directly dogtail instead of use
 Sniff?

 BR

 ===
 API (apinhe...@igalia.com)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Not able to install Hildon Test Automation Framework on N900

2010-04-07 Thread praveen koduru
I have checked atspi is running or not like this
 import atspi

(no errors). Is this the way to check whether it is running or not??

I am trying to get the object of Calculator app on N900. I really dont
know how to do that. where as on desktop I did like this for opening an
Totem application.
totem = tree.root.application('totem')
MovieMenu=totem.menu('Movie').click()
This justed worked on Desktop. Whereas to get the object of Calculator 
App on Maemo. I did this
Calc=tree.root.application('/usr/bin/osso_calculator')
searching for child of {root}: /usr/bin/osso_calculator application
(attempt 3)
searching for child of {root}: /usr/bin/osso_calculator application
(attempt 4)
... and the trying went on.

So could you please suggest me how to get the object of Calculator and
click one button with that.

Thanks a lot for your help.
-Praveen
On Wed, Apr 7, 2010 at 4:35 PM, Piñeiro apinhe...@igalia.com wrote:

 From: praveen koduru prawin1...@gmail.com

  Thanks for the quick response Piñeiro.
  I tried your 2 steps. Please find the results below.
 
  Step 1:
  Nokia-N900-42-11:/home/opt# python
  Python 2.5.1 (r251:54863, May 23 2007, 17:32:51)
  [GCC 3.4.4 (release) (CodeSourcery ARM 2005q3-2)] on linux2
  Type help, copyright, credits or license for more information.
  from dogtail import tree
  Creating logfile at /tmp/dogtail/logs/log_20100407-130759_debug ...
  Detecting distribution: Debian (or derived distribution)
  Warning: AT-SPI's desktop is visible but it has no children. Are you
 running
  any AT-SPI-aware applications?

 Anyway, please check if at-spi is running.

  tree.root.dump ()
  {root}
  (I have opened contacts and then did tree.root.dump(). but stilll
 giving
  {root} only)

 As far as I remember arm-for testing just enable the accessibility
 support for the applications included in the testing framework.

 What it does is replace the launcher file application, in order to
 launch the applications supported with GTK_MODULES=gail:hail:atk-bridge.

 Remember that in maemo there are a maemo-launcher/invoker
 application. Applications are loaded using this application.

 I bet that contacts was not included in this framework, as it is a
 really recent application.

 You could try to modify by hand the contacts launch file, replacing
 /usr/bin/osso-addresbook to something like this:

 #!/bin/sh
 unset AF_DEFINES_SOURCED
 source /etc/osso-af-init/af-defines.sh
 export GTK_MODULES=gail:hail:atk-bridge
 exec maemo-summoner /usr/bin/osso-addressbook.launch

 That is what arm-for-testing does (more or less, AFAIK) for the
 supported applications.

 Note: probably you should require to reboot the device after that.

 
  Step 2:
  import atspi
  works fine; I tried the script you have given. script executed but with
 no
  prints
  Nokia-N900-42-11:/home/opt# ./Piñeiro.py
  Nokia-N900-42-11:/home/opt#

 It doesn't print anything as no application is registered on at-spi.

 BR

 ===
 API (apinhe...@igalia.com)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers