[Lcdproc] CFonts635 Buttons not working

Lars Stavholm stava@telcotec.se
Wed Sep 5 13:44:02 2007


Eyal Cohen wrote:
> Hello.
> I have a Cfontz USB LCD 635 working ok with lcd-proc + CFontzPacket driver.
> It displays what I tell it to and menus work fine.
> But when I want to receive notification of button presses nothing happens:
> 
> [eyal@mainmachine lcdproc-0.5.2]$ telnet 127.0.0.1 13666
> Trying 127.0.0.1...
> Connected to mainmachine (127.0.0.1).
> Escape character is '^]'.
> hello
> connect LCDproc 0.5.2 protocol 0.3 lcd wid 20 hgt 4 cellwid 6 cellhgt 8
> client_add_key -exclusively UP 
> success
> <key pressed>
> 
> same goes for non-exclusive.
> Like I said, menus work fine, so the buttons themselves are not to blame.
> What could be causing this?

Have no idea, but we've successfully used LCdd and
lcdexec client with the following configuration:

/etc/LCDd.conf:
[server]
Driver=CFontzPacket
Bind=127.0.0.1
Port=13666
ReportLevel=2
ReportToSyslog=yes
WaitTime=10
User=nobody
ServerScreen=no
Foreground=no
DriverPath=/usr/lib/lcdproc/

ToggleRotateKey=Enter
PrevScreenKey=Left
NextScreenKey=Right
ScrollUpKey=Up
ScrollDownKey=Down

[menu]
MenuKey=Escape
EnterKey=Enter
UpKey=Up
DownKey=Down
LeftKey=Left
RightKey=Right

[CFontzPacket]
Model=635
Device=/dev/ttyUSB0
Size=20x4
Contrast=450
Brightness=900
OffBrightness=100
Speed=115200
Reboot=yes

[curses]
Foreground=blue
Background=cyan
Backlight=red
Size=20x4
TopLeftX=7
TopLeftY=7
UseACS=yes

/etc/lcdproc/lcdexec.conf:
[lcdexec]
Address=localhost
Port=13666
ReportLevel=2
ReportToSyslog=true
Foreground=false
DisplayName="System Menu"

[MainMenu]
Entry=Backupdisk
Entry=Restart
Entry=Shutdown

[Backupdisk]
Entry=Activate
Entry=--------
#Entry=Status
Entry=Release

[Activate]
Entry=activate-disk-1
Entry=activate-disk-2
Entry=activate-disk-3

[activate-disk-1]
DisplayName="Activate disk 1"
Exec="bdisk -l -a 1"

[activate-disk-2]
DisplayName="Activate disk 2"
Exec="bdisk -l -a 2"

[activate-disk-3]
DisplayName="Activate disk 3"
Exec="bdisk -l -a 3"

[Status]
DisplayName="Show disk status"
Exec="bdisk -s"

[--------]
Exec="echo"

[Release]
Entry=release-disk-1
Entry=release-disk-2
Entry=release-disk-3

[release-disk-1]
DisplayName="Release disk 1"
Exec="bdisk -l -r 1"

[release-disk-2]
DisplayName="Release disk 2"
Exec="bdisk -l -r 2"

[release-disk-3]
DisplayName="Release disk 3"
Exec="bdisk -l -r 3"

[Restart]
DisplayName="Restart"
Entry=reboot-20
Entry=reboot-10
Entry=reboot-now

[reboot-20]
DisplayName="In 20 minutes"
Exec="shutdown -r +20"

[reboot-10]
DisplayName="In 10 minutes"
Exec="shutdown -r +10"

[reboot-now]
DisplayName="Now"
Exec="shutdown -r now"

[Shutdown]
DisplayName="Shutdown"
Entry=shutdown-20
Entry=shutdown-10
Entry=shutdown-now

[shutdown-20]
DisplayName="In 20 minutes"
Exec="shutdown -h -P +20"

[shutdown-10]
DisplayName="In 10 minutes"
Exec="shutdown -h -P +10"

[shutdown-now]
DisplayName="Now"
Exec="shutdown -h -P now"

Hope this helps

Cheers
/Lars