gen2brain / volti

Volti is GTK+ application for controlling audio volume from system tray/notification area
GNU General Public License v3.0
28 stars 8 forks source link

volti-mixer and ThinkPad EC - ThinkPad Console Audio Control #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
volti-0.2.3 on Gentoo

Portage 2.1.9.25 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 
2.6.36-gentoo-r5 i686)
=================================================================
System uname: 
Linux-2.6.36-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gent
oo-1.12.14
Timestamp of tree: Mon, 31 Jan 2011 13:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)

Running volti-mixer results in the following stacktrace:

star@narwhal ~ $ volti-mixer
Traceback (most recent call last):
  File "/usr/bin/volti-mixer-2.6", line 46, in <module>
    mix = mixer.Mixer()
  File "/usr/lib/python2.6/site-packages/volti/mixer.py", line 77, in __init__
    self.init_controls()
  File "/usr/lib/python2.6/site-packages/volti/mixer.py", line 142, in init_controls
    for count, mixer in enumerate(alsa.mixers(card_index)):
alsaaudio.ALSAAudioError: No such file or directory

from the python console:

star@narwhal ~ $ python
Python 2.6.6 (r266:84292, Jan 17 2011, 12:18:16) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import alsaaudio
>>> alsaaudio.cards()
[u'Intel', u'ThinkPadEC']
>>> alsaaudio.mixers()
[u'Master', u'Headphone', u'Speaker', u'PCM', u'Mic', u'Mic Boost', u'IEC958', 
u'IEC958 Default PCM', u'IEC958 Playback Source', u'Beep', u'Capture', 
u'Capture', u'Digital', u'Digital Beep', u'Docking Mic', u'Docking Mic Boost', 
u'Input Source', u'Input Source', u'Internal Mic', u'Internal Mic Boost']
>>> alsaaudio.mixers(0)
[u'Master', u'Headphone', u'Speaker', u'PCM', u'Mic', u'Mic Boost', u'IEC958', 
u'IEC958 Default PCM', u'IEC958 Playback Source', u'Beep', u'Capture', 
u'Capture', u'Digital', u'Digital Beep', u'Docking Mic', u'Docking Mic Boost', 
u'Input Source', u'Input Source', u'Internal Mic', u'Internal Mic Boost']
>>> alsaaudio.mixers(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
alsaaudio.ALSAAudioError: No such file or directory
>>> 
>>> mixer = alsaaudio.Mixer('Master', 0)
>>> 

I guess the problem is with the "ThinkPadEC" which is ThinkPad console audio 
control (not a real soundcard).

Just upgraded to 2.6.36 and installed volti. I did't notice ThinkPadEC with 
2.6.34

More related info can be found at 
http://forums.gentoo.org/viewtopic-t-848732.html

Sergey

Original issue reported on code.google.com by sergey.s...@gmail.com on 1 Feb 2011 at 11:26

GoogleCodeExporter commented 9 years ago
Hi, as it looks right now I can't do much. If alsaaudio can't open thinkpad 
control I can only try to disable/hide it. I had problems with this on my old 
thinkpad, but it didn't worked in alsamixer too so I disabled it in kernel. I 
will see what I can do about this. Thanks for reporting.

Original comment by gen2br...@gmail.com on 2 Feb 2011 at 3:21

GoogleCodeExporter commented 9 years ago
Can you try again with latest svn, I just commited fix that should handle this 
better. Thanks.

Original comment by gen2br...@gmail.com on 7 Feb 2011 at 10:46

GoogleCodeExporter commented 9 years ago
Now it works, thanks. Another problem I've noticed: something is wrong with 
mixer channel indexing/ordering (screenshot attached):

I deselect all IEC958 channels, but one is still present on the panel while 
Capture channel disappears.

Original comment by sergey.s...@gmail.com on 7 Feb 2011 at 12:30

Attachments:

GoogleCodeExporter commented 9 years ago
I have a similar problem on my Thinkpad X301:  switches like IEC958 are shown, 
but toggling the checkbox makes one of the mic channels disappear; other mic 
channels are similarly garbled.

This is a lower priority for me since there's always alsamixer, which functions 
correctly.

Original comment by hypno...@gmail.com on 7 Feb 2011 at 12:47

GoogleCodeExporter commented 9 years ago
Yes, I am aware of that, mixer needs more work. I was thinking of filtering and 
grouping all switches in separate tab, but I need to check first if I can do 
that by only checking mixer.volumecap().

Original comment by gen2br...@gmail.com on 7 Feb 2011 at 3:17