[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] Re: RaQ3 UPS solutions



> [mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Chris
> Audley
> Subject: RE: [cobalt-developers] Re: RaQ3 UPS solutions
>
>
> On Tue, 08 Aug, Lyle Scheer  wrote:
> > /sbin/lcd-write "<string1>" "<string2>"
> >
> > This will display the two strings on the display.
>
> [snip]
>
> > Let me know if you have any other questions.
>
> What does the -s option do - we found we needed that on the
> lcd commands when
> adding our own options to the LCD menus, but we've no idea
> what it does!

Chris,

	The -s overrides the LCD locking that is done.  Basically, when the lcd is
displaying menus, it creates a lock file that other calls to lcd-write and
lcd-swrite should honor and return failure codes when a menu is being
displayed.  When writing scripts in the /etc/lcd.d structure to create new
panel menus, you should use the -s option.  All other times you should not
use the -s or you may end up expecting menu input but displaying something
totally different.

- Lyle