SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've lost all sound output. Still works in xp. As root, reran alsaconf, alsamixer and alsactl store. No effect. Run xmms and all is normal except no sound; it plays the file, shows its title, the visual display is active as usual.
Is there something I could have done that would mute all sound output?
You might try booting to a live CD and seeing whether you can play media. If you can, that would indicate something's gone screwy with your software load.
Another test would be to create a new user and test whether the new user can play music. If so, something might have gone screwy in your user configuration files.
Last edited by frankbell; 04-12-2011 at 07:02 PM.
Reason: Inability to read
Another test would be to create a new user and test whether the new user can play music. If so, something might have gone screwy in your user configuration files.
I added a new user, but no luck, and root has no sounds either, so I guess its a corrupted configuration file. But the only thing I've done with music recently is a bash script to generate and play a random playlist. As this is my first real bash script, I might well have done something I shouldn't, but I don't see how, as neither of the files it references is a system file.
Code:
#!/bin/bash
# generate a playlist of 50 randomly selected tunes from 2.n3u
e=`cat /home/g/2.n3u` # read pseudo-playlist into $e
rm /home/g/rand.m3u # delete previous playlist
limit=${e: -7:5} # the highest selection number in 2.n3u
oamt=0
d=
FLOOR=10000 # corresponds to the lowest selection number in 2.n3u
while [ $oamt -lt 50 ] # oamt controls generation of 50 tunes in rand.m3u
do
number=0 # set number so while loop executes at least once per cycle
while [ "$number" -lt $FLOOR ]
do
number=$RANDOM
let "number %= $limit" # 10000 <= number < limit
done
grep -m 1 " $number" /home/g/2.n3u | awk '{ print $1 >> "/home/g/rand.m3u" }'
oamt=$((oamt+1))
done
xmms -p /home/g/rand.m3u & # play rand.m3u
exit 0
OK, I fixed the problem, and it ties directly to another question I was going to ask after settling this one. I had added these lines to /etc/rc.d/rc.local
Code:
su - g -c startx
firefox
xrvt
jedit
kwrite
Everything starts up just fine except for jedit. Yet when I put jedit in at the terminal, the program starts up quite happily.
So my next question was going to be, "Why does starting jedit work in a terminal, but not in rc.local?" It turns out that jedit in rc.local doesn't start that editor, instead it turns off all sounds for the entire system, for when I remove jedit everything works again.
So now my question has changed, "Does anyone know how I can start jedit automatically after rc.local has run?"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.