mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Jürgen Beisert" <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Henrik.Kraft@heidolph.de
Subject: Re: [ptxdist] rc.d script
Date: Mon, 22 Jul 2013 16:03:55 +0200	[thread overview]
Message-ID: <201307221603.55455.jbe@pengutronix.de> (raw)
In-Reply-To: <5DDDC2AE1D40D045B973C3CAA4D4CCC74F2D71@HISCMAIL01.HeiLab.loc>

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 set
> the right variables. QWS_DISPLAY=linuxfb
> QWS_MOUSE_PROTO=tslib:/dev/input/event0
> QWS_KEYBOARD=USB:/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 these 
values to your target:

MINI2440_FBDEV=/dev/fb0
MINI2440_KEYEVENT=/dev/input/buttons
MINI2440_TOUCHEVENT=/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=55 and MINI2440_LCD_HEIGHT=71
# - Portrait 240 x 320 display of type "STD035STED4" (T35)
#      MINI2440_LCD_WIDTH=53 and MINI2440_LCD_HEIGHT=71
# - Landscape 320 x 240 display of type "Sharp LQ035Q1DG06" (W35i)
#      MINI2440_LCD_WIDTH=72 and MINI2440_LCD_HEIGHT=54
# - Landscape 640 x 480 display of type "Innolux AT056TN523" (unknown)
#      MINI2440_LCD_WIDTH=113 and MINI2440_LCD_HEIGHT=85
# - Landscape 800 x 480 display of type "Innolux AT070TN83" (LCD70)
#      MINI2440_LCD_WIDTH=153 and MINI2440_LCD_HEIGHT=92
# - Landscape 480 x 272 display of type "NEC NL4827HC19-01B" (N43)
#      MINI6410_LCD_WIDTH=95 and MINI6410_LCD_HEIGHT=54
#
# MINI2440_LCD_WIDTH=55
# MINI2440_LCD_HEIGHT=71

# touchscreen relevant settings
export TSLIB_TSDEVICE=${MINI2440_TOUCHEVENT}
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=${MINI2440_FBDEV}
#export TSLIB_CALIBFILE
#export TSLIB_CONFFILE
#export TSLIB_PLUGINDIR

# Qt relevant settings
export QWS_MOUSE_PROTO=Tslib:${MINI2440_TOUCHEVENT}

QWS_DISPLAY=LinuxFb:nographicsmodeswitch:tty=none
if [ -n "${MINI2440_LCD_WIDTH}" ]; then
        QWS_DISPLAY=${QWS_DISPLAY}:mmWidth=${MINI2440_LCD_WIDTH}
fi
if [ -n "${MINI2440_LCD_HEIGHT}" ]; then
        QWS_DISPLAY=${QWS_DISPLAY}:mmHeight=${MINI2440_LCD_HEIGHT}
fi
export QWS_DISPLAY
export QWS_KEYBOARD=LinuxInput:${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 named 
as "event0" and "event1".

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-5121-206917-5128 |
Peiner Str. 6-8, 31137 Hildesheim, Germany    | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2013-07-22 14:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22 10:19 Henrik.Kraft
2013-07-22 10:25 ` Josef Holzmayr
2013-07-22 10:37   ` Henrik.Kraft
2013-07-22 10:37 ` Alexander Dahl
2013-07-22 10:57 ` Jürgen Beisert
2013-07-22 11:08   ` Henrik.Kraft
2013-07-22 12:05   ` Henrik.Kraft
2013-07-22 14:03     ` Jürgen Beisert [this message]
2013-07-22 15:44       ` Henrik.Kraft
2013-07-22 13:25 Henrik.Kraft

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=201307221603.55455.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=Henrik.Kraft@heidolph.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox