diff -urN qtopia-free-2.2.0.orig/qt2/src/kernel/qabstractlayout.cpp qtopia-free-2.2.0/qt2/src/kernel/qabstractlayout.cpp
--- qtopia-free-2.2.0.orig/qt2/src/kernel/qabstractlayout.cpp	2005-11-11 11:38:12.000000000 +0900
+++ qtopia-free-2.2.0/qt2/src/kernel/qabstractlayout.cpp	2009-10-31 13:05:01.984153919 +0900
@@ -345,8 +345,10 @@
 	    sh = w->sizeHint();
 	    s.setWidth( sh.width() );
 	}
+	//if ( w->sizePolicy().mayShrinkVertically() )
+	    //s.setHeight( w->minimumSizeHint().height() ); Modified for GP2X/Wiz 2009.9.15
 	if ( w->sizePolicy().mayShrinkVertically() )
-	    s.setHeight( w->minimumSizeHint().height() );
+	    s.setHeight( 1 );
 	else
 	    s.setHeight( sh.isValid() ? sh.height() : w->sizeHint().height() );
     }
diff -urN qtopia-free-2.2.0.orig/qt2/src/kernel/qkeyboard_qws.cpp qtopia-free-2.2.0/qt2/src/kernel/qkeyboard_qws.cpp
--- qtopia-free-2.2.0.orig/qt2/src/kernel/qkeyboard_qws.cpp	2005-11-11 11:38:12.000000000 +0900
+++ qtopia-free-2.2.0/qt2/src/kernel/qkeyboard_qws.cpp	2009-10-31 13:05:01.984153919 +0900
@@ -54,6 +54,8 @@
 #include <errno.h>
 #include <signal.h>
 
+#include <time.h>
+
 #ifdef QT_QWS_TIP2
 #include <qcopchannel_qws.h>
 #endif
@@ -602,6 +604,27 @@
     struct termios origTermData;
 };
 
+/*NK's patch for GP2X Mykee */
+#define MYKEERTC
+class QWSVtKeyboardHandler : public QWSPC101KeyboardHandler
+{
+    Q_OBJECT
+public:
+    QWSVtKeyboardHandler(const QString&);
+    virtual ~QWSVtKeyboardHandler();
+
+private slots:
+    void readKeyboardData();
+
+private:
+    struct termios origTermData;
+    int state;
+#ifdef MYKEERTC
+    int rtc_mode;
+    unsigned char rtcbuf[10];
+#endif
+};
+
 
 // can't ifdef this out because moc runs on this file
 class QWSSamsungKeypadHandler : public QWSPC101KeyboardHandler
@@ -630,6 +653,24 @@
     QWSServer::KeyMap *lastPress;
 };
 
+// GP2X/Wiz button support : 2009.7.15
+// Original by NK
+class QGP2XButtonHandler : public QWSPC101KeyboardHandler
+{
+    Q_OBJECT
+public:
+    QGP2XButtonHandler(const QString&);
+    virtual ~QGP2XButtonHandler();
+
+private slots:
+    void readKeyboardData();
+	
+private:
+    unsigned long prev;
+    QTimer* timer;
+};
+// END
+
 class QWSVr41xxButtonsHandler : public QWSKeyboardHandler
 {
     Q_OBJECT
@@ -1264,6 +1305,152 @@
 	doKey(buf[loop]);
 }
 
+//
+// Vt keyboard : NK's patch for GP2X's Mykee
+//
+#define E(x) (0x0100 | x)
+static const short mykee_map[128] =
+{
+	0,
+	1, 59, 60, 61, 62, 63, 64, 41, 26, 27, 51, 52, 53, 13,
+	2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14,
+	15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 28,
+	58, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
+	42, 44, 45, 46, 47, 48, 49, 50, E(72), 54, E(73),
+	29, 0, 56, 40, 43, 57, E(75), E(80), E(77), E(81),
+	0,
+};
+
+static const short mykee_extmap[128] =
+{
+	0,
+	1, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 87, 88, 13,
+	2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14,
+	15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 28,
+	58, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
+	42, 44, 45, 46, 47, 48, 49, 50, E(72), 54, E(71),
+	29, 0, 56, 40, 43, 57, E(75), E(80), E(77), E(79),
+	0,
+};
+#undef E(x)
+
+QWSVtKeyboardHandler::QWSVtKeyboardHandler(const QString& device)
+{
+    kbdFD=open(device.isEmpty() ? "/dev/tty" : device.latin1(), O_RDWR | O_NDELAY, 0);
+
+    if ( kbdFD >= 0 ) {
+	QSocketNotifier *notifier;
+	notifier = new QSocketNotifier( kbdFD, QSocketNotifier::Read, this );
+	connect( notifier, SIGNAL(activated(int)),this,
+		 SLOT(readKeyboardData()) );
+
+	// save for restore.
+	tcgetattr( kbdFD, &origTermData );
+
+	struct termios termdata;
+	tcgetattr( kbdFD, &termdata );
+#ifdef MYKEERTC
+	termdata.c_cflag = B115200 | CS8 | CLOCAL | CREAD;
+#else
+	termdata.c_cflag = B9600 | CS8 | CLOCAL | CREAD;
+#endif
+	termdata.c_iflag = (IGNPAR | IGNBRK) & (~PARMRK) & (~ISTRIP);
+	termdata.c_oflag = 0;
+	termdata.c_lflag = 0;
+	termdata.c_cc[VTIME]=0;
+	termdata.c_cc[VMIN]=1;
+	tcsetattr(kbdFD, TCSANOW, &termdata);
+
+	state = 0;
+    }
+}
+
+QWSVtKeyboardHandler::~QWSVtKeyboardHandler()
+{
+    if (kbdFD >= 0)
+    {
+	tcsetattr(kbdFD, TCSANOW, &origTermData);
+	::close(kbdFD);
+	kbdFD = -1;
+    }
+}
+
+void QWSVtKeyboardHandler::readKeyboardData()
+{
+    unsigned char buf[81];
+    unsigned char code;
+    short scancode;
+    bool pressed;
+
+    int n = ::read(kbdFD, buf, 80 );
+    for ( int loop = 0; loop < n; loop++ ) {
+	code = buf[loop];
+#ifdef MYKEERTC
+	if(code == 0x65) {
+	    // rtc read start
+	    rtc_mode = 1;
+	    continue;
+	}
+
+	if(code == 0x66) {
+	    // rtc write ok
+	    rtc_mode = 0;
+	    continue;
+	}
+
+	if(rtc_mode && (rtc_mode < 8)) {
+	    if(code == 0xff) {
+		// apply
+		struct tm wtm;
+		struct timeval tv;
+
+		wtm.tm_year = 100 + rtcbuf[0];
+		wtm.tm_mon = rtcbuf[1] - 1;
+		wtm.tm_mday = rtcbuf[2];
+		wtm.tm_hour = rtcbuf[3];
+		wtm.tm_min = rtcbuf[4];
+		wtm.tm_sec = rtcbuf[5];
+
+		tv.tv_sec = mktime(&wtm) - timezone;
+
+		if(tv.tv_sec != -1) {
+		    stime(&tv.tv_sec);
+		    // success
+		} else {
+		    // error
+		}
+		rtc_mode = 0;
+	    } else if (rtc_mode == 7) {
+		// error
+		rtc_mode = 0;
+	    } else {
+		// read
+		rtcbuf[rtc_mode-1] = ((code >> 4) * 10) + (code & 0x0f);
+		rtc_mode++;
+	    }
+	    continue;
+	}
+#else
+	if(code == 0x55)
+	    continue;
+#endif
+	pressed = !(code & 0x80);
+	code &= 0x7F;
+
+	if(code == 0x3E)
+	    state = pressed;
+
+	scancode = (state ? mykee_extmap[code] : mykee_map[code]);
+
+	if(scancode) {
+	    if((scancode >> 8) == 1)
+		doKey(224);
+
+	    doKey((scancode & 0x7F) | (pressed ? 0 : 0x80));
+	}
+    }
+}
+
 typedef struct {
     unsigned short key;
     unsigned short status;
@@ -1429,6 +1616,90 @@
     }
 }
 
