On first login often there is no sound device and is slugish to close session.

Hi, since about 3-4 weeks, almost always when I first login there is no sound device and everything is slugish. If I close that session and login again, it works fine. Also probably unrelated the auto-hide latte docks make a flicker on the border of the screen after opening a program that is maximized. Also probably unrelated when shutting down it usually takes a really long time waiting for something to close, that “something” is not always the same.

I need help to diagnose. I’m using TW KDE Build20220725 and Nvida drivers. also there is no recent hardware changes.

Thank you

Which desktop environment are you using here?

When you first login, what do the following command invocations return?

systemctl --user list-units | egrep "pipe|pulse"
wpctl status

I’m using KDE X11

~> systemctl --user list-units | egrep "pipe|pulse"
  pipewire-pulse.service                                                                                           loaded active running PipeWire PulseAudio
  pipewire.service                                                                                                 loaded active running PipeWire Multimedia Service
  pipewire-pulse.socket                                                                                            loaded active running PipeWire PulseAudio
  pipewire.socket                                                                                                  loaded active running PipeWire Multimedia System Socket
~> wpctl status

wpctl does not output anything, I had to Ctrl-c to end it.

When the start up and login goes fine this is the output of the same commands:

~> systemctl --user list-units | egrep "pipe|pulse"
  pipewire-pulse.service                                                                                           loaded active running PipeWire PulseAudio
  pipewire.service                                                                                                 loaded active running PipeWire Multimedia Service
  pipewire-pulse.socket                                                                                            loaded active running PipeWire PulseAudio
  pipewire.socket                                                                                                  loaded active running PipeWire Multimedia System Socket


~> wpctl status
PipeWire 'pipewire-0' [0.3.56, neo@firefly, cookie:3460152577]
 └─ Clients:
        31. WirePlumber                         [0.3.56, neo@firefly, pid:1725]
        33. pipewire-pulse                      [0.3.56, neo@firefly, pid:1727]
        34. WirePlumber [export]                [0.3.56, neo@firefly, pid:1725]
        35. Plasma PA                           [0.3.56, neo@firefly, pid:1907]
        36. startplasma-x11                     [0.3.56, neo@firefly, pid:1516]
        46. wpctl                               [0.3.56, neo@firefly, pid:2312]
        53. QPulse                              [0.3.56, neo@firefly, pid:1904]

Audio
 ├─ Devices:
 │      42. GK106 HDMI Audio Controller         [alsa]
 │      43. Built-in Audio                      [alsa]
 │
 ├─ Sinks:
 │  *   50. Built-in Audio Estéreo analógico  [vol: 0.85]
 │
 ├─ Sink endpoints:
 │
 ├─ Sources:
 │
 ├─ Source endpoints:
 │
 └─ Streams:

Video
 ├─ Devices:
 │
 ├─ Sinks:
 │
 ├─ Sink endpoints:
 │
 ├─ Sources:
 │
 ├─ Source endpoints:
 │
 └─ Streams:

Settings
 └─ Default Configured Node Names:
         0. Audio/Sink    bluez_output.55_36_0C_EE_8D_FF.a2dp-sink

Thank you !

Hi, Hardware setting priority, if available, is 1st yast and 2nd system preferences.
When you do an installation and without doing anything, you have sound, it is possible that it has a generic one.
The steps are usually:
A)- There is no Card: 1º Add Card- 2º Configure automatically 3º go to others and select as main card.
A-1) Restart audio server.
A-2) Configure in System Preferences, if applicable.

B) There is a sound card: 1st click Edit 2nd choose automatic configuration 3rd go to OTHERS (bottom right) and define as main card.
B-1) Restart audio server.
B-2) Configure in System Preferences, if applicable.

Inxi, you can determine the states of the audio servers, with the extended sequence of extra 3 or -xxx : example :
inxi -xxxA :


HP-OMEN:~ # inxi -xxxA
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348
    class ID: 0403
  Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 2.5 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:0fb9
    class ID: 0403
  Sound Server-1: ALSA v: k5.3.18-150300.59.87-default running: yes
  Sound Server-2: PulseAudio v: 14.2-rebootstrapped running: yes
  Sound Server-3: PipeWire v: 0.3.24 running: no

Although more information can be expanded, this is enough,
Also with the command speaker.test , it is easier to do it from yast —others — sound playback test or in system preferences–audio-- and in advanced , test the channels.

Remember that to test, you have to restart the audio server, configure without restarting, it will most likely not work.

Best regards.