I committed some packages to the OpenWrt trunk, some are already applied others not yet. I use Lcd4Linux to fill display, MPD as music player, scmpc to submit the played tracks to last.fm. Here are some pics:

a LCD closeup:

… and a last.fm screenshot:
A LCD closeup for plugin_mpd v0.7 — I updated it today:


18 Comments
1 Del wrote:
This is a great idea!!
Thanks for sharing.
2 shawn wrote:
do you compile lcd4linux or use the ipk? looks r903 doesn’t contain driver, and r1034/1037 gives segfault.
and, could you tell me what lcd do you use?
3 michu wrote:
hey shawn, try to edit the lcd4linux makefile. you can update the lcd4linux version and modfiy the compile options. i did compile lcd4linux myself…
4 tdouez wrote:
michu, you compiled the lcd4linux yourself; could you share the ipk files ?
5 michu wrote:
hey tdouez
you can download the ipk on the openwrt site or compile it yourself. so the app is always up to date!
6 Roman wrote:
Michu,
I tried to compile lcd4linux with MPD plugin but I am running in to issues with configure not being able to locate libmpdclient.c and libmpdclient.h files.
I am compiling it on Seagate Dockstar, running Debian Squeeze, kernel 2.6.32–5-kirkwood.
Standard lcd4linux installed via apt-get runs fine, just does not have MPD plugin.
Any suggestions/pointers will be appreciated.
Thanks
Roman
7 michu wrote:
Which version of lcd4linux did you tried? use the latest svn snapshot, as the releases are quite old!
8 Roman wrote:
I used latest version installed from SVN, it identifies itself as 0.11.0-SVN
Thanks
Roman
9 Roman wrote:
Hi Michu,
Any idea where the configure script expect the libmpdclient.h to be located?
I have it in ./lcd4linux directory but scrip can not find it during ./configure process.
Should it be located somewhere else?
Thanks for your help.
Roman
BTW, the version that I compiled and build from SVN is 0.11.0-SVN-1092
10 michu wrote:
Hey roman, I remember it was a bit funky to use libmpdclient. If you dont mind to use a hacky approch, remove the dependency from autoconf (or add a fake file), copy libmpdclient into the lcd4linux directory and include the file direct from the mpd plugin. I don’t know if the newest libmpdclient will work fine with the Lcd4linux plugin.
11 Roman wrote:
I would certainly try that if I knew how to remove dependency from autoconf ;-)
I looked at plugin_mpd.c and noticed two things:
– since version 0.8 it does not require libmpd
– it already has #include “libmpd/libmpdclient.h”
Should I create ./libmpd subfolder in the build directory and copy libmpdclient files there?
Thanks
Roman
12 Roman wrote:
OK, I guess I managed to remove dependency and I also used absolute path for libmpdclient in plugin and that did it!
Thanks for your help.
Now I need to play with config file a bit, not all widgets from your sample config file are working yet.
Roman
13 michu wrote:
Glad it works now. I just remembered, that I wrote a patch for the lcd4linux openwrt package, see https://dev.openwrt.org/browser/packages/utils/lcd4linux/patches/150-addlibmpdclient.patch for the libmpdclient version I used then…
14 Roman wrote:
OK, I got patch file from the link above, applied it and created both libmpdclient files and recompiled the lcd4linux with mpd plugin.
I have some widgets working and some not, which is weird.
here is the summary:
mpd::artist OK
mpd::title OK
mpd::album OK
mpd::file OK
mpd::totalTimeSec NFG
mpd::elapsedTimeSec NFG
mpd::bitRate current song ID-1
mpd::getSamplerateHz current song ID-1
mpd::getAudioChannels current song ID
mpd::getRepeatInt OK
mpd::getRandomInt OK
mpd::getStateInt NFG
mpd::getVolume OK
mpd::getSongsInDb OK
mpd::getMpdUptime OK
mpd::getMpdPlayTime OK
mpd::getMpdDbPlayTime OK
mpd::getMpdPlaylistLength NFG
mpd::getMpdPlaylistGetCurrentId NFG
mpd::formatTimeMMSS OK
pd::formatTimeDDHHMM OK
15 michu wrote:
I created the plugin for mpd v0.15 or v0.14 — and I guess you’re using a v0.16+ release. I guess you have to update the plugin (and you a newer libmpdclient version).
16 Roman wrote:
The mpd is version 0.15.12
I will try to update the plugin, but since I never did any programming in C, I hope you would not mind if I ask question here and there.
Thanks
Roman
17 Angelo wrote:
Hi Roman,
I did using the libmpd 0.17, mpd 0.14, hacking the libmpdclient.h and plugin_mpd.c.. Remember that the struct into the hrader file is not corresponding to the reality :-)
cheers
Angelo
18 liu wrote:
how to resolve this problem:
lcd4linux.c: initializing driver LCD2USB
drv_init(LCD2USB) failed: no such driver