Closed Rishabh42 closed 6 years ago
Some of the kernel modules are not loaded in memory. Loading is usually automatic by the kernel, but may have been done manually on Raspbian. You can check the list of modules loaded using sudo lsmod
. One of the kernel modules is responsible for offering the device node for mixer. You might diagnose this further by booting Raspbian and comparing lsmod
between Raspbian and Debian.
Also review the bootstrap.d/15-rpi-config.sh
file which adds files/modules/raspi-blacklist.conf
to /etc/modprobe.d/raspi-blacklist.conf
on the build. It is not clear to me why these modules are blocked from loading. Perhaps you will discover why.
https://www.raspberrypi.org/forums/viewtopic.php?t=7663#p93439 Here is a fix suggested by jbeale (second comment) and i am collecting the lsmod output for both sugar and raspbian , i will provide them soon
The link from 2012? Extremely improbable. Please don't provide that output. In my reply above I'm not asking for the output, or offering to diagnose, but rather pointing out the tools that should be used to diagnose. As Raspbian audio works, and Sugar can be installed on Raspbian, everything needed is easily obtained, just that something has been missed from @Rishabh42's build.
@quozl i think , even this link from 2012 correctly sugests the module which might be a cause of problem ,as i am not defining any output now so it would not be irrelevant to accept this as a solution, i will soon comment the test results for the fix i am currently thinking off and a Pull Request
Still think it is improbable; after all, that link was talking about module missing, and the module is not missing from your build, and is loaded automatically, according to your gist https://gist.github.com/amanharitsh123/85c055197ec91a26eec68d764ca187cf
Anyway, I don't think this is a sugarlabs/rpi23-gen-image problem; everything works on Raspbian, and nothing obvious has been done in this fork to disable sound, so it must be a drtyhlpr/rpi23-gen-image problem. Reproduce it upstream and work with them.
@amanharitsh123 wrote:
ENABLE_SOUND=true has enabled the module . alsamixer can now detect the pulseaudio card , but still i cant get any output
Which method are you using to test? The speaker-test
program is minimal and lowest level, using ALSA layer directly.
Which output are you testing; 3.5mm or HDMI? Has raspi-config
been used to configure the output? See also https://www.raspberrypi.org/documentation/configuration/audio-config.md
@quozl I deleted that comment because , the issue was again appreaded after reboot , please review the PR that i have made now :)
alsamixer is crucial for some activities like Measure and turtleblocks to work properly, on typing 'alsamixer' in the Terminal activity, the following error is displayed: $ alsamixer cannot open mixer: No such file or directory even though packages like alsa-utils and alsamixergui are installed.