LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 05-16-2008, 05:20 AM   #1
gonfi
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Touchscreen issues with ELinOS


Hi there!

First of all I want to point out that I’m a Linux noob.
I have a J-Rex embedded board running ELinOS on it. I tried to get a Gunze AHL-51S (connected to the serial port) touchscreen to work, but I can’t get through! (I got it running with RTOS, so the hardware should be fine)
ELinOS kernel 2.6.12 is delivered with a gunze kernel module and I also added the gunzets module to the X-Server.
When I start the X-Server the Touchscreen seems to work but where ever I touch on the screen it always jumps to the same position (somewhere out of the visible region).
I tried also with the evtouch driver and got the same result.
My next guess was to look at the output of the com port 0. (
Code:
od -h -w10 /dev/ttyS0
) Even if I stayed at the same position with a pencil or my finger the output was completly different!
Many examples are using the devices under /dev/input/eventX, but I have only event0 and event1 for keyboard and mouse.

This is my XF86Config file:

Code:
#X-Server Config-File

Section "Files"
	RgbPath		"/usr/X11R6/lib/X11/rgb"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc"
	ModulePath	"/usr/X11R6/lib/modules"
EndSection


Section "ServerFlags"
	# NoTrapSignals
	# DontZap
	# DontZoom
	# AllowNonLocalModInDev
	AllowMouseOpenFail
EndSection

Section "Module"
	Load		"extmod"
	Load		"gunze"
	Load		"evtouch"
EndSection


Section "Keyboard"
	Protocol	"Standard"
	XkbRules	"xfree86"
	XkbModel	"pc104"
	XkbLayout	"de"
	XkbVariant	"nodeadkeys"
EndSection


Section "Pointer"
	Protocol	"PS/2"
	Device		"/dev/psaux"
	#Device		"/dev/input/mice"
EndSection


Section "Monitor"
	Identifier	"Generic Monitor"
	VendorName	"Unknown"
	ModelName	"Unknown"
EndSection


Section "Device"
	Identifier	"Linux Frame Buffer Device"
	Driver		"vesa"
	Screen		0
EndSection


Section "Screen"
	Driver		"FBDev"
	Device     	"Linux Frame Buffer Device"
	Monitor     	"Generic Monitor"
	DefaultColorDepth 8
	SubSection "Display"
		Depth       8
		Modes       "default"
		ViewPort    0 0
	EndSubSection
EndSection

Section "InputDevice"
	Identifier 	"Mouse0"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Protocol"		"PS/2"
	Option		"Device"		"/dev/psaux"
	#Option		"Device"		"/dev/input/mice"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier 	"Keyboard0"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"de"
	Option		"XkbVariant"	"nodeadkeys"
EndSection

Section "InputDevice"
	Identifier	"Touchscreen0"
	Driver		"evtouch"
	Option		"Device"		"/dev/ttyS0"
	Option		"MinX"			"0"
	Option		"MinY"			"0"
	Option		"MaxX"			"1024"
	Option		"MaxY"			"1024"
	Option		"ReportingMode"		"Raw"
	Option		"Emulate3Buttons"
	Option		"Emulate3Timeout"       "50"
	Option		"SendCoreEvents"	"On"
	Option		"SwapY"			"1"
EndSection

#Section "InputDevice"
#	Identifier	"Touchscreen0"
#	Driver		"gunze"
#	Option		"Device"		"/dev/ttyS0"
#	#Option		"DeviceType"		"serial"
#	Option		"BaudRate"		"9600"
#	#Option		"CalibrationFile"	"/etc/gunzets.calib"
#	Option		"Smoothness"		"9"
#	Option		"TappingDelay"		"0"
#	Option		"JitterDelay"		"50"
#	Option		"DebugLevel"		"0"
#	Option		"Res12Bit"		"False"
#	Option		"SendCoreEvents"
#EndSection

Section "ServerLayout"
        Identifier     "MyLayout"
        Screen         "FBDev"
        InputDevice    "Mouse0"
        InputDevice    "Keyboard0"
        InputDevice    "Touchscreen0"
	#Option		"Xinerama"	"off"
EndSection

#Section "DRI"
#	Mode		0666
#EndSection
Here is my dmesg-output, I thought it may be useful:

Code:
Linux version 2.6.12.6-elinos-218 (root@dskt2616) (gcc version 3.4.4 (ELinOS V4.0 3.4.4-11 2005-10-19)) #1 Thu May 15 11:20:14 CEST 2008
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000ce000 - 00000000000d0000 (reserved)
 BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000036fc000 (usable)
 BIOS-e820: 00000000036fc000 - 0000000003700000 (ACPI NVS)
 BIOS-e820: 0000000003700000 - 0000000003800000 (usable)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
56MB LOWMEM available.
On node 0 totalpages: 14336
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 10240 pages, LIFO batch:3
  HighMem zone: 0 pages, LIFO batch:1
DMI not present.
Allocating PCI resources starting at 03800000 (gap: 03800000:fc780000)
Built 1 zonelists
Kernel command line:  auto devfs=mount ip=dhcp root=/dev/hdc2 rw BOOT_IMAGE=boot/vmlinuz
Initializing CPU#0
PID hash table entries: 256 (order: 8, 4096 bytes)
Detected 598.780 MHz processor.
Using tsc for high-res timesource
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 54332k/57344k available (1395k kernel code, 2520k reserved, 315k data, 116k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 1171.45 BogoMIPS (lpj=585728)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 00803135 80803135 00000000 00000000 00000000 00000000 00000000
CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line)
CPU: L2 Cache: 64K (32 bytes/line)
CPU: After all inits, caps: 00803135 80803135 00000000 00000000 00000000 00000000 00000000
CPU: Centaur VIA Samuel 2 stepping 03
Checking 'hlt' instruction... OK.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfd7ce, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Boot video device is 0000:01:00.0
PCI: Using IRQ router VIA [1106/8231] at 0000:00:11.0
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
vesafb: framebuffer at 0xf0000000, mapped to 0xc4000000, using 937k, total 7104k
vesafb: mode is 800x600x8, linelength=800, pages=12
vesafb: protected mode interface info at c000:8dc8
vesafb: scrolling: redraw
vesafb: Pseudocolor: size=6:6:6:6, shift=0:0:0:0
Console: switching to colour frame buffer device 100x37
fb0: VESA VGA frame buffer device
Linux agpgart interface v0.101 (c) Dave Jones
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A
ttyS3 at I/O 0x2e8 (irq = 3) is a 16550A
io scheduler noop registered
PCI: Found IRQ 9 for device 0000:00:12.0
VIA Rhine Family Fast Ethernet Adapter Driver Ver. 5.08
Copyright (c) 2002 VIA Technologies, Inc.
eth0: VIA Rhine II Fast Ethernet Adapter
eth0: MAC=00:E0:4B:0E:E6:F5 IO=0x1c00 Mem=0xe8000000  IRQ=9 
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8231 (rev 10) IDE UDMA100 controller on pci0000:00:11.1
    ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
Probing IDE interface ide1...
hdc: Hitachi XX.V.3.7.0.0, CFA DISK drive
hdc: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdc: set_drive_speed_status: error=0x04 { DriveStatusError }
hdc: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdc: set_drive_speed_status: error=0x04 { DriveStatusError }
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
ide2: I/O resource 0x3EE-0x3EE not free.
ide2: ports already in use, skipping probe
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
hdc: max request size: 128KiB
hdc: 500400 sectors (256 MB) w/1KiB Cache, CHS=695/15/48
hdc: cache flushes not supported
 /dev/ide/host0/bus1/target0/lun0: p1 p2
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
input: AT Translated Set 2 keyboard on isa0060/serio0
input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
eth0: failed to detect cable link
Sending DHCP requests .eth0: Link auto-negotiation speed 100M bps full duplex
., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 160.85.36.91
IP-Config: Complete:
      device=eth0, addr=160.85.36.91, mask=255.255.255.0, gw=160.85.36.1,
     host=labt6466, domain=zhaw.ch, nis-domain=(none),
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
 /dev/ide/host0/bus1/target0/lun0: p1 p2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 116k freed
eth0: no IPv6 routers present
Any suggestions or help would be much appreciated!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Touchscreen assasukasse Linux - Hardware 26 08-03-2010 01:21 AM
touchscreen cf-28 will78 Linux - Laptop and Netbook 2 02-03-2008 03:23 PM
Touchscreen problem g4j31a5 Linux - Hardware 2 04-15-2007 10:36 PM
Touchscreen driver bob755 Mandriva 3 02-19-2007 06:12 PM
LXer: Thales' single board computers available with Sysgo's ELinOS LXer Syndicated Linux News 0 12-01-2006 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration