[Ekiga-list] python dbus script - pcspeaker

Fredrik Axelsson fraxbe at gmail.com
Thu Aug 3 19:54:34 UTC 2006


Hi All!

I hacked up a little script which employs the pcspeaker as a ring device for
ekiga. If someone has already posted something similar before I apologize.

For the script to work;
Ekiga needs to be compiled with dbus support

Depending on your distro you will need packages that provide:
  - beep (a program which beeps the pcspeaker)
  - python-dbus bindings (on gentoo they are included with dbus...I think)
  - pygtk

If you are using Linux, you will need a kernel compiled with
 - CONFIG_INPUT_PCSPKR

Note that beep might need to be set suid root to work when it's not used
from a terminal. Look at the beep man-page for more information.

Put the script in one of your session startup scripts. On my machine I have
selected the script to be started along with gnome in the control-center
dialog. It does not matter whether the script is launched before or after
ekiga. A dbus session must exist though.

The script can be extended in many ways, for example i use the python dcop
extension to pause amarok when ekiga is ringing and a call is connected.

http://gitweb.freedesktop.org/?p=dbus-dbus-python;a=summary

Hope someone else will find this useful.

Regards,

Fredrik Axelsson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.gnome.org/archives/ekiga-list/attachments/20060803/deb27913/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ekiga-pc-speaker-script.py
Type: text/x-python
Size: 1044 bytes
Desc: not available
URL: <https://mail.gnome.org/archives/ekiga-list/attachments/20060803/deb27913/attachment.py>


More information about the ekiga-list mailing list