LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-15-2024, 05:47 PM   #1
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Rep: Reputation: Disabled
upgrade 14.2>15.0: No sound except when root


Just upgraded to 15.0 and cannot get any sound neither in browser nor when using mplayer.
Alsamixer doesn't show any card when I press F6:
Code:
(default)
nor does pavucontrol.
It shows "dummy output"
and under "Advanced", PCM is shaded and can't be clicked...

But as root alsamixer [F6] shows me two cards
Code:
default:0 HDA Intel PCH
default:1 HDA NVidia
and I have sound when I use mplayer.

So I suppose it's to do with permissions.

Changes and hints mentions new groups, but I don't understand how they are to be used - or to what they apply - I don't know what these services are:
Code:
*** NEW USERS/GROUPS SINCE 14.2 ***

cgred group, GID 41
dovecot user and group, UID and GID 94
dovenull user and group, UID and GID 95
icecc user and group, UID and GID 49
ldap user and group, UID and GID 330
ntp user and group, UID and GID 44
postfix user and group, UID and GID 91
postdrop group, GID 92
To sum up, I get sound as root, but not otherwise.
 
Old 01-15-2024, 07:02 PM   #2
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
As user (group users):
Code:
bash $ aplay -l
aplay: device_list:274: no soundcards found...
as root
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC656 Analog [ALC656 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 
Old 01-15-2024, 09:19 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556Reputation: 8556
Quote:
Originally Posted by harryhaller View Post
As user (group users):
You'll want to be part of these groups as a normal user:

Code:
bash-5.2$ groups
users lp floppy audio video cdrom plugdev power netdev scanner
 
1 members found this post helpful.
Old 01-16-2024, 12:35 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,932

Rep: Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566Reputation: 1566
On my laptop, I am not in any supplementary groups.
Code:
$ groups
users
Audio, video, dvb etc work for the locally logged in user (xdm or agetty/login), but not for ssh logins from outside. elogind (udev? pam?) adds the local user in the needed access control lists for that session.
Code:
getfacl -Rs /dev
shows I have rw access to device nodes needed for cdrom, audio, netdev, video usage. For example:
Code:
# file: dev/dri/card1
# owner: root
# group: video
user::rw-
user:kaukasoi:rw-
group::rw-
mask::rw-
other::---
It's better than give group access to remote users, for privacy reasons.

It worked in 14.2 already but there was ConsoleKit2 and in 15.0 it is now elogind. So the next question is: Did you remove obsolete packages after upgrade from 14.2 to 15.0, for example ConsoleKit2? And did you process the .new files?

Last edited by Petri Kaukasoina; 01-16-2024 at 03:41 AM.
 
1 members found this post helpful.
Old 01-16-2024, 01:10 AM   #5
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Thanks, Pat. That's fixed it.
 
Old 01-16-2024, 08:53 AM   #6
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
So the next question is: Did you remove obsolete packages after upgrade from 14.2 to 15.0, for example ConsoleKit2? And did you process the .new files?
I do a new install in a spare partition, so I always have the last release in it's own partition to fall back on - like I'm doing now. So I don't have to deal with obsolete packages.

I did the initial install a long time ago and didn't use it. Only now did I update it with slackpkg. So I had already setup my login. I can't check if the default groups have changed as I am now back on 14.2 because of other problems such as with firefox, which now wants to me to change mime types and won't search in my local bin directory for helper programs for different file types - which was not a problem on 14.2 and the question why "less" behaves differently - I think it may be caused by the version/configuration of urxvt - but they are both off the topic of this thread.
 
  


Reply

Tags
audio, slack15.0, 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
I loaded Mint Cin 18.2 and everything works except the speaker sound, when you run the test they produce no sound, the mic works fine. edhayes@tmp-az.com Linux Mint 4 01-27-2019 07:46 AM
Lost sound when upgrading to Ubuntu 10.40, except for Ubuntu sound during start-up starsound Linux - Newbie 3 09-21-2010 05:55 PM
[SOLVED] Slackware 13 no sound except for root slackwarefan Slackware 5 02-22-2010 03:06 PM
kde sound options gone except for root, login sound gone memphisSuseUser Linux - Distributions 2 12-10-2004 05:55 PM
no sound except as root, no usb or hotplugging after 2.6 compile surfinhicdude Slackware 5 05-04-2004 04:30 AM

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

All times are GMT -5. The time now is 11:28 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