No sound card found when using xf86-video-dummy video driver
Summary
In order to use VNC to remote access a headless server, I seted up a dummy video driver in the server. But then the sound of the server doesn't work any more. The system displays only a dummy audio output.
environment
Steps to reproduce
- Setup dummy video dirver
Create xorg.conf and put it to /usr/share/X11/xorg.conf.d/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 1.0 - 2000.0
VertRefresh 1.0 - 200.0
# Add 16:9 modes, others are automatically detected.
Modeline "1280x720" 74.48 1280 1336 1472 1664 720 721 724 746
Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118
EndSection
Section "Device"
Identifier "Card0"
Driver "dummy"
VideoRam 256000
EndSection
ection "Screen"
DefaultDepth 24
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
- Setup X11Vnc
sudo apt-get install x11vnc
Set password
sudo x11vnc -storepasswd /etc/x11vnc.pass
Create a service file x11vnc.service and put to /etc/systemd/system/x11vnc.service
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth /run/user/1000/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target
Enable service
sudo systemctl enable x11vnc
- Restart server and use vnc to connect it.
What is the current bug behavior?
No sound card found in the server