[Lcdproc] Help with configuration needed for menu using PicoLCD driver

Martin T Jones martin at brasskipper.org.uk
Mon Feb 13 15:16:46 UTC 2012


On 12/02/12 21:59, Kaya Saman wrote:
> Thanks for the response!
>
>
>> THe above won't work as MenuKey and EnterKey cannot be assigned the 
>> same value.
>>
>> Instead you would use something like this:
>>
>> MenuKey=F1
>> EnterKey=Enter
>> UpKey=Up
>> DownKey=Down
>> LeftKey=Left
>> RightKey=Right
>>
>> As for the heartbeat issue I have no idea. Someone else on the list?
>>
>> Regards,
>> Markus
> I tried that, it didn't work either :-(
>
>
> The other thing I was thinking of was to use the F1-5 keys to launch 
> different heartbeat pages.
> Is that possible?
>
>
>
> The heartbeat issue I figured out to be the fact that I needed to 
> restart both:
>
> lcdd and lcdproc sequentially!
>
>
> Regards,
>
>
> Kaya

Try changing the debug reporting level from RPT_DEBUG to RPT_NOTICE in 
function picoLCD_get_key in file server/drivers/picolcd.c and rebuilding 
with debug enabled.

./configure --enable-drivers=picolcd  --enable-debug  --enable-lcdproc-menus
make

Then run the server with debug reporting and see what is reported when 
you press a key.

./server/LCDd -fr3 -c ./LCDd.conf

The key definitions from my configuration file are as below, much as 
Markus suggested.

# The "...Key=" lines define what the server does with keypresses that

# don't go to any client. The ToggleRotateKey stops rotation of screens, while

# the PrevScreenKey and NextScreenKey go back / forward one screen (even if

# rotation is disabled.

# Assign the key string returned by the driver to the ...Key setting. These

# are the defaults:

ToggleRotateKey=Enter

PrevScreenKey=Left

NextScreenKey=Right

ScrollUpKey=Up

ScrollDownKey=Down


## The menu section. The menu is an internal LCDproc client. ##

[menu]

# You can configure what keys the menu should use. Note that the MenuKey

# will be reserved exclusively, the others work in shared mode.


# Up to six keys are supported. The MenuKey (to enter and exit the menu), the

# EnterKey (to select values) and at least one movement keys are required.

# These are the default key assignments:

#MenuKey=Escape

MenuKey=F5

EnterKey=Enter

UpKey=Up

DownKey=Down

LeftKey=Left

RightKey=Right

Regards,

Martin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.omnipotent.net/pipermail/lcdproc/attachments/20120213/af463732/attachment.html>


More information about the LCDproc mailing list