All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] matrix-gui: Disable terminal blanking while running matrix.
@ 2015-04-06 12:59 Jacob Stiffler
  2015-04-06 16:16 ` Denys Dmytriyenko
  0 siblings, 1 reply; 2+ messages in thread
From: Jacob Stiffler @ 2015-04-06 12:59 UTC (permalink / raw)
  To: meta-arago

* 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.

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] matrix-gui: Disable terminal blanking while running matrix.
  2015-04-06 12:59 [PATCH] matrix-gui: Disable terminal blanking while running matrix Jacob Stiffler
@ 2015-04-06 16:16 ` Denys Dmytriyenko
  0 siblings, 0 replies; 2+ messages in thread
From: Denys Dmytriyenko @ 2015-04-06 16:16 UTC (permalink / raw)
  To: Jacob Stiffler; +Cc: meta-arago

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-06 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-06 12:59 [PATCH] matrix-gui: Disable terminal blanking while running matrix Jacob Stiffler
2015-04-06 16:16 ` Denys Dmytriyenko

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.