Weird: Changing runlevel from 3 to 4 makes sound not work
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.
Just out of curiosity, what are the permissions on /dev/dsp?
Thank god someone finally asked this question. It should have been the first thing to look at, being that it's a permissions problem with sound after all.
Just to be sure important details don't get left out, we need to know what the output of `ls -al /dev/sound` is in both runlevels.
Last edited by evilDagmar; 01-15-2008 at 01:15 AM.
I love a good story are you using the tg3 driver with your Broadcom card? Changing to that fixed a problem I was having with a workstation here.
I never actually managed to get the tg3 driver installed. I downloaded it from Broadcom's site, and it errored out on all kinds of crap on the build.
Why can't they just provide coherent drivers like everyone else? Their build process is defective and I didn't feel like debugging their scripts for them, so I gave up on it after wasting a couple of hours of my own time on it.
Wifi works (I'm using the Intel 3945 mini card), so I'm satisfied with that for now. Maybe someone else can reverse engineer whatever Broadcom POS is on this particular laptop (I haven't even been able to figure out which of about a dozen chipsets it is), but until then I'll have to put up with no wired ethernet support.
Permissions on /dev/dsp are the first things I checked. They're exactly what they should be, 660.
I don't think it's a problem with arts; when I'm in KDE in runlevel 4 as a non-root user, /dev/dsp actually doesn't even exist.
At this point I'm fairly certain this is some kind of bug in KDM. Thanks for the suggestions though, guys.
If that is so then try running XDM to see if it does the same thing. Maybe it isn't a KDM exclusive problem and if it is you will know another workaround. If it is KDM, perhaps see if you can change any configuration on it or run it manually to see if it has the same effect.
Wifi works (I'm using the Intel 3945 mini card), so I'm satisfied with that for now. Maybe someone else can reverse engineer whatever Broadcom POS is on this particular laptop (I haven't even been able to figure out which of about a dozen chipsets it is), but until then I'll have to put up with no wired ethernet support.
If that is so then try running XDM to see if it does the same thing. Maybe it isn't a KDM exclusive problem and if it is you will know another workaround. If it is KDM, perhaps see if you can change any configuration on it or run it manually to see if it has the same effect.
Yeah, I'm going to try that tonight and see if it's any different.
I am also having trouble with sound in KDE on Slackware 12.
On some computers KDE astsd crashes with SIGSEGV.
I made a post in LinuxQuestons about this: http://www.linuxquestions.org/questi...83#post2813783
Also check your permissions.
By default users have to belong to the 'audio' group to have access to sound.
I am also having trouble with sound in KDE on Slackware 12.
On some computers KDE astsd crashes with SIGSEGV.
I made a post in LinuxQuestons about this: http://www.linuxquestions.org/questi...83#post2813783
Also check your permissions.
By default users have to belong to the 'audio' group to have access to sound.
You know, I keep seeing that, and I'd believe it, except for three things:
1) Sound works fine when I'm logged in as myself in runlevel 3
2) Sound works fine for non-root users on the other two machines on which I am running Slackware 12
3) There doesn't seem to be an "audio" group out of the box
I'll look into it. Maybe I'm hosing something up in the way I worded my "usermod" command. I don't do that very often, so that very well could be the case.
Permissions on /dev/dsp are the first things I checked. They're exactly what they should be, 660.
On my system, they're 777 because /dev/dsp is a symlink to /dev/sound/dsp whose permissions are actually 662. This would explain why non-audio group users can write to the sound card on other setups.
I'm thinking that there may be a problem with the audio hardware (or detection of it) on this particular box.
Quote:
Originally Posted by Melkor
There doesn't seem to be an "audio" group out of the box
There is an audio group. It has been there as long as I can remember.
Have a look in /etc/login.defs - in run level 3, you're logging in to the console and you get membership of some groups for free:
Code:
#
# List of groups to add to the user's supplementary group set
# when logging in on the console (as determined by the CONSOLE
# setting). Default is none.
#
# Use with caution - it is possible for users to gain permanent
# access to these groups, even when not logged in on the console.
# How to do it is left as an exercise for the reader...
#
CONSOLE_GROUPS floppy:audio:video:cdrom
Have a look in /etc/login.defs - in run level 3, you're logging in to the console and you get membership of some groups for free:
Code:
#
# List of groups to add to the user's supplementary group set
# when logging in on the console (as determined by the CONSOLE
# setting). Default is none.
#
# Use with caution - it is possible for users to gain permanent
# access to these groups, even when not logged in on the console.
# How to do it is left as an exercise for the reader...
#
CONSOLE_GROUPS floppy:audio:video:cdrom
Thank you, gilead. I think many people learned something from this, and we can now sleep soundly tonight
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.