secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 12:40 pm

anyone have any clues on getting LCDproc working in raspbmc? (its a Pi version of XBMC)

if so, let me know of any information needed. have modified the haslcd line to true, edited LCD.xml and created advancedsettings.xml but not getting any data putting out on the screen other than a static message of "thanks for using lcdproc and linux"

User avatar
Paul Webster
Posts: 808
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
Contact: Twitter

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 2:14 pm

See other thread - although it was for OpenELEC, the author might be able to give general help.
http://www.raspberrypi.org/phpBB3/viewt ... oc#p161762

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 2:52 pm

i pm'd the author asking if he can take a look here.

i have a feeling its something to do with the raspbmc settings. when you go into settings the ONLY thing on the gui about lcd is under video output which is enable lcd/vdf but no options for changing drivers or anything. its literally an enable checkbox.

but im hoping someone will see something or come up with some ideas that might assist.

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 7:26 pm

Hi,

In OpenELEC there are additional settings in 'Programs -> OpenELEC settings' when you can enable LCD and choose driver. Unforunatly I am not familiar with Raspbmc, but in OpenELEC this script generates file /storage/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml where is line:

Code: Select all

<settings>
    <setting id="LCD_DRIVER" value="hd44780" />
and this file is automaticly copied to /var/config/settings.conf

In fact, the only thing I did with xbmc was patch this add-on to add hd44780 driver.
Maybe you have some additional settings in Rasbmc too?

This is what I would additionally check:

It looks, that you have lcdproc (LCDd) working. IMHO this is hardest part.
But try to telnet to lcdproc on port 13666 and check is it working correctly and accept for connections:
http://lcdproc.omnipotent.net/download/netstuff.txt

Check in 'guisettings.xml' for line <haslcd>false</haslcd> and replace it for <haslcd>true</haslcd> - I read somewhere, that some xbmc has this problem.

Check for userdata/LCD.xml - does it exist? If not, create one:
http://wiki.xbmc.org/index.php?title=Userdata/LCD.xml

If I find some new ideas, I will add it here,

cheers!

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 7:58 pm

Also, you can add this (with yours LCD size):

Code: Select all

<lcd>
<columns>20</columns>
<scrolldelay>2</scrolldelay>
</lcd>
to userdata/advancedsettings.xml

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 8:52 pm

i've basically done all the above exept for the openelec parts.

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 9:03 pm

So, you can talk to lcdproc?

If so, it looks, that only xbmc has problem and is not sending data to lcdproc.
Do you have in XBMC Settings --> System - LCD, allow option?

It looks, that this guy: http://forum.stmlabs.com/showthread.php?tid=1864 already did this on Rasbmc. Maybe you can ask him. He uses i2c LCD, but it doesn't matter, becouse XBMC should talk to lcdprocd and does not care about standard of LCD connection.

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 9:19 pm

the only option in the raspbmc settings is a checkbox "enable lcd/vfd" its checked but no option to alter anything. everything else seems to get done via command code which i've tried getting help from xmbc and raspbmc forums with little result :(

heres my post on xbmc forums, has more information

anyone have any clues on getting LCDproc working in raspbmc? (its a Raspberry Pi version of XBMC)

if so, let me know of any information needed. have modified the haslcd line to true, edited LCD.xml and created advancedsettings.xml but not getting any data putting out on the screen other than a static message of "thanks for using lcdproc and linux"

i've got the hd44780 display hooked up to the Pi via the GPIO pins on board and have it working with a modified lcdproc to the extent i get a static message

"thanks for using lcdproc and linux"

heres the relevant files

"lcd.xml" (named in lower case) in the /home/pi/.xbmc/userdata directory

Code: Select all

<lcd>
   <!-- set this to video,music to disable the LCD on playback of music and video-->
   <disableonplay>video,music</disableonplay>
   <navigation>
      <line>$INFO[System.CurrentWindow]</line>
      <line>$INFO[System.CurrentControl]</line>
   </navigation>
   <music>
      <line>$INFO[Player.Time]/$INFO[Player.Duration]</line>
      <line>$INFO[MusicPlayer.Title]</line>
   </music>
   <video>
      <line>$INFO[Player.Time]/$INFO[Player.Duration]</line>
      <line>$INFO[VideoPlayer.Title]</line>
   </video>
   <general>
      <line>XBMC running...</line>
      <line>$INFO[System.Time]</line>
   </general>
   <xbelaunch>
      <line>Playing</line>
      <line>$INFO[System.LaunchXBE]</line>
   </xbelaunch>
</lcd>
"advancedsettings.xml" (created in "nano" and title spelt as is displayed here also in the /home/pi/.xbmc/userdata directory)

Code: Select all

