disable built-in server screen

Here you can ask all driver / installation questions

Moderator: marcus

disable built-in server screen

Postby El_Matthews » Tue 15. May 2012, 19:14

Hello,

I would like to disable the built-in server screen showing the number of clients etc. I added Hello=" Welcome to" to the LCDd.conf file but this didn't seem to have any effect.

I want to disable the screen because as soon as my media server shuts down and the service and clients are disconnect, the server screen re-appears. This means that when the pc is shutdown I have that ugly message instead of a clock or even a black screen.

Mediaserver is configured as follow:
1. irserver is started as a deamon with following command:
/usr/local/irtrans/irserver -daemon -pidfile $PIDFILE -xbmc -start_clock -loglevel 2 -logfile /var/log/irserver.log /dev/ttyUSB0"


2. LCDd is started as a deamon with following command:
/usr/local/sbin/-d irtrans -r 1


copy of my LCDd.conf file:
# LCDd.conf
#
# This file contains the configuration for the LCDd server.
#
# The format is ini-file-like. It is divided into sections that start at
# markers that look like [section]. Comments are all line-based comments,
# and are lines that start with '#' or ';'.
#
# The server has a 'central' section named [server]. Further each driver
# has a section which defines how the driver acts.
#
# The drivers are activated by specifiying them in a driver= line in the
# server section, like:
#
# Driver=curses
#
# This tells LCDd to use the curses driver. The first driver that is
# loaded and is capable of output becomes 'the' output driver.
# All extra drivers can only serve as input.
# The default driver to use is curses.
#
# The drivers can read their own options from the config file, but most of
# them don't do this yet. They expect 'command-line'-format parameters that
# were previously placed on the command line. These parameters can be
# given to the driver in the following way:
#
# Arguments="place arguments here"
#
# The arguments between the quotes are passed to the driver.
# As said before these are the same arguments that the driver would have
# been passed under the old command line format of
#
# -d <driver> "<driverargs>"
#
# Note that the -d option still works, but not allows driverargs anymore.
# If -d is specified on the command line, the Driver= options in the
# config file are ignored.


[server]
# Server section with all kinds of settings for the LCDd server

Driver=irtrans
#
# Tells the server to load the given drivers. Multiple lines can be given.
# NOTE: You may activate several input (input only) drivers but only ONE output
# driver, which should be the first.

Bind=127.0.0.1
# Tells the driver to bind to the given interface

Port=13666
# Listen on this specified port; defaults to 13666.

#ReportLevel=5
# Sets the reporting level; defaults to 2 (warnings and errors only).

ReportToSyslog=no
# Should we report to syslog instead of stderr ? Default: no

WaitTime=5
# Sets the default time in seconds to displays a screen.

User=nobody
# User to run as. LCDd will drop its root priviledges,
# if any, and run as this user instead.

ServerScreen=no
# Enables the built-in server screen [Default: no]
# yes : always,
# no : when there are no other screens active.

Foreground=no
# The server will stay in the foreground if set to true.
# Otherwise the server will fork to background and report
# to syslog

Hello=" Hello"
Hello=" LCDproc!"
GoodBye=" GoodBye"
GoodBye=" LCDproc!"

# TIP: The following options can also be modified from the
# server menu (which requires a driver that supports input)

Heartbeat=open
# The server has serveral heartbeat modes
# on Stays on all the time
# off Stays off all the time
# slash Rotating slash all the time
# open Can be controlled by all clients

InitialHeartbeat=off
# This sets the initial heartbeat state if the heartbeat mode is "open"
# Affects the server screen only ;)
# on Heartbeat activated
# off Heartbeat disabled
# slash Heartbeat replaced with a rotating slash

Backlight=open
# The server has serveral backlight modes
# on Stays on all the time
# off Stays off all the time
# open Can be controlled by all clients

InitialBacklight=off
# This sets the initial backlight state if the backlight mode is "open"
# Affects the server screen only ;)

