OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => 6000 - Tosa => Topic started by: guylhem on April 15, 2005, 06:30:09 pm

Title: Finding The Keycode For Rotation
Post by: guylhem 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
Title: Finding The Keycode For Rotation
Post by: gab74 on April 16, 2005, 08:00:08 am
I try ./qkonsole > logfile 2>&1

but logfile contains no code...only sone infos about fonts.....
Title: Finding The Keycode For Rotation
Post by: guylhem 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
Title: Finding The Keycode For Rotation
Post by: gab74 on April 19, 2005, 04:54:10 am
using your qkonsole and
qkonsole > logfile 2>&1

it returns :

KeyPressed : 0X2013
Title: Finding The Keycode For Rotation
Post by: pelon 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
Title: Finding The Keycode For Rotation
Post by: guylhem 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.