Open Nicee1 opened 6 years ago
Hmm, see if amixer
works in your terminal. If not, try sudo apt-get install alsa-tools
in your terminal and show me what it says.
Error is OSError: [Errno 2] No such file or directory
when Python tries
to Popen (open the process) amixer = subprocess.Popen(["amixer", "-c", str(devId), "cget", "numid=22"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
. So, we're trying to see if amixer
even
exists/was installed in your Kali system.
I checked for amixer and it was not there.
>sudo apt-get install alsa-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
alsa-tools is already the newest version (1.1.3-1).
The following packages were automatically installed and are no longer required:
dissy libarmadillo7 libbind9-141 libboost-atomic1.62.0
libboost-program-options1.62.0 libboost-serialization1.62.0
libboost-test1.62.0 libboost-timer1.62.0 libcaribou-gtk-module
libcaribou-gtk3-module libcdio-cdda1 libcdio-paranoia1 libcdio13 libcdio16
libcgal12 libdns190 libevent-2.0-5 libgom-1.0-common libhttp-parser2.1
libisc189 libisccc140 libisccfg144 liblwres141 libnetcdf11 libntfs-3g872
libqcustomplot1.3 libqt5opengl5 libqt5sql5 libqt5sql5-sqlite libradare2-2.0
libsfcgal1 libxerces-c3.1 python-brotli python-cssutils python-rsvg
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
I then installed it by the following command: sudo apt-get install libasound2 alsa-utils alsa-oss and got this:
>amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 46820 [71%] [on]
Front Right: Playback 46820 [71%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65540 [100%] [off]
Front Right: Capture 65540 [100%] [off]
>python /opt/subwoofer.py
Pulseaudio detected
Traceback (most recent call last):
File "/opt/subwoofer.py", line 262, in <module>
set_subwoofer()
File "/opt/subwoofer.py", line 84, in set_subwoofer
vol = get_biggest_volume()
File "/opt/subwoofer.py", line 132, in get_biggest_volume
if volumes[0] > volumes[1]:
IndexError: list index out of range
I tried the script again but not worked. Thanks for your reply.
Yeah, that needs Python debug. I am sorry but I do not have the time these days. :[
On Thu, Dec 14, 2017, 12:01 Defaul_t notifications@github.com wrote:
I checked for amixer and it was not there.
sudo apt-get install alsa-tools Reading package lists... Done Building dependency tree Reading state information... Done alsa-tools is already the newest version (1.1.3-1). The following packages were automatically installed and are no longer required: dissy libarmadillo7 libbind9-141 libboost-atomic1.62.0 libboost-program-options1.62.0 libboost-serialization1.62.0 libboost-test1.62.0 libboost-timer1.62.0 libcaribou-gtk-module libcaribou-gtk3-module libcdio-cdda1 libcdio-paranoia1 libcdio13 libcdio16 libcgal12 libdns190 libevent-2.0-5 libgom-1.0-common libhttp-parser2.1 libisc189 libisccc140 libisccfg144 liblwres141 libnetcdf11 libntfs-3g872 libqcustomplot1.3 libqt5opengl5 libqt5sql5 libqt5sql5-sqlite libradare2-2.0 libsfcgal1 libxerces-c3.1 python-brotli python-cssutils python-rsvg Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
I then installed it by the following command: sudo apt-get install libasound2 alsa-utils alsa-oss and got this:
amixer Simple mixer control 'Master',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 65536 Mono: Front Left: Playback 46820 [71%] [on] Front Right: Playback 46820 [71%] [on] Simple mixer control 'Capture',0 Capabilities: cvolume cswitch cswitch-joined Capture channels: Front Left - Front Right Limits: Capture 0 - 65536 Front Left: Capture 65540 [100%] [off] Front Right: Capture 65540 [100%] [off]
python /opt/subwoofer.py Pulseaudio detected Traceback (most recent call last): File "/opt/subwoofer.py", line 262, in
set_subwoofer() File "/opt/subwoofer.py", line 84, in set_subwoofer vol = get_biggest_volume() File "/opt/subwoofer.py", line 132, in get_biggest_volume if volumes[0] > volumes[1]: IndexError: list index out of range I tried the script again but not worked. Thanks for your reply.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/dragosprju/y50-subwoofer-linux-enabler/issues/4#issuecomment-351679038, or mute the thread https://github.com/notifications/unsubscribe-auth/ALN3jgAGYwq5JKWQQ3bQWUXWevoUS9LTks5tAQABgaJpZM4RBwN5 .
K no problem. One request when you are free please suggest some solutions. Meanwhile i will try to figure out something. Thank you.
Hello there, I am currently using kali linux 2017.3 in my lenovo y50.
**uname -a** Linux BlackjacK 4.14.0-kali1-amd64 #1 SMP Debian 4.14.2-1kali1 (2017-12-04) x86_64 GNU/Linux
I tried running your script and it failed to enable my subwoofer. I have attached the following outputs after reading other issues here.The output of Suboofer.py:
After running the script I tried these commands too:
But no luck. I got the same above output.