LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2017, 08:14 AM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
How to add the sound modules to Slackware's installer initramfs?


I would like to allow installation of Slint (and Slackware itself and other derivatives if wished by their maintainers) by blind people using a software synthesizer.

Rationale: not all blind folks can afford a hardware synthesizer or a Braille terminal aka a screen reader, and I would like that all be able to install Slint without the help of a sighted person, as they already can if they own a Braille terminal.

So far, I have built the needed packages to have this working on an installed system on startup (the machine speaks just before log in), I will make a request for testing this stuff on Slackware later.

Now begins the hard work, which is to ship in the initramfs all that's needed to have the machine speak during installation.

Among this stuff are the sound kernel modules.

But in the Slackware installer there is no sound module (to save some space, I assume).

So my question is: how do I go about adding these modules?

Is it just a matter of adding the directory /lib/modules/sound and its content?

In addition, should I modify something so that the regular files in /lib/modules/<kernel version> "know about" the added modules; and how do I do that?

Or should I edit the config file, and rebuild the modules?

Sorry for this newbie question, I haven't built a kernel since years.

I ask in this forum as maybe there is something specific to building /lib/modules in the installer, that only a Slackware insider would now.
 
Old 08-19-2017, 08:31 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
maybe I'm missing something obvious but have you had a look at the speakup system?

http://www.linux-speakup.org/
http://www.linux-speakup.org/distros.html
http://www.linux-speakup.org/spkguide.txt
 
Old 08-19-2017, 12:48 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
maybe I'm missing something obvious but have you had a look at the speakup system
Indeed I had, Matteo

Actually I have packaged speakup and espaekup:
http://slackware.uk/slint/x86_64/sli..._64-1slint.txz
http://slackware.uk/slint/x86_64/sli..._64-3slint.txz
Sources:
http://slackware.uk/slint/x86_64/sli...source/espeak/
http://slackware.uk/slint/x86_64/sli...urce/espeakup/
There is no dependencies beyond a full Slackware installation: as I have set pulseaudio as backend, portaudio is not needed (it's available in the same repo, though).

So, just install the two packages in Slackware64-14.2, chmod 755 /etc/rc.d/espeakup, reboot at run level 3 and the computer will begin to speak what's on the screen and spell what you type when you are asked to log in. Adapt the language, rate (speech speed), pitch and volume editing /etc/espeakup.conf as you see fit.

You just need a sound card, I think that all recent machines have one.

I will add a README with the keyboard shortcuts for the screen review and some guidance on usage, hopefully later to day, then post a request for testing. There is already a documentation available, of course, but I want to help the users who don't read long and technical documents.

But my real aim is put all the stuff needed in the installer, to allow blind people to install without the help of a sighted person, even if they don't own a specific hardware.

Fortunately I am helped by Samuel Thibault, aka the Linux Accessibility Guru.

I will also credit Aiyumi Moriya (see her blog) whose posts and SlackBuilds got me started.

I will also provide Orca with her help. That shouldn't be very difficult, but as we say here "à chaque jour suffit sa peine".

Last edited by Didier Spaier; 08-19-2017 at 12:57 PM.
 
Old 08-19-2017, 02:13 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You could look at how I create a modified initrd for liveslak, with a regular initrd to start with, lines 2067 to 2143: http://bear.alienbase.nl/cgit/livesl...=1.1.8.2#n2067

Basically: extract the installer's initrd, add the modules you think you need, use my script as an example on how to find the dependencies for these modules as well as any firmware files these drivers need. Then run depmod.
FInally, add the speech binaries and any libraries they depend on, and wrap the initrd-tree into a new installer initrd image.
 
1 members found this post helpful.
Old 08-20-2017, 02:10 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Original Poster
Rep: Reputation: Disabled
Thanks Eric this will save me a lot of time!

Meanwhile, I have posted a request for testing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what is difference between /etc/modules and /etc/initramfs-tools/modules ? masuch Linux - Newbie 4 05-29-2013 05:50 AM
initramfs not finding /lib/modules/2.6.32 dman777 Red Hat 1 09-15-2011 05:52 AM
lenny installer cannot load kernel modules cbchisanga Debian 1 06-04-2008 08:06 AM
No sound modules after compiling kernel-2.6.11.11 on Slackware 10.1 Basel Slackware 11 06-17-2005 04:38 PM
Sound modules not being loaded (Slackware 9.1) Romendo Linux - Hardware 5 10-03-2003 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration