From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?iso-8859-1?q?J=FCrgen_Beisert?= Date: Mon, 22 Jul 2013 16:03:55 +0200 References: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D13@HISCMAIL01.HeiLab.loc> <201307221257.41025.jbe@pengutronix.de> <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D71@HISCMAIL01.HeiLab.loc> In-Reply-To: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D71@HISCMAIL01.HeiLab.loc> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201307221603.55455.jbe@pengutronix.de> Subject: Re: [ptxdist] rc.d script Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Henrik.Kraft@heidolph.de Hi Henrik, On Monday 22 July 2013 14:05:47 Henrik.Kraft@heidolph.de wrote: > even with /etc/init.d script my touch panel does not work. I have > > if [ -e "/etc/profile" ]; then > . /etc/profile > fi > > if [ -e "/etc/profile.environment" ]; then > . /etc/profile.environment > fi > > which also includes /etc/profeil.local in my script but it seems not to s= et > the right variables. QWS_DISPLAY=3Dlinuxfb > QWS_MOUSE_PROTO=3Dtslib:/dev/input/event0 > QWS_KEYBOARD=3DUSB:/dev/input/event1 > are set. > Do you know what to set to which values (and can you tellme)? You can try with the "profile.environment" from my Mini2440 BSP and adapt t= hese = values to your target: MINI2440_FBDEV=3D/dev/fb0 MINI2440_KEYEVENT=3D/dev/input/buttons MINI2440_TOUCHEVENT=3D/dev/input/touchscreen # # These LCDs are known. Use the size values only, if the kernel does # not provide the size information. # # LCD (sizes are meant in [mm]): # - Portrait 240 x 320 display of type "NEC NL2432HC22-23B" (N35) # - Portrait 240 x 320 display of type "Sony ACX502BMU" (X35) # MINI2440_LCD_WIDTH=3D55 and MINI2440_LCD_HEIGHT=3D71 # - Portrait 240 x 320 display of type "STD035STED4" (T35) # MINI2440_LCD_WIDTH=3D53 and MINI2440_LCD_HEIGHT=3D71 # - Landscape 320 x 240 display of type "Sharp LQ035Q1DG06" (W35i) # MINI2440_LCD_WIDTH=3D72 and MINI2440_LCD_HEIGHT=3D54 # - Landscape 640 x 480 display of type "Innolux AT056TN523" (unknown) # MINI2440_LCD_WIDTH=3D113 and MINI2440_LCD_HEIGHT=3D85 # - Landscape 800 x 480 display of type "Innolux AT070TN83" (LCD70) # MINI2440_LCD_WIDTH=3D153 and MINI2440_LCD_HEIGHT=3D92 # - Landscape 480 x 272 display of type "NEC NL4827HC19-01B" (N43) # MINI6410_LCD_WIDTH=3D95 and MINI6410_LCD_HEIGHT=3D54 # # MINI2440_LCD_WIDTH=3D55 # MINI2440_LCD_HEIGHT=3D71 # touchscreen relevant settings export TSLIB_TSDEVICE=3D${MINI2440_TOUCHEVENT} export TSLIB_CONSOLEDEVICE=3Dnone export TSLIB_FBDEVICE=3D${MINI2440_FBDEV} #export TSLIB_CALIBFILE #export TSLIB_CONFFILE #export TSLIB_PLUGINDIR # Qt relevant settings export QWS_MOUSE_PROTO=3DTslib:${MINI2440_TOUCHEVENT} QWS_DISPLAY=3DLinuxFb:nographicsmodeswitch:tty=3Dnone if [ -n "${MINI2440_LCD_WIDTH}" ]; then QWS_DISPLAY=3D${QWS_DISPLAY}:mmWidth=3D${MINI2440_LCD_WIDTH} fi if [ -n "${MINI2440_LCD_HEIGHT}" ]; then QWS_DISPLAY=3D${QWS_DISPLAY}:mmHeight=3D${MINI2440_LCD_HEIGHT} fi export QWS_DISPLAY export QWS_KEYBOARD=3DLinuxInput:${MINI2440_KEYEVENT} But please keep in mind: "/dev/input/buttons" and "/dev/input/touchscreen" = only = exist because a special udev rule creates them. Otherwise they only are nam= ed = as "event0" and "event1". Regards, Juergen -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| Phone: +49-5121-20691= 7-5128 | Peiner Str. 6-8, 31137 Hildesheim, Germany =A0 =A0| Fax: =A0 +49-5121-20691= 7-5555 | Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 =A0 =A0| http://www.pe= ngutronix.de/ =A0| -- = ptxdist mailing list ptxdist@pengutronix.de