All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: <meta-arago@arago-project.org>
Subject: Re: [arago-commits] Gou, Hongmei : weston-init: update init scripts related to restarting Weston
Date: Tue, 3 May 2016 00:17:01 -0400	[thread overview]
Message-ID: <20160503041701.GS1546@edge> (raw)
In-Reply-To: <20160429235943.GF1546@edge>

Hongmei, Eric, Jake,

Ping again. I will be reverting this if not clarified. Thanks.

-- 
Denys


On Fri, Apr 29, 2016 at 07:59:44PM -0400, Denys Dmytriyenko wrote:
> Ping.
> 
> 
> On Thu, Apr 28, 2016 at 03:46:23PM -0400, Denys Dmytriyenko wrote:
> > So, I was looking into Weston init script lately for another reason and 
> > noticed there was a hole in its logic. From the logs I came to this commit 
> > made few months ago. Particularly, I'm interested why the first part of the 
> > change was made:
> > 
> > * Bypass restarting Weston if SD card has calibration file already
> > 
> > This seems incorrect, because if calibration file is only available on SD 
> > card, it has to be copied to /etc and in order to take immediate effect, udev 
> > has to be reloaded and weston has to be restarted, which how it used to be 
> > before. Why is this now bypassed? Please provide details of what this change 
> > is meant to address and how is it supposed to work. Thanks.
> > 
> > -- 
> > Denys
> > 
> > 
> > On Wed, Jan 27, 2016 at 09:00:49PM +0000, Arago Project git wrote:
> > > Module: meta-arago
> > > Branch: master
> > > Commit: b057be5db06e0f2e0ebb649841e64f60a997c2c1
> > > URL:    http://arago-project.org/git/meta-arago.git?a=commit;h=b057be5db06e0f2e0ebb649841e64f60a997c2c1
> > > 
> > > Author: Gou, Hongmei <h-gou@ti.com>
> > > Date:   Thu Jan 28 01:48:05 2016 +0000
> > > 
> > > weston-init: update init scripts related to restarting Weston
> > > 
> > > * Bypass restarting Weston if SD card has calibration file already
> > > 
> > > * Increase the sleep time before Weston is restarted
> > >   It takes some time to complete the Weston termination procedure.
> > >   If Weston is restarted before the previous instance is fully
> > >   terminated, the restart of Weston will fail.
> > > 
> > > Signed-off-by: Hongmei Gou <h-gou@ti.com>
> > > Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> > > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > > 
> > > ---
> > > 
> > >  .../recipes-graphics/wayland/weston-init.bbappend  |    2 +-
> > >  .../recipes-graphics/wayland/weston-init/init      |    7 ++++---
> > >  2 files changed, 5 insertions(+), 4 deletions(-)
> > > 
> > > diff --git a/meta-arago-distro/recipes-graphics/wayland/weston-init.bbappend b/meta-arago-distro/recipes-graphics/wayland/weston-init.bbappend
> > > index d9e15b6..4b5ad93 100644
> > > --- a/meta-arago-distro/recipes-graphics/wayland/weston-init.bbappend
> > > +++ b/meta-arago-distro/recipes-graphics/wayland/weston-init.bbappend
> > > @@ -1,4 +1,4 @@
> > > -PR_append = "-arago4"
> > > +PR_append = "-arago5"
> > >  
> > >  FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> > >  
> > > diff --git a/meta-arago-distro/recipes-graphics/wayland/weston-init/init b/meta-arago-distro/recipes-graphics/wayland/weston-init/init
> > > index 2e2ae36..494584f 100644
> > > --- a/meta-arago-distro/recipes-graphics/wayland/weston-init/init
> > > +++ b/meta-arago-distro/recipes-graphics/wayland/weston-init/init
> > > @@ -63,8 +63,9 @@ case "$1" in
> > >          # Check if SD card has a calibration rules file
> > >          SD_CALUDEV_FILE=/run/media/mmcblk0p1/ws-calibrate.rules
> > >          if [ "$SD_MOUNTED" = "1" -a -f "$SD_CALUDEV_FILE" ] ; then
> > > -            # Copy it over to udev location
> > > +            # Copy it over to udev location, and done
> > >              cp "$SD_CALUDEV_FILE" "$WS_CALUDEV_FILE"
> > > +            exit 0
> > >          else
> > >              # Run a calibration app and save output to udev rules
> > >              echo    "Calibrating touchscreen (first time only)"
> > > @@ -85,7 +86,7 @@ case "$1" in
> > >          udevadm control --reload
> > >          udevadm trigger
> > >          killproc weston
> > > -        sleep 1
> > > +        sleep 2
> > >          openvt -c 4 -f runWeston
> > >    ;;
> > >  
> > > @@ -96,7 +97,7 @@ case "$1" in
> > >  
> > >    restart)
> > >  	$0 stop
> > > -        sleep 1
> > > +        sleep 2
> > >          $0 start
> > >    ;;
> > >  
> > > 
> > > _______________________________________________
> > > arago-commits mailing list
> > > arago-commits@arago-project.org
> > > http://arago-project.org/cgi-bin/mailman/listinfo/arago-commits
> > > 
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


  reply	other threads:[~2016-05-03  4:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160127210049.58111529C9@arago-project.org>
2016-04-28 19:46 ` [arago-commits] Gou, Hongmei : weston-init: update init scripts related to restarting Weston Denys Dmytriyenko
2016-04-29 23:59   ` Denys Dmytriyenko
2016-05-03  4:17     ` Denys Dmytriyenko [this message]
2016-05-04 16:03       ` Ruei, Eric

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=20160503041701.GS1546@edge \
    --to=denys@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.