I want to be able to produce a "beep" sound inside a Slint or Slackware installer, to give a prompt to blind folks using a Braille device (I will ship brltty in the installer).
As the module
pcspkr is not shipped by default in Slackware installers, I have added it.
Once the installer has started, "modprobe pcspkr" works (checked with lsmod) but then I don't hear a "beep" when I type:
What could be wrong?
In the script that customizes the installer, I do this:
Code:
# Install pcspkr modules
for kernel_version in `ls $TMP/initrd/lib/modules`; do
cp $TARGET/packages/pcspkr.ko $TMP/initrd/lib/modules/$kernel_version
depmod -a -b $TMP/initrd $kernel_version
done
During the script's execution I get warnings
Code:
depmod: WARNING: could not open /tmp/slint-20141122/initrd/lib/modules/3.10.17/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/slint-20141122/initrd/lib/modules/3.10.17/modules.builtin: No such file or directory
depmod: WARNING: could not open /tmp/slint-20141122/initrd/lib/modules/3.10.17-smp/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/slint-20141122/initrd/lib/modules/3.10.17-smp/modules.builtin: No such file or directory
I assume that doesn't hurt as I can insert the modules, but maybe I'm wrong
EDIT I made another try, this time installing the package
kmod in the installer. In the running installer "depmod -a" gave the same kind of warnings as the command in the build script, "modprobe pcspkr" worked again, but 'echo -e "\a"' still produced no sound.