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)
- Enter one-line summary
- keeps crashing
- Services can't keep alive eventhough the notification icon is on.
- bt notifier
- fake package
- w
- Send notification to email
- puk code for smart watch HOT 1
- No text sent/received
- BT notifier not working
- Telefone não liga a tela.
- Code review request
- can't connect to smart watch
- Code review request
- Not sending notifications
- via bt Not working
- Enter one-line summary
- not working good
- Some messages won't display on computer
- smart phone will not stay paired to make a call or us my photos or messages
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.