summaryrefslogtreecommitdiffstats
path: root/meta/packages/xtscal
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/xtscal')
-rw-r--r--meta/packages/xtscal/xtscal/cleanup.patch555
-rw-r--r--meta/packages/xtscal/xtscal/formfactor.patch30
-rw-r--r--meta/packages/xtscal/xtscal_0.6.3.bb6
3 files changed, 537 insertions, 54 deletions
diff --git a/meta/packages/xtscal/xtscal/cleanup.patch b/meta/packages/xtscal/xtscal/cleanup.patch
index fc3ae8b10c..50ce0de884 100644
--- a/meta/packages/xtscal/xtscal/cleanup.patch
+++ b/meta/packages/xtscal/xtscal/cleanup.patch
@@ -1,13 +1,53 @@
1--- 1Index: xtscal-0.6.3/xtscal.in
2 main.c | 45 +++++---------------------------------------- 2===================================================================
3 1 file changed, 5 insertions(+), 40 deletions(-) 3--- xtscal-0.6.3.orig/xtscal.in 2004-09-10 20:10:36.000000000 +0100
4 4+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
5@@ -1,19 +0,0 @@
6-#!/bin/sh
7-
8-module_id() {
9- # Get model name
10- echo `grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z`
11-}
12-
13-case `module_id` in
14- "HP IPAQ H3100" | "HP IPAQ H3800" )
15- ARGS="-rotate 90" ;;
16- "HP IPAQ H3600" | "HP IPAQ H3700" | "HP IPAQ H3900" | *COLLIE | *POODLE)
17- ARGS="-rotate 270" ;;
18- # H2200: works without rotation
19-esac
20-
21-# the things we do for autoconf
22-prefix=@prefix@
23-exec_prefix=@exec_prefix@
24-exec @libexecdir@/xtscal.bin $ARGS $*
5Index: xtscal-0.6.3/main.c 25Index: xtscal-0.6.3/main.c
6=================================================================== 26===================================================================
7--- xtscal-0.6.3.orig/main.c 2007-06-29 16:49:14.000000000 +0100 27--- xtscal-0.6.3.orig/main.c 2007-06-30 15:46:03.000000000 +0100
8+++ xtscal-0.6.3/main.c 2007-06-29 16:53:11.000000000 +0100 28+++ xtscal-0.6.3/main.c 2007-06-30 15:46:03.000000000 +0100
9@@ -52,8 +52,6 @@ int flag_debug; 29@@ -22,12 +22,10 @@
10 int rotation = 0; 30 #include <X11/Xlib.h>
31
32 #include <X11/extensions/Xrender.h>
33-#include <X11/extensions/Xrandr.h>
34 #include <X11/Xft/Xft.h>
35 #include <X11/extensions/xcalibrate.h>
36 #include <X11/keysym.h>
37
38-#include "h3600_ts.h"
39 #include "calibrate.h"
40
41 Display *dpy;
42@@ -45,15 +43,11 @@ XftColor xftcol;
43 XftDraw *xftdraw;
44 XftFont *xftfont;
45 int screen_x, screen_y;
46-int ts_fd;
47 int samples;
48 Pixmap bg_pixmap;
49 int flag_debug;
50-int rotation = 0;
11 int error_base, event_base; 51 int error_base, event_base;
12 52
13-int using_xcalibrate; 53-int using_xcalibrate;
@@ -15,7 +55,7 @@ Index: xtscal-0.6.3/main.c
15 int moving; 55 int moving;
16 56
17 #define CROSSHAIR_SIZE 25 57 #define CROSSHAIR_SIZE 25
18@@ -63,7 +61,6 @@ int moving; 58@@ -63,7 +57,6 @@ int moving;
19 #define ENOUGH 5 59 #define ENOUGH 5
20 #define MAX_SAMPLES 40 60 #define MAX_SAMPLES 40
21 61
@@ -23,8 +63,12 @@ Index: xtscal-0.6.3/main.c
23 #define FONTNAME "sans-10" 63 #define FONTNAME "sans-10"
24 64
25 struct point 65 struct point
26@@ -291,8 +288,6 @@ set_calibration (calibration *cal) 66@@ -287,12 +280,8 @@ sort_by_y (const void* a, const void *b)
27 int xtrans, ytrans, xscale, yscale, xyscale, yxscale; 67 void
68 set_calibration (calibration *cal)
69 {
70- TS_CAL tc;
71- int xtrans, ytrans, xscale, yscale, xyscale, yxscale;
28 calibration ocal = *cal; 72 calibration ocal = *cal;
29 73
30- if (using_xcalibrate) 74- if (using_xcalibrate)
@@ -32,7 +76,7 @@ Index: xtscal-0.6.3/main.c
32 FILE *fp; 76 FILE *fp;
33 if (flag_debug) 77 if (flag_debug)
34 printf ("constants are: %d %d %d %d %d %d %d\n", cal->a[1], cal->a[2], cal->a[0], cal->a[4], cal->a[5], cal->a[3], cal->a[6]); 78 printf ("constants are: %d %d %d %d %d %d %d\n", cal->a[1], cal->a[2], cal->a[0], cal->a[4], cal->a[5], cal->a[3], cal->a[6]);
35@@ -304,29 +299,6 @@ set_calibration (calibration *cal) 79@@ -304,29 +293,6 @@ set_calibration (calibration *cal)
36 } 80 }
37 fprintf (fp, "%d %d %d %d %d %d %d\n", cal->a[1], cal->a[2], cal->a[0], cal->a[4], cal->a[5], cal->a[3], cal->a[6]); 81 fprintf (fp, "%d %d %d %d %d %d %d\n", cal->a[1], cal->a[2], cal->a[0], cal->a[4], cal->a[5], cal->a[3], cal->a[6]);
38 fclose (fp); 82 fclose (fp);
@@ -62,21 +106,204 @@ Index: xtscal-0.6.3/main.c
62 } 106 }
63 107
64 void 108 void
65@@ -531,8 +503,11 @@ main (int argc, char *argv[]) 109@@ -398,80 +364,13 @@ handle_ts_event (int x, int y, int press
110 }
111
112 void
113-read_ts (void)
114-{
115- TS_EVENT ts_ev;
116- int r;
117-
118- r = read (ts_fd, &ts_ev, sizeof (ts_ev));
119- if (r == sizeof (ts_ev))
120- handle_ts_event (ts_ev.x, ts_ev.y, ts_ev.pressure);
121-}
122-
123-void
124-do_cal (char **args)
125-{
126- TS_CAL tc;
127-
128- tc.xscale = atoi (args[0]);
129- tc.xtrans = atoi (args[1]);
130- tc.yscale = atoi (args[2]);
131- tc.ytrans = atoi (args[3]);
132- tc.xyswap = atoi (args[4]);
133-
134- if (flag_debug)
135- fprintf (stderr, "setting: %d %d %d %d %d\n",
136- tc.xtrans, tc.ytrans, tc.xscale, tc.yscale, tc.xyswap);
137-
138- if (ioctl (ts_fd, TS_SET_CAL, (void *)&tc) != 0)
139- {
140- perror ("TS_SET_CAL");
141- exit (1);
142- }
143-
144- exit (0);
145-}
146-
147-void
148-show_cal (void)
149-{
150- TS_CAL tc;
151-
152- if (ioctl (ts_fd, TS_GET_CAL, (void *)&tc) != 0)
153- {
154- perror ("TS_GET_CAL");
155- exit (1);
156- }
157-
158- printf ("%d %d %d %d %d\n", tc.xscale, tc.xtrans, tc.yscale, tc.ytrans, tc.xyswap);
159-}
160-
161-void
162 usage (const char *name)
163 {
164- fprintf (stderr, "usage: %s -view\n", name);
165- fprintf (stderr, " %s [-rotate <0 | 90 | 180 | 270>]\n", name);
166- fprintf (stderr, " %s -cal <xs> <xt> <ys> <yt> <xyswap>\n", name);
167-
168+ fprintf (stderr, "usage: %s [-debug]\n", name);
169 exit (1);
170 }
171
172 int
173-xrr_supported (void)
174-{
175- int xrr_event_base, xrr_error_base;
176- int xrr_major, xrr_minor;
177-
178- if (XRRQueryExtension (dpy, &xrr_event_base, &xrr_error_base) == False
179- || XRRQueryVersion (dpy, &xrr_major, &xrr_minor) == 0
180- || xrr_major != 1
181- || xrr_minor < 1)
182- return 0;
183-
184- return 1;
185-}
186-
187-int
188 main (int argc, char *argv[])
189 {
190 XSetWindowAttributes attributes;
191@@ -480,31 +379,11 @@ main (int argc, char *argv[])
192 int max_fd;
193 GC bg_gc;
194 int i;
195- int have_xrandr;
196
197 for (i = 1; i < argc; i++)
198 {
199- if (!strcmp (argv[i], "-view"))
200- {
201- show_cal ();
202- exit (0);
203- }
204- else if (!strcmp (argv[i], "-debug"))
205+ if (!strcmp (argv[i], "-debug"))
206 flag_debug = 1;
207- else if (!strcmp (argv[i], "-cal"))
208- {
209- if (argc > (i + 5))
210- do_cal (argv + i + 1);
211- else
212- usage (argv[0]);
213- }
214- else if (!strcmp (argv[i], "-rotate"))
215- {
216- if (argc > (i + 1))
217- rotation = atoi (argv[++i]);
218- else
219- usage (argv[0]);
220- }
221 else
222 usage (argv[0]);
223 }
224@@ -531,48 +410,11 @@ main (int argc, char *argv[])
66 fprintf (stderr, "failed to set raw mode: error %d\n", r); 225 fprintf (stderr, "failed to set raw mode: error %d\n", r);
67 exit (1); 226 exit (1);
68 } 227 }
69- 228-
70- using_xcalibrate = 1; 229- using_xcalibrate = 1;
71+ } 230- }
72+ else 231-
73+ { 232- have_xrandr = xrr_supported ();
233- if (have_xrandr)
234- {
235- XRRScreenConfiguration *rr_screen;
236- Rotation current_rotation;
237-
238- if (flag_debug)
239- fprintf (stderr, "XRANDR is supported\n");
240-
241- rr_screen = XRRGetScreenInfo (dpy, RootWindow (dpy, screen));
242-
243- XRRRotations (dpy, screen, &current_rotation);
244-
245- XRRFreeScreenConfigInfo (rr_screen);
246-
247- if (flag_debug)
248- fprintf (stderr, "Current RANDR rotation is %d\n", current_rotation);
249-
250- switch (current_rotation)
251- {
252- case RR_Rotate_270:
253- rotation += 90;
254- case RR_Rotate_180:
255- rotation += 90;
256- case RR_Rotate_90:
257- rotation += 90;
258- rotation %= 360;
259- case RR_Rotate_0:
260- break;
261- default:
262- fprintf (stderr, "Unknown RANDR rotation: %d\n", current_rotation);
263- break;
264- }
265 }
266 else
267 {
268- if (flag_debug)
269- fprintf (stderr, "XRANDR not supported\n");
74+ perror ("XCALIBRATE extension missing"); 270+ perror ("XCALIBRATE extension missing");
75+ exit (1); 271+ exit (1);
76 } 272 }
77 273
78 have_xrandr = xrr_supported (); 274 attributes.override_redirect = flag_debug ? False : True;
79@@ -693,16 +668,6 @@ main (int argc, char *argv[]) 275@@ -666,45 +508,17 @@ main (int argc, char *argv[])
276
277 for (i = 0; i < NR_POINTS; i++)
278 {
279- switch (rotation)
280- {
281- case 0:
282- cal.xfb[i] = cal.xscr[i];
283- cal.yfb[i] = cal.yscr[i];
284- break;
285- case 90:
286- cal.xfb[i] = cal.yscr[i];
287- cal.yfb[i] = screen_x - cal.xscr[i];
288- break;
289- case 180:
290- cal.xfb[i] = screen_x - cal.xscr[i];
291- cal.yfb[i] = screen_y - cal.yscr[i];
292- break;
293- case 270:
294- cal.xfb[i] = screen_y - cal.yscr[i];
295- cal.yfb[i] = cal.xscr[i];
296- break;
297- }
298+ cal.xfb[i] = cal.xscr[i];
299+ cal.yfb[i] = cal.yscr[i];
300+ XCalibrateScreenToCoord (dpy, &cal.xfb[i], &cal.yfb[i]);
301
302 if (flag_debug)
303- printf ("rotation %d: (%d,%d) -> (%d,%d)\n", rotation,
304+ printf ("rotation conversion: (%d,%d) -> (%d,%d)\n",
305 cal.xscr[i], cal.yscr[i], cal.xfb[i], cal.yfb[i]);
306 }
80 307
81 next_event (); 308 next_event ();
82 309
@@ -90,6 +317,294 @@ Index: xtscal-0.6.3/main.c
90- } 317- }
91- } 318- }
92- 319-
93 max_fd = (xfd > ts_fd) ? xfd : ts_fd; 320- max_fd = (xfd > ts_fd) ? xfd : ts_fd;
94 321-
95 for (;;) 322 for (;;)
323 {
324 fd_set fds;
325@@ -713,12 +527,8 @@ main (int argc, char *argv[])
326
327 FD_ZERO (&fds);
328 FD_SET (xfd, &fds);
329- if (ts_fd != -1)
330- FD_SET (ts_fd, &fds);
331
332- select (max_fd + 1, &fds, NULL, NULL, NULL);
333-
334- if (ts_fd != -1 && FD_ISSET (ts_fd, &fds))
335- read_ts ();
336+ select (xfd + 1, &fds, NULL, NULL, NULL);
337 }
338 }
339+
340Index: xtscal-0.6.3/configure.ac
341===================================================================
342--- xtscal-0.6.3.orig/configure.ac 2004-09-10 20:11:12.000000000 +0100
343+++ xtscal-0.6.3/configure.ac 2007-06-30 15:46:03.000000000 +0100
344@@ -9,8 +9,7 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
345 # Checks for programs.
346 AC_PROG_CC
347
348-PKG_CHECK_MODULES(XTSCAL, x11 xft xext xrandr xcalibrate)
349+PKG_CHECK_MODULES(XTSCAL, x11 xft xext xcalibrate)
350
351 AC_CONFIG_FILES([Makefile])
352-AC_CONFIG_FILES([xtscal])
353 AC_OUTPUT
354Index: xtscal-0.6.3/gpe-dist.am
355===================================================================
356--- xtscal-0.6.3.orig/gpe-dist.am 2004-06-02 23:07:13.000000000 +0100
357+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
358@@ -1,12 +0,0 @@
359-CVSTAG := $(shell echo $(PACKAGE)-$(VERSION) | tr [a-z.] [A-Z_])
360-
361-dist-upload: dist
362- scp $(PACKAGE)-$(VERSION).tar.bz2 $(USER)@handhelds.org:/home/ftp/pub/projects/gpe/source/
363-
364-tag:
365- cvs tag $(CVSTAG)
366-
367-retag:
368- cvs tag -F $(CVSTAG)
369-
370-source: tag dist-upload
371Index: xtscal-0.6.3/h3600_ts.h
372===================================================================
373--- xtscal-0.6.3.orig/h3600_ts.h 2003-07-05 17:27:10.000000000 +0100
374+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
375@@ -1,216 +0,0 @@
376-/*
377-*
378-* Driver for the H3600 Touch Screen and other Atmel controlled devices.
379-*
380-* Copyright 2000 Compaq Computer Corporation.
381-*
382-* Use consistent with the GNU GPL is permitted,
383-* provided that this copyright notice is
384-* preserved in its entirety in all copies and derived works.
385-*
386-* COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,
387-* AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS
388-* FITNESS FOR ANY PARTICULAR PURPOSE.
389-*
390-* Author: Charles Flynn.
391-*
392-*/
393-
394-
395-#ifndef __H3600_TS_H__
396-#define __H3600_TS_H__
397-
398-#include <linux/ioctl.h>
399-
400-enum h3600_ts_minor_devices {
401- TS_MINOR = 0,
402- TSRAW_MINOR = 1,
403- KEY_MINOR = 2
404-};
405-
406-typedef struct h3600_ts_calibration {
407- int xscale;
408- int xtrans;
409- int yscale;
410- int ytrans;
411- int xyswap;
412-} TS_CAL;
413-
414-typedef struct h3600_ts_event {
415- unsigned short pressure;
416- unsigned short x;
417- unsigned short y;
418- unsigned short pad;
419-} TS_EVENT;
420-
421-/* Deprecated - do not use */
422-typedef struct h3600_ts_return {
423- unsigned short pressure;
424- unsigned short x;
425- unsigned short y;
426- unsigned short pad;
427-} TS_RET;
428-
429-enum power_button_mode {
430- PBM_SUSPEND = 0,
431- PBM_GENERATE_KEYPRESS = 1
432-};
433-
434-
435-/* ++++++++++++++ +++++++++++++++++++++++++++++++++++++ */
436-
437-typedef struct therm_dev {
438- short data;
439-} THERM_DEV;
440-
441-#define H3600_BATT_CHEM_ALKALINE 0x01
442-#define H3600_BATT_CHEM_NICD 0x02
443-#define H3600_BATT_CHEM_NIMH 0x03
444-#define H3600_BATT_CHEM_LION 0x04
445-#define H3600_BATT_CHEM_LIPOLY 0x05
446-#define H3600_BATT_CHEM_NOT_INSTALLED 0x06
447-#define H3600_BATT_CHEM_UNKNOWN 0xff
448-
449-/* These should match the apm_bios.h definitions */
450-#define H3600_AC_STATUS_AC_OFFLINE 0x00
451-#define H3600_AC_STATUS_AC_ONLINE 0x01
452-#define H3600_AC_STATUS_AC_BACKUP 0x02 /* What does this mean? */
453-#define H3600_AC_STATUS_AC_UNKNOWN 0xff
454-
455-/* These bitfields are rarely "or'd" together */
456-#define H3600_BATT_STATUS_HIGH 0x01
457-#define H3600_BATT_STATUS_LOW 0x02
458-#define H3600_BATT_STATUS_CRITICAL 0x04
459-#define H3600_BATT_STATUS_CHARGING 0x08
460-#define H3600_BATT_STATUS_CHARGE_MAIN 0x10
461-#define H3600_BATT_STATUS_DEAD 0x20 /* Battery will not charge */
462-#define H3600_BATT_NOT_INSTALLED 0x20 /* For expansion pack batteries */
463-#define H3600_BATT_STATUS_FULL 0x40 /* Battery fully charged (and connected to AC) */
464-#define H3600_BATT_STATUS_NOBATT 0x80
465-#define H3600_BATT_STATUS_UNKNOWN 0xff
466-
467-struct battery_data {
468- unsigned char chemistry;
469- unsigned char status;
470- unsigned short voltage; /* Voltage for battery #0; unknown for battery #1 */
471- unsigned short percentage; /* Percentage of full charge */
472- unsigned short life; /* Life remaining in minutes */
473-};
474-
475-struct h3600_battery {
476- unsigned char ac_status;
477- unsigned char battery_count; /* How many batteries we have */
478- struct battery_data battery[2];
479-};
480-
481-/* -------- EEPROM and SPI Interfaces ---------------*/
482-
483-#define EEPROM_RD_BUFSIZ 6 /* EEPROM reads are 16 bits */
484-#define EEPROM_WR_BUFSIZ 5 /* Allow room for 8bit 'addr' field in buffer*/
485-#define SPI_RD_BUFSIZ 16 /* SPI reads are 8 bits */
486-#define SPI_WR_BUFSIZ 7
487-
488-/* The EEPROM is where internal programs are stored on the Amtel.
489- You probably don't want to read or write these values */
490-
491-typedef struct h3600_eeprom_read_request {
492- unsigned char addr; /* 8bit Address Offset 0-255 */
493- unsigned char len; /* Number of 16bit words to read 0-128 */
494- unsigned short buff[EEPROM_RD_BUFSIZ];
495-} EEPROM_READ;
496-
497-typedef struct h3600_eeprom_write_request {
498- unsigned char len; /* used only to compute the number of bytes to send */
499- unsigned char addr; /* 0-128 */
500- unsigned short buff[EEPROM_WR_BUFSIZ];
501-} EEPROM_WRITE;
502-
503-/* The SPI bus connects to EEPROMs located on sleeves plugged into
504- the iPAQ. You may want to read these values */
505-
506-typedef struct h3600_spi_read_request {
507- unsigned short addr; /* 16bit Address Offset 0-128 */
508- unsigned char len; /* Number of bytes to read */
509- unsigned char buff[SPI_RD_BUFSIZ];
510-} SPI_READ;
511-
512-#define SPI_READ_STATUS_BYTE 0xffff /* Use this address to read the status byte */
513-
514-typedef struct h3600_spi_write_request {
515- unsigned short len; /* used only to compute the number of bytes to send */
516- unsigned short addr; /* this 16bit address accesses a single byte */
517- unsigned char buff[SPI_WR_BUFSIZ];
518-} SPI_WRITE;
519-
520-
521-/* -------- end of EEPROM and SPI Interfaces ---------------*/
522-
523-/* User space structures for IOCTL calls */
524-
525-typedef struct h3600_ts_version {
526- unsigned char host_version[8]; /* ascii "x.yy" */
527- unsigned char pack_version[8]; /* ascii "x.yy" */
528- unsigned char boot_type; /* TODO ?? */
529-} VER_RET;
530-
531-typedef struct h3600_ts_led {
532- unsigned char OffOnBlink; /* 0=off 1=on 2=Blink */
533- unsigned char TotalTime; /* Units of 5 seconds */
534- unsigned char OnTime; /* units of 100m/s */
535- unsigned char OffTime; /* units of 100m/s */
536-} LED_IN;
537-
538-enum flite_mode {
539- FLITE_MODE1 = 1,
540- FLITE_AUTO_MODE = 1, /* for reference only */
541- FLITE_MANUAL_MODE = 2, /* Use this normally? */
542- FLITE_GET_LIGHT_SENSOR = 3 /* Returns light reading in "brightness" field */
543-};
544-enum flite_pwr {
545- FLITE_PWR_OFF = 0,
546- FLITE_PWR_ON = 1
547-};
548-
549-typedef struct h3600_ts_flite {
550- unsigned char mode;
551- unsigned char pwr;
552- unsigned char brightness;
553-} FLITE_IN;
554-
555-/*************************** Updated "universal" structures *******************/
556-
557-/* Sets backlight for both H3100 and H3600 models - technically "frontlight" for H3600 */
558-struct h3600_ts_backlight {
559- enum flite_pwr power; /* 0 = off, 1 = on */
560- unsigned char brightness; /* 0 - 255 */
561-};
562-
563-struct h3600_ts_contrast { /* Only useful on H3100 model */
564- unsigned char contrast; /* 0 - 255 */
565-};
566-
567-/* IOCTL cmds user or kernel space */
568-
569-/* Use 'f' as magic number */
570-#define IOC_H3600_TS_MAGIC 'f'
571-
572-/* TODO: Some of these IOWR values are just plain wrong */
573-#define GET_VERSION _IOR(IOC_H3600_TS_MAGIC, 1, struct h3600_ts_version )
574-#define READ_EEPROM _IOWR(IOC_H3600_TS_MAGIC, 2, struct h3600_eeprom_read_request)
575-#define WRITE_EEPROM _IOWR(IOC_H3600_TS_MAGIC, 3, struct h3600_eeprom_write_request)
576-#define GET_THERMAL _IOR(IOC_H3600_TS_MAGIC, 4, struct therm_dev)
577-#define LED_ON _IOW(IOC_H3600_TS_MAGIC, 5, struct h3600_ts_led)
578-#define GET_BATTERY_STATUS _IOR(IOC_H3600_TS_MAGIC, 6, struct h3600_battery)
579-#define FLITE_ON _IOW(IOC_H3600_TS_MAGIC, 7, struct h3600_ts_flite)
580-#define READ_SPI _IOWR(IOC_H3600_TS_MAGIC, 8, struct h3600_spi_read_request)
581-#define WRITE_SPI _IOWR(IOC_H3600_TS_MAGIC, 9, struct h3600_spi_write_request)
582-#define TS_GET_CAL _IOR(IOC_H3600_TS_MAGIC, 10, struct h3600_ts_calibration)
583-#define TS_SET_CAL _IOW(IOC_H3600_TS_MAGIC, 11, struct h3600_ts_calibration)
584-
585-/* New IOCTL interfaces - defined to be more user friendly */
586-#define TS_GET_BACKLIGHT _IOR(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)
587-#define TS_SET_BACKLIGHT _IOW(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)
588-#define TS_GET_CONTRAST _IOR(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast)
589-#define TS_SET_CONTRAST _IOW(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast)
590-
591-#endif
592Index: xtscal-0.6.3/Makefile.am
593===================================================================
594--- xtscal-0.6.3.orig/Makefile.am 2004-06-02 23:07:13.000000000 +0100
595+++ xtscal-0.6.3/Makefile.am 2007-06-30 15:46:03.000000000 +0100
596@@ -1,11 +1,8 @@
597-libexec_PROGRAMS = xtscal.bin
598-bin_SCRIPTS = xtscal
599+libexec_PROGRAMS = xtscal
600
601-xtscal_bin_SOURCES = main.c calibrate.c calibrate.h h3600_ts.h
602+xtscal_SOURCES = main.c calibrate.c calibrate.h
603
604-xtscal_bin_LDADD = @XTSCAL_LIBS@
605+xtscal_LDADD = @XTSCAL_LIBS@
606
607 INCLUDES = @XTSCAL_CFLAGS@ -DNR_POINTS=5
608
609-include gpe-dist.am
610-
diff --git a/meta/packages/xtscal/xtscal/formfactor.patch b/meta/packages/xtscal/xtscal/formfactor.patch
deleted file mode 100644
index 79548000bc..0000000000
--- a/meta/packages/xtscal/xtscal/formfactor.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1---
2 xtscal.in | 17 ++---------------
3 1 file changed, 2 insertions(+), 15 deletions(-)
4
5Index: xtscal-0.6.3/xtscal.in
6===================================================================
7--- xtscal-0.6.3.orig/xtscal.in 2007-06-29 16:46:18.000000000 +0100
8+++ xtscal-0.6.3/xtscal.in 2007-06-29 16:48:18.000000000 +0100
9@@ -1,19 +1,6 @@
10 #!/bin/sh
11
12-module_id() {
13- # Get model name
14- echo `grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z`
15-}
16-
17-case `module_id` in
18- "HP IPAQ H3100" | "HP IPAQ H3800" )
19- ARGS="-rotate 90" ;;
20- "HP IPAQ H3600" | "HP IPAQ H3700" | "HP IPAQ H3900" | *COLLIE | *POODLE)
21- ARGS="-rotate 270" ;;
22- # H2200: works without rotation
23-esac
24+. /etc/formfactor/config
25
26 # the things we do for autoconf
27-prefix=@prefix@
28-exec_prefix=@exec_prefix@
29-exec @libexecdir@/xtscal.bin $ARGS $*
30+exec @libexecdir@/xtscal.bin -rotate ${DISPLAY_ORIENTATION} $*
diff --git a/meta/packages/xtscal/xtscal_0.6.3.bb b/meta/packages/xtscal/xtscal_0.6.3.bb
index 19732101d4..6c6cd063ea 100644
--- a/meta/packages/xtscal/xtscal_0.6.3.bb
+++ b/meta/packages/xtscal/xtscal_0.6.3.bb
@@ -2,14 +2,12 @@ LICENSE = "GPL"
2DESCRIPTION = "Touchscreen calibration utility" 2DESCRIPTION = "Touchscreen calibration utility"
3SECTION = "x11/base" 3SECTION = "x11/base"
4 4
5DEPENDS = "virtual/libx11 libxft libxrandr xcalibrate" 5DEPENDS = "virtual/libx11 libxft libxcalibrate"
6RDEPENDS = "formfactor"
7 6
8PR = "r3" 7PR = "r5"
9 8
10SRC_URI = "${GPE_MIRROR}/xtscal-${PV}.tar.bz2 \ 9SRC_URI = "${GPE_MIRROR}/xtscal-${PV}.tar.bz2 \
11 file://change-cross.patch;patch=1 \ 10 file://change-cross.patch;patch=1 \
12 file://formfactor.patch;patch=1 \
13 file://cleanup.patch;patch=1" 11 file://cleanup.patch;patch=1"
14 12
15inherit autotools 13inherit autotools