All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Jacob Stiffler <j-stiffler@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [PATCH] matrix-gui: Disable terminal blanking while running matrix.
Date: Mon, 6 Apr 2015 12:16:28 -0400	[thread overview]
Message-ID: <20150406161628.GB21023@edge> (raw)
In-Reply-To: <1428325163-27099-1-git-send-email-j-stiffler@ti.com>

On Mon, Apr 06, 2015 at 08:59:23AM -0400, Jacob Stiffler wrote:
> * When running qt over eglfs, matrix may blank out after 10 minutes of
>   inactivity.
> * When this occurs, the matrix is not recoverable and muyst be manuallyi
>   restarted.
> * This occurs because virtual terminal in which matrix is running will blank
>   due to kernel configuration.
> * Writing certain special characters into the virtual terminal device can
>   disable the blanking.
> * The utils-linux package contains the "setterm" utility which may obtain the
>   same results with the command "setterm -blank 0 -powerdown 0", however,
>   utils-linux is not present on the filesystem.

I'm fine with this patch in general, but as of util-linux - I've heard other 
requests for some util-linux apps before, maybe we should consider pulling it 
in? Unfortunately, besides the 3 specific apps separated into own packages, 
the rest of them are just dumped into util-linux*.ipk main package, so it's 
rather all or nothing...

-- 
Denys


> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
>  .../recipes-core/matrix/matrix-gui/init.eglfs      |    4 ++++
>  .../recipes-core/matrix/matrix-gui_2.0.bb          |    2 +-
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui/init.eglfs b/meta-arago-extras/recipes-core/matrix/matrix-gui/init.eglfs
> index 10748c4..213f859 100644
> --- a/meta-arago-extras/recipes-core/matrix/matrix-gui/init.eglfs
> +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui/init.eglfs
> @@ -35,6 +35,7 @@ case "$1" in
>      fi
>  
>      echo 0 > /sys/class/graphics/fbcon/cursor_blink
> +    echo -ne "\033[9;0]\033[14;0]" > /dev/tty4
>  
>      echo -n "Starting Matrix GUI application"
>      start-stop-daemon --start --quiet --background -m --pidfile $PIDFILE --exec $matrixgui -- $GUI_OPTS
> @@ -46,7 +47,10 @@ case "$1" in
>      start-stop-daemon --stop --quiet --pidfile $PIDFILE
>  
>      refresh_screen "background-black"
> +
> +    echo -ne "\033[9;10]\033[14;10]" > /dev/tty4
>      echo 1 > /sys/class/graphics/fbcon/cursor_blink
> +
>      chvt 1
>  
>      echo "."
> diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> index 27cf9c0..0d62367 100644
> --- a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
>  
>  SECTION = "multimedia"
>  
> -PR = "r23"
> +PR = "r24"
>  
>  INITSCRIPT_NAME = "matrix-gui-2.0"
>  INITSCRIPT_PARAMS = "defaults 97"
> -- 
> 1.7.9.5
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


      reply	other threads:[~2015-04-06 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-06 12:59 [PATCH] matrix-gui: Disable terminal blanking while running matrix Jacob Stiffler
2015-04-06 16:16 ` Denys Dmytriyenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150406161628.GB21023@edge \
    --to=denys@ti.com \
    --cc=j-stiffler@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.