LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-14-2014, 03:50 PM   #1
mr.b-o-b
LQ Newbie
 
Registered: Jan 2011
Location: Edina, MN
Distribution: Slackware, CentOS
Posts: 24

Rep: Reputation: 1
Raspberry Pi - Howto keep sound after reboot


I am using Slackwarearm-14.1 on a model B Pi. I am curious how I can make the sound card setting permanent after a reboot.

Each time I restart the Pi, I need to

modprobe snd_bcm2835

to get the sound back online, and then alsamixer & alsactl store to save to volumes.

Is there a way to make the modprobe snd_bcm2835 permanent?

Any advice on this would be greatly appreciated.

Thanks!

Mr. B-o-B
 
Old 04-14-2014, 03:52 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
there probably is a cleaner way but maybe you can put those commands in /etc/rc.local.
 
1 members found this post helpful.
Old 04-14-2014, 05:35 PM   #3
mr.b-o-b
LQ Newbie
 
Registered: Jan 2011
Location: Edina, MN
Distribution: Slackware, CentOS
Posts: 24

Original Poster
Rep: Reputation: 1
Agreed. I put everything I need into the rc.local. Works great.


Thank You!
 
Old 04-15-2014, 04:56 AM   #4
DarkVenger
Member
 
Registered: Mar 2004
Location: VCO
Distribution: Arch
Posts: 43

Rep: Reputation: 26
You just need to create a *.conf file under /etc/modules-load.d/ with the name of the module you want loaded.
For example
Code:
/etc/modules-load.d/sound.conf

# Load snd_bcm2835.ko at boot
snd_bcm2835
See man modules-load.d(5) for more details.
 
1 members found this post helpful.
Old 04-15-2014, 07:57 AM   #5
mr.b-o-b
LQ Newbie
 
Registered: Jan 2011
Location: Edina, MN
Distribution: Slackware, CentOS
Posts: 24

Original Poster
Rep: Reputation: 1
Perfect. I'll give that a try.

Thank You!
 
Old 04-15-2014, 11:23 AM   #6
DarkVenger
Member
 
Registered: Mar 2004
Location: VCO
Distribution: Arch
Posts: 43

Rep: Reputation: 26
Thumbs up

Quote:
Originally Posted by mr.b-o-b View Post
Perfect. I'll give that a try.

Thank You!
No problem, please do share if it works for you.
 
Old 04-16-2014, 07:21 AM   #7
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
Quote:
Originally Posted by DarkVenger View Post
You just need to create a *.conf file under /etc/modules-load.d/ with the name of the module you want loaded.
For example
Code:
/etc/modules-load.d/sound.conf

# Load snd_bcm2835.ko at boot
snd_bcm2835
See man modules-load.d(5) for more details.
According to the modprobe.d man page that's not the correct syntax ... I favor doing that sort of thing by adding the modules I need directly in /etc/rc.d/rc.modules (which may be a link to a similar file with the kernel version in the name) ... so I can't tell you off hand if it will work anyway.
If you want to go the /etc/rc.d/rc.modules way just do this:
Code:
echo "/sbin/modprobe snd_bcm2835" >> /etc/rc.d/rc.modules
As for the volume levels to get some sound out of the device after boot I do that by dumping the state of the working device and using that to generate a command to pass to amixer via rc.local. I don't have the laptop that needs that to show an example ... but if you need that I can show you once I get back home.
 
  


Reply

Tags
pi sound



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] Howto connect Win7-Netbook to my RASPBERRY PI server with raspbian? floppy_stuttgart Linux - Server 1 01-01-2014 01:20 PM
LXer: HOWTO: Rebuild Glibc on Slackware ARM 14.0 for the Raspberry Pi LXer Syndicated Linux News 0 11-20-2012 09:42 PM
Debian on Raspberry Pi. Can't get sound by HDMI. tomham01 Debian 2 07-16-2012 07:19 PM
HOWTO: reboot to Windows with one click jspaar Fedora 13 03-05-2007 07:37 AM
IceWM: Howto have the same theme when reboot..? wiBo Linux - General 7 04-06-2004 08:56 PM

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

All times are GMT -5. The time now is 05:29 AM.

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