Comments (8)
amixer get master
amixer: Unable to find simple control 'master',0
I am using analogue not HDMI
from douban.fm.
how about this #22
from douban.fm.
okie, for raspberry pi user douban.py inside find "Master" > "PCM" fix the bug.
from douban.fm.
有解决办法吗?
from douban.fm.
def get_volume(self):
if self.platform == 'Linux':
volume = subprocess.check_output('amixer get Master | grep Mono: | cut -d " " -f 6', shell=True)
return volume[1:-3]
elif self.platform == 'Darwin':
return subprocess.check_output('osascript -e "output volume of (get volume settings)"', shell=True)
else:
return
# 调整音量大小
def change_volume(self, increment):
if increment == 1:
volume = int(self.volume) + 5
else:
volume = int(self.volume) - 5
if self.platform == 'Linux':
subprocess.Popen('amixer set Master ' + str(volume) + '% >/dev/null 2>&1', shell=True)
elif self.platform == 'Darwin':
subprocess.Popen('osascript -e "set volume output volume ' + str(volume) + '"', shell=True)
else:
pass
因为声卡不一样,上面的同学是把"Master" 转换成"PCM"就可以了,你可以看看你的声卡是哪种,替换master应该就可以了
http://blog.csdn.net/juncoder/article/details/39269595 这里也有查看的方法
from douban.fm.
多谢 大神 指点,现已搞定
from douban.fm.
hi, just found this post after i posted another issue for the same symptom :)
from douban.fm.
okie, for raspberry pi user douban.py inside find "Master" > "PCM" fix the bug.
What does this statement mean? What do you mean by "inside" and "find", are these commands? Please give full syntax. I've been struggling with this for too long. Thanks.
from douban.fm.
Related Issues (20)
- 安装报错python setup.py egg_info, Python版本是 2.7.10 HOT 3
- Add proxy server settings for Netease music HOT 3
- master 版本,网易不能播放
- 不能获取歌词... HOT 4
- python-dev和libffi-dev也算是依赖?
- 无法登录 HOT 1
- 坏掉了... HOT 2
- 安装错误 HOT 2
- 当我输入 douban.fm 并且输入 Email和Password之后,为什么跳转到 Hit any key to quit w3m:
- Does this package support Python 3?
- 歌曲没有放完就跳到下一首 HOT 1
- 运行douban.fm 报语法错误,invalid syntax (pycookiecheat.py, line 27) HOT 1
- 运行后终端卡死,无法播放音乐
- doubanfm.exceptions.APIError: list index out of range HOT 1
- No module named 'Queue' HOT 1
- pyobjc-core 安装问题
- invalid syntax HOT 1
- requirments.txt
- max 下报错并一直显示加载歌曲
- 更新出错 HOT 3
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 douban.fm.