Sound available only after login via gdm
I want to set up a computer just for video and audio recording. Video works fine and audio too; well, as long as I login via gdm.
However, I want to use ssh and/or nx to access the computer and to start the recording bash script. The only problem is that audio seems not to be ready when login with ssh or nx since no alsa stuff is loaded/started. I only see pulseaudio directing to null. I have the same problem even when bypassing gdm and login via text terminal. On the other hand, all works fine when login via gdm.
It seems that the post process of gdm executes something related to alsa/audio. But, where can I find this? Looked in /etc/gdm already.
Your help is very much appreciated!