<advancedsettings>
   [align=left][font=monospace]<lcd>
     <rows>2</rows>
     <columbs>16</columbs>
     <address1>0</address1><line>&INFO[VideoPlayer.Title] &INFO[MusicPlayer.Title]</line>
     <address2>16</address2><line>&INFO[Player.Time]/&INFO[Player.Duration]</line>
     <heartbeat>false</heartbeat>
     <dimonscreensaver>false</dimonscreensaver>
     <scrolldelay>4</scrolldelay>
     <hostname>locahost</hostname>
   </lcd>[/font][/align]
</advancedsettings>
"haslcd" set to true

the display is working but only with that static message. nothing else is displaying from the files above.

so i could use some help on this please. im new to linux and even newer to not using a gui so please be patient. i have looked in the raspbmc settings and the only options i can find for lcd screens is a checkbox to enable/disable lcd/vfd. its checked to enable it.

i had seen that guys post but havent read anything helpful. i sent him an email asking if he can take a look. but having eyes on this in 3 places might be more useful. so any other suggestions/thoughts would be awesome

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 9:36 pm

It looks that your lcdproc works fine, but is it?
You said that you can see Welcome message forever. It should disapear after x second defined in LCDd.conf. In your case it is probably thanks for using lcdproc and linux

Code: Select all

# Hello message: each entry represents a display line; default: builtin
Hello="     Welcome to     "
Hello="      OpenELEC      "

# Sets the default time in seconds to displays a screen.
WaitTime=20
Can you really talk to lcdproc? Here is output of my talk with lcdproc resulting in This_Is_Test message displayed on LCD. I added >> signs for lcdproc responses:

Code: Select all

root ~ # telnet 127.0.0.1 13666
hello
>>connect LCDproc 0.5.5 protocol 0.3 lcd wid 20 hgt 2 cellwid 5 cellhgt 8
client_set name my_name
>>success
screen_add my_screen
>>success
>>listen my_screen
widget_add my_screen my_name string
>>success
widget_set my_screen my_name 1 1 This_Is_Test
>>success
screen_del my_screen
>>success
bye
Connection closed by foreign host
root ~ #
Can you replicate it?

cheers,
Last edited by podly on Thu Aug 30, 2012 9:48 pm, edited 1 time in total.

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 9:42 pm

no because telnets not installed as best i can tell.

however,

Code: Select all

    /usr/local/bin/LCDd -f -c /usr/local/etc/LCDd.conf
does get an output from it, cpu, memory information and the like.

so its communicating with the screen. im a little reluctant to install to many packages over this as it took 4 days to get lcdproc working but i'll try

Code: Select all

root@raspbmc:/home/pi# telnet 127.0.0.1 13666
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
root@raspbmc:/home/pi#
aditional:

i checked my LCDd.conf and its actually not even the goodbye or hello. its different. so something somewhere is telling it to display the "thanks for using lcdproc and linux" message but dont know where!

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 9:57 pm

Ok,

lcdproc (LCDd) is a daemon for communication between linux and LCD.
Normally it listens on 13666 port for commands and sends it to LCD.
XBMC sends commands to it using 13666 port. If you can't connect to it, XBMC can't too. Try to add:

Code: Select all

# Hello message: each entry represents a display line; default: builtin
Hello="Test... 123"
Hello="Test... 234"
to LCDd.conf and see what happend.

But it looks thats something wrong with your lcdproc or LCD... Is it 100% hd44780 or just compatibile?

Put you LCDd.conf to http://pastebin.com/ and paste link here.

cheers,

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:04 pm

should be 100% but might be compatible. it was cheap off ebay uk seller.

okay added that line but it didnt change anything. but im pretty sure that if it wasnt communicating with the screen then it wouldnt display the cpu and memory data on command line entry.

imo and thats a VERY limited oppinion due to lack of know how, it feels as if something is blocking new data from entering the screen or LCDd isnt starting up at boot. which i've tried /etc/init.d/LCDd start but it comes back no such directory. which is typical for me. heres a link to the installation of lcdproc and stuff incase its useful. it starts from page 2.

http://www.raspberrypi.org/phpBB3/viewt ... 0&start=25


User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:14 pm

So it looks, that as you said, something is blocking your xbmc - > lcdproc communication. Could you also pastebin your 'ps auxwww' command?

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:17 pm

going to need a bit more information on the command lol.

where shall i run it from? /home/pi # or from another directory?

from the /home/pi directory

http://pastebin.com/txvxT2Rv

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:22 pm

Directory doesn't matter. I can't see LCDd daemon running (?) Did you kill it?

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:24 pm

nope. so my other theory was right. LCDd isnt starting up at boot.

as per this message
bob_binz wrote:According to your make install output, LCDd is installed here:

Code: Select all

