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 bootmisc.sh 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
cli.main(sys.argv)
File “/usr/local/lib/python2.7/dist-packages/mpdlcd/cli.py”, line 492, in main
‘logfile’, ‘loglevel’, ‘debug’))
File “/usr/local/lib/python2.7/dist-packages/mpdlcd/cli.py”, line 387, in _setup_logging
handler = logging_handlers.SysLogHandler(address, facility=syslog_facility)
File “/usr/lib/python2.7/logging/handlers.py”, line 760, in init
self._connect_unixsocket(address)
File “/usr/lib/python2.7/logging/handlers.py”, line 788, in _connect_unixsocket
self.socket.connect(address)
File “/usr/lib/python2.7/socket.py”, 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.

Arco

Hi,

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

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

Thanks for your replies,

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

*)
        echo "Usage: bootmisc.sh [start|stop]" >&2
        exit 3
        ;;
esac
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!

Tnx.