LinuxQuestions.org
Review your favorite Linux distribution.
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 04-15-2024, 05:30 PM   #1
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Rep: Reputation: Disabled
Slackware 15.0+ plasma kde desktop not recognizing motherboard on board audio device


I just built a new PC with a Slackware distribution and cannot get the audio to work. I have another PC that I build last year with the same MB, processor, and RAM, basically the same machine and the audio works on it. I have attached screenshots from the Configure audio devices of the plasma KDE desktop. As can be noticed on the configure audio settings of the working box it shows drop downs for port and profile in the upper right whereas the non working box does not show these. I have tried to find the answer on line, but don't seem to have tripped upon it yet. I have run these commands and still can't seem to find the issue.

These commands listed the same thing on both the working and non working boxes:

Code:
root@robrutrm:~# cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0x42218000 irq 127

root@robrutrm:~# pulseaudio --version
pulseaudio 17.0

root@robrutrm:~# lspci -v | grep -A7 -i "audio"
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
        DeviceName: Onboard - Sound
        Subsystem: Gigabyte Technology Co., Ltd Device a194
        Flags: bus master, fast devsel, latency 32, IRQ 127
        Memory at 42218000 (64-bit, non-prefetchable) [size=16K]
        Memory at 42000000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [50] Power Management version 3
        Capabilities: [80] Vendor Specific Information: Len=14 <?>

root@robrutrm:~# lsmod | grep snd
snd_hda_codec_hdmi     81920  1
snd_hda_codec_realtek   188416  1
snd_hda_codec_generic   106496  1 snd_hda_codec_realtek
ledtrig_audio          12288  1 snd_hda_codec_generic
snd_sof_pci_intel_tgl    12288  0
snd_sof_intel_hda_common   188416  1 snd_sof_pci_intel_tgl
soundwire_intel        57344  1 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink    32768  2 soundwire_intel,snd_sof_intel_hda_common
snd_sof_intel_hda      16384  1 snd_sof_intel_hda_common
snd_sof_pci            20480  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
snd_sof               311296  3 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_hda
snd_sof_utils          12288  1 snd_sof
snd_soc_hdac_hda       24576  1 snd_sof_intel_hda_common
snd_hda_ext_core       32768  4 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_soc_acpi_intel_match    94208  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi           12288  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_soc_core          397312  4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_compress           20480  1 snd_soc_core
ac97_bus               12288  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_intel          57344  2
snd_intel_dspcfg       32768  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_intel_sdw_acpi     12288  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec         204800  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core          135168  9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               184320  11 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
snd_timer              45056  1 snd_pcm
snd                   143360  15 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
soundcore              16384  1 snd

lspci -k (edited output)
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
        DeviceName: Onboard - Sound
        Subsystem: Gigabyte Technology Co., Ltd Device a194
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

