From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 05ACBE00444 for ; Mon, 3 Feb 2014 09:29:41 -0800 (PST) Received: by mail-pa0-f47.google.com with SMTP id kp14so7343527pab.20 for ; Mon, 03 Feb 2014 09:29:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=gGuddrOr8OeCB7nTmqBi0Hbtp2pasaIXVG1sv1Hx+ag=; b=FgFurqUcKRIfBthao51NaD3Bc3rRIOrliyFolfaNzqx57N6BmQK9Xw2M8Zi6ASJXgi D6Cl7SeHq7JDd73f7DQ5nQu2lGlmlSdQ++7fKyTpp/BpFNaCqvLrGI8Do71aGgbbf3pg T8fBEchRNiivkT6Wuv1u524wm2zrgqKU5pbBcB+GcFyKHKv3XNKYkgtcupjNSaPm5LfY qEUgdZtF/maFg+99Z8w/mWti+CyRxqDzv8pyvE7H+moz8/LijIY72VNJ3XbsR9JKicPf DO1CL6t/fjted+E6hTyBi0V+q3XU9CHTNCqZlCcWXJC3xyUQY7Zeza5USNQFXqI0hf+O zPBA== X-Gm-Message-State: ALoCoQkzfmw4pEMThKWIGPWq4XkoQlfbRHJby7x4b2yZoC2QcA2MzUGnvxp8zg032ctYpCUXR5Mz X-Received: by 10.66.161.38 with SMTP id xp6mr8317658pab.145.1391448580842; Mon, 03 Feb 2014 09:29:40 -0800 (PST) Received: from [192.168.0.53] ([63.226.49.26]) by mx.google.com with ESMTPSA id ja8sm17357327pbd.3.2014.02.03.09.29.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 09:29:39 -0800 (PST) Message-ID: <52EFD1FF.7080800@boundarydevices.com> Date: Mon, 03 Feb 2014 10:29:35 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Rogerio Nunes , Mario Domenech Goulart References: <1389967366-2718-1-git-send-email-mario@ossystems.com.br> <52E6FCC1.3030009@boundarydevices.com> <87y51wxoy8.fsf@parenteses.org> In-Reply-To: Cc: "meta-freescale@yoctoproject.org" Subject: Re: [meta-fsl-demos][PATCH 1/2] qt-in-industrial-embedded-common: add init script for the smarthome demo X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 17:29:42 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Rogerio, On 02/03/2014 07:44 AM, Rogerio Nunes wrote: > On Fri, Jan 31, 2014 at 8:26 AM, Mario Domenech Goulart > wrote: >> Hi Eric, >> >> Sorry for taking so long to reply. Please, see some comments below. >> >> On Mon, 27 Jan 2014 17:41:37 -0700 Eric Nelson wrote: >> >>> On 01/17/2014 07:02 AM, Mario Domenech Goulart wrote: >>>> Currently, qt-in-industrial-embedded starts no demo automatically when >>>> installed. This patch adds an init script so that the smarthome demo >>>> can be automatically started on boot. >>>> >>>> >>>> >>>> +SRC_URI = "git://gitorious.org/qt-in-use/qt-in-industrial-embedded.git \ >>>> + file://smarthome \ >>>> + " >>>> >>>> PR = "r3" >>>> >>>> @@ -18,6 +20,10 @@ do_configure_prepend() { >>>> do_install_append () { >>>> # Set the correct smarthome binary path >>>> sed -i -e 's:Exec=.*:Exec=${bindir}/smarthome:g' ${D}${datadir}/applications/smarthome.desktop >>> >>> This should only be installed when not using X, right? >> >> I'm not sure. I actually haven't touched that recipe part. >> >> >>>> + >>>> + install -d ${D}${sysconfdir}/init.d >>>> + install -m 755 ${WORKDIR}/smarthome ${D}${sysconfdir}/init.d/ >>>> + sed -i -e 's:__BINDIR__:${bindir}:g; s:__SYSCONFDIR__:${sysconfdir}:g' ${D}${sysconfdir}/init.d/smarthome >>>> } >>>> >>> >>> When testing using fsl-image-gui on the master branch today, I >>> immediately got a ts_calibrate prompt on my HDMI monitor, which was >>> frustrating since it doesn't happen to have a touch screen. >>> >>> Please advise, >> >> It seems that packagegroup-core-tools-testapps is dragging >> tslib-calibrate into the image (via RDEPENDS). >> packagegroup-core-tools-testapps is added to the image because >> fsl-image-gui.bb has >> >> SOC_EXTRA_IMAGE_FEATURES ?= "tools-testapps" >> >> EXTRA_IMAGE_FEATURES += " \ >> ${SOC_EXTRA_IMAGE_FEATURES} \ >> ... >> >> The "tools-testapps" feature makes core-image.bbclass add >> packagegroup-core-tools-testapps to the image. >> >> To work around that, you can add >> >> EXTRA_IMAGE_FEATURES_remove = "tools-testapps" >> >> to local.conf. However, a bunch of other packages will be removed from >> the image (don't know if they are relevant for your purposes, though -- >> they sould be "testapps"). > > Actually packagegroup-fsl-tools-testapps is explicitly included in > IMAGE_INSTALL... > >> >> I suppose packagegroup-core-tools-testapps should check for >> "touchscreen" in MACHINE_FEATURES to avoid the dependency on tslib for >> boards that don't have touch devices. > > Agree. > I suspect that this leaves us in the same position, since essentially all i.MX6 boards support some form of touch screen, yet they can also be used without touch (e.g. with HDMI + mouse/keyboard), right? It seems that a run-time test may be the right thing here for the most common case. On our Nitrogen boards, and I expect on Freescale boards with Hannstar displays, we could test /dev/input/ to see whether a a touch screen is present because the I2C touch controller is essentially a part of the display. This doesn't work on other boards like our Nitrogen6_Lite though. On that board, a resistive touch controller is a part of the main board, so a touch-screen input device will be present even if no touch screen is physically connected. Regards, Eric