Coder Social home page Coder Social logo

mplugd's People

Contributors

anyc avatar benklop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mplugd's Issues

DBusException: org.freedesktop.DBus.Error.UnknownMethod:

Hi

Great tool, I am using it to detect my bluetooth headphones, switch to them and set A2DP profile, And on disconnect switch back to HDMI sound output. But after the first connect/disconnect I get a lot of these Exceptions and it works not that reliable afterwards.

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in bootstrap_inner
self.run()
File "Applications/mplugd/mplugd/mplugd.py", line 35, in run
self.handle_event(val)
File "Applications/mplugd/mplugd/mplugd.py", line 38, in handle_event
mplugd.laststate = get_state();
File "Applications/mplugd/mplugd/mplugd.py", line 326, in get_state
plugin.get_state(state)
File "/home/htpc/Applications/mplugd/mplugd/plugins/pi_pulseaudio.py", line 388, in get_state
state["sink"] = get_state_sinks()
File "/home/htpc/Applications/mplugd/mplugd/plugins/pi_pulseaudio.py", line 365, in get_state_sinks
sinks = eventloop.pa_wrapper.get_sinks()
File "/home/htpc/Applications/mplugd/mplugd/plugins/pi_pulseaudio.py", line 107, in get_sinks
sinks = dict((sink.Get('org.PulseAudio.Core1.Device', 'Name'), sink) for sink in sinks)
File "/home/htpc/Applications/mplugd/mplugd/plugins/pi_pulseaudio.py", line 107, in
sinks = dict((sink.Get('org.PulseAudio.Core1.Device', 'Name'), sink) for sink in sinks)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call

return self._proxy_method(_args, *_keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

Any idea what I do wrong?

Thanks!

Can mplugd support acpi event and dbus signal?

Hi, I'm wrting some app for my gentoo box.
I need an user-defined-action auto executer, then this project comes into my eyes.

What I want to do is mainly auto-performance-tuning, which is similar to https://github.com/fcelda/tuned, but the profile and action will be managed by seperate daemons.

I'm going to write a "profiled" project, which manages user-defined profiles and export profile infomation through dbus.
I'd like to use mplugd for the action part, but I need acpi-event and dbus-signal as event sources.

I'd like to contribute on your project. Do you think it is appropriate for mplugd to support this two new event types?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.