root@robrutrm:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC897 Digital [ALC897 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
From the commands above it appears that everything is in place, but still the configure audio settings don't see it. Anybody have any ideas? Many thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	not_working_1.JPG
Views:	16
Size:	78.8 KB
ID:	42699   Click image for larger version

Name:	not_working_2.JPG
Views:	15
Size:	88.1 KB
ID:	42700   Click image for larger version

Name:	working_1.JPG
Views:	10
Size:	80.3 KB
ID:	42701   Click image for larger version

Name:	working_2.JPG
Views:	12
Size:	86.5 KB
ID:	42702   Click image for larger version

Name:	working_3.JPG
Views:	8
Size:	100.3 KB
ID:	42703  

 
Old 04-15-2024, 09:24 PM   #2
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
I forgot to add these two commands:

From the one that works:

Code:
root@robrutrm:~# lsof /dev/snd/*
lsof: WARNING: can't stat() fuse.portal file system /home/robby/.cache/doc
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /home/robby/.gvfs
      Output information may be incomplete.
COMMAND    PID  USER  FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 2387 robby mem    CHR  116,2           644 /dev/snd/pcmC0D0p
pulseaudi 2387 robby  16u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  23u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  28u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  41u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  44u   CHR  116,2      0t0  644 /dev/snd/pcmC0D0p
and the one that doesn't work:

Code:
root@robrutrm:~# lsof /dev/snd/*
lsof: WARNING: can't stat() fuse.portal file system /home/robby/.cache/doc
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /home/robby/.gvfs
      Output information may be incomplete.
COMMAND     PID  USER FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 20120 pulse 10u   CHR 116,12      0t0  692 /dev/snd/controlC0
pulseaudi 20120 pulse 17u   CHR 116,12      0t0  692 /dev/snd/controlC0
Not much difference, but I didn't know if it made a difference or not.
 
Old 04-16-2024, 05:47 PM   #3
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
I thought I had hit upon something with this in Settings --> Devices --> PCI on the desktop itself:

Code:
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
	DeviceName: Onboard - Sound
	Subsystem: Gigabyte Technology Co., Ltd Device a194
	Flags: bus master, fast devsel, latency 32, IRQ 127
	Memory at 42218000 (64-bit, non-prefetchable) [size=16K]
	Memory at 42000000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
...But that was the same on both boxes as well...
 
Old 04-16-2024, 06:02 PM   #4
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
Another thing I came across was to try this for a test:

on the working box:

Code:
root@robrutrm:~# speaker-test -D hw:0 -t wav -c 2

speaker-test 1.2.11

Playback device is hw:0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -16,Device or resource busy
On the non-working box:

Code:
root@robrutrm:~# speaker-test -D hw:0 -t wav -c 2

speaker-test 1.2.11

Playback device is hw:0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Periods = 4
was set period_size = 12000
was set buffer_size = 48000
 0 - Front Left
 1 - Front Right
Time per period = 2.251493
 0 - Front Left
 1 - Front Right
Time per period = 2.999628
 0 - Front Left
 1 - Front Right
Time per period = 3.000607
 0 - Front Left
 1 - Front Right
Time per period = 2.999962
 0 - Front Left
 1 - Front Right
^CTransfer failed: Bad address
root@robrutrm:~#
Even though it appears the sound test was working on the non-working one still no sound out of the speakers.

It seems I'm just running circles.
 
Old 04-20-2024, 05:41 PM   #5
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
After much reading I finally resolved the issue. It was a matter of permissions. One post I read, https://www.linuxquestions.org/quest...oogle_vignette , was self explanatory. All the commands I had executed before to troubleshoot the problem had been from root. I dropped back to the specific user, which is where I launched KDE from and got this:

Code:
robby@robrutrm:~$ aplay -l
aplay: device_list:279: no soundcards found...
whereas when run from root:

Code:
root@robrutrm:/home/robby/pug/data# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC897 Digital [ALC897 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
At the end of the post it advised:

Quote:
It is a permissions thing. Had me tearing my hair out for a while too, but I finally found it - cd into /dev/snd and do "chmod a+rw *".
I ran the chmod command as suggested and it worked. I now had sound working from my specific user. The only issue was that it wasn't persistent, it didn't stay after reboot. Checking further I saw on the working box that this user was in several groups:

Code:
root@robrutrm:/home/robby/pug/data# groups robby
robby : users lp wheel floppy audio video cdrom plugdev power netdev scanner polkitd mythtv
The non working box was only in two groups:

Code:
root@robrutrm:~# groups robby
robby : users wheel
After appending the additional groups to the non working box as I saw on the working box, users lp wheel floppy audio video cdrom plugdev power netdev scanner polkitd mythtv, voila I have working sound from the box that wasn't working with the kde launched as the specific user.
 
Old 04-21-2024, 03:59 AM   #6
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Yes, adding your user to the audio group does the trick. Another solution which also would be persistent between boots would be to make audio devices accessible by all users with an udev rule in some file in /etc/udev/rules.d, the content of that rule would be something like:

Code:
# alsa devices
SUBSYSTEM=="sound", GROUP="audio", MODE="0666"
For good and bad, an udev rule like the one above allows all users to access audio devices. If you prefer to have audio access only for a few selected users your current solution with adding those users to the audio group might be a better choice.

regards Henrik
 
Old 04-21-2024, 04:41 AM   #7
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Good that you got it working. But...

Among other things, sound works here out-of-the-box without adding groups.
Code:
$ groups
users
When you log in (locally), elogind adds you to the Access Control List (ACL) of the needed device files. (By a udev rule in /lib/udev/rules.d/71-seat.rules). To see the ACLs, try e.g.:
Code:
getfacl -Rs /dev
It should show the user rw rights have been added to you for several files, like the bolded line below:
Code:
# file: dev/snd/controlC0
# owner: root
# group: audio
user::rw-
user:kaukasoi:rw-
group::rw-
mask::rw-
other::---
If your username is not added to the ACLs, there is something wrong somewhere. Does this show your session:

Code:
$ loginctl list-sessions
SESSION  UID USER     SEAT  TTY
      1 5591 kaukasoi seat0    

1 sessions listed.


Quote:
Originally Posted by rocknrobin View Post
From the one that works:

Code:
root@robrutrm:~# lsof /dev/snd/*
lsof: WARNING: can't stat() fuse.portal file system /home/robby/.cache/doc
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /home/robby/.gvfs
      Output information may be incomplete.
COMMAND    PID  USER  FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 2387 robby mem    CHR  116,2           644 /dev/snd/pcmC0D0p
pulseaudi 2387 robby  16u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  23u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  28u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  41u   CHR 116,12      0t0  673 /dev/snd/controlC0
pulseaudi 2387 robby  44u   CHR  116,2      0t0  644 /dev/snd/pcmC0D0p
and the one that doesn't work:

Code:
root@robrutrm:~# lsof /dev/snd/*
lsof: WARNING: can't stat() fuse.portal file system /home/robby/.cache/doc
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /home/robby/.gvfs
      Output information may be incomplete.
COMMAND     PID  USER FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 20120 pulse 10u   CHR 116,12      0t0  692 /dev/snd/controlC0
pulseaudi 20120 pulse 17u   CHR 116,12      0t0  692 /dev/snd/controlC0
The first one has pulseaudio running as robby and the second one as pulse. Maybe you had set the executable bit of /etc/rc.d/rc.pulseaudio of the second one? (You shouldn't have.)

Last edited by Petri Kaukasoina; 04-21-2024 at 09:03 AM.
 
Old 04-22-2024, 06:27 PM   #8
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks henca and Petri Kaukasoina. To henca I believe I would prefer audio to work for only selected users, I am the only user that actively uses this box, so I would like to leave things as is.

In response to Petri Kaukasoina...I see a /lib/udev/rules.d/71-seat.rules. I also see two entries for sound in it:

Working box
Code:
TAG=="uaccess", SUBSYSTEM!="sound", TAG+="seat"
SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat"

and

# 'Plugable' USB hub, sound, network, graphics adapter
SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="000[13]", ENV{ID_AUTOSEAT}="1"
was non-working box
Code:
TAG=="uaccess", SUBSYSTEM!="sound", TAG+="seat"
SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat"

and 

# 'Plugable' USB hub, sound, network, graphics adapter
SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="000[13]", ENV{ID_AUTOSEAT}="1"
but when I run the commands you suggested:

working box
Code:
root@robrutrm:/lib/udev/rules.d# getfacl -Rs /dev
root@robrutrm:/lib/udev/rules.d#
root@robrutrm:/lib/udev/rules.d# loginctl list-sessions
root@robrutrm:/lib/udev/rules.d#
was non-working box

Code:
root@robrutrm:/lib/udev/rules.d# getfacl -Rs /dev
root@robrutrm:/lib/udev/rules.d#
root@robrutrm:/lib/udev/rules.d# loginctl list-sessions
root@robrutrm:/lib/udev/rules.d#
No output for either command. I can use the command who to see who is logged in (wouldn't that provide the same info as list-sessions above?):

working box
Code:
robby    tty1         2024-04-20 18:10
robby    pts/0        2024-04-20 18:12 (10.160.134.50)
robby    pts/1        2024-04-20 18:12 (10.160.134.50)
robby    pts/2        2024-04-20 18:12 (:11)
robby    pts/3        2024-04-20 18:12 (10.160.134.50)
robby    pts/4        2024-04-20 18:12 (10.160.134.50)
robby    pts/5        2024-04-20 18:12 (10.160.134.50)
robby    pts/6        2024-04-20 18:12 (10.160.134.50)
robby    pts/7        2024-04-20 18:56 (127.0.0.1)
robby    pts/8        2024-04-20 18:56 (127.0.0.1)
and was non-working box
Code:
root@robrutrm:/lib/udev/rules.d# who
robby    tty1         2024-04-20 10:00
robby    pts/0        2024-04-20 10:10 (:3)
robby    pts/1        2024-04-20 10:15 (10.160.134.50)
robby    pts/2        2024-04-20 18:57 (127.0.0.1)
robby    pts/3        2024-04-20 21:24 (10.160.134.50)
and listing ls -l for /etc/rc.d/rc.pulseaudio

Code:
root@robrutrm:/lib/udev/rules.d# ls -l /etc/rc.d/rc.pulseaudio
-rw-r--r-- 1 root root 1171 Jan 26  2016 /etc/rc.d/rc.pulseaudio
The output of the above command for the file rc.pulseaudio is the same on the "working box".

I could change that user to robby for the second box I was working on, but not sure if that would "break" things.
 
Old 04-23-2024, 12:54 AM   #9
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by rocknrobin View Post
Code:
root@robrutrm:/lib/udev/rules.d# ls -l /etc/rc.d/rc.pulseaudio
-rw-r--r-- 1 root root 1171 Jan 26  2016 /etc/rc.d/rc.pulseaudio
From the date of this file it seems this system was originally installed before the 14.2 release and you have upgraded it since. I wonder if there is something missing and/or something old left. For example, you should not have package ConsoleKit2. Do you have .new files not moved in place, for example in /etc/pam.d ? (There are lines there loading the pam_elogind.so module which registers the user sessions.)

Code:
root@robrutrm:/lib/udev/rules.d# getfacl -Rs /dev
root@robrutrm:/lib/udev/rules.d#
root@robrutrm:/lib/udev/rules.d# loginctl list-sessions
root@robrutrm:/lib/udev/rules.d#

root@robrutrm:/lib/udev/rules.d# who
robby    tty1         2024-04-20 10:00
robby    pts/0        2024-04-20 10:10 (:3)
robby    pts/1        2024-04-20 10:15 (10.160.134.50)
robby    pts/2        2024-04-20 18:57 (127.0.0.1)
robby    pts/3        2024-04-20 21:24 (10.160.134.50)
who uses utmp, the old method for login records. The new method to manage logins is elogind (extracted from systemd) but it seems you have managed to log in without adding a session.

Quote:
I could change that user to robby for the second box I was working on, but not sure if that would "break" things.
When you start playing audio, pulseaudio starts automatically, running as you (robby). Your second lsof listing showed pulseaudio running as user pulse, and it could have been caused by running /etc/rc.d/rc.pulseaudio. But maybe it runs as user pulse also when it starts after you run aplay as root.

Last edited by Petri Kaukasoina; 04-23-2024 at 12:57 AM.
 
Old 04-23-2024, 11:09 AM   #10
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks again Petri Kaukasoina.

In response to your comment on "it seems this system was originally installed before the 14.2 release and you have upgraded it since", this is true. I built my first slacker system, I believe, in 2014 or 2015, and I think it was 14.0 then. I do not however have package consolekit2:

Code:
root@robrutrm:/etc/pam.d# slackpkg info consolekit2

No packages found! Try:

        slackpkg search consolekit2

and choose one (and ONLY one package).


root@robrutrm:/etc/pam.d# ls /var/log/packages | grep consolekit
root@robrutrm:/etc/pam.d# ls /var/log/packages | grep consolekit2
root@robrutrm:/etc/pam.d#
I see four packages that are new in /etc/pam.d, the login and systemauth are from 2020 and the sshd and xdm are from this year:


Code:
root@robrutrm:/etc/pam.d# ls -l
total 188
-rw-r--r-- 1 root root  146 Feb 19  2020 chage
-rw-r--r-- 1 root root  192 Feb 14  2020 chfn
-rw-r--r-- 1 root root  146 Feb 19  2020 chgpasswd
-rw-r--r-- 1 root root  146 Feb 19  2020 chpasswd
-rw-r--r-- 1 root root  192 Feb 14  2020 chsh
-rw-r--r-- 1 root root   70 May 16  2020 cups
-rw-r--r-- 1 root root  157 Feb 12  2020 dovecot
-rw-r--r-- 1 root root  394 Mar 14 14:34 elogind-user
-rw-r--r-- 1 root root  146 Feb 19  2020 groupadd
-rw-r--r-- 1 root root  146 Feb 19  2020 groupdel
-rw-r--r-- 1 root root  146 Feb 19  2020 groupmems
-rw-r--r-- 1 root root  146 Feb 19  2020 groupmod
-rw-r--r-- 1 root root  351 May 19  2022 kde
-rw-r--r-- 1 root root  426 May 21  2020 kde-np
-rw-r--r-- 1 root root  658 Feb 19  2020 login
-rw-r--r-- 1 root root 1014 Jun 18  2020 login.new
-rw-r--r-- 1 root root  126 May 16  2020 netatalk
-rw-r--r-- 1 root root  146 Feb 19  2020 newusers
-rw-r--r-- 1 root root  155 Nov  8  2018 other
-rw-r--r-- 1 root root  186 Feb 19  2020 passwd
-rw-r--r-- 1 root root  155 May 16  2020 polkit-1
-rw-r--r-- 1 root root  231 Nov 15  2018 postlogin
-rw-r--r-- 1 root root  183 May 16  2020 ppp
-rw-r--r-- 1 root root 1014 Jun 18  2020 remote
-rw-r--r-- 1 root root  200 Feb 19  2020 runuser
-rw-r--r-- 1 root root  150 Feb 19  2020 runuser-l
-rw-r--r-- 1 root root   77 May 16  2020 screen
-rw-r--r-- 1 root root  944 Aug  8  2023 sddm
-rw-r--r-- 1 root root  848 Aug  8  2023 sddm-autologin
-rw-r--r-- 1 root root  533 Aug  8  2023 sddm-greeter
-rw-r--r-- 1 root root  965 May 16  2020 sshd
-rw-r--r-- 1 root root 1228 Mar 11 12:43 sshd.new
-rw-r--r-- 1 root root  545 Feb 19  2020 su
-rw-r--r-- 1 root root  210 Feb 19  2020 su-l
-rw-r--r-- 1 root root 2480 Feb 19  2020 system-auth
-rw-r--r-- 1 root root 2443 Jun 16  2020 system-auth.new
-rw-r--r-- 1 root root  256 Apr  5 12:07 tigervnc
-rw-r--r-- 1 root root  146 Feb 19  2020 useradd
-rw-r--r-- 1 root root  146 Feb 19  2020 userdel
-rw-r--r-- 1 root root  146 Feb 19  2020 usermod
-rw-r--r-- 1 root root   97 Nov  9 11:50 vlock
-rw-r--r-- 1 root root  314 May 16  2020 vsftpd
-rw-r--r-- 1 root root  260 May 16  2020 xdm
-rw-r--r-- 1 root root  293 Apr  5 12:41 xdm.new
-rw-r--r-- 1 root root   61 Mar 14 14:32 xfce4-screensaver
-rw-r--r-- 1 root root  154 May 16  2020 xlock
-rw-r--r-- 1 root root   50 May 16  2020 xscreensaver
In addition I cannot find package utmp:

Code:
root@robrutrm:/etc/pam.d# slackpkg info utmp

No packages found! Try:

        slackpkg search utmp

and choose one (and ONLY one package).


root@robrutrm:/etc/pam.d# ls /var/log/packages | grep utmp
root@robrutrm:/etc/pam.d#

root@robrutrm:/etc/pam.d# slackpkg search utmp

Looking for utmp in package list. Please wait... DONE

No package name matches the pattern.

root@robrutrm:/etc/pam.d#

robby@robrutrm:~/src$ find utmp
find: 'utmp': No such file or directory
robby@robrutrm:~/src$ whereis utmp
utmp: /usr/man/man5/utmp.5.gz
robby@robrutrm:~/src$
One sidenote is that even though package utmp is not found, the whereis command found an entry in the /usr/man/ directory.

Also since I managed to get the sound working on the box that was not working the lsof shows user robby now:

Code:
root@robrutrm:~# lsof /dev/snd/*
lsof: WARNING: can't stat() fuse.portal file system /home/robby/.cache/doc
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /home/robby/.gvfs
      Output information may be incomplete.
COMMAND    PID  USER  FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 2115 robby mem    CHR  116,2           663 /dev/snd/pcmC0D0p
pulseaudi 2115 robby  17u   CHR 116,12      0t0  692 /dev/snd/controlC0
pulseaudi 2115 robby  24u   CHR 116,12      0t0  692 /dev/snd/controlC0
pulseaudi 2115 robby  39u   CHR 116,12      0t0  692 /dev/snd/controlC0
pulseaudi 2115 robby  42u   CHR  116,2      0t0  663 /dev/snd/pcmC0D0p
root@robrutrm:~#
...and this is either from root or user robby.

I hope this doesn't mean I have a "broken" install. Over the years I just kept doing the updates and thought that kept all my boxes, I have three slacker boxes running, current. I really did not, nor do not, want to install from scratch and re-build what I have working. The main thing is I run mythtv on all of my slacker boxes and I had to install a lot, and I mean a lot, of dependencies to get mythtv working so I especially didn't want to have to re-build mythtv and all of its dependencies.

Last edited by rocknrobin; 04-23-2024 at 11:18 AM.
 
Old 04-23-2024, 11:56 AM   #11
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by rocknrobin View Post
Code:
root@robrutrm:/etc/pam.d# slackpkg info consolekit2
root@robrutrm:/etc/pam.d# ls /var/log/packages | grep consolekit2
It's ConsoleKit2, not consolekit2. Those commands you tried are case-sensitive. But the solution is right below:
Code:
-rw-r--r-- 1 root root  658 Feb 19  2020 login
-rw-r--r-- 1 root root 1014 Jun 18  2020 login.new
-rw-r--r-- 1 root root  965 May 16  2020 sshd
-rw-r--r-- 1 root root 1228 Mar 11 12:43 sshd.new
-rw-r--r-- 1 root root 2480 Feb 19  2020 system-auth
-rw-r--r-- 1 root root 2443 Jun 16  2020 system-auth.new
-rw-r--r-- 1 root root  260 May 16  2020 xdm
-rw-r--r-- 1 root root  293 Apr  5 12:41 xdm.new
Your problem is right here. You should move all those .new files in place, including login.new which solves the problem. For example 'mv login.new login'. You have the original /etc/pam.d/login when it was first added to package util-linux-2.35.1-x86_64-6 (May 16, 2020). You have the corrected file still with suffix .new from package util-linux-2.35.2-x86_64-3.txz (Jun 18, 2020) when support for pam_elogind.so was added. After that the pam file uses elogind to add your session when you log in at the terminal. Similarly, if you log in using sshd, the file sshd.new is waiting to be used for supporting pam_elogind.so and so on.

You should usually move all .new files in place unless you have a good reason not to.
Quote:
In addition I cannot find package utmp:
It's not a package but a file (/var/run/utmp) where some programs write records and some programs read them.
Code:
robby@robrutrm:~/src$ whereis utmp
utmp: /usr/man/man5/utmp.5.gz
Yes, you can find some info about it by 'man utmp'.

Last edited by Petri Kaukasoina; 04-23-2024 at 04:33 PM.
 
Old 04-24-2024, 06:34 PM   #12
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks again for the response. Sorry for getting the syntax wrong on ConsoleKit2. There still appears to be no ConsoleKit2 after correcting the case.

Code:
root@robrutrm:/var/run# ls /var/log/packages | grep ConsoleKit2
You have new mail in /var/mail/root
root@robrutrm:/var/run#

root@robrutrm:/etc/rc.d# slackpkg info ConsoleKit2

No packages found! Try:

        slackpkg search ConsoleKit2

and choose one (and ONLY one package).


root@robrutrm:/etc/rc.d#
root@robrutrm:/var/run# slackpkg search ConsoleKit2

Looking for ConsoleKit2 in package list. Please wait... DONE

No package name matches the pattern.
root@robrutrm:/# whereis ConsoleKit2
ConsoleKit2:
root@robrutrm:/# find ConsoleKit2
find: 'ConsoleKit2': No such file or directory
root@robrutrm:/#
so that answers that.

I then made the changes suggested to

Quote:

move all those .new files in place, including login.new which solves the problem

Code:
-rw-r--r-- 1 root root 1014 Jun 18  2020 login
-rw-r--r-- 1 root root  658 Apr 24 17:59 login_orig
-rw-r--r-- 1 root root 1228 Mar 11 12:43 sshd
-rw-r--r-- 1 root root  965 Apr 24 18:01 sshd_orig
-rw-r--r-- 1 root root 2443 Jun 16  2020 system-auth
-rw-r--r-- 1 root root 2480 Apr 24 18:02 system-auth_orig
-rw-r--r-- 1 root root  293 Apr  5 12:41 xdm
-rw-r--r-- 1 root root  260 Apr 24 18:02 xdm_orig
I tried to stop/start rc.sshd, but sshd wouldn't start again, some error of no hostkeys. I rebooted and now ssh is working, but I still don't get anything from the commands suggested.

Code:
root@robrutrm:~# loginctl list-sessions
root@robrutrm:~# getfacl -Rs /dev
root@robrutrm:~#

root@robrutrm:/etc/pam.d# loginctl --version
elogind 252.23 (252.23)
+PAM -AUDIT -SELINUX -APPARMOR -SMACK -SECCOMP -GCRYPT +ACL -BLKID -KMOD +UTMP default-hierarchy=legacy
I also listed the version of loginctl, I am assuming that is the lastest, greatest version?
 
Old 04-25-2024, 12:24 AM   #13
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by rocknrobin View Post
Code:
root@robrutrm:~# loginctl list-sessions
root@robrutrm:~# getfacl -Rs /dev
root@robrutrm:~#

root@robrutrm:/etc/pam.d# loginctl --version
elogind 252.23 (252.23)
+PAM -AUDIT -SELINUX -APPARMOR -SMACK -SECCOMP -GCRYPT +ACL -BLKID -KMOD +UTMP default-hierarchy=legacy
I also listed the version of loginctl, I am assuming that is the lastest, greatest version?
There has been some hustle with elogind versions in the -current ChangeLog.txt these days, but your version should work. The version of today is elogind-255.4_r2-x86_64-2.

A couple of things you could check.

The eudev package replaced udev (Nov 20, 2015). So, you should not have the old udev but only this:
Code:
$ ls /var/log/packages | grep udev
eudev-3.2.14-x86_64-1
libgudev-238-x86_64-1
These should have the x bit set:
Code:
$ ls -l /etc/rc.d/rc.messagebus /etc/rc.d/rc.udev 
-rwxr-xr-x 1 root root 1864 2023-09-03 10:13 /etc/rc.d/rc.messagebus
-rwxr-xr-x 1 root root 7062 2023-10-07 10:48 /etc/rc.d/rc.udev
You may want to check .new files in /etc/rc.d, too. If you use slackpkg, 'slackpkg new-config' helps doing that. If you don't use slackpkg, the UPGRADE.TXT file gives this advice:
Code:
5.  Fix your config files. Some of the config files in /etc are going to 
    need your attention. You'll find the new incoming config files on 
    your system with the ".new" extension. You may need to fill these in 
    with information from your old config files and then move them over.

    Feel brave? You can use this little script to install most of the
    .new config files in /etc. If you've made any local changes you'll
    need to add them to the newly installed files. Your old config files
    will be copied to *.bak. Anyway, it might be an easier starting
    point. Here it is:

     #!/bin/sh
     cd /etc
     find . -name "*.new" | while read configfile ; do
       if [ ! "$configfile" = "./rc.d/rc.inet1.conf.new" \
         -a ! "$configfile" = "./rc.d/rc.local.new" \
         -a ! "$configfile" = "./group.new" \
         -a ! "$configfile" = "./passwd.new" \
         -a ! "$configfile" = "./shadow.new" ]; then
         cp -a $(echo $configfile | rev | cut -f 2- -d . | rev) \
           $(echo $configfile | rev | cut -f 2- -d . | rev).bak 2> /dev/null
         mv --verbose $configfile $(echo $configfile | rev | cut -f 2- -d . | rev)
       fi
     done

    You might also wish to move this config file over:

    /usr/share/vim/vimrc.new
 
Old 04-25-2024, 10:22 PM   #14
rocknrobin
Member
 
Registered: Apr 2020
Location: Texas
Distribution: 14.2
Posts: 45

Original Poster
Rep: Reputation: Disabled
Thanks again for the quick response. It looks like I've got quite a bit of work cut out for me.

Here is what I see in /var/log/packages

Code:
root@robrutrm:/var/log/packages# ls -l | grep udev
-rw-r--r-- 1 root root    4488 Oct  7  2023 eudev-3.2.14-x86_64-1
-rw-r--r-- 1 root root    1379 Apr 12 17:30 libgudev-238-x86_64-1
-rw-r--r-- 1 root root    6192 Jun  5  2015 udev-182-x86_64-7
so I do have the old udev package. Would I just delete or rename it?

It looks like the rc.d files are set as execute:

Code:
root@robrutrm:/var/log/packages# ls -l /etc/rc.d/rc.messagebus /etc/rc.d/rc.udev
-rwxr-xr-x 1 root root 1864 Sep  9  2023 /etc/rc.d/rc.messagebus*
-rwxr-xr-x 1 root root 7062 Oct  7  2023 /etc/rc.d/rc.udev*
As far as more .new files in /etc/rc.d I see a lot of them:

Code:
root@robrutrm:/etc# ls -l | grep .new
-rw-r--r--  1 root root      4229 Mar 28 21:24 DIR_COLORS.new
-rw-r--r--  1 root root       105 Feb 22  2016 asound.conf.new
-rw-r--r--  1 root root      1289 Nov  2 19:46 auto.master.new
-rw-r--r--  1 root root       519 Nov  2 19:46 auto.misc.new
-rw-r--r--  1 root root     16209 Nov  9 11:32 autofs.conf.new
-rw-r--r--  1 root root      1567 Jul 12  2018 csh.login.new
-rw-r--r--  1 root root      1527 Dec 18 12:35 dhcpcd.conf.new
-rw-r--r--  1 root root      2968 Mar 11 12:31 dialogrc.new
-rw-r--r--  1 root root     27885 Feb 13 21:01 dnsmasq.conf.new
-rw-r--r--  1 root root       453 Apr  9 21:20 environment.new
-rw-r--r--  1 root root       725 Nov  3 13:10 fuse.conf.new
-rw-r--r--  1 root root      4515 Feb 13  2021 inetd.conf.new
-rw-r--r--  1 root root      2367 Apr  5 14:55 inittab.new
-rw-r--r--  1 root root      7408 Oct 21  2023 irssi.conf.new
-rw-r--r--  1 root root        27 Jun 16  2018 issue.new
-rw-r--r--  1 root root      3256 Mar  7  2023 lftp.conf.new
-rw-r--r--  1 root root      1549 Dec 19  2022 logrotate.conf.new
-rw-r--r--  1 root root      1686 Nov 16  2021 lrzip.conf.new
-rw-r--r--  1 root root    163740 Apr 28  2023 lynx.cfg.new
-rw-r--r--  1 root root      5178 Apr  5 12:32 man_db.conf.new
-rw-r--r--  1 root root      2687 Feb 26 13:09 mdadm.conf.new
-rw-r--r--  1 root root       833 Feb  8  2023 mke2fs.conf.new
-rw-r--r--  1 root root       193 Feb  1 11:44 my.cnf.new
-r--r--r--  1 root root      9547 Mar  7  2023 nail.rc.new
-rw-r--r--  1 root root     11424 Jan 18  2023 nanorc.new
-rw-r--r--  1 root root      3602 Nov 20 13:23 nfsmount.conf.new
-rw-r--r--  1 root root      2717 Apr 18 13:24 nscd.conf.new
-rw-------  1 root root      4880 Mar 29 00:01 nslcd.conf.new
-rw-r--r--  1 root root      1128 Apr  5 13:08 nsswitch.conf.new
-rw-r--r--  1 root root      2580 Jul  3  2023 ntp.conf.new
-rw-r--r--  1 root root      5312 Apr 12 12:03 php-fpm.conf.new
-rw-r--r--  1 root root     74230 Apr 12 12:01 php.ini.new
-rw-r--r--  1 root root     25752 Mar  7  2023 pine.conf.new
-rw-r--r--  1 root root      2620 Aug 30  2021 profile.new
-rw-r--r--  1 root root      1988 Mar 15 12:19 proftpd.conf.new
-rw-r--r--  1 root root      3243 Nov 29  2022 rsyslog.conf.new
-rw-r--r--  1 root root      3414 Feb 26 12:53 sddm.conf.new
-rw-r--r--  1 root root     10593 Feb 13  2021 sensors3.conf.new
-rw-r--r--  1 root root      6057 Aug  1  2023 smartd.conf.new
-rw-r--r--  1 root root      1920 Dec 18 14:18 syslog.conf.new
-rw-r--r--  1 root root     10673 Nov  3  2022 ulogd.conf.new
-rw-r--r--  1 root root       546 Mar 17  2017 updatedb.conf.new
-rw-r--r--  1 root root      1523 Feb 13  2021 usb_modeswitch.conf.new
-rw-r--r--  1 root root      6734 May  4  2018 virtuoso.ini.new
-rw-r--r--  1 root root      5222 Mar 13  2023 vsftpd.conf.new
-rw-r--r--  1 root root      4945 Mar 11 12:34 wgetrc.new
-rw-r--r--  1 root root       681 Jan 16 14:05 xattr.conf.new
-rw-r--r--  1 root root      4650 Jul 13  2021 xboard.conf.new
-rw-r--r--  1 root root      9265 Feb  9 13:27 xpdfrc.new
-rw-r--r--  1 root root       501 Mar  5  2023 yp.conf.new
I also see vimrc.new in /usr/share/vim:

Code:
root@robrutrm:/usr/share/vim# ls -l
total 24
drwxr-xr-x  4 root root 4096 Jun 22  2022 addons/
drwxr-xr-x  2 root root 4096 Jun 22  2022 registry/
drwxr-xr-x 19 root root 4096 Apr 18 12:49 vim91/
drwxr-xr-x  6 root root 4096 Apr 12 12:13 vimfiles/
-rw-r--r--  1 root root 3026 Oct  2  2013 vimrc
-rw-r--r--  1 root root 1528 Apr 18 12:49 vimrc.new
I do use slackpkg and I do the updates from -current once a week pretty much religiously. I know I get a message after updates that there are .new config files asking what I want to do with them and I always select keep. I didn't realize that normally I need to address each of them every week. I am currently out of town until next week so given the number of .new files in /etc/rc.d I think I'll wait until I get home to address those. It may take some time, but am I too assume that every week I do updates I need to address all the new files? This seems like a dumb question, but I've never had much guidance in this direction.
 
Old 04-25-2024, 11:43 PM   #15
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by rocknrobin View Post
so I do have the old udev package. Would I just delete or rename it?
Code:
slackpkg remove udev
You probably have some other obsolete packages. To see a list without removing them yet, try:
Code:
slackpkg -batch=on -default_answer=n clean-system
All third party packages you have installed and want to keep are also listed there.
Quote:
I do use slackpkg and I do the updates from -current once a week pretty much religiously. I know I get a message after updates that there are .new config files asking what I want to do with them and I always select keep. I didn't realize that normally I need to address each of them every week. I am currently out of town until next week so given the number of .new files in /etc/rc.d I think I'll wait until I get home to address those. It may take some time, but am I too assume that every week I do updates I need to address all the new files? This seems like a dumb question, but I've never had much guidance in this direction.
I think the same as Hazel here: https://www.linuxquestions.org/quest...ml#post6491001
 
  


Reply

Tags
audio 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
LXer: Solus Readies KDE Plasma Edition Testing ISO with Latest KDE Plasma 5.14 Desktop LXer Syndicated Linux News 0 10-25-2018 03:03 PM
LXer: KDE Plasma 5.13 Desktop Reaches End of Life, KDE Plasma 5.14 Arrives October 9 LXer Syndicated Linux News 0 09-15-2018 10:30 PM
LXer: KDE Plasma 5.7.4 Desktop Environment Is Out with Plasma Desktop and KWin Fixes LXer Syndicated Linux News 0 08-24-2016 01:13 AM
LXer: KDE Plasma 5.6.4 Desktop Environment Launches with Plasma Discover Improvements LXer Syndicated Linux News 0 05-10-2016 07:15 PM
[SOLVED] Please tell me how to tell KDE to run plasma-desktop instead of plasma-netbook Kenny_Strawn Linux - Software 7 07-19-2010 07:32 PM

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

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