kde bluemote scripts

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

Scripts and config files for bluemote (bluetooth remote command processing server) which support some kde based applications, using DCOP protocol.
With this you can remotely do some operations on your bluetooth enabled PC with you bluetooth enabled mobile device.
Download bluemote from
http://www.geocities.com/saravkrish/progs/bluemote/index.html

I bundled a modified version of bluemote's own serial.c, because my SE k700i didnt work with the original one. Feel free to use it.

Supports:

kmix - for master volume setting
kpresenter - presentation paging
amarok - play/stop, fw/rw, next/prev, info, etc.
kmplayer - play/stop, fw/rw
kaffeine - play/stop, fw/rw, fullscreen, dvd menu, etc.

Beware to use one instance of kmplayer and of kpresenter to avoid confusion. In kpresenter only the first viewed presentationis accesible.

(This is a modified, improved, and extended version of amarok-bluemote.)

Note: bluemote is for "T610 (or compatible Sony Ericsson phones)". Quoted from bluemote site. Dont know if it works for other mobiles...
Last changelog:

14 years ago

v0.4.1
------

Scripts
+ fix in dcop-amarok-info script (time)
+ small doc update


v0.4
----

Scripts:

+ fix for amarok info text (ugly text after info)
+ added lock_do and lock_kill -> applies only if you are using
my enhanced bluemote version
+ some helper scripts (office.sh,media.sh,kaffeine.sh) that
does the symlinking of bluemote.cfg for you, if you start them.
The cfg files must be copied into place (~/.bluemote)
to make it work.

Config:

