Comments (8)
nvm, sudo apt-get install python-alsaaudio fixed it!
Original comment by [email protected]
on 25 Jun 2010 at 4:34
from android_notifier.
William, please see if this should be fixed in some way (e.g. handling the
failure to load the module and just disabling the functionality, or exisitng
with a nicer message)
Original comment by [email protected]
on 25 Jun 2010 at 5:22
from android_notifier.
Right, the Linux client now depends on python-alsaaudio for the mute sounds
action. If there's a better way to mute audio on Linux, I'd like to know!
This shouldn't be a problem once I make a .deb that includes dependency
information. Maybe there's a better way to handle the ImportError for people
installing from source though...
Original comment by [email protected]
on 25 Jun 2010 at 6:28
from android_notifier.
the mute action doesn't work, I'll see if I can find why. Btw wouldn't it be
handy to create a deb instead of svn and make it depend on python-alsaaudio?
Original comment by [email protected]
on 25 Jun 2010 at 6:31
from android_notifier.
Hmm, I was worried that the method using alsaaudio wouldn't be portable. I
wasn't sure what the best way to mute audio programmatically was. Can you tell
me anything about your Linux system? I tested using Ubuntu 10.04.
Making a .deb is exactly what I plan on doing :). Thanks for being brave and
checking out the bleeding edge source code!
Original comment by [email protected]
on 25 Jun 2010 at 6:37
from android_notifier.
This seems to work for the sound,
amixer set Master mute
I'm running on a pretty default 10.04 with build-essentials, running on a asus
eee 1000h.
Original comment by [email protected]
on 25 Jun 2010 at 6:54
from android_notifier.
how about something like this:
def handle_notification_unmute(self, notification):
f=os.popen("amixer set Master unmute > /dev/null")
def handle_notification_mute(self, notification):
f=os.popen("amixer set Master mute > /dev/null")
def handle_notification_toggle(self, notification):
f=os.popen("amixer set Master toggle > /dev/null")
Don't know if this is correct, my python isn't that great. Anyway, this way you
don't need the alsaaudio lib.
Original comment by [email protected]
on 25 Jun 2010 at 10:30
from android_notifier.
Many modern Linux distros ship with PulseAudio for application-level audio.
Might be prudent to determine if there's a better way to mute audio as iirc, PA
doesn't like it when you mess with ALSA directly.
Off the top of my head, it would make sense to depend on the PA library and
fall-back to ALSA if it doesn't exist.
Original comment by [email protected]
on 10 Sep 2010 at 8:43
from android_notifier.
Related Issues (20)
- Issues using a 2nd monitor HOT 5
- does not communicate any more HOT 5
- does not communicate any more HOT 1
- Flip Orientation HOT 3
- summary HOT 1
- summary HOT 1
- The Mac client exits out when it receives a test notification over Bluetooth HOT 3
- Error when parring with bluetooth (sent from phone) HOT 1
- Growl notification does not work but system default does HOT 6
- no live notifacation, however ping works great HOT 2
- Causes Mac to Freeze HOT 8
- process is killed HOT 6
- Find mobile phone by making it ring HOT 2
- Notification history HOT 1
- Cant get desktop and android notifier to install on MY Mac HOT 1
- Notifier does not detect bluetooth pair HOT 4
- SMS not stored in phone when notifycation have been send HOT 5
- Don't disable wifi when it's enabled before notifying HOT 1
- Multi directed IP/hosts HOT 1
- Events blocking new events HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_notifier.