/usr/bin/install -c LCDd '/usr/local/sbin'
As I said, I'm not familiar with this software so can't offer much more help.
im not to sure where to run the start command from as i have tried these directories

home/pi
home/pi/lcdproc
usr/local/bin

all with

Code: Select all

root@raspbmc:/home/pi# /etc/init.d/LCDd start
bash: /etc/init.d/LCDd: No such file or directory

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:30 pm

Don't worry about autostart. Run it manually now:

Code: Select all

/usr/local/bin/LCDd -c /usr/local/etc/LCDd.conf -d hd44780 -s true
it shoud go into background mode. Check for it doin 'ps auxwww' command again. If you see LCDd process it is OK. If you can see lcdproc process, kill it.

[lcdproc application is divided into two parts: first one is server: LCDd - it communicates with your LCD display. Second one is lcdproc - client - for getting infos about cpu, memory etc. and sends it to LCDd. In XBMC enviroment you don't need sencond one (client), becouse XBMC acts as its.]

Try to do telnet to it as I wrote earlier.
Last edited by podly on Thu Aug 30, 2012 10:38 pm, edited 1 time in total.


secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:39 pm

Code: Select all

connect LCDproc 0.5dev protocol 0.3 lcd wid 16 hgt 2 cellwid 5 cellhgt 8
client_set name my_name
success
screen_add my_screen
success
listen my_screen
widgetignore my_screen
listen my_screen
ignore my_screen
listen my_screen
widget_addignore my_screen
 mlisten my_screen                                                              ignore my_screen
listen my_screen
ignore my_screen
listen my_screen
ignore my_screen
listen my_screen
ignore my_screen
listen my_screen
ignore my_screen
by the way, the screens setup only for read only. it cant send data back to the pi and is in 4bit mode

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:49 pm

It looks much better ;] Now you have running LCDd. It is older version then mine, but protocol is this same. You mess a little with telnet commands. Try again, I edited my post a little some time ago. You should put commands:

Code: Select all

hello

client_set name my_name

screen_add my_screen

widget_add my_screen my_name string

widget_set my_screen my_name 1 1 This_Is_Test

screen_del my_screen

bye
You should see This_Is_Test. Do you still see CPU usage etc after LCDd start you mentioned before?
Can you restart XBMC now without restaring all linux?
Last edited by podly on Thu Aug 30, 2012 10:53 pm, edited 1 time in total.

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 10:52 pm

okay, the screen is switching between a heartbeat symbol and the server information

telnet is repeating

listen my_screen
ignore my_screen

over and over and i cant proceed to next step

also i dont think so. this is (for what i gather) a modified kernal that has the basic linux parts to run XBMC. you either have the raspbmc interface or the command line terminal. thats it.

additional:

seeing as i do everything by ssh, i went to the lounge where the Pi actually is and started to play a video file to see if it output the correct data. no playback information, just the server/cpu stuff

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 11:05 pm

Geez...

So, what we have now is:

1. LCDd is working
2. LCDd displays some informations (is it possible for you to take a short movie with cell phone and put it on youtube?)
3. I can't see in 'ps auxwww' you pasted anything what is talking to LCDd
4. You wrote that telnet is repeating:

listen my_screen
ignore my_screen

and this is what XBMC see. Thats why you don't have XBMC output.

Something sends data to LCDd with CPU etc infos and blocks XBMC. Now we need to find what.

secretreeve
Posts: 330
Joined: Mon Feb 20, 2012 8:39 am

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 11:10 pm

video http://www.youtube.com/watch?v=KrqSMe37 ... e=youtu.be

it was another command that i posted earlier that displayed the cpu and mem information.

this is the display after starting LCDd without further command. so it was LCDd sending the cpu mem information.

any ideas on the ignore stuff?

User avatar
podly
Posts: 38
Joined: Fri Jun 22, 2012 8:57 pm

Re: LCDproc + Raspbmc (xbmc)

Thu Aug 30, 2012 11:25 pm

geez.... my wife will kill me ;]

It tooks a really long time to analize all LCDd.conf.
I see problem here: Device=/dev/ttyS0
it should be Device=/dev/lcd0

maybe try my cfg:

http://pastebin.com/bgsxgfBm

.. but I still don't understand from where the hell your LCD tooks info abut CPU usage ;]

maybe you have more then one LCDd.conf? Try to run command 'find / -name LCDd.conf'

[edited]

but you started with command '/usr/local/bin/LCDd -c /usr/local/etc/LCDd.conf -d hd44780 -s true'?
so it doesn't matter... Just try to repleace LCDd.conf with mine ;]

You will probably force me to run Raspbmc tomorrow on my Pi ;]
Last edited by podly on Thu Aug 30, 2012 11:52 pm, edited 4 times in total.

Return to “Media centres”