Author Topic: Finding The Keycode For Rotation  (Read 3930 times)

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Finding The Keycode For Rotation
« on: April 15, 2005, 06:30:09 pm »
Hello

Could someone using the default sharp rom with the default kernel please run :

./qkonsole > logfile 2>&1

then do a long press on the "light" key to start a rotation ? It is a special version of qkonsole which reports the keys being pressed. Simply post the output here. 0x1052 means a short press on light.

I need that because I forgot to write down the keycode for a long press on the light key, which starts a rotation. This will make it possible to reenable it.

PS: I found a way to fix the Fn/A key ... an ugly kernel hack, but as long as it works...

Thanks in advance,
Guylhem
« Last Edit: April 15, 2005, 06:41:42 pm by guylhem »

gab74

  • Sr. Member
  • ****
  • Posts: 344
    • View Profile
Finding The Keycode For Rotation
« Reply #1 on: April 16, 2005, 08:00:08 am »
I try ./qkonsole > logfile 2>&1

but logfile contains no code...only sone infos about fonts.....
Gabriele
NOW : C3100 (code name Laudicus)- SOCKETCOMM CF MODEM 56K - CF GPS GLOBASAT BC-307 - BLUETOOTH CF BELKIN - ETHERNET CF TRENDNET TE-CF100
BEFORE: SL6000L (code name Anselmus) - 512MB SD - 256MB CF - SOCKETCOMM CF MODEM 56K - CF GPS GLOBASAT BC-307

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Finding The Keycode For Rotation
« Reply #2 on: April 17, 2005, 03:52:44 pm »
My fault - forgot to attach my modified version of qkonsole. It has a nice additional feature : the "menu" key serves as an alt-tab between tabs.

Please get externe.net/temp/qkonsole and try with that one.

Maybe you need to start it with :
./qkonsole -qws > logfile 2>&1

Pressing on a button will report its keycode in the log file

gab74

  • Sr. Member
  • ****
  • Posts: 344
    • View Profile
Finding The Keycode For Rotation
« Reply #3 on: April 19, 2005, 04:54:10 am »
using your qkonsole and
qkonsole > logfile 2>&1

it returns :

KeyPressed : 0X2013
Gabriele
NOW : C3100 (code name Laudicus)- SOCKETCOMM CF MODEM 56K - CF GPS GLOBASAT BC-307 - BLUETOOTH CF BELKIN - ETHERNET CF TRENDNET TE-CF100
BEFORE: SL6000L (code name Anselmus) - 512MB SD - 256MB CF - SOCKETCOMM CF MODEM 56K - CF GPS GLOBASAT BC-307

pelon

  • Newbie
  • *
  • Posts: 18
    • View Profile
Finding The Keycode For Rotation
« Reply #4 on: April 19, 2005, 07:48:47 am »
I'm writing a bash script in which I need to grab key presses, specifically the keys on the rear used while the unit is closed.

escape is straightforward:
set esc="$(echo -n x | tr \\033)"

But the OK key doesn't respond to the newline character \\012.
I asume it's not ascii. Is there any way to capture this key?

Thanks
pelon
hp200LX->hp200LXoverclocked->SL5500->C3000->

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Finding The Keycode For Rotation
« Reply #5 on: April 19, 2005, 09:38:13 am »
Thanks Gab74 - found my mistake and will correct it to fix this key

BTW If you want to grab codes, look inside qkonsole code. Very explicit.