
Originally Posted by
Nightstalker
Yup saw it this morning.
As per
comment #11 from Takashi, I haven't any /etc/udev/rules.d/sound.rules and haven't tested Takashi's alsa-utils package as I didn't encountered the error you had and described in your bug report.
Things are working as expected only by changing card* to controlC* in /usr/lib/udev/rules.d/99-systemd.conf
2 devices were created for each sound card. Deleted the original line, added the new line and checked with Environment=SYSTEMD_LOG_LEVEL=debug. Several rules apply:
Code:
3400G:~ # journalctl -b -1 -u systemd-udevd.service --grep controlC2 -o short-monotonic
-- Logs begin at Fri 2020-12-11 12:31:34 CET, end at Sat 2020-12-12 18:04:58 CET. --
[ 5.900155] 3400G systemd-udevd[518]: controlC2: Device (SEQNUM=3907, ACTION=add) is queued
[ 5.900185] 3400G systemd-udevd[518]: controlC2: Device (SEQNUM=3907, ACTION=add) ready for processing
[ 5.900236] 3400G systemd-udevd[518]: controlC2: sd-device-monitor: Passed 226 byte to netlink monitor
[ 5.900453] 3400G systemd-udevd[542]: controlC2: Processing device (SEQNUM=3907, ACTION=add)
[ 5.900669] 3400G systemd-udevd[542]: controlC2: /usr/lib/udev/rules.d/50-udev-default.rules:47 GROUP 490
[ 5.900783] 3400G systemd-udevd[542]: controlC2: /usr/lib/udev/rules.d/60-persistent-alsa.rules:11 Importing properties from results of builtin command 'path_id'
[ 5.900827] 3400G systemd-udevd[542]: controlC2: /usr/lib/udev/rules.d/60-persistent-alsa.rules:12 LINK 'snd/by-path/pci-0000:08:00.6'
[ 5.900960] 3400G systemd-udevd[542]: controlC2: /usr/lib/udev/rules.d/73-seat-late.rules:17 RUN 'uaccess'
[ 5.900993] 3400G systemd-udevd[542]: controlC2: /usr/lib/udev/rules.d/78-sound-card.rules:5 ATTR '/sys/devices/pci0000:00/0000:00:08.1/0000:08:00.6/sound/card2/controlC2/../uevent' writing 'change'
[ 5.901253] 3400G systemd-udevd[542]: controlC2: /usr/lib/udev/rules.d/90-alsa-restore.rules:5 RUN '/usr/sbin/alsactl restore $attr{device/number}'
[ 5.901405] 3400G systemd-udevd[542]: controlC2: Handling device node '/dev/snd/controlC2', devnum=c116:12
[ 5.901436] 3400G systemd-udevd[542]: controlC2: Setting permissions /dev/snd/controlC2, uid=0, gid=490, mode=0660
[ 5.901467] 3400G systemd-udevd[542]: controlC2: Creating symlink '/dev/char/116:12' to '../snd/controlC2'
[ 5.901558] 3400G systemd-udevd[542]: controlC2: Creating symlink '/dev/snd/by-path/pci-0000:08:00.6' to '../controlC2'
[ 5.901709] 3400G systemd-udevd[542]: controlC2: sd-device: Created db file '/run/udev/data/c116:12' for '/devices/pci0000:00/0000:00:08.1/0000:08:00.6/sound/card2/controlC2'
[ 5.901739] 3400G systemd-udevd[542]: controlC2: Running built-in command "uaccess"
[ 5.901768] 3400G systemd-udevd[542]: controlC2: Running command "/usr/sbin/alsactl restore 2"
[ 5.901795] 3400G systemd-udevd[542]: controlC2: Starting '/usr/sbin/alsactl restore 2'
[ 5.901869] 3400G systemd-udevd[542]: controlC2: Process '/usr/sbin/alsactl restore 2' succeeded.
[ 5.901899] 3400G systemd-udevd[542]: controlC2: Device (SEQNUM=3907, ACTION=add) processed
[ 5.901937] 3400G systemd-udevd[542]: controlC2: sd-device-monitor: Passed 405 byte to netlink monitor
3400G:~ # systemctl list-units '*sound*'
UNIT LOAD ACTIVE SUB DESCRIPTION
sys-devices-pci0000:00-0000:00:08.1-0000:08:00.1-sound-card1-controlC1.device loaded active plugged /sys/devices/pci0000:00/0000:00:08.1/0000:08:00.1/sound/card1/controlC1
sys-devices-pci0000:00-0000:00:08.1-0000:08:00.6-sound-card2-controlC2.device loaded active plugged /sys/devices/pci0000:00/0000:00:08.1/0000:08:00.6/sound/card2/controlC2
sound.target loaded active active Sound Card
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
3 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
3400G:~ #
Bookmarks