+ renamed config points in cfg files for more options to fit
(unfortunately there is a limit how long accumulate menu size
can be tranferred to mobile in bluemote (maybe bug of bluemote?))
+ added WakeUp, GoSleep config lines: commands executed when
bluetooth connection is reestablished and broken. Now
GoSleep password locks KDE and pauses amarok/kaffeine/kmplayer,
but WakeUp (it would kill desktop lock) doesnt work currently
because kdedesktop_lock seems to lock bluemote too. :(
For GoSleep to lock desktop, you MUST start bluemote server
from within your KDE session!

Bluemote patches:

+ added serial.c, bluemote.c for enhanced k700i compatibility
(replace bluemote's 2.0 own files and recompile/reinstall it)
Sources in ./bluemote_src/

+ bluemote 2.0 COMPLETE patched version added with GoSleep/WakeUp
configuration line parsing. (Full source included.)
If bluetooth connection is broken GoSleep command
is called, if connection reestablished WakeUp command is called.
Look into cfg files if looking for example.
Sources in ./bluemote_enhanced/
NOTE: it is patched for k700i! So replace serial.c
with the original bluemote serial.c if you have not k700i,
or serial connection does not work.

Credits goes to Saravana K. Kannan for bluemote's author
for his great project!


v0.3
+ fixed dcop-amarok-info time info
+ added kaffeine config file (mostly fully functional) (bluemote-kaffeine.cfg)

Info:
Kaffeine 0.6, Amarok 1.2.1, KOffice 1.3, KMplayer 0.8.4


v0.2

+ added Mute/Unmute for Amarok
- removed Start Amarok (too much entries for bluemote)
+ some script cleanup

ktech

14 years ago

anyone managed to use k700i with bluemote? How? Thanks!

Report

ltmon

14 years ago

Hi Krionius,

I'm trying to get your scripts working with my K700i and the media script (for amaroK control).

Upon running the K700i gives me a message "Profile Handsfree" and then (quickly) "bluez connected".

About 20 seconds later it then goes:

"bluez disconnected"

Which is about the same time as the bluemote program terminates.

Any help would be much appreciated.

Thanks,

L.

The following is my bluemote log:

[Mon Apr 25 17:39:12 2005] - INIT - Setting up signal handlers
[Mon Apr 25 17:39:12 2005] - INIT - Connecting to phone...
[Mon Apr 25 17:39:16 2005] - INIT - Connected to phone.
[Mon Apr 25 17:39:16 2005] - INIT - Initialising the connection.

[Mon Apr 25 17:39:16 2005] - W - ATZ
[Mon Apr 25 17:39:16 2005] - R - OK

Report

C

krionius

14 years ago

Probably you should use the original bluemote serial.c, as far as I see, your k700i returns OK for ATZ.

My returned TZ and OK, so i changed the code of serial.c!

Please try downloading original bluemote version, extract serial.c, and use it instead of mine.

I hope it helps. Please notify me.

Thx

Report

ltmon

14 years ago

Thanks for the quick reply and your trouble.

Replacing with the standard bluemote had more success. The process did not self-terminate, and I was able to visit the "Connectivity -> Accessories" menu in my phone and select a command.

Unfortunately none of the commands had an effect.

L.

Below is my log for a connect and then "play/pause" combination:

[Mon Apr 25 19:32:30 2005] - INIT - Setting up signal handlers
[Mon Apr 25 19:32:30 2005] - INIT - Connecting to phone...
[Mon Apr 25 19:32:32 2005] - INIT - Connected to phone.
[Mon Apr 25 19:32:32 2005] - INIT - Initialising the connection.

[Mon Apr 25 19:32:32 2005] - W - ATZ^M
[Mon Apr 25 19:32:32 2005] - R - OK

[Mon Apr 25 19:32:32 2005] - W - ATE=0^M
[Mon Apr 25 19:32:32 2005] - R - TE=0
[Mon Apr 25 19:32:32 2005] - R - OK

[Mon Apr 25 19:32:32 2005] - W - ATE=0^M
[Mon Apr 25 19:32:32 2005] - R - OK

[Mon Apr 25 19:32:32 2005] - INIT - Waiting for commands from phone

[Mon Apr 25 19:32:32 2005] - W - AT*ECAM=1^M
[Mon Apr 25 19:32:32 2005] - R - OK

[Mon Apr 25 19:32:32 2005] - W - AT+CSCS="8859-1"^M
[Mon Apr 25 19:32:32 2005] - R - OK

[Mon Apr 25 19:32:32 2005] - W - AT*EAM="PC Remote"^M
[Mon Apr 25 19:32:32 2005] - R - OK

[Mon Apr 25 19:32:32 2005] - INFO - Event Connect occurred.
[Mon Apr 25 19:32:32 2005] - W - AT*ECAM=1^M
[Mon Apr 25 19:32:33 2005] - R - OK

[Mon Apr 25 19:32:33 2005] - W - AT+CSCS="8859-1"^M
[Mon Apr 25 19:32:33 2005] - R - OK

[Mon Apr 25 19:32:33 2005] - W - AT*EAM="PC Remote"^M
[Mon Apr 25 19:32:33 2005] - R - OK

[Mon Apr 25 19:32:48 2005] - R - *EAAI

[Mon Apr 25 19:32:48 2005] - W - AT*EASM="PC Remote",1,1,19,"A Prev","A Play/Pause","A Next","A Go2Index","A Stop","A Info","A Vol Down","A Vol Up","A Mute / Unmute","A Random","A Fwd","A Rewind","V Play","V Pause","V Stop","V Fwd","V Rewind","Mouse","Volume"^M
[Mon Apr 25 19:32:53 2005] - W - AT*ECAM=1^M
[Mon Apr 25 19:32:54 2005] - R - OK

[Mon Apr 25 19:32:54 2005] - W - AT+CSCS="8859-1"^M
[Mon Apr 25 19:32:57 2005] - R - OK

[Mon Apr 25 19:32:57 2005] - W - AT*EAM="PC Remote"^M

[Mon Apr 25 19:32:57 2005] - W - AT*ECAM=1^M
[Mon Apr 25 19:32:59 2005] - R - OK

[Mon Apr 25 19:32:59 2005] - W - AT+CSCS="8859-1"^M
[Mon Apr 25 19:33:02 2005] - R - OK

[Mon Apr 25 19:33:02 2005] - W - AT*EAM="PC Remote"^M
[Mon Apr 25 19:33:03 2005] - INFO - Interrupted by user. Exiting.

[Mon Apr 25 19:33:03 2005] - W - ATZ^M
[Mon Apr 25 19:33:04 2005] - R - OK

Report

C

krionius

14 years ago

I think there must be some problem with the paths. It should work, if the commands are interpreted by bluemote. I am happy, that you found other controlling way.

Actually I think bluemote has more advanced possibilities than simple HID manipulation. But it would be very nice to know how you managed to do HID use with k700i.

Report

ltmon

14 years ago

Ok, after a few hours stuffing around I actually got bluetooth HID (a completely different method) to control amaroK for me. This is cool because I get to use the graphical remote control display on my K700i, and can even make my own graphical remote control displays.

I'll write it up as a quick howto and post it somewhere when I next get a chance.

Thanks again for your help.

L.

Report

C

krionius

14 years ago

Great! You are a smart one!
If you can, please share this knowledge.

Report

chris13

14 years ago

It seems you have forgotten to add the patched serial.c
Can you add it with the next version?
Thanks
Christoph

Report

C

krionius

14 years ago

0.4 now contains serial.c

Report

C

krionius

14 years ago

Sorry! I will add it, currently I dont have it on hand... Expect it tomorrow

Report

C

krionius

14 years ago

pls, comment if bluemote works for other mobiles than SonyEricsson.

Report

polovsky75

14 years ago

Works also with my S700I, Great work

Report

14 years ago

v0.4.1
------

Scripts
+ fix in dcop-amarok-info script (time)
+ small doc update


v0.4
----

Scripts:

+ fix for amarok info text (ugly text after info)
+ added lock_do and lock_kill -> applies only if you are using
my enhanced bluemote version
+ some helper scripts (office.sh,media.sh,kaffeine.sh) that
does the symlinking of bluemote.cfg for you, if you start them.
The cfg files must be copied into place (~/.bluemote)
to make it work.

Config:

+ renamed config points in cfg files for more options to fit
(unfortunately there is a limit how long accumulate menu size
can be tranferred to mobile in bluemote (maybe bug of bluemote?))
+ added WakeUp, GoSleep config lines: commands executed when
bluetooth connection is reestablished and broken. Now
GoSleep password locks KDE and pauses amarok/kaffeine/kmplayer,
but WakeUp (it would kill desktop lock) doesnt work currently
because kdedesktop_lock seems to lock bluemote too. :(
For GoSleep to lock desktop, you MUST start bluemote server
from within your KDE session!

Bluemote patches:

+ added serial.c, bluemote.c for enhanced k700i compatibility
(replace bluemote's 2.0 own files and recompile/reinstall it)
Sources in ./bluemote_src/

+ bluemote 2.0 COMPLETE patched version added with GoSleep/WakeUp
configuration line parsing. (Full source included.)
If bluetooth connection is broken GoSleep command
is called, if connection reestablished WakeUp command is called.
Look into cfg files if looking for example.
Sources in ./bluemote_enhanced/
NOTE: it is patched for k700i! So replace serial.c
with the original bluemote serial.c if you have not k700i,
or serial connection does not work.

Credits goes to Saravana K. Kannan for bluemote's author
for his great project!


v0.3
+ fixed dcop-amarok-info time info
+ added kaffeine config file (mostly fully functional) (bluemote-kaffeine.cfg)

Info:
Kaffeine 0.6, Amarok 1.2.1, KOffice 1.3, KMplayer 0.8.4


v0.2

+ added Mute/Unmute for Amarok
- removed Start Amarok (too much entries for bluemote)
+ some script cleanup

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.4.1
updated Apr 18 2005
added Apr 04 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5