MPDLCD won't auto start

Hi, I’m busy with my first Volume Project.

  • Motorola VIP1863 Case
  • DIY Todorial 2x 5v PSU
  • RaspBerry B
  • Hifiberry DIGI -> External (Coaxial) Musical Fidelity Vdac-II
  • 16x2 LCD (White on Black)
  • Volumio 1.55

The problem is that MPDLCD won’t autostart, The display shows a LCDPROC Notification. Starting MPDLCD by hand sudo MPDLCD --no-syslog does work.
I’ve already replaced the with the one from the andypi website, with no results.

Executing show’s the following error:

[code]volumio@volumio:~$ sudo mpdlcd –no-syslog &
[1] 13469
volumio@volumio:~$ Traceback (most recent call last):
File “/usr/local/bin/mpdlcd”, line 10, in
File “/usr/local/lib/python2.7/dist-packages/mpdlcd/”, line 492, in main
‘logfile’, ‘loglevel’, ‘debug’))
File “/usr/local/lib/python2.7/dist-packages/mpdlcd/”, line 387, in _setup_logging
handler = logging_handlers.SysLogHandler(address, facility=syslog_facility)
File “/usr/lib/python2.7/logging/”, line 760, in init
File “/usr/lib/python2.7/logging/”, line 788, in _connect_unixsocket
File “/usr/lib/python2.7/”, line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 2] No such file or directory

[1]+ Exit 1 sudo mpdlcd –no-syslog[/code]

Any Ideas?

p.s. I’ll post some pictures.



It looks like mplcd can’t connect to the mpd dameon, maybe it is launched too early, before mpd?

The command is mpdlcd --no syslog & and is case sensitive

Thanks for your replies,

This is the last part of de file, all commands are undercase.

        echo "Usage: [start|stop]" >&2
        exit 3
su pi -c “mpdlcd --no-syslog &”

Starting manual with sudo mldlcd --no-syslog reports back by:

olumio@volumio:~$ sudo mpdlcd --no-syslog INFO mpdlcd.lcdrunner LCD screen is 16x2 INFO mpdlcd.lcdrunner MPD screen added to lcdproc. INFO mpdlcd.mpdwrapper Connecting to MPD server at localhost:6600 INFO mpd Calling MPD connect('localhost', 6600, timeout=None) INFO mpdlcd.lcdrunner Starting update loop.
And then it does display the trackinfo on the LCD.

You’d rather place it in /etc/rc.local. take care to write the good command (no su or sudo)

Found the bug:
when you launch the command by hand you do it with sudo so mpdlcd has super users rights but when the script launches the command it is done with “su pi -c …” and I guess user pi does not have the same rights.
So get rid of the “pi -c” and it will be fine.

Solved removing “pi- c” did the trick!