+// GP2X/Wiz button support 2009.7.15
+// Original by NK
+QGP2XButtonHandler::QGP2XButtonHandler(const QString& device)
+{
+    kbdFD=open(device.isEmpty()?"/dev/GPIO":device.latin1(),O_RDONLY,0);
+    if(kbdFD<0)
+        qWarning("could not open keypad device");
+
+    if(kbdFD>=0) {
+        prev=0;
+        
+        timer=new QTimer(this);
+        connect(timer,SIGNAL(timeout()),this,SLOT(readKeyboardData()));
+        timer->start(2000,TRUE);
+    }
+}
+
+QGP2XButtonHandler::~QGP2XButtonHandler()
+{
+    if(kbdFD>=0)
+    {
+        ::close(kbdFD);
+        kbdFD=-1;
+    }
+}
+
+#define GPX_VK_UP		(1<<0)
+#define GPX_VK_UP_LEFT		(1<<1)
+#define GPX_VK_LEFT		(1<<2)
+#define GPX_VK_DOWN_LEFT	(1<<3)
+#define GPX_VK_DOWN		(1<<4)
+#define GPX_VK_DOWN_RIGHT	(1<<5)
+#define GPX_VK_RIGHT		(1<<6)
+#define GPX_VK_UP_RIGHT		(1<<7)
+
+#define GPX_VK_START		(1<<8)
+#define GPX_VK_SELECT		(1<<9)
+#define GPX_VK_FL		(1<<10)
+#define GPX_VK_FR		(1<<11)
+#define GPX_VK_FA		(1<<12)
+#define GPX_VK_FB		(1<<13)
+#define GPX_VK_FX		(1<<14)
+#define GPX_VK_FY		(1<<15)
+
+#define GPX_VK_VOL_UP		(1<<16)
+#define GPX_VK_VOL_DOWN		(1<<17)
+#define GPX_VK_TAT		(1<<18)
+
+void QGP2XButtonHandler::readKeyboardData()
+{
+    if(kbdFD<0) return;	
+    timer->start(20,TRUE);
+
+    unsigned long input;
+    int n=::read(kbdFD,&input,sizeof(input));
+    if(n<sizeof(input))
+    {
+        qWarning("Error reading input from keypad device.");
+        return;
+    }
+
+    unsigned long changed=input^prev;
+
+    if(changed&GPX_VK_START) doKey(1|(input&GPX_VK_START?0x00:0x80));  //Esc
+    if(changed&GPX_VK_SELECT) doKey(56|(input&GPX_VK_SELECT?0x00:0x80)); //Alt
+    if(changed&GPX_VK_FA) doKey(15|(input&GPX_VK_FA?0x00:0x80)); //Tab 
+    if(changed&GPX_VK_FB) doKey(28|(input&GPX_VK_FB?0x00:0x80)); //Enter
+    if(changed&GPX_VK_FX) doKey(14|(input&GPX_VK_FX?0x00:0x80)); //Backspace
+    if(changed&GPX_VK_FY) doKey(57|(input&GPX_VK_FY?0x00:0x80)); //Space
+    if(changed&GPX_VK_FL) doKey(104|(input&GPX_VK_FL?0x00:0x80)); //PGUP
+    if(changed&GPX_VK_FR) doKey(109|(input&GPX_VK_FR?0x00:0x80)); //PGDN
+
+    if(changed&GPX_VK_UP) doKey(103|(input&GPX_VK_UP?0x00:0x80));
+    if(changed&GPX_VK_DOWN) doKey(108|(input&GPX_VK_DOWN?0x00:0x80));
+    if(changed&GPX_VK_LEFT) doKey(105|(input&GPX_VK_LEFT?0x00:0x80));
+    if(changed&GPX_VK_RIGHT) doKey(106|(input&GPX_VK_RIGHT?0x00:0x80));
+
+    if(changed&GPX_VK_VOL_UP) doKey(117|(input&GPX_VK_VOL_UP?0x00:0x80)); //F17
+    if(changed&GPX_VK_VOL_DOWN) doKey(114|(input&GPX_VK_VOL_DOWN?0x00:0x80)); //F14
+
+    prev=input;
+}
+// End
+
 /*
  * YOPY buttons driver
  * Contributed by Ron Victorelli (victorrj at icubed.com)
@@ -1773,10 +2044,15 @@
 	handler = new QWSUsbKeyboardHandler(device);
     } else if ( type == "TTY" ) {
 	handler = new QWSTtyKeyboardHandler(device);
-    } 
+    } else if( type == "VT") {
+        handler = new QWSVtKeyboardHandler(device); //NK's patch
+    }
     else if( type == "Samsung" )  {
 	handler = new QWSSamsungKeypadHandler(device);
     } 
+    else if( type == "GP2X") {
+        handler = new QGP2XButtonHandler(device); //Added for GP2X/Wiz
+    }
     else {
 	qWarning( "Keyboard type %s:%s unsupported", spec.latin1(), device.latin1() );
     }
diff -urN qtopia-free-2.2.0.orig/qt2/src/kernel/qwindowsystem_qws.cpp qtopia-free-2.2.0/qt2/src/kernel/qwindowsystem_qws.cpp
--- qtopia-free-2.2.0.orig/qt2/src/kernel/qwindowsystem_qws.cpp	2005-11-11 11:38:12.000000000 +0900
+++ qtopia-free-2.2.0/qt2/src/kernel/qwindowsystem_qws.cpp	2009-10-31 13:05:01.988647716 +0900
@@ -2858,8 +2858,9 @@
 	{
 #endif
 	    QWSMouseHandler* h = newMouseHandler(ms);
-	    if ( h && !h->inherits("QCalibratedMouseHandler") )
-		needviscurs = TRUE;
+            // Deleted to hide cursor
+	    /*if ( h && !h->inherits("QCalibratedMouseHandler") )
+		needviscurs = TRUE;*/
 	}
     }
 #ifndef QT_NO_QWS_CURSOR
diff -urN qtopia-free-2.2.0.orig/qt2/src/kernel/qwsmouse_qws.cpp qtopia-free-2.2.0/qt2/src/kernel/qwsmouse_qws.cpp
--- qtopia-free-2.2.0.orig/qt2/src/kernel/qwsmouse_qws.cpp	2005-11-11 11:38:12.000000000 +0900
+++ qtopia-free-2.2.0/qt2/src/kernel/qwsmouse_qws.cpp	2009-10-31 13:07:51.696147834 +0900
@@ -52,6 +52,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <termios.h>
+#include <ctype.h>
 
 #include <qgfx_qws.h>
 #if !defined(_OS_QNX6_)
@@ -109,7 +110,7 @@
 #define QT_QWS_TP_JITTER_LIMIT 2
 #endif
 
