anyc / mplugd Goto Github PK
View Code? Open in Web Editor NEWDaemon that listens on events (e.g. xrandr or pulseaudio) and executes user-defined actions
License: Other
Daemon that listens on events (e.g. xrandr or pulseaudio) and executes user-defined actions
License: Other
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?
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.