IBM 4800-C41 Configuration Guide - Page 13

Providing serial touch screen coordinates in xorg.conf, Tone support for Elo touch screens

Page 13 highlights

Providing serial touch screen coordinates in xorg.conf To provide the X Window System with the specific minimum and maximum X and Y coordinates for the serial touch screen: 1. Launch the terminal application from Init 3 text console mode. 2. Use a text editor to add the following section to the /etc/X11/xorg.conf file: Section "InputDevice" Driver "driver" Identifier "Mouse[3]" Option "ButtonNumber" "1" Option "ButtonThreshold" "17" Option "Device" "/dev/ttySn" Option "InputFashion" "Touchpanel" Option "MinX" "minimum_X" Option "MaxX" "maximum_X" Option "MinY" "minimum_Y" Option "MaxY" "maximum_Y" Option "Name" "unique_device_id" Option "ReportingMode" "Scaled" Option "SendCoreEvents" "on" EndSection See Table 1 on page 3 and Table 3 on page 4 (as applicable) for the variable values; unique_device_id is any alphanumeric string by which you would like the device identified in the OS. 3. Add the following line to the ServerLayout section in the /etc/X11/xorg.conf file: InputDevice "Mouse[3]" "SendCoreEvents" For example: Section "ServerLayout" Identifier "Layout[all]" InputDevice "Keyboard[0]" "CoreKeyboard" InputDevice "Mouse[1]" "CorePointer" InputDevice "Mouse[3]" "SendCoreEvents" Option "Clone" "off" Option "Xinerama" "off" Screen "Screen[0]" EndSection Tone support for Elo touch screens IBM provides a utility which turns on or off the audible feedback for external 4820 Elo USB and RS-232 Elo touch screens. You can download the IBM_elotone4sle-1.0.0-0.i586.rpm package from IBM support web site at http://www.ibm.com/support/docview.wss?uid=pos1R4000246. To install the package on SLED 11 or SLES 11, enter the following command on the command line: rpm -ivh IBM_elotone4sle-1.0.0-0.i586.rpm To install the package on SLEPOS 11, refer to the SLEPOS 11 documentation. To activate the tone on an external 4820 Elo touch screen, enter the following on the command line: ./elotone4sle {--help} -s [DOWN | UP | BOTH | OFF] -d port -f frequency -t time [DOWN | UP | BOTH | OFF] Specifies whether the tone sounds when a touch is first recognized (DOWN), when a touch is released (UP), at both times (BOTH), or not at all (OFF). port Specifies either USB-attached (usb) or RS-232 serial-attached (/dev/ttySn). frequency Specifies the frequency value in hertz for the tone. time Specifies the duration in milliseconds that the tone sounds. Chapter 1. Common configuration procedures 5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42

Providing serial touch screen coordinates in xorg.conf
To provide the X Window System with the specific minimum and maximum X and Y coordinates for the
serial touch screen:
1.
Launch the terminal application from Init 3 text console mode.
2.
Use a text editor to add the following section to the /etc/X11/xorg.conf file:
Section "InputDevice"
Driver
"
driver
"
Identifier
"Mouse[3]"
Option
"ButtonNumber" "1"
Option
"ButtonThreshold" "17"
Option
"Device" "/dev/ttyS
n
"
Option
"InputFashion" "Touchpanel"
Option
"MinX" "
minimum_X
"
Option
"MaxX" "
maximum_X
"
Option
"MinY" "
minimum_Y
"
Option
"MaxY" "
maximum_Y
"
Option
"Name" "
unique_device_id
"
Option
"ReportingMode" "Scaled"
Option
"SendCoreEvents" "on"
EndSection
See Table 1 on page 3 and Table 3 on page 4 (as applicable) for the variable values;
unique_device_id
is
any alphanumeric string by which you would like the device identified in the OS.
3.
Add the following line to the
ServerLayout
section in the /etc/X11/xorg.conf file:
InputDevice
"Mouse[3]" "SendCoreEvents"
For example:
Section "ServerLayout"
Identifier
"Layout[all]"
InputDevice
"Keyboard[0]" "CoreKeyboard"
InputDevice
"Mouse[1]" "CorePointer"
InputDevice
"Mouse[3]" "SendCoreEvents"
Option
"Clone" "off"
Option
"Xinerama" "off"
Screen
"Screen[0]"
EndSection
Tone support for Elo touch screens
IBM provides a utility which turns on or off the audible feedback for external 4820 Elo USB and RS-232
Elo touch screens. You can download the IBM_elotone4sle-1.0.0-0.i586.rpm package from IBM support
To install the package on SLED 11 or SLES 11, enter the following command on the command line:
rpm -ivh IBM_elotone4sle-1.0.0-0.i586.rpm
To install the package on SLEPOS 11, refer to the SLEPOS 11 documentation.
To activate the tone on an external 4820 Elo touch screen, enter the following on the command line:
./elotone4sle {--help} -s [DOWN | UP | BOTH | OFF] -d
port
-f
frequency
-t
time
[DOWN | UP | BOTH | OFF]
Specifies whether the tone sounds when a touch is first recognized (
DOWN
), when a touch
is released (
UP
), at both times (
BOTH
), or not at all (
OFF
).
port
Specifies either USB-attached (
usb
) or RS-232 serial-attached (
/dev/ttyS
n
).
frequency
Specifies the frequency value in hertz for the tone.
time
Specifies the duration in milliseconds that the tone sounds.
Chapter 1. Common configuration procedures
5