no more input after suspend

Peter Hermsdorf <[email protected]> Wed, 23 Jul 2003 14:21:43 +0200
Newsgroups gmane.comp.video.picogui.devel
Message-ID <[email protected]>
    hi,

i posted this problem a while ago, but i`m now in the need of a soloution.

i have defined an input filter like this:

int myFilter(struct pgEvent *evt) {
  union pg_client_trigger *trig = evt->e.data.trigger;
  char c;

  c = trig->content.u.kbd.key;
  if (c=='\r') c = '\n';
 
    pgReplaceTextFmt(anzeige,"%c", trig->content.u.kbd.key);
    pgSubUpdate(anzeige);

  return 0;
}

this filter just displays the key that was pressed. it is loaded via

    pgNewInFilter(pgGetServerRes(PGRES_INFILTER_KEY_PREPROCESS),
        PG_TRIGGER_CHAR, PG_TRIGGER_CHAR);

    pgBind(PGBIND_ANY, PG_NWE_INFILTER, myFilter, NULL);

after starting the app, everything works fine, but after the Z went into 
suspend and wakes up again my application is running, but i don`t get 
any inputs anymore. any ideas regarding this subject are very welcome !

an additional note:
i have to say, that i`m not using the latest version of picogui, since 
i`m not able to compile it with my current OZ buildroot. (as you might 
know this hole thing is in my eyes a "touch and die" system). i only can 
compile the pgserver "version" in(or against) my OZ buildroot, which (i 
think) is a cvs version as of march 2003.
the current version of picogui (svn snapshot) stops configuring with the 
following error:

/bin/sh: error while loading shared libraries: 
/home/peter/buildroot-neu/buildroot-oz/output/staging/target/lib/libncurses.so.5: 
ELF file OS ABI invalid

my configure command is

CFLAGS="-I/home/peter/buildroot-neu/buildroot-oz/output/staging/include/" 
LDFLAGS="-L/home/peter/buildroot-neu/buildroot-oz/output/staging/target/    
lib -Wl,-rpath 
/home/peter/buildroot-neu/buildroot-oz/output/staging/target/lib" 
LD_LIBRARY_PATH="/home/peter/buildroot-neu/buildroot-oz/output/staging/target/lib" 
./configure --target=arm-linux --build=`./config.guess` 
--with-profile=profiles/profile.zaurus 
--prefix=/home/peter/buildroot-neu/buildroot-oz/output/rootfs

so obviously something with the ncurses lib is wrong.

if anybody has an idea of obtaining a more stable base system and then 
adding picogui i would love to hear about that!
(i tried using a standard OZ rom and then adding pgui(self compiled), 
but this hasn`t worked out till now.  btw: would picogui compile against 
a "ripped" standard sharp rom ?  )

......mhm, sorry for the long text.
i hope anybody can contribute to some of the points.

greets, peter



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0