View previous topic :: View next topic |
Author |
Message |
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Fri Jul 19, 2024 10:08 am Post subject: [Solved] Multiseat keeps changing audio-device |
|
|
Hi.
I have configured 2 seats with 2 nvidia cards.
The problem is at seat1 the soundcard keeps changing no matter what I try.
Ive created UDEV-rule so that only card 2 is configured to seat1
Code: | 70-sound-seat.rules
# /etc/udev/rules.d/70-sound-seat.rules
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="card0", ENV{ID_SEAT}="seat0"
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="card1", ENV{ID_SEAT}="seat0"
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="card2", ENV{ID_SEAT}="seat1" |
Users .asoundrc on seat1
Code: | .asoundrc
# ~/.asoundrc
pcm.!default {
type hw
card 2
device 3
}
ctl.!default {
type hw
card 2
}
|
And of course manully configured audio from Mate to use the hdmi-output I want to use.
Still the audio works short time and then the output changes to seat0 or to some other output after short while.
On seat0 sound is persistent with the device configured once from control panel.
What I´m missing here?
Code: | lspci -v|grep VGA
02:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) (prog-if 00 [VGA controller])
03:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) (prog-if 00 [VGA controller])
09:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30) (prog-if 00 [VGA controller]) |
Code: | cat /etc/udev/rules.d/72-seat-sound-pci-0000_03_00_1.rules
TAG=="seat", ENV{ID_FOR_SEAT}=="sound-pci-0000_03_00_1", ENV{ID_SEAT}="seat1" |
Last edited by Nreal on Sun Jul 21, 2024 1:10 pm; edited 1 time in total |
|
Back to top |
|
|
Ralphred l33t
Joined: 31 Dec 2013 Posts: 635
|
Posted: Fri Jul 19, 2024 1:35 pm Post subject: |
|
|
Does loginctl list-seats track with the problem? |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Fri Jul 19, 2024 4:36 pm Post subject: |
|
|
Ralphred wrote: | Does loginctl list-seats track with the problem? |
Code: | loginctl list-seats
SEAT
seat0
seat1
2 seats listed.
|
Code: |
loginctl seat-status seat0
seat0
Sessions: *6
Devices:
├─/sys/bus/serial-base/drivers/port
│ drivers:port
├─/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
│ input:input1 "Power Button"
├─/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
│ input:input0 "Power Button"
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/drm/card1
│ [MASTER] drm:card1
│ ├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/drm/card1/card1-DP-1
│ │ [MASTER] drm:card1-DP-1
│ ├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/drm/card1/card1-DVI-D-1
│ │ [MASTER] drm:card1-DVI-D-1
│ ├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/drm/card1/card1-DVI-I-1
│ │ [MASTER] drm:card1-DVI-I-1
│ └─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/drm/card1/card1-HDMI-A-1
│ [MASTER] drm:card1-HDMI-A-1
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/i2c-2
│ i2c:i2c-2 "NVIDIA i2c adapter 0 at 2:00.0"
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/i2c-3
│ i2c:i2c-3 "NVIDIA i2c adapter 1 at 2:00.0"
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/i2c-4
│ i2c:i2c-4 "NVIDIA i2c adapter 2 at 2:00.0"
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/i2c-5
│ i2c:i2c-5 "NVIDIA i2c adapter 6 at 2:00.0"
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/i2c-6
│ i2c:i2c-6 "NVIDIA i2c adapter 7 at 2:00.0"
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/i2c-7
│ i2c:i2c-7 "NVIDIA i2c adapter 8 at 2:00.0"
├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.1/sound/card1
│ sound:card1 "NVidia_1"
│ ├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.1/sound/card1/input32
│ │ input:input32 "HDA NVidia HDMI/DP,pcm=3"
│ ├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.1/sound/card1/input33
│ │ input:input33 "HDA NVidia HDMI/DP,pcm=7"
│ ├─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.1/sound/card1/input34
│ │ input:input34 "HDA NVidia HDMI/DP,pcm=8"
│ └─/sys/devices/pci0000:00/0000:00:02.0/0000:02:00.1/sound/card1/input35
│ input:input35 "HDA NVidia HDMI/DP,pcm=9"
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/i2c-10
│ i2c:i2c-10 "NVIDIA i2c adapter 2 at 3:00.0"
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/i2c-11
│ i2c:i2c-11 "NVIDIA i2c adapter 6 at 3:00.0"
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/i2c-12
│ i2c:i2c-12 "NVIDIA i2c adapter 7 at 3:00.0"
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/i2c-13
│ i2c:i2c-13 "NVIDIA i2c adapter 8 at 3:00.0"
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/i2c-8
│ i2c:i2c-8 "NVIDIA i2c adapter 0 at 3:00.0"
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/i2c-9
│ i2c:i2c-9 "NVIDIA i2c adapter 1 at 3:00.0"
├─/sys/devices/pci0000:00/0000:00:14.0/usb3
│ usb:usb3
│ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13
│ │ usb:3-13
│ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1
│ │ usb:3-13.1
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:405E.0005/input/input17
│ │ │ input:input17 "Logitech M720 Triathlon"
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:405E.0005/input/input17/input17::capslock
│ │ │ │ leds:input17::capslock
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:405E.0005/input/input17/input17::compose
│ │ │ │ leds:input17::compose
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:405E.0005/input/input17/input17::kana
│ │ │ │ leds:input17::kana
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:405E.0005/input/input17/input17::numlock
│ │ │ │ leds:input17::numlock
│ │ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:405E.0005/input/input17/input17::scrolllock
│ │ │ leds:input17::scrolllock
│ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:4062.0006/input/input18
│ │ input:input18 "Logitech K850"
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:4062.0006/input/input18/input18::capslock
│ │ │ leds:input18::capslock
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:4062.0006/input/input18/input18::compose
│ │ │ leds:input18::compose
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:4062.0006/input/input18/input18::kana
│ │ │ leds:input18::kana
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:4062.0006/input/input18/input18::numlock
│ │ │ leds:input18::numlock
│ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13.1/3-13.1:1.2/0003:046D:C52B.0003/0003:046D:4062.0006/input/input18/input18::scrolllock
│ │ leds:input18::scrolllock
│ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2
│ usb:3-2
├─/sys/devices/pci0000:00/0000:00:14.0/usb4
│ usb:usb4
│ └─/sys/devices/pci0000:00/0000:00:14.0/usb4/4-2
│ usb:4-2
├─/sys/devices/pci0000:00/0000:00:1a.0/usb1
│ usb:usb1
│ └─/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1
│ usb:1-1
├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0
│ sound:card0 "PCH"
│ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input36
│ │ input:input36 "HDA Intel PCH Rear Mic"
│ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input37
│ │ input:input37 "HDA Intel PCH Line"
│ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input38
│ │ input:input38 "HDA Intel PCH Line Out Front"
│ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input39
│ │ input:input39 "HDA Intel PCH Line Out Surround"
│ ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input40
│ │ input:input40 "HDA Intel PCH Line Out CLFE"
│ └─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input41
│ input:input41 "HDA Intel PCH Line Out Side"
├─/sys/devices/pci0000:00/0000:00:1c.7/0000:08:00.0/0000:09:00.0/drm/card0
│ [MASTER] drm:card0
│ ├─/sys/devices/pci0000:00/0000:00:1c.7/0000:08:00.0/0000:09:00.0/drm/card0/card0-VGA-1
│ │ [MASTER] drm:card0-VGA-1
│ └─/sys/devices/pci0000:00/0000:00:1c.7/0000:08:00.0/0000:09:00.0/drm/card0/card0-Virtual-1
│ [MASTER] drm:card0-Virtual-1
├─/sys/devices/pci0000:00/0000:00:1c.7/0000:08:00.0/0000:09:00.0/i2c-1
│ i2c:i2c-1 "AST i2c bit bus"
├─/sys/devices/pci0000:00/0000:00:1d.0/usb2
│ usb:usb2
│ └─/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1
│ usb:2-1
├─/sys/devices/pci0000:00/0000:00:1f.2/ata10/host9/target9:0:0/9:0:0:0/block/sr0
│ block:sr0
├─/sys/devices/pci0000:00/0000:00:1f.2/ata10/host9/target9:0:0/9:0:0:0/scsi_generic/sg5
│ scsi_generic:sg5
├─/sys/devices/pci0000:00/0000:00:1f.3/i2c-0
│ i2c:i2c-0 "SMBus I801 adapter at 0580"
├─/sys/devices/platform/eeepc-wmi/input/input27
│ input:input27 "Eee PC WMI hotkeys"
├─/sys/devices/platform/pcspkr/input/input26
│ input:input26 "PC Speaker"
├─/sys/devices/virtual/mem/port
│ mem:port
└─/sys/devices/virtual/misc/rfkill
misc:rfkill
|
Code: | loginctl seat-status seat1
seat1
Sessions: *102
Devices:
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/drm/card2
│ [MASTER] drm:card2
│ ├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/drm/card2/card2-DP-2
│ │ [MASTER] drm:card2-DP-2
│ ├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/drm/card2/card2-DVI-D-2
│ │ [MASTER] drm:card2-DVI-D-2
│ ├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/drm/card2/card2-DVI-I-2
│ │ [MASTER] drm:card2-DVI-I-2
│ └─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/drm/card2/card2-HDMI-A-2
│ [MASTER] drm:card2-HDMI-A-2
├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.1/sound/card2
│ sound:card2 "NVidia"
│ ├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.1/sound/card2/input28
│ │ input:input28 "HDA NVidia HDMI/DP,pcm=3"
│ ├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.1/sound/card2/input29
│ │ input:input29 "HDA NVidia HDMI/DP,pcm=7"
│ ├─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.1/sound/card2/input30
│ │ input:input30 "HDA NVidia HDMI/DP,pcm=8"
│ └─/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.1/sound/card2/input31
│ input:input31 "HDA NVidia HDMI/DP,pcm=9"
├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1
│ usb:3-2.1
│ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2
│ usb:3-2.1.2
│ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.2
│ │ usb:3-2.1.2.2
│ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.2/3-2.1.2.2:1.0/0003:046D:C219.000D/input/input42
│ │ input:input42 "Logitech Logitech Cordless RumblePad 2"
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.2/3-2.1.2.2:1.0/0003:046D:C219.000D/input/input42/event2
│ │ │ input:event2
│ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.2/3-2.1.2.2:1.0/0003:046D:C219.000D/input/input42/js0
│ │ input:js0
│ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4
│ usb:3-2.1.2.4
│ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1
│ │ usb:3-2.1.2.4.1
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.0/0003:1EA7:0066.000E/input/input43
│ │ │ input:input43 "2.4G Mouse"
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.0/0003:1EA7:0066.000E/input/input43/input43::capslock
│ │ │ │ leds:input43::capslock
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.0/0003:1EA7:0066.000E/input/input43/input43::compose
│ │ │ │ leds:input43::compose
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.0/0003:1EA7:0066.000E/input/input43/input43::kana
│ │ │ │ leds:input43::kana
│ │ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.0/0003:1EA7:0066.000E/input/input43/input43::numlock
│ │ │ │ leds:input43::numlock
│ │ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.0/0003:1EA7:0066.000E/input/input43/input43::scrolllo>
│ │ │ leds:input43::scrolllock
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.1/0003:1EA7:0066.000F/input/input44
│ │ │ input:input44 "2.4G Mouse"
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.1/0003:1EA7:0066.000F/input/input45
│ │ │ input:input45 "2.4G Mouse"
│ │ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.1/0003:1EA7:0066.000F/input/input46
│ │ │ input:input46 "2.4G Mouse Consumer Control"
│ │ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.1/3-2.1.2.4.1:1.1/0003:1EA7:0066.000F/input/input47
│ │ input:input47 "2.4G Mouse System Control"
│ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.4
│ usb:3-2.1.2.4.4
│ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.4/3-2.1.2.4.4:1.2/0003:046D:C52B.0012/0003:046D:4024.0013/input/input49
│ input:input49 "Logitech K400"
│ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.4/3-2.1.2.4.4:1.2/0003:046D:C52B.0012/0003:046D:4024.0013/input/input>
│ │ leds:input49::capslock
│ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.4/3-2.1.2.4.4:1.2/0003:046D:C52B.0012/0003:046D:4024.0013/input/input>
│ │ leds:input49::compose
│ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.4/3-2.1.2.4.4:1.2/0003:046D:C52B.0012/0003:046D:4024.0013/input/input>
│ │ leds:input49::kana
│ ├─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.4/3-2.1.2.4.4:1.2/0003:046D:C52B.0012/0003:046D:4024.0013/input/input>
│ │ leds:input49::numlock
│ └─/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1.2/3-2.1.2.4/3-2.1.2.4.4/3-2.1.2.4.4:1.2/0003:046D:C52B.0012/0003:046D:4024.0013/input/input>
│ leds:input49::scrolllock
└─/sys/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2.1
usb:4-2.1
|
Something makes the selected soundcard change after a while.. I had this same problem with Debian 11 & 12 and could not figure out what was the reason.
Code: |
emerge --info
Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-13, glibc-2.39-r6, 6.9.9-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.9.9-gentoo-dist-x86_64-Intel-R-_Xeon-R-_CPU_E5-2699A_v4_@_2.40GHz-with-glibc2.39
KiB Mem: 131851540 total, 105352504 free
KiB Swap: 118783992 total, 118783992 free
Timestamp of repository gentoo: Fri, 19 Jul 2024 06:30:00 +0000
Head commit of repository gentoo: b384fb9857c1b012535b5a21026e03fe349f743c
Head commit of repository brave-overlay: 175383af9cdb01cd45d54ce085f535dafb01669d
Timestamp of repository src_prepare-overlay: Thu, 18 Jul 2024 23:21:03 +0000
Head commit of repository src_prepare-overlay: 9dd2c309619a8732b1efea57c8be974493c23be2
Timestamp of repository xira: Tue, 16 Jul 2024 09:34:18 +0000
Head commit of repository xira: f77c36c54f670bb67a818d0be0c8e31719ddb786
sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
ccache version 4.9.1 [enabled]
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.5::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r3::gentoo
dev-lang/python: 3.10.14_p1-r1::gentoo, 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust-bin: 1.77.1::gentoo
dev-util/ccache: 4.9.1-r1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.54.2::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 12.5.9999::gentoo, 13.3.1_p20240614::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
brave-overlay
location: /var/db/repos/brave-overlay
sync-type: git
sync-uri: https://gitlab.com/jason.oliveira/brave-overlay.git
masters: gentoo
volatile: False
src_prepare-overlay
location: /var/db/repos/src_prepare-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/src_prepare-overlay.git
masters: gentoo
volatile: False
xira
location: /var/db/repos/xira
sync-type: git
sync-uri: https://github.com/gentoo-mirror/xira.git
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 5 --load-average 20"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.agdsn.de/gentoo https://ftp.agdsn.de/gentoo rsync://ftp.agdsn.de/gentoo https://mirror.yandex.ru/gentoo-distfiles/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ https://ftp.lysator.liu.se/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="fi en"
MAKEOPTS="-j40"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac access_compat acl acpi addressbook alsa amd64 animation-rtl apache aptx asis auth_digest auth_form authn_dbd authn_socache authz_dbd base berkdb blueray bluetooth bluray branding brave brotli bzip2 cache_disk cache_socache cairo caja cdda cddb cdr cern_meta cet cgi cgrypt charset_lite color-management colord corefonts cron crypt cue cups custom-modes d3d9 dbd dbus declarative discid dist-kernel dns dri dts dumpio dvd dvdr egl elogind encode exif extra extras fastcgi fdk ffmpeg fileinfo fingerprints firefox flac freeimage ftp fullscreen gdbm geoip geolocation gif gimp git gles2 gnuplot gphoto2 gpm gps graphite graphviz grimshot grub gstreamer gtk gui handbrake haptic hcitop hddtemp hpijs hplip http i18n iconv icu ident imagemagick imagemap inspector intel ipv6 jack java javascript joystick jpeg jpeg2 jpeg2k jpg kde kernel-install kf6compat lame lcms lensfun libav-aac libnotify libtirpc lm-sensors lvm lzip lzma lzo mad marble mate matroska minizip mmap mms mng mono mount mp3 mp4 mpeg mpg123 mplayer mtp multilib musicbrainz mypaint-brush-engine mysql mysqli ncurses networkmanager nls numa nvenc nvidia ocr odbc ofono ogg openal opencl opengl openmp opus oss pam pango panorama pcre pdf perl php png policykit positioning postproc postscript ppds pulseaudio python qml qrcode qt5 qt6 qtdiag qtmedia qtplugininfo raw rdp readline rss rustfmt scanner scp sdl seccomp server sockets sound spell split-usr spyder ssl startup-notification static-ppds streamtuner svg swig szip tcl test-rust themes theora tiff tray truetype twolame udev udisks unicode upower usb vhosts vlc vorbis vpx vulkan wallpapers wavpack waydroid wayland webkit webp wifi wxwidgets x264 x265 xattr xcb xft xine xml xpm xv xvfb xvid xwayland zip zlib zstd" ABI_X86="64 32" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy proxy_http proxy_http2 rewrite access_compat userdir" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput synaptics evdev joystick" KERNEL="linux" L10N="fi en en-GB en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3 php8-2 php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_12 python3_11 python3_10 python2_7" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="i915 intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
|
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2052 Location: United Kingdom
|
Posted: Fri Jul 19, 2024 6:05 pm Post subject: |
|
|
Nreal,
Would the following section in the Gentoo Wiki article on Multiseat be of any help?:
https://wiki.gentoo.org/wiki/Multiseat#Single_sound_card_per_seat _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Fri Jul 19, 2024 7:33 pm Post subject: |
|
|
Yes ive read it and tried with
FILE ~/.asoundrcasoundrc basic config
defaults.pcm.card 2
defaults.ctl.card 2
And it works some time and then something changes the card. This happens only on the seat1. When I had 3 seats two of them were problematic. With 3 seats the sound from other seat suddenly started to come through the device seat0 was using (spdif) and when something played from seat0 the leaking stopped, but came back later, and devices changed as they still keep changing. Leaking does not happen anymore.
Not sure about this, but seat1 is using xfce4 now and it seems to keep the device, so it might be the mate-desktop that has something wrong.
When the device changes, or the sounds stop playing the device that were used cannot be activated through control panel, if it was 2 channels stereo hdmi its dead and I have to change to 5.1 or 7.1 and test the speakers to get it working again. After selecting 5.1 or 7.1 and played testsound or something else it is possible to select 2.0 again. |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Sat Jul 20, 2024 9:06 am Post subject: |
|
|
Here are some errors from the log, it does not work with xfce either.
Code: | jimms /home/markus # tail -f /var/log/syslog | grep pulseaudio
Jul 20 10:07:34 jimms pulseaudio[12174]: [pulseaudio] bluez5-util.c: org.bluez.BatteryProviderManager1.RegisterBatteryProvider() Failed: org.bluez.Error.AlreadyExists:Provider already exists
Jul 20 10:07:34 jimms pulseaudio[12174]: [pulseaudio] backend-native.c: org.bluez.ProfileManager1.RegisterProfile() failed: org.bluez.Error.NotPermitted: UUID already registered
Jul 20 10:07:34 jimms pulseaudio[12649]: [pulseaudio] pid.c: Daemon already running.
Jul 20 10:07:34 jimms pulseaudio[12652]: [pulseaudio] pid.c: Daemon already running.
Jul 20 11:56:37 jimms pulseaudio[12174]: [pulseaudio] module-x11-xsmp.c: ICE I/O error handler called
Jul 20 11:56:37 jimms pulseaudio[12174]: [pulseaudio] x11wrap.c: X11 I/O error handler called
Jul 20 11:56:37 jimms pulseaudio[12174]: [pulseaudio] x11wrap.c: X11 I/O error exit handler called, preparing to tear down X11 modules
Jul 20 11:56:37 jimms pulseaudio[12174]: [pulseaudio] stdin-util.c: Lost I/O connection in module "module-gsettings"
Jul 20 11:56:37 jimms pulseaudio[12174]: [pulseaudio] core-util.c: Failed to create secure directory (/run/user/5001/pulse): Tiedostoa tai hakemistoa ei ole
Jul 20 11:56:45 jimms pulseaudio[8568]: [pulseaudio] bluez5-util.c: org.bluez.BatteryProviderManager1.RegisterBatteryProvider() Failed: org.bluez.Error.AlreadyExists:Provider already exists
Jul 20 11:56:45 jimms pulseaudio[8568]: [pulseaudio] backend-native.c: org.bluez.ProfileManager1.RegisterProfile() failed: org.bluez.Error.NotPermitted: UUID already registered
Jul 20 11:56:45 jimms pulseaudio[9184]: [pulseaudio] pid.c: Daemon already running.
Jul 20 11:56:45 jimms pulseaudio[9188]: [pulseaudio] pid.c: Daemon already running.
Jul 20 11:58:09 jimms pulseaudio[8568]: [pulseaudio] module-x11-xsmp.c: ICE I/O error handler called
Jul 20 11:58:09 jimms pulseaudio[8568]: [pulseaudio] x11wrap.c: X11 I/O error handler called
Jul 20 11:58:09 jimms pulseaudio[8568]: [pulseaudio] x11wrap.c: X11 I/O error exit handler called, preparing to tear down X11 modules
Jul 20 11:58:09 jimms pulseaudio[8568]: [pulseaudio] stdin-util.c: Lost I/O connection in module "module-gsettings"
Jul 20 11:58:09 jimms pulseaudio[8568]: [pulseaudio] core-util.c: Failed to create secure directory (/run/user/5001/pulse): Tiedostoa tai hakemistoa ei ole
Jul 20 11:58:27 jimms pulseaudio[17304]: [pulseaudio] bluez5-util.c: org.bluez.BatteryProviderManager1.RegisterBatteryProvider() Failed: org.bluez.Error.AlreadyExists:Provider already exists
Jul 20 11:58:27 jimms pulseaudio[17304]: [pulseaudio] backend-native.c: org.bluez.ProfileManager1.RegisterProfile() failed: org.bluez.Error.NotPermitted: UUID already registered
Jul 20 11:58:27 jimms pulseaudio[17596]: [pulseaudio] pid.c: Daemon already running.
Jul 20 11:58:27 jimms pulseaudio[17601]: [pulseaudio] pid.c: Daemon already running.
|
|
|
Back to top |
|
|
garrison Apprentice
Joined: 18 Mar 2003 Posts: 265
|
Posted: Sat Jul 20, 2024 2:32 pm Post subject: |
|
|
You are using sound server (pulseaudio), not plain alsa - trying to use /etc/asound.conf or ~/.asoundrc to specify default device would not work and could confuse sound server. |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Sat Jul 20, 2024 4:51 pm Post subject: |
|
|
garrison wrote: | You are using sound server (pulseaudio), not plain alsa - trying to use /etc/asound.conf or ~/.asoundrc to specify default device would not work and could confuse sound server. |
Yes it does not work with or without .asoundrc |
|
Back to top |
|
|
garrison Apprentice
Joined: 18 Mar 2003 Posts: 265
|
Posted: Sat Jul 20, 2024 5:22 pm Post subject: |
|
|
I'd suggest you move away any of your /etc/asound.conf and ~/.asoundrc then check if your issue is due to displayport device disappearing for seat1: just power off relevant monitor or wait until it goes to power saving mode, then turn it back on.
If this reproduces your issue I'd guess you displayport card from seat1 is disappearing when monitor goes off which causes pulseaudio to try to switch to another device. You can try the following: in pavucontrol running for seat1 navigate to Configuration tab, select desired card profile for your monitor audio and click "lock" button - this will make sure pulseaudio would not try to switch away from this device when card disappears, and also make sure pulseaudio would restore the same profile when card appears again. Then navigate to Output Devices tab and click "Set as fallback" button against device you need - this is pulseaudio way to say which device is the default device.
You can see more details if you run pa-info tool (maybe for each seat too) |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Sat Jul 20, 2024 6:09 pm Post subject: |
|
|
garrison wrote: | I'd suggest you move away any of your /etc/asound.conf and ~/.asoundrc then check if your issue is due to displayport device disappearing for seat1: just power off relevant monitor or wait until it goes to power saving mode, then turn it back on.
If this reproduces your issue I'd guess you displayport card from seat1 is disappearing when monitor goes off which causes pulseaudio to try to switch to another device. You can try the following: in pavucontrol running for seat1 navigate to Configuration tab, select desired card profile for your monitor audio and click "lock" button - this will make sure pulseaudio would not try to switch away from this device when card disappears, and also make sure pulseaudio would restore the same profile when card appears again. Then navigate to Output Devices tab and click "Set as fallback" button against device you need - this is pulseaudio way to say which device is the default device.
You can see more details if you run pa-info tool (maybe for each seat too) |
Sounds go of when using the seat and watching a film or going through youtube-clips. Several times a day, not related to power save as I understand.
Ive used pavucontrol-qt and there is no option to lock the preferred card. After installing pavucontrol and locking the silence came.
Had to reboot and remove the attached audio-device from udev rules to get these soundcards visible again. Ive tried this locking
a couple of years ago with Debian and then it did not work, lets see if things have changed. It is like the udev somehow circulates
these cards from time to time as they both are nvidia-cards and almost identical. It did not work with different types of cards either.
Before this pulseaudio bullshit one could just choose the soundcard once and that was it, puleaudio made this a mess.
Last edited by Nreal on Sat Jul 20, 2024 6:31 pm; edited 1 time in total |
|
Back to top |
|
|
garrison Apprentice
Joined: 18 Mar 2003 Posts: 265
|
Posted: Sat Jul 20, 2024 6:17 pm Post subject: |
|
|
Well actually pulseaudio uses device naming scheme based on pci bus path which makes your cards clearly distinct (this is not so with alsa device numbers assigned in order of kernel module initialization.)
Didi you moved away your /etc/asound.conf and ~/.asoundrc before testing?
You may collect debug output to see what happens exactly, like this for the seat which has issues: '(pacmd set-log-target file:/tmp/pulse-verbose.log; pacmd set-log-time true; pacmd set-log-level 4)' |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Sat Jul 20, 2024 6:34 pm Post subject: |
|
|
garrison wrote: | Well actually pulseaudio uses device naming scheme based on pci bus path which makes your cards clearly distinct (this is not so with alsa device numbers assigned in order of kernel module initialization.)
Didi you moved away your /etc/asound.conf and ~/.asoundrc before testing?
You may collect debug output to see what happens exactly, like this for the seat which has issues: '(pacmd set-log-target file:/tmp/pulse-verbose.log; pacmd set-log-time true; pacmd set-log-level 4)' |
I have not made any asound.conf and .asoundrc has been removed. |
|
Back to top |
|
|
Nreal Apprentice
Joined: 06 Jan 2009 Posts: 286
|
Posted: Sun Jul 21, 2024 1:09 pm Post subject: |
|
|
Locking with pavucontrol seems to work, device has not yet changed anyway.
Pavucontrol-qt has not the locking option, I did wonder whu it has been removed,
it is still on pavucontrol though and now it seems to work with multiseat. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|