Author Topic: Resume Event On Cacko  (Read 6085 times)

ztep

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Resume Event On Cacko
« on: December 29, 2006, 06:15:14 am »
In this page, Spencer Huang said that a SIGCONT signal is sent to each running process when the zaurus is resumed.

While testing the next version of qpegps (it is altmost here), that catchs that signal to start the gps card after a resume, I notice that the SIGCONT signal is never received.

With other tests I have proved that the SIGCONT signal is not called after a resume on Cacko (at least in versions 1.23 and 1.22 and zaurus C760 and C3100) while with the original sharp ROM the signal is fired as expected.

Anyone knows how to activate this function?

I have been thinking on adding a line (killall -SIGCONT qpegps) to a resume script, but I don't know where to put this command. Someone with more knowledge can help me?

Is there any other method to detect when the zaurus is resumed?

Thanks.

eviLjazz

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://katastrophos.net/andre/blog
Resume Event On Cacko
« Reply #1 on: December 30, 2006, 10:55:19 am »
I'm not sure about the standard Sharp ROM, but Cacko has this suspend/resume framework in place. There are several scripts in /etc/apm.d/ which are linked to and fired via /etc/apm.d/suspend.d or /etc/apm.d/resume.d

You could hook a helper script for your qpegps in those directories.
Also, the kernel directly opens the file /etc/suspend.lst and uses that to send SIGSTOP and SIGCONT to the processes listed there.
Sharp Zaurus SL-C3200/36GB running Cacko : Fujitsu LifeBook U2010/64GB SSD running Win7 : Nokia N900 (yes, flame me.) Blog : Twitter : Trac
Quasar Media Player : QScrobbler : Enhanced audio driver and mixer for C1000/C3x00 : Unified Sharp/Tetsu/Cacko/pdaXrom Kernel 2.4.20 branch : My packages : Sources

ztep

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Resume Event On Cacko
« Reply #2 on: January 09, 2007, 04:38:59 am »
Thanks for your answer, but I have detected that cacko ROM (and the original sharp ROM on CXXX) calls Resumed() to QPE/System using QCop messages, after tha zaurus is resumed.

I have detected this event and now the GPS CF card is resumed fine.

I don't know if this will work on Opie.