-//#define QWS_CUSTOMTOUCHPANEL
+#define QWS_CUSTOMTOUCHPANEL
 
 /*!
   \class QWSMouseHandler qwsmouse_qws.h
@@ -1509,6 +1510,219 @@
 #endif
 }
 
+/* Modified code : GP2X F200's touchscreen support 2009.9.20 */
+/* Original by : GPH's SDL_v410(http://dev.gp2x.com/files/sources/SDL_v410_src.tar.gz (Firmware 4.0.2 and 4.1.1)
+     Open2X firmware's SDL source 
+     (http://open2x.svn.sourceforge.net/viewvc/open2x/trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/SDL_gp2xevents.c?revision=288&view=markup)
+      (http://open2x.svn.sourceforge.net/viewvc/open2x/trunk/libs-new/sdl/sdl/SDL-1.2.11/src/video/gp2x/gp2x_tslib.c?revision=353&view=markup)
+     (Firmware 4.0.0/4.1.0 and Open2X)*/
+#define F200_400 1
+#define F200_411 2
+
+#ifdef QWS_CUSTOMTOUCHPANEL
+typedef struct {
+  unsigned short pressure;
+  unsigned short x;
+  unsigned short y;
+  unsigned short pad;
+} TS_EVENT_400;
+
+typedef struct {
+  unsigned short xpos;
+  unsigned short ypos;
+} TS_EVENT_411;
+
+typedef struct  {
+    int evx,evy;
+    int a[7];
+} TOUCH_CAL;
+
+static int mouseFD;
+static TOUCH_CAL touch_cal;
+
+static void calibrate_400()
+{
+//F200 Firmware 4.0.0 4.1.0/Open2x touchscreen calibration
+//Copied from Open2X Firmware's SDL Library source(gp2x_tslib.c revision 353)
+    struct stat sbuf;
+    int pcal_fd;
+    char pcalbuf[200];
+    int index;
+    char* tokptr;
+    char* calfile="/etc/pointercal";
+
+    touch_cal.a[0]=6203;
+    touch_cal.a[1]=0;
+    touch_cal.a[2]=-1501397;
+    touch_cal.a[3]=0;
+    touch_cal.a[4]=-4200;
+    touch_cal.a[5]=16132680;
+    touch_cal.a[6]=65536;
+
+    TOUCH_CAL tmp_touch_cal;
+    memset(pcalbuf,0,200);
+    int got_good_values=1;
+
+    if(stat(calfile,&sbuf)==0)
+    {
+	pcal_fd=open(calfile,O_RDONLY);
+	if(pcal_fd!=-1)
+	{
+	    int bytes_read=read(pcal_fd,pcalbuf,200);
+	    if(bytes_read>0)
+	    {
+		tokptr=strtok(pcalbuf," ");
+		if(tokptr && (isdigit(*tokptr) || (*tokptr=='-')))
+		{
+		    tmp_touch_cal.a[0]=atoi(tokptr);
+		    index=1;
+		    while((index<7) && got_good_values)
+		    {
+			tokptr=strtok(NULL," ");
+			if(tokptr && (isdigit(*tokptr) || (*tokptr=='-')))
+			{
+			    tmp_touch_cal.a[index]=atoi(tokptr);
+			    index++;
+			}
+			else
+			{
+			    got_good_values=0;
+			}
+		    }
+		}
+		else
+		{
+		    got_good_values=0;
+		}
+	    }
+	    else
+	    {
+		got_good_values=0;
+	    }
+
+	    close(pcal_fd);
+	}
+	else
+	{
+	    got_good_values=0;
+	}
+
+	if(got_good_values)
+	    touch_cal=tmp_touch_cal;
+    }
+}
+
+static void calibrate_411()
+{
+    /* Read touch calibration data(For Firmware 4.0.2 and 4.1.1) 
+         Copied from GPH's SDL_v410 */
+    FILE *fp;
+
+    touch_cal.a[0]=1;
+    touch_cal.a[1]=0;
+    touch_cal.a[2]=0;
+    touch_cal.a[3]=0;
+    touch_cal.a[4]=1;
+    touch_cal.a[5]=0;
+    touch_cal.a[6]=1;
+
+    touch_cal.evx=0;
+    touch_cal.evy=0;
+
+    fp = fopen("/etc/pointercal", "r");
+    if(fp) {
+        fscanf(fp,"%d %d %d %d %d %d %d",&touch_cal.a[0],&touch_cal.a[1],&touch_cal.a[2],
+		&touch_cal.a[3],&touch_cal.a[4],&touch_cal.a[5],&touch_cal.a[6]);
+        fclose(fp);
+    }
+}
+
+static int readTPanel_400(int* pressure,bool* isemit)
+{
+//F200 Firmware 4.0.0, 4.1.0/Open2x touchscreen read
+//Copied from Open2X Firmware's SDL Library source(SDL_gp2xevents.c revision 288)
+    TS_EVENT_400 data;
+    int x=0,y=0;
+
+    int ret=read(mouseFD,&data,sizeof(TS_EVENT_400));
+    if(ret==sizeof(TS_EVENT_400))
+    {
+	if(data.pressure>=35000)
+	{
+	    if(touch_cal.a[6] == 65536)
+	    {
+		x = (touch_cal.a[2]+touch_cal.a[0]*data.x)>>16;
+		y = (touch_cal.a[5]+touch_cal.a[4]*data.y)>>16;
+	    }
+	    else
+	    {
+		x = (touch_cal.a[2]+touch_cal.a[0]*data.x)/touch_cal.a[6];
+		y = (touch_cal.a[5]+touch_cal.a[4]*data.y)/touch_cal.a[6];
+	    }
+
+	    QPoint q(x,y);
+	    mousePos=q;
+	}
+	else
+	{
+	    data.pressure=0;
+	}
+
+	*pressure=data.pressure;
+    }
+    else
+    {
+	*isemit=FALSE;
+    }
+
+    return ret;
+}
+
+static int readTPanel_411(int* pressure,bool* isemit)
+{
+    /* Appended code : For GP2X F200's(Firmware 4.0.2 and 4.1.1) touchscreen support 2009.7.16 
+         Copied from GPH's SDL_v410*/
+    TS_EVENT_411 data[3];
+    int dx=0,dy=0;
+
+    int ret=read(mouseFD,(char*)&data,sizeof(data));
+    ret/=sizeof(data);
+    if(ret>0)
+    {
+        int i,x=0,y=0;
+    	for(i=0;i<ret;++i) {
+            x+=data[i].xpos;
+            y+=data[i].ypos;
+    	}
+            
+        x/=ret;
+        y/=ret;
+            
+        dx=touch_cal.evx-x;
+        dy=touch_cal.evy-y;
+ 
+        if((dx*dx)+(dy*dy)>150) {
+            touch_cal.evx=x;
+            touch_cal.evy=y;
+
+            x=(touch_cal.a[2]+touch_cal.a[0]*touch_cal.evx+touch_cal.a[1]*touch_cal.evy )/touch_cal.a[6];
+            y=(touch_cal.a[5]+touch_cal.a[3]*touch_cal.evx+touch_cal.a[4]*touch_cal.evy )/touch_cal.a[6];
+
+	    QPoint q(x,y);
+	    mousePos=q;
+
+	    *pressure=1;
+	    return ret;
+        }
+	*isemit=FALSE;
+    }
+    else if(ret<0)
+	*isemit=FALSE;
+
+    return ret;
+}
+#endif
+
 class QCustomTPanelHandlerPrivate : public QWSMouseHandler {
     Q_OBJECT
 public:
@@ -1516,7 +1730,9 @@
     ~QCustomTPanelHandlerPrivate();
 
 private:
-    int mouseFD;
+    int (*readTPanel)(int* pressure,bool* isemit);
+
+    unsigned int F200_Firmware;
 private slots:
     void readMouseData();
 
@@ -1526,15 +1742,41 @@
 {
 #ifdef QWS_CUSTOMTOUCHPANEL
     mouseFD = -1;
-    if ( mouseDev.isEmpty() )
+    /*if ( mouseDev.isEmpty() )
       mouseDev = "/dev/ts";
     if ((mouseFD = open( mouseDev.local8Bit().data(), O_RDONLY)) < 0) {
         qWarning( "Cannot open %s (%s)", mouseDev.latin1(), strerror(errno));
 	return;
     } else {
         sleep(1);
+    }*/
+
+    char* c=getenv("F200_FIRMWARE");
+    if(strcmp(c,"411")==0)
+    {
+	F200_Firmware=F200_411;
+	mouseFD = open( "/dev/touchscreen/wm97xx", O_RDWR|O_NDELAY);
+	readTPanel=readTPanel_411;
+    }
+    else
+    {
+	F200_Firmware=F200_400;
+	mouseFD = open( "/dev/touchscreen/wm97xx", O_RDONLY|O_NOCTTY);
+	readTPanel=readTPanel_400;
+    }
+
+    if (mouseFD < 0) {
+        qWarning( "Cannot open %s (%s)", mouseDev.latin1(), strerror(errno));
+	return;
+    } else {
+        sleep(1);
     }
 
+    if(F200_Firmware==F200_411)
+	calibrate_411();
+    else
+	calibrate_400();
+
     QSocketNotifier *mouseNotifier;
     mouseNotifier = new QSocketNotifier( mouseFD, QSocketNotifier::Read,
 					 this );
@@ -1550,28 +1792,26 @@
 	close(mouseFD);
 }
 
-struct CustomTPdata {
-
-  unsigned char status;
-  unsigned short xpos;
-  unsigned short ypos;
-
-};
-
 void QCustomTPanelHandlerPrivate::readMouseData()
 {
 #ifdef QWS_CUSTOMTOUCHPANEL
     if(!qt_screen)
 	return;
-    CustomTPdata data;
-
-    unsigned char data2[5];
 
-    int ret;
-
-    ret=read(mouseFD,data2,5);
+    //F200 touchscreen code 2009.9.20
+    int pressure=0;
+    bool isemit=TRUE;
+    int ret=(*readTPanel)(&pressure,&isemit);
+    
+    if(isemit && (ret>=0))
+    {
+	if(pressure>0)
+	    emit mouseChanged(mousePos,Qt::LeftButton);
+	else
+	    emit mouseChanged(mousePos,0);
+    }
 
-    if(ret==5) {
+    /*if(ret==5) {
 	data.status=data2[0];
 	data.xpos=(data2[1] << 8) | data2[2];
 	data.ypos=(data2[3] << 8) | data2[4];
@@ -1584,10 +1824,11 @@
 	} else {
 	  emit mouseChanged(mousePos,0);
 	}
-    }
+    }*/
     if(ret<0) {
 	qDebug("Error %s",strerror(errno));
     }
+
 #endif
 }
 
diff -urN qtopia-free-2.2.0.orig/qt2/src/tools/qvaluestack.h qtopia-free-2.2.0/qt2/src/tools/qvaluestack.h
--- qtopia-free-2.2.0.orig/qt2/src/tools/qvaluestack.h	2005-11-11 11:38:12.000000000 +0900
+++ qtopia-free-2.2.0/qt2/src/tools/qvaluestack.h	2009-10-31 13:05:01.988647716 +0900
@@ -54,7 +54,7 @@
     {
 	T elem( this->last() );
 	if ( !this->isEmpty() )
-	    remove( this->fromLast() );
+	    this->remove( this->fromLast() );
 	return elem;
     }
     T& top() { return this->last(); }
diff -urN qtopia-free-2.2.0.orig/qt2/tools/qvfb/qvfbview.cpp qtopia-free-2.2.0/qt2/tools/qvfb/qvfbview.cpp
--- qtopia-free-2.2.0.orig/qt2/tools/qvfb/qvfbview.cpp	2005-11-11 11:38:15.000000000 +0900
+++ qtopia-free-2.2.0/qt2/tools/qvfb/qvfbview.cpp	2009-10-31 13:05:01.988647716 +0900
@@ -36,13 +36,15 @@
 #include <sys/types.h>
 #include <sys/shm.h>
 #include <sys/mman.h>
-#include <asm/page.h>
+//#include <asm/page.h>
 #include <sys/stat.h>
 #include <sys/sem.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <math.h>
 
+#define PAGE_SIZE sysconf(_SC_PAGESIZE)
+
 QVFbView::QVFbView( int display_id, int _w, int _h, int d, Rotation r, bool use_mmap, QWidget *parent,
 		    const char *name, uint flags )
     : QScrollView( parent, name, flags ), lockId(-1), emulateTouchscreen(false), emulateLcdScreen(false)
diff -urN qtopia-free-2.2.0.orig/qtopia/etc/defaultbuttons-arm.conf qtopia-free-2.2.0/qtopia/etc/defaultbuttons-arm.conf
--- qtopia-free-2.2.0.orig/qtopia/etc/defaultbuttons-arm.conf	1970-01-01 09:00:00.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/etc/defaultbuttons-arm.conf	2009-10-31 13:05:01.988647716 +0900
@@ -0,0 +1,5 @@
+[Translation]
+File=QtopiaDefaults
+Context=Buttons
+[Device]
+PrimaryInput=Touchscreen
diff -urN qtopia-free-2.2.0.orig/qtopia/src/3rdparty/applications/embeddedkonsole/konsole.cpp qtopia-free-2.2.0/qtopia/src/3rdparty/applications/embeddedkonsole/konsole.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/3rdparty/applications/embeddedkonsole/konsole.cpp	2005-11-11 11:43:22.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/3rdparty/applications/embeddedkonsole/konsole.cpp	2009-10-31 13:05:01.988647716 +0900
@@ -243,7 +243,8 @@
     putenv((char*)"COLORTERM="); // to trigger mc's color detection
   setCaption( Konsole::tr("Terminal") );
 
-  setMinimumSize(200, 200);
+  //setMinimumSize(200, 200); Modified for GP2X/Wiz 2009.9.17
+  setMinimumSize(200, 120);
 
   b_scroll = TRUE; // histon;
   n_keytab = 0;
diff -urN qtopia-free-2.2.0.orig/qtopia/src/games/qasteroids/toplevel.cpp qtopia-free-2.2.0/qtopia/src/games/qasteroids/toplevel.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/games/qasteroids/toplevel.cpp	2005-11-11 11:43:36.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/games/qasteroids/toplevel.cpp	2009-10-31 13:05:01.992647172 +0900
@@ -303,11 +303,16 @@
     actions.insert( Qt::Key_Right, RotateRight );
     actions.insert( Qt::Key_Down, Brake );
 #ifndef QTOPIA_PHONE
-    actions.insert( Qt::Key_Enter, Shoot );
+    /*actions.insert( Qt::Key_Enter, Shoot );
     actions.insert( Qt::Key_Z, Teleport );
     actions.insert( Qt::Key_Space, Shoot );
-    actions.insert( Qt::Key_P, Pause );
+    actions.insert( Qt::Key_P, Pause );*/
 
+    actions.insert( Qt::Key_Return, Shoot );
+    actions.insert( Qt::Key_Tab, Teleport );
+    actions.insert( Qt::Key_Space, Shield );
+    actions.insert( Qt::Key_Alt, Pause );
+    actions.insert( Qt::Key_Backspace, Launch );
 #else
     actions.insert( Qt::Key_Select, Shoot );
     actions.insert( Qt::Key_Context1, Shield );
@@ -317,10 +322,11 @@
 #endif
 
 #ifndef QTOPIA_PHONE
-    const QValueList<DeviceButton>& buttons = DeviceButtonManager::instance().buttons();
+    /*const QValueList<DeviceButton>& buttons = DeviceButtonManager::instance().buttons();
     actions.insert( buttons[0].keycode(), Launch );
     actions.insert( buttons[1].keycode(), Shield );
-    launchButtonText = buttons[0].userText();
+    launchButtonText = buttons[0].userText();*/
+    launchButtonText = tr("X");
 #else
     launchButtonText = tr("Select Key");
 #endif
diff -urN qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/custom-linux-arm-g++.cpp qtopia-free-2.2.0/qtopia/src/libraries/qtopia/custom-linux-arm-g++.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/custom-linux-arm-g++.cpp	1970-01-01 09:00:00.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/libraries/qtopia/custom-linux-arm-g++.cpp	2009-10-31 13:05:01.992647172 +0900
@@ -0,0 +1,128 @@
+/**********************************************************************
+** Copyright (C) 2000-2005 Trolltech AS.  All rights reserved.
+**
+** This file is part of the Qtopia Environment.
+** 
+** This program is free software; you can redistribute it and/or modify it
+** under the terms of the GNU General Public License as published by the
+** Free Software Foundation; either version 2 of the License, or (at your
+** option) any later version.
+** 
+** A copy of the GNU GPL license version 2 is included in this package as 
+** LICENSE.GPL.
+**
+** This program is distributed in the hope that it will be useful, but
+** WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
+** See the GNU General Public License for more details.
+**
+** In addition, as a special exception Trolltech gives permission to link
+** the code of this program with Qtopia applications copyrighted, developed
+** and distributed by Trolltech under the terms of the Qtopia Personal Use
+** License Agreement. You must comply with the GNU General Public License
+** in all respects for all of the code used other than the applications
+** licensed under the Qtopia Personal Use License Agreement. If you modify
+** this file, you may extend this exception to your version of the file,
+** but you are not obligated to do so. If you do not wish to do so, delete
+** this exception statement from your version.
+** 
+** See http://www.trolltech.com/gpl/ for GPL licensing information.
+**
+** Contact info@trolltech.com if any conditions of this licensing are
+** not clear to you.
+**
+**********************************************************************/
+
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/ioctl.h>
+
+#include "qtopia/power.h"
+
+//GP2X F200's Screen Power code 2009.9.20
+typedef struct {
+    unsigned short batt;
+    unsigned short remocon;
+} MMSP2ADC;
+
+//Toggle F200's screen power ON/OFF
+static void GP2X_ToggleScreenPower(unsigned int flag)
+{
+    unsigned long cmd;
+    int fd=open("/dev/GPIO",O_RDWR | O_NDELAY);
+
+    if(fd>=0)
+    {
+        if(flag==0)
+            cmd=0;
+        else
+            cmd=1;
+
+        ioctl(fd,_IOR('v',0x00,unsigned long),cmd);
+        close(fd);
+    }
+}
+
+int qpe_sysBrightnessSteps()
+{
+    return 1; //ON or Off
+}
+
+
+void qpe_setBrightness(int bright)
+{
+    GP2X_ToggleScreenPower(bright);
+}
+
+void PowerStatusManager::getStatus()
+{
+#ifdef Q_WS_QWS
+    /*int ac, bs, bf, pc, sec;
+    if ( getProcApmStatus( ac, bs, bf, pc, sec ) ) {
+	ps->percentRemain = pc;
+	ps->secsRemain = sec;
+	ps->percentAccurate = TRUE;
+    } else {
+	ps->percentRemain = 100;
+	ps->secsRemain = -1;
+	ps->percentAccurate = FALSE;
+    }*/
+
+    //GP2X F200's battery check : 2009.9.18
+    int fd=::open("/dev/mmsp2adc",O_RDONLY);
+    MMSP2ADC val;
+
+    if(fd>=0)
+    {
+        if(::read(fd,(char*)&val,sizeof(MMSP2ADC))==4)
+        {
+	    ps->bs = PowerStatus::NotPresent;
+	    ps->ac = PowerStatus::Offline;
+            ps->percentAccurate = FALSE;
+            ps->secsRemain = -1;
+
+            switch(val.batt)
+            {
+                case 0:
+                    ps->bs = PowerStatus::High;
+                    ps->percentRemain = 100;
+                    break;
+                case 1:
+                    ps->bs = PowerStatus::Low;
+                    ps->percentRemain = 60;
+                    break;
+                case 2:
+                    ps->bs = PowerStatus::VeryLow;
+                    ps->percentRemain = 30;
+                    break;
+                case 3:
+                    ps->bs = PowerStatus::Critical;
+                    ps->percentRemain = 5;
+                    break;
+            }
+        }
+
+        ::close(fd);
+    }
+#endif
+}
diff -urN qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/custom-linux-arm-g++.h qtopia-free-2.2.0/qtopia/src/libraries/qtopia/custom-linux-arm-g++.h
--- qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/custom-linux-arm-g++.h	1970-01-01 09:00:00.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/libraries/qtopia/custom-linux-arm-g++.h	2009-10-31 13:05:01.992647172 +0900
@@ -0,0 +1,108 @@
+/**********************************************************************
+** Copyright (C) 2000-2005 Trolltech AS.  All rights reserved.
+**
+** This file is part of the Qtopia Environment.
+** 
+** This program is free software; you can redistribute it and/or modify it
+** under the terms of the GNU General Public License as published by the
+** Free Software Foundation; either version 2 of the License, or (at your
+** option) any later version.
+** 
+** A copy of the GNU GPL license version 2 is included in this package as 
+** LICENSE.GPL.
+**
+** This program is distributed in the hope that it will be useful, but
+** WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
+** See the GNU General Public License for more details.
+**
+** In addition, as a special exception Trolltech gives permission to link
+** the code of this program with Qtopia applications copyrighted, developed
+** and distributed by Trolltech under the terms of the Qtopia Personal Use
+** License Agreement. You must comply with the GNU General Public License
+** in all respects for all of the code used other than the applications
+** licensed under the Qtopia Personal Use License Agreement. If you modify
+** this file, you may extend this exception to your version of the file,
+** but you are not obligated to do so. If you do not wish to do so, delete
+** this exception statement from your version.
+** 
+** See http://www.trolltech.com/gpl/ for GPL licensing information.
+**
+** Contact info@trolltech.com if any conditions of this licensing are
+** not clear to you.
+**
+**********************************************************************/
+
+#if defined(__GNUC__) && (__GNUC__ > 2)
+#define QPE_USE_MALLOC_FOR_NEW
+#endif
+
+#define QPE_FONT_HEIGHT_TO_ICONSIZE(x) (x+1)
+#define QPE_DEFAULT_TODAY_MODE "Daily"
+
+//#define QPE_HAVE_MEMALERTER
+//#define QPE_LAZY_APPLICATION_SHUTDOWN
+
+// Datebook on Qtopia Desktop sends the "current time"
+// to Qtopia after it has finished synchronizing.
+// This define tells Qtopia to set it's clock from the
+// time received so that the clock on the PDA is kept
+// in sync with the desktop.
+#define QPE_SYNC_CLOCK_FROM_QD
+
+// Do all the processing but don't actually write the
+// clock. (eg. Qtopia is running on a PC under QVfb)
+#define QPE_SYNC_CLOCK_FROM_QD_FAKE
+
+// The serial device for AT command access to the phone
+// hardware:
+//
+//#define QTOPIA_PHONE_DEVICE "/dev/ttyS0"
+//
+// Alternative for GSM0710 usage:
+//#define QTOPIA_PHONE_DEVICE "/dev/ttyU0"
+// The serial device for low-priority AT commands.
+//#define QTOPIA_PHONE_DEVICE_LOW "/dev/ttyU1"
+//
+// The baud rate for the serial connection:
+//
+//#define QTOPIA_PHONE_RATE 38400
+
+// Displays the homescreen background in the phone launcher.
+#define QTOPIA_ENABLE_EXPORTED_BACKGROUNDS
+
+// Displays the homescreen background in all applications - experimental
+#define QTOPIA_ENABLE_GLOBAL_BACKGROUNDS
+
+// Builds the calibration settings app into the server.
+//#define QPE_NEED_CALIBRATION
+
+// Sets the phone vendor plugin to load (normally all plugins are loaded).
+//#define QTOPIA_PRELOAD_PHONE_PLUGIN "foovendor"
+
+// Set the maximum GSM 07.10 multiplexing frame size (default is 31).
+//#define MAX_GSM0710_FRAME_SIZE 31
+
+// Set additional parameters to add to the AT+CMUX command after frame size.
+//#define QTOPIA_EXTRA_CMUX_PARAMS ""
+
+// Define this to use the "advanced" GSM 07.10 CMUX mode instead of "basic".
+//#define QTOPIA_ADVANCED_CMUX
+
+// Define these to use direct serial ports for multiplexing channels.
+// The primary AT command channel is defined by "QTOPIA_PHONE_DEVICE".
+// Channels may be omitted if they aren't appropriate.
+//#define QTOPIA_MUX_SECONDARY_DEVICE "/dev/ttyXX"
+//#define QTOPIA_MUX_DATA_DEVICE "/dev/ttyXX"
+//#define QTOPIA_MUX_SPARE_DEVICE "/dev/ttyXX"
+//#define QTOPIA_MUX_RAW_DEVICE "/dev/ttyXX"
+
+// Define this if setup commands for GPRS data sessions should be sent
+// on the primary command channel instead of the data channel.
+//#define QTOPIA_MUX_DATA_SETUP_ON_COMMAND_CHANNEL
+
+// Define this if Wavecom-style WMUX multiplexing should be supported.
+//#define	QTOPIA_WAVECOM_MUX
+
+// Define this if you do not have a working /dev/mixer (PDA Edition only)
+//#define QTOPIA_USE_QSS_VOLUME
diff -urN qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/qdawg.cpp qtopia-free-2.2.0/qtopia/src/libraries/qtopia/qdawg.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/qdawg.cpp	2005-11-11 11:43:32.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/libraries/qtopia/qdawg.cpp	2009-10-31 13:05:01.992647172 +0900
@@ -291,7 +291,7 @@
 
     bool ok() const { return node; }
 
-    QDawgPrivate::~QDawgPrivate()
+    ~QDawgPrivate()
     {
 	delete memoryFile;
     }
diff -urN qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/qpeapplication.cpp qtopia-free-2.2.0/qtopia/src/libraries/qtopia/qpeapplication.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/qpeapplication.cpp	2005-11-11 11:43:34.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/libraries/qtopia/qpeapplication.cpp	2009-10-31 13:05:01.992647172 +0900
@@ -837,7 +837,7 @@
     config.setGroup( "Screensaver" );
 
     int v[5];
-    i1 = ssi(i1, config, "Dim","Interval_Dim", 30); // No tr
+    i1 = ssi(i1, config, "Dim","Interval_Dim", 0); // No tr - Modified for GP2X F200 2009.9.20
     i2 = ssi(i2, config, "LightOff","Interval_LightOff", 20);
 #ifndef QTOPIA_PHONE
     i3 = ssi(i3, config, "","Interval", 60); // No tr
@@ -885,10 +885,11 @@
         homescreen_level = -1;
 
 #endif
-    dim_on = ( (i1 != 0) ? config.readNumEntry("Dim",1) : FALSE );
+    dim_on = ( (i1 != 0) ? config.readNumEntry("Dim",0) : FALSE );
     lightoff_on = ( (i2 != 0 ) ? config.readNumEntry("LightOff",1) : FALSE );
     poweredsuspend_on = config.readNumEntry("Suspend",0);
-    networkedsuspend_on = config.readNumEntry("NetworkedSuspend",1);
+    //networkedsuspend_on = config.readNumEntry("NetworkedSuspend",1); Modified for GP2X/Wiz
+    networkedsuspend_on = config.readNumEntry("NetworkedSuspend",0);
 #ifdef Q_WS_QWS
     if ( !i1 && !i2 && !i3 
 #ifdef QTOPIA_PHONE
diff -urN qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/storage.cpp qtopia-free-2.2.0/qtopia/src/libraries/qtopia/storage.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/storage.cpp	2005-11-11 11:43:32.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/libraries/qtopia/storage.cpp	2009-10-31 13:05:01.992647172 +0900
@@ -179,7 +179,8 @@
     //qDebug("StorageInfo::updating");
 #if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
     struct mntent *me;
-    FILE *mntfp = setmntent( "/etc/mtab", "r" );
+    //FILE *mntfp = setmntent( "/etc/mtab", "r" ); Modified for GP2X F200 2009.9.18
+    FILE *mntfp = setmntent( "/proc/mounts", "r" );
 
     Config cfg("Storage");
 
@@ -198,10 +199,11 @@
 	    } else {
 		relevant = fs.left(7)=="/dev/hd" || fs.left(7)=="/dev/sd"
 		    || fs.left(8) == "/dev/ram"
-		    || fs.left(8) == "/dev/mtd"
-		    || fs.left(9) == "/dev/mmcd"
+		    //|| fs.left(8) == "/dev/mtd" - Modified for GP2X F200 2009.9.18
+		    //|| fs.left(9) == "/dev/mmcd"
+		    || fs.left(10) == "/dev/mmcsd"
 		    || fs.left(14) == "/dev/mmc/part1"
-		    || fs.left(9) == "/dev/root"
+		    //|| fs.left(9) == "/dev/root"
                     || fs.left(11) == "/dev/mapper"
 		    // deliberately leaving of tmpfs, as it isn't an install location or file location, rather a mapping for /tmp.
 		    // may change later.
@@ -258,21 +260,22 @@
 		removable = TRUE;
 	    } else if ( humanname == "/dev/hda1" ) {
 		humanname = tr("Hard Disk");
-	    } else if ( humanname.left(9) == "/dev/mmcd" ) {
+//	    } else if ( humanname.left(9) == "/dev/mmcd" ) { Modified for GP2X F200 2009.9.18
+	    } else if ( humanname.left(9) == "/dev/mmcsd" ) {
 		humanname = tr("SD Card");
-		removable = TRUE;
+		//removable = TRUE;
 	    } else if ( humanname.left(7) == "/dev/hd" )
 		humanname = tr("Hard Disk") + " " + humanname.mid(7);
 	    else if ( humanname.left(7) == "/dev/sd" )
 		humanname = tr("SCSI Hard Disk") + " " + humanname.mid(7);
-	    else if ( humanname == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" )
+	    /*else if ( humanname == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" ) Modified for GP2X F200 2009.9.18
 		humanname = tr("Internal Storage");
 	    else if ( humanname.left(14) == "/dev/mtdblock/" )
 		humanname = tr("Internal Storage") + " " + humanname.mid(14);
 	    else if ( humanname.left(13) == "/dev/mtdblock" )
 		humanname = tr("Internal Storage") + " " + humanname.mid(13);
 	    else if ( humanname.left(9) == "/dev/root" )
-		humanname = tr("Internal Storage") + " " + humanname.mid(9);
+		humanname = tr("Internal Storage") + " " + humanname.mid(9);*/
 	    else if ( humanname.left(8) == "/dev/ram" )
 		humanname = tr("RAM disk") + " " + humanname.mid(8);
 	    FileSystem *fs = new FileSystem( *it, *fsit, humanname, removable, opts );
diff -urN qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/tzselect.cpp qtopia-free-2.2.0/qtopia/src/libraries/qtopia/tzselect.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/libraries/qtopia/tzselect.cpp	2005-11-11 11:43:34.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/libraries/qtopia/tzselect.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -367,6 +367,8 @@
     tzs.append( "Brisbane" );
     tzs.append( "Europe/Oslo" );
     tzs.append( "Oslo" );
+    tzs.append( "Asia/Seoul" );
+    tzs.append( "Seoul" );
     tzs.append( "Asia/Tokyo" );
     tzs.append( "Tokyo" );
     tzs.append( "Asia/Hong_Kong" );
diff -urN qtopia-free-2.2.0.orig/qtopia/src/plugins/applets/batteryapplet/batterystatus.cpp qtopia-free-2.2.0/qtopia/src/plugins/applets/batteryapplet/batterystatus.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/plugins/applets/batteryapplet/batterystatus.cpp	2005-11-11 11:43:21.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/plugins/applets/batteryapplet/batterystatus.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -103,13 +103,16 @@
 	text = tr("Battery status: ");
 	switch ( ps->batteryStatus() ) {
 	    case PowerStatus::High:
-		text += tr("Good");
+		//text += tr("Good"); Modified for GP2X/Wiz 2009.8.26
+		text += tr("High");
 		break;
 	    case PowerStatus::Low:
-		text += tr("Low");
+		//text += tr("Low"); Modified for GP2X/Wiz 2009.8.26
+		text += tr("Medium"); 
 		break;
 	    case PowerStatus::VeryLow:
-		text += tr("Very Low");
+		//text += tr("Very Low"); Modified for GP2X/Wiz 2009.8.26
+		text += tr("Low");
 		break;
 	    case PowerStatus::Critical:
 		text += tr("Critical");
diff -urN qtopia-free-2.2.0.orig/qtopia/src/plugins/applets/brightness/brightness.cpp qtopia-free-2.2.0/qtopia/src/plugins/applets/brightness/brightness.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/plugins/applets/brightness/brightness.cpp	2005-11-11 11:43:21.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/plugins/applets/brightness/brightness.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -115,6 +115,8 @@
     connect( sysChannel, SIGNAL(received(const QCString&, const QByteArray&)),
                  this, SLOT(sysMessage(const QCString&, const QByteArray&)));
 #endif
+
+    hide();
 }
 
 //
diff -urN qtopia-free-2.2.0.orig/qtopia/src/plugins/applets/volumeapplet/volume.cpp qtopia-free-2.2.0/qtopia/src/plugins/applets/volumeapplet/volume.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/plugins/applets/volumeapplet/volume.cpp	2005-11-11 11:43:21.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/plugins/applets/volumeapplet/volume.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -80,9 +80,11 @@
 {
     switch(e->key()) {
 	case Key_Up:
+        case Key_F17: //Appended for GP2X/Wiz volumekey mapping 2009.8.27
 	    slider->subtractStep();
 	    break;
 	case Key_Down:
+        case Key_F14:
 	    slider->addStep();
 	    break;
 	case Key_Space:
diff -urN qtopia-free-2.2.0.orig/qtopia/src/server/main.cpp qtopia-free-2.2.0/qtopia/src/server/main.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/server/main.cpp	2005-11-11 11:43:32.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/server/main.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -235,6 +235,7 @@
 	"America/New_York",
 	"America/Los_Angeles",
 	"Europe/Oslo",
+        "Asia/Seoul",
 	"Asia/Tokyo",
 	"Asia/Hong_Kong",
 	"Australia/Brisbane",
diff -urN qtopia-free-2.2.0.orig/qtopia/src/server/pda/launcherview.cpp qtopia-free-2.2.0/qtopia/src/server/pda/launcherview.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/server/pda/launcherview.cpp	2005-11-11 11:43:32.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/server/pda/launcherview.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -240,6 +240,10 @@
     void keyPressEvent(QKeyEvent* e)
     {
 	ike = TRUE;
+
+        if ( e->key() == Key_F14 || e->key() == Key_F17 ) //Appended for GP2X/Wiz volumekey
+            return;
+
 	if ( e->key() == Key_F33 /* OK button */ || e->key() == Key_Space ) {
 	    if ( (e->state() & ShiftButton) )
 		emit mouseButtonPressed(ShiftButton, currentItem(), QPoint() );
diff -urN qtopia-free-2.2.0.orig/qtopia/src/server/serverapp.cpp qtopia-free-2.2.0/qtopia/src/server/serverapp.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/server/serverapp.cpp	2005-11-11 11:43:32.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/server/serverapp.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -80,7 +80,36 @@
 static ServerApplication *serverApp = 0;
 static int loggedin=0;
 
+//Appended code : GP2X Volume key mapping 2009.8.26
+static void GP2X_SetVolume(int percent)
+{
+    int volumePercent;
+    bool muted;
+
+    Config cfg("Sound");
+    cfg.setGroup("System");
+    volumePercent=cfg.readNumEntry("Volume");
+    muted=cfg.readBoolEntry("Muted",FALSE);
+ 
+    if(muted)
+    {
+        cfg.writeEntry("Muted",!muted);
+
+#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP)
+        // Send notification that the volume has changed
+        QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << !muted;
+#endif
+    }
+
+    volumePercent+=percent;
+    volumePercent=(volumePercent<0)?0:((volumePercent>100)?100:volumePercent);
+    cfg.writeEntry("Volume",volumePercent);
 
+#ifndef QT_NO_COP
+    QCopEnvelope("QPE/System", "setVolume(int,int)") << 0 << volumePercent;
+#endif
+}
+//End
 
 /*  Apply light/power settings for current power source */
 static void applyLightSettings(PowerStatus *p)
@@ -100,11 +129,12 @@
             modes.append("ExternalPower");
 	} else {
 	    config.setGroup("BatteryPower");
-	    defsus = TRUE;
+	    //defsus = TRUE;
+	    defsus = FALSE;
             modes.append("BatteryPower");
 	}
 
-	intervalDim = config.readNumEntry( "Interval_Dim", 20 );
+	intervalDim = config.readNumEntry( "Interval_Dim", 0 ); //Modified for GP2X F200 2009.9.20
 	intervalLightOff = config.readNumEntry("Interval_LightOff", 30);
 	intervalSuspend = config.readNumEntry("Interval", 240);
 	initbright = config.readNumEntry("Brightness", 255);
@@ -117,7 +147,7 @@
             config.writeEntry( "Dim", dim );
             config.writeEntry( "LightOff", lightoff );
             config.writeEntry( "Suspend", suspend );
-            config.writeEntry( "Interval_Dim", intervalDim );
+            config.writeEntry( "Interval_Dim", 0 ); //Modified for GP2X F200 2009.9.20
             config.writeEntry( "Interval_LightOff", intervalLightOff );
             config.writeEntry( "Interval", intervalSuspend );
             config.writeEntry( "Brightness", initbright );
@@ -508,6 +538,19 @@
 	    QWSServer::screenSaverActivate(FALSE);
 	    return TRUE;
 	}
+
+        //Appended code : GP2X Volume key mapping 2009.8.26
+        if( keycode == Key_F14)
+        {
+            GP2X_SetVolume(-5);
+            return FALSE;
+        }
+        if( keycode == Key_F17)
+        {
+            GP2X_SetVolume(5);
+            return FALSE;
+        }
+        //End
     } else if ( modifiers == ControlButton ) {
         if ( keycode == Key_C || keycode == Key_V || keycode == Key_X ) 
             return FALSE;
@@ -854,9 +897,9 @@
     }
 
 
-    if ( (ps->batteryStatus() == PowerStatus::VeryLow ) ) {
+    /*if ( (ps->batteryStatus() == PowerStatus::VeryLow ) ) { : Modified for GP2X Wiz 2009.8.22
 	pa->alert( tr( "Battery is running very low." ), 6 );
-    }
+    }*/
 
     if (  ps->batteryStatus() == PowerStatus::Critical ) {
 	pa->alert(  tr( "Battery level is critical!\n"
@@ -906,22 +949,22 @@
 {
     switch ( t ) {
 	case ShutdownImpl::ShutdownSystem:
-#ifndef Q_OS_WIN32
+/*#ifndef Q_OS_WIN32  - Removed for GP2X : No support for shutdown and restart
 	    execlp("shutdown", "shutdown", "-h", "now", (void*)0); // No tr
 #else
-	    qDebug("ServerApplication::ShutdownSystem");      
+	    qDebug("ServerApplication::ShutdownSystem");      */
 	    prepareForTermination(FALSE);
 	    quit();
-#endif
+//#endif
 	    break;
 
 	case ShutdownImpl::RebootSystem:
-#ifndef Q_OS_WIN32
+/*#ifndef Q_OS_WIN32   - Removed for GP2X : No support for shutdown and restart
 	    execlp("shutdown", "shutdown", "-r", "now", (void*)0); // No tr
 #else
-	    qDebug("ServerApplication::RebootSystem");      
+	    qDebug("ServerApplication::RebootSystem");      */
 	    restart();
-#endif
+//#endif
 	    break;
 
 	case ShutdownImpl::RestartDesktop:
diff -urN qtopia-free-2.2.0.orig/qtopia/src/settings/appearance/appearance.cpp qtopia-free-2.2.0/qtopia/src/settings/appearance/appearance.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/settings/appearance/appearance.cpp	2005-11-11 11:43:31.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/settings/appearance/appearance.cpp	2009-10-31 13:05:01.996648057 +0900
@@ -210,11 +210,11 @@
     accel->insertItem(Key_Right, Key_Right);
 #else
     // in landscape mode, change layout to QHBoxLayout
-    if ( isWide() ) {
+    /*if ( isWide() ) { Removed for GP2X/Wiz
         delete AppearanceSettingsBaseLayout;
         AppearanceSettingsBaseLayoutH = new QHBoxLayout( this );
         AppearanceSettingsBaseLayoutH->addWidget( tabWidget );
-    }
+    }*/
 
     sample = new SampleWindow( this );
     AppearanceSettingsBaseLayout->addWidget( sample );
diff -urN qtopia-free-2.2.0.orig/qtopia/src/settings/appearance/appearance.h qtopia-free-2.2.0/qtopia/src/settings/appearance/appearance.h
--- qtopia-free-2.2.0.orig/qtopia/src/settings/appearance/appearance.h	2005-11-11 11:43:31.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/settings/appearance/appearance.h	2009-10-31 13:05:01.996648057 +0900
@@ -49,7 +49,7 @@
 struct StyleInterface;
 class PluginLoader;
 class SampleWindow;
-class QHBoxLayout;
+//class QHBoxLayout;
 
 class AppearanceSettings : public AppearanceSettingsBase
 { 
@@ -105,7 +105,7 @@
     int prefFontSize;
     int maxFontSize;
     QStringList colorListIDs;
-    QHBoxLayout *AppearanceSettingsBaseLayoutH;
+    //QHBoxLayout *AppearanceSettingsBaseLayoutH;
 #ifdef QTOPIA_PHONE
     FontMap fontMap;
     QString bgImgName;
diff -urN qtopia-free-2.2.0.orig/qtopia/src/settings/light-and-power/light.cpp qtopia-free-2.2.0/qtopia/src/settings/light-and-power/light.cpp
--- qtopia-free-2.2.0.orig/qtopia/src/settings/light-and-power/light.cpp	2005-11-11 11:43:31.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/settings/light-and-power/light.cpp	2009-10-31 13:05:02.000647299 +0900
@@ -122,23 +122,23 @@
 #endif
 
     config.setGroup("BatteryPower");
-    batteryMode.intervalDim = config.readNumEntry( "Interval_Dim", 20 );
+    batteryMode.intervalDim = config.readNumEntry( "Interval_Dim", 0 ); //Modified for GP2X F200 2009.9.20
     batteryMode.intervalLightOff = config.readNumEntry("Interval_LightOff", 30);
     batteryMode.intervalSuspend = config.readNumEntry("Interval", 60);
     batteryMode.initbright = config.readNumEntry("Brightness", 255);
-    batteryMode.dim = config.readBoolEntry("Dim", TRUE);
+    batteryMode.dim = config.readBoolEntry("Dim", FALSE);
     batteryMode.lightoff = config.readBoolEntry("LightOff", TRUE );
-    batteryMode.suspend = config.readNumEntry("Suspend",1);
-    batteryMode.networkedsuspend = config.readNumEntry("NetworkedSuspend",1);
+    batteryMode.suspend = config.readNumEntry("Suspend",0);
+    batteryMode.networkedsuspend = config.readNumEntry("NetworkedSuspend",0);
 
     config.setGroup("ExternalPower");
-    externalMode.intervalDim = config.readNumEntry( "Interval_Dim", 20 );
+    externalMode.intervalDim = config.readNumEntry( "Interval_Dim", 0 ); //Modified for GP2X F200 2009.9.20
     externalMode.intervalLightOff = config.readNumEntry("Interval_LightOff", 30);
     externalMode.intervalSuspend = config.readNumEntry("Interval", 240);
     externalMode.initbright = config.readNumEntry("Brightness", 255);
-    externalMode.dim = config.readBoolEntry("Dim", TRUE);	    //default to leave on
+    externalMode.dim = config.readBoolEntry("Dim", FALSE);	    //default to leave on
     externalMode.lightoff = config.readBoolEntry("LightOff", FALSE );    //default to leave on
-    externalMode.suspend = config.readNumEntry("Suspend",1);
+    externalMode.suspend = config.readNumEntry("Suspend",0);
     externalMode.networkedsuspend = config.readNumEntry("NetworkedSuspend",0);
     
     int maxbright = qpe_sysBrightnessSteps();
@@ -147,6 +147,17 @@
     b->brightness->setLineStep( QMAX(1,maxbright/16) );
     b->brightness->setPageStep( QMAX(1,maxbright/16) );
 
+    //Modified for GP2X F200 2009.9.20
+    b->brightness->hide();
+    b->biginfo->hide();
+    b->officon->hide();
+    b->offlabel->hide();
+    b->brightlabel->hide();
+    b->brighticon->hide();
+    b->screensaver_dim->hide();
+    b->interval_dim->hide();
+    b->TextLabel1->hide();
+
     horizontalized = FALSE;
     currentMode = &batteryMode;
     b->screensaver_suspend->setEnabled(FALSE);
@@ -182,6 +193,7 @@
             this, SLOT(sysMessage(const QCString&, const QByteArray&)));
 #endif
     
+    showMaximized(); //Modified for GP2X F200 2009.9.20
 }
 
 LightSettings::~LightSettings()
@@ -279,7 +291,7 @@
 {
     config.writeEntry( "Dim", mode->dim );
     config.writeEntry( "LightOff", mode->lightoff );
-    config.writeEntry( "Interval_Dim", mode->intervalDim );
+    config.writeEntry( "Interval_Dim", 0 ); //Modified for GP2X F200 2009.9.20
     config.writeEntry( "Interval_LightOff", mode->intervalLightOff );
     config.writeEntry( "Interval", mode->intervalSuspend );
     config.writeEntry( "Brightness", mode->initbright );
diff -urN qtopia-free-2.2.0.orig/qtopia/src/settings/light-and-power/lightsettingsbase.ui qtopia-free-2.2.0/qtopia/src/settings/light-and-power/lightsettingsbase.ui
--- qtopia-free-2.2.0.orig/qtopia/src/settings/light-and-power/lightsettingsbase.ui	2005-08-04 13:55:05.000000000 +0900
+++ qtopia-free-2.2.0/qtopia/src/settings/light-and-power/lightsettingsbase.ui	2009-10-31 13:05:02.000647299 +0900
@@ -166,7 +166,7 @@
                         <name>sizeHint</name>
                         <size>
                             <width>20</width>
-                            <height>20</height>
+                            <height>0</height>
                         </size>
                     </property>
                 </spacer>
