Author Topic: Calendar/Addressbook/Mail buttons  (Read 2839 times)

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Calendar/Addressbook/Mail buttons
« on: August 12, 2004, 11:51:45 am »
Hi,

I know that PDAXROM mapped Ctrl and Alt to the Calendar and Addressbook launch buttons but do you know if it's relatively easy to remap these functions to the Japanese keys as in the Cacko ROM and then turn these back into launcher buttons.

I would really like to use PDAXROM but know that I'm really going to miss having some form of Sync for address book/calendar/tasks and thought that I would try the GPE apps on the new version of PDAXROM when it comes out.

The GPE apps use a networked version of sqlite to store their info and on the GPE project there's a MULTISYNC plugin which I had running quite happily against an iPAQ running GPE. This sounds like it will give me the best of both worlds but it would be nice to have the  wakeup/quick launch features out of these keys.

Regards,

Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Calendar/Addressbook/Mail buttons
« Reply #1 on: August 12, 2004, 08:37:27 pm »
I only can outline the things you need to do. You can remap your keys in the file called corgi.xmodmap. It's in the /etc/X11/xkb/ directory.
Here you can remap your Address, Calendar and the Japanese keys too. Study the file a bit and you can remap them correctly.
The keycodes are: for the Japanese keys: 129, 130; for the Calendar, Address: 96, 97.

Good luck!
Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Calendar/Addressbook/Mail buttons
« Reply #2 on: August 13, 2004, 10:40:04 am »
Hmm, thanks, haven't got it installed right at the moment. Was going to wait for 1.1.0 but I took a look at the modmap file online and have extracted the initrd.bin to look through the scripts there.

Looks like a starting point but what I haven't worked out yet is what program initialises the  GPIOs for resume on these buttons.

I had a quick trawl through the kernel source and then thought, hey, I'm sure somebody knows this already. So the things that I'm wondering are ....

i. What is the app space interface to the GPIO control for these buttons. Is it somewhere in /proc or is it a device ?
ii. Any ideas on values to write to this to enable/disable the wakeup GPIOs for certain buttons. From the limited things that I saw in the kernel source it seems that a high bit for certain keys disables the wakeup on the app key GPIO so I guess you just set a set of bits in a bitmask register depending upon which keys you want enabled.

Had a brief trawl through the Cacko ROM to see if there was any exposed script that performed the job and didn't spot anything. But I noted that if you boot to Single user mode without Qtopia you don't get to suspend by hitting the power button so I guess the GPIO control stuff comes later.

Anyone able to point me in the right direction for this bit ?
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Calendar/Addressbook/Mail buttons
« Reply #3 on: August 13, 2004, 12:15:44 pm »
Actually looking at the corgi.xmodmap file again I notice that there are some bindings for the home, menu and power buttons.

Could it be true ? does the xkb driver actually do ALL the work and set the wake-up GPIOs for you ?

Can't wait to try it.....
« Last Edit: August 13, 2004, 12:17:39 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Calendar/Addressbook/Mail buttons
« Reply #4 on: August 14, 2004, 05:38:20 am »
Ah, just tried it with 1.0.5, right I see. The key wakeups are still enabled for the apps keys regardless of the fact that they are mapped to Ctrl/Alt etc.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card