no sound until graphical login

*nix specific usage questions
seamanjeff
New Cone
New Cone
Posts: 3
Joined: 28 Nov 2012 20:06

no sound until graphical login

Postby seamanjeff » 28 Nov 2012 20:18

I have vlc 2.0.3 installed on Ubuntu 12.04 LTS.

When I start vlc (with -I http) from a terminal window via ssh, I don't hear anything until I log in at the GUI. If I log out in the GUI the sound stops, and then when I log back in it starts again.

Is audio somehow muted when I'm not logged in ? How can I work around this? I eventually want to disable the GUI entirely on this system.

This is what I see on the terminal:

Code: Select all

jeff@songbird2:/root$ vlc -I http /usr/local/music/DTTB VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e) [0x8c910a0] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 [0x8c910a0] main interface error: no suitable interface module [0x8c1cfb8] main interface error: no suitable interface module [0x8bfc908] main libvlc error: interface "globalhotkeys,none" initialization failed libdvdnav: Using dvdnav version 4.2.0 [0x8d772e8] [http] lua interface: Lua HTTP interface libdvdread: Encrypted DVD support unavailable. ************************************************ ** ** ** No css library available. See ** ** /usr/share/doc/libdvdread4/README.css ** ** for more information. ** ** ** ************************************************ libdvdread: Couldn't find device name. libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO [0x8c90838] main playlist: stopping playback [0xb4500500] pulse audio output error: overflow, flushing ^Cjeff@songbird2:/root$

seamanjeff
New Cone
New Cone
Posts: 3
Joined: 28 Nov 2012 20:06

Re: no sound until graphical login

Postby seamanjeff » 28 Nov 2012 21:31

Well.. I just had to learn the bare minimum about pulseaudio. This was one of the rare instances where putting the pulseaudio server in system mode was the right thing to do. To do this I had to set PULSEAUDIO_SYSTEM_START=1 in /etc/default/pulse and set system-instance = yes in /etc/pulse/daemon.conf (and reboot).

To start vlc I have to su to a non-priveleged user and then use vlc-wrapper, which is a little backwards:

Code: Select all

su jeff -c 'vlc-wrapper -Z -R -I http --http-port 80 /usr/local/music'
Because this has to run at boot time.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 29 guests