[Lcdproc] Init-lcdproc flaw under FC/Redhat
Technical Support
support@ocg.ca
Wed Sep 13 15:16:02 2006
I know a RTFM message is coming my way, so I have read the docs! Just to
add a little more info...
I copied the sample lcdproc.conf file from clients/lcdproc/lcdproc.conf to
/etc - clearly that was a mistake. If I understand correctly, lcdproc uses
TWO programs called lcdproc.conf. One in the /usr/local/etc which has setup
info for each screen, and one in /etc which defines which screens to
display. (This might be worth noting in the docs somewhere - or I just
couldn't find this info)
I did a make clean and reinstalled...now the program starts without error!
(Well, actually the default init-lcdproc script tries to show a screen "X"
which does not exist - but I just deleted that and it starts).
Thanks,
MD
-----Original Message-----
From: lcdproc-admin@lists.omnipotent.net
[mailto:lcdproc-admin@lists.omnipotent.net] On Behalf Of Technical Support
Sent: Wednesday, September 13, 2006 10:46 AM
To: lcdproc@lists.omnipotent.net
Subject: [Lcdproc] Init-lcdproc flaw under FC/Redhat
Ok something is fundamentally wrong here....(see the output below)!
I have the init-lcdproc.rpm script symlinked in to start on system start.
That works ok, but this init-lcdproc script is trying to *include* the
lcdproc.conf file as follows:
if [ -f /etc/lcdproc.conf ]; then
. /etc/lcdproc.conf
else
SCREENS="C X"
fi
The lcdproc.conf file has section headers like [CPU] which bash does not
understand thus the script crashes. Does lcdproc read the lcdproc.conf on
its own (i.e. the is init-lcdproc is incorrect)? What should I do?
Thanks,
MD
===============================
[root@vmhost1 lcdproc]# service lcdproc restart
/etc/lcdproc.conf: line 4: [lcdproc]: command not found
/etc/lcdproc.conf: line 29: [CPU]: command not found
/etc/lcdproc.conf: line 37: [Iface]: command not found
/etc/lcdproc.conf: line 63: [Memory]: command not found
/etc/lcdproc.conf: line 68: [Load]: command not found
/etc/lcdproc.conf: line 77: [TimeDate]: command not found
/etc/lcdproc.conf: line 82: [About]: command not found
/etc/lcdproc.conf: line 87: [SMP-CPU]: command not found
/etc/lcdproc.conf: line 92: [OldTime]: command not found
/etc/lcdproc.conf: line 97: [BigClock]: command not found
/etc/lcdproc.conf: line 102: [Uptime]: command not found
/etc/lcdproc.conf: line 107: [Battery]: command not found
/etc/lcdproc.conf: line 112: [CPUGraph]: command not found
/etc/lcdproc.conf: line 117: [ProcSize]: command not found
/etc/lcdproc.conf: line 122: [Disk]: command not found
/etc/lcdproc.conf: line 127: [MiniClock]: command not found
Shutting down lcdproc: [FAILED]
Starting up lcdproc: Usage: lcdproc [<options>] [<modes> ...]
where <options> are
-s <host> connect to LCDd daemon on <host>
-p <port> connect to LCDd daemon using <port>
-f run in foreground
-e <delay> slow down initial announcement of modes (in
1/100s)
-c <config> use a configuration file other than
/usr/local/etc/lcdproc.conf
-h show this help screen
-v display program version
and <modes> are
C CPU detailed CPU usage
P SMP-CPU CPU usage overview (one line per CPU)
G CPUGraph CPU usage histogram
L Load load histogram
M Memory memory & swap usage
S ProcSize biggest processes size
D Disk disk usage
I Iface network interface usage
B Battery battery status
T TimeDate time & date information
O OldTime old time screen
U Uptime uptime screen
K BigClock big clock
N MiniClock minimal clock
A About credits page
Example:
lcdproc -s my.lcdproc.server.com -p 13666 C M X
[FAILED]
-----Original Message-----
From: Peter Marschall [mailto:peter@adpm.de]
Sent: Tuesday, September 12, 2006 3:34 PM
To: Technical Support; lcdproc@lists.omnipotent.net
Subject: Re: [Lcdproc] Matrix Orbital LCD backlight starts blinking
Hi,
PLEASE KEEP YOUR REPLIES TO THE LIST !!!
On Tuesday, 12. September 2006 19:02, you wrote:
> I have downloaded and installed the latest lcdproc from CVS, but I can't
> figure out how to configure the screen backlight parameters you mentioned
> below. I checked the Changelog and README and INSTALL files - but I can't
> find anything. Could you point me in the right direction?
> -----Original Message-----
> From: Peter Marschall [mailto:peter@adpm.de]
> Sent: Monday, September 11, 2006 3:31 PM
> To: Technical Support
> Subject: Re: [Lcdproc] Matrix Orbital LCD backlight starts blinking
>
> Hi "Technical Support"
>
> Please keep your replies to the list !
>
> On Monday, 11. September 2006 18:29, Technical Support wrote:
> > I removed the "L" (load) screen from lcdproc but the screen still
blinks.
> > I wonder if I'm misunderstanding what you said?
>
> This might be because the blinking status is stored on the server side.
>
> Try to restart the server and and see if it re-occurs (as long you are not
> using the L screen in lcdproc)
Did you follow this advice ?
What were the results ?
> I committed a change to CVS that will make the thresholds for blinking
> and turning off the back light a configuration parameter in the lcdproc
> client's configuration file lcdproc.conf.
> (Up to now these thresholds were configuration time parameters)
>
> This change should occur in tomorrow's nightly tar ball at
> http://lcdproc.sourceforge.net/nightly/lcdproc-CVS-current.tar.gz
Have a look at clients/lcdproc/lcdproc.conf in the LCDproc source.
(where this file exactly gets installed depends on your installation)
It contains the following lines:
----------->8 snip 8< --------------
[Load]
# Show screen
Active=True
# Min Load Avg at which the backlight will be turned off [default: 0.05]
LowLoad=0.05
# Max Load Avg at which the backlight will start blinking [default: 1.3]
HighLoad=1.3
----------->8 snip 8< --------------
Adapt these values to your needs in the installed version the file
and restart lcdproc.
Should you happen to have an old version of lcdproc without these
lines in clients/lcdproc/lcdproc.conf, simply call
./configure --help
and look for options containing the word load.
In this case reconfigure and reinstall lcdproc with the settings changed.
> PS: Would you mind giving a name in the posts as the term "Technical
> Support"
> is a bit misleading. You do not want to do technical support for
> the lcdproc mailing list, do you ?
Did you even read my last mail ?
Peter
--
Peter Marschall
peter@adpm.de
_______________________________________________
LCDproc mailing list
LCDproc@lists.omnipotent.net
http://lists.omnipotent.net/mailman/listinfo/lcdproc