BacklightBrightness=255
# This sets the backlight brightness in state "on"
# NOTE: Not all drivers/devices support setting the brightness this
# way. Some don't support switching the backlight on/off at all,
# some can switch the backlight on or off only. If the latter is
# the case BacklightBrightness must be > 0.


BacklightOffBrightness=0
# This sets the backlight brightness in state "off"
# NOTE: Not all drivers/devices support setting the brightness this
# way. Some don't support switching the backlight on/off at all,
# some can switch the backlight on or off only. If the latter is
# the case BacklightBrightness must be = 0.

[input]
# Input section with settings that are related to input handling
# NOTE: Not all drivers have input functionality

# keypad settings
# Keyname Function
# Normal context Menu context
# ------- -------------- ------------
#
# PauseKey Pause/Continue Enter/select
# BackKey Back(Go to previous screen) Up/Left
# ForwardKey Forward(Go to next screen) Down/Right
# MainMenuKey Open main menu Exit/Cancel

#FreePauseKey=yes
# If set to yes, this prevents LCDd from handling the PauseKey itself

#FreeBackKey=yes
# If set to yes, this prevents LCDd from handling the BackKey itself

#FreeForwardKey=yes
# If set to yes, this prevents LCDd from handling the ForwardKey itself

#FreeMainMenuKey=no
# If set to yes, this prevents LCDd from handling the MainMenuKey itself
# TIP: Even if you "free" the above keys, you can still use the menu
# provided you set FreeMainMenuKey=no

# Driver sections are below this line, in alphabetical order

[irtrans]
#IrTrans driver

Arguments="-hostname localhost -lcdw 16 -lcdh 2 -backlight -timeout 1"
#hostname: IP / Hostname of irserver
#lcdw: Breite des LCD Displays (default=16)
#lcdh: Höhe des LCD Displays (default=4)


Any help or tips would be appreciated.
El_Matthews
 
Posts: 6
Joined: Sat 24. Jan 2009, 13:22

Re: disable built-in server screen

Postby El_Matthews » Sun 20. May 2012, 10:20

issue solved with some workarounds:

Step 1. First I installed the LDCproc .deb from the IRTRANS site instead of the standard Ubuntu one. Compiling from source didn't work and gave some errors. Not sure if this step is still necessary.

Step 2. I noticed that when I manually stopped the deamon I got the message "Thanks for using Lcdproc with Linux" plus a blank screen.
Code: Select all
sudo /etc/init.d/LCDd stop

so there was something wrong with the shutdown process.

Step3. Ugly workaround: I created a script in /etc/rc0.d/
Code: Select all
#!/bin/sh -e
#
# lcdd          Startup script for LCDd
#
#               Modified for autoconf
#               by Rene Wagner <reenoo@gmx.de>
#               Modified for lcd-server
#               by Joris Robijn <joris@robijn.net>
#               Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#               Modified for Debian GNU/Linux
#               by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version:      $Id: init-LCDd.debian.in,v 1.1.2.3 2002/02/27 14:23:08 reenoo Exp $

DESC="LCDd 0.4.3"

prefix=/usr/local
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
sbindir=${exec_prefix}/sbin
etc=${prefix}/etc

LCDd=${sbindir}/LCDd
configfile=/etc/LCDd.conf

test -x ${LCDd} || exit 0

/etc/init.d/LCDd stop
sleep 10

exit 0

this scripts is executed at shutdown and stops the LCDd daemon. I had to add the sleep option otherwise the screen got stuck at "Thank you for using ..." as the shutdown of the pc is quite fast.

I am sure I am still missing something but at least it works now.

If anybody has a cleaner way, don't hesitate to let me know.
El_Matthews
 
Posts: 6
Joined: Sat 24. Jan 2009, 13:22


Return to Drivers / Installation

Who is online

Users browsing this forum: No registered users and 6 guests

cron