Author Topic: Sticky Keys  (Read 4265 times)

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Sticky Keys
« on: April 03, 2007, 03:29:01 pm »
Hi,

How can I enable Stickykeys in pdaXrom 1.10beta3 without loosing other functionality?

If I enable it using the instructions from Meanies post here

https://www.oesf.org/forums/index.php?showt...ndpost&p=150095

and here

http://www.users.on.net/~hluc/myZaurus/cus...rom.html#keymap

Sticky Keys work for Shift, ctrl, and FN the way I want it. But: FN-1, FN-2, FN-3 and FN-4 does not work anymore ... FN-1 only prints 1, FN-2 prints 2 and so on


regards

Bernd

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Sticky Keys
« Reply #1 on: April 03, 2007, 07:06:29 pm »
Quote
Hi,

How can I enable Stickykeys in pdaXrom 1.10beta3 without loosing other functionality?

If I enable it using the instructions from Meanies post here

https://www.oesf.org/forums/index.php?showt...ndpost&p=150095

and here

http://www.users.on.net/~hluc/myZaurus/cus...rom.html#keymap

Sticky Keys work for Shift, ctrl, and FN the way I want it. But: FN-1, FN-2, FN-3 and FN-4 does not work anymore ... FN-1 only prints 1, FN-2 prints 2 and so on


regards

Bernd
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]


you may want to use my updated keymap as well

[a href=\"http://www.users.on.net/~hluc/myZaurus/pdaxii13.html#keymap]http://www.users.on.net/~hluc/myZaurus/pdaxii13.html#keymap[/url]
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Sticky Keys
« Reply #2 on: April 04, 2007, 12:15:30 am »
Quote
you may want to use my updated keymap as well

http://www.users.on.net/~hluc/myZaurus/pdaxii13.html#keymap
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157902\"][{POST_SNAPBACK}][/a][/div]

Mmhh. reading again your page I saw that you remapped the functions normally on FN-1, etc:

>>Some function keys have been remapped as follows:
>># Super+1 = Switch VGA mode (320x240)
>># Super+2 = Switch SVGA mode (640x480)
>># Super+3 = Decrease Brightness
>># Super+4 = Increase Brightness
>># Super+5 = Refresh

So I assume FN-1 etc does not work with your keymap also (or is Super = Fn key)?

regards

Bernd

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Sticky Keys
« Reply #3 on: April 04, 2007, 03:02:50 am »
Quote
Quote
you may want to use my updated keymap as well

http://www.users.on.net/~hluc/myZaurus/pdaxii13.html#keymap
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157902\"][{POST_SNAPBACK}][/a][/div]

Mmhh. reading again your page I saw that you remapped the functions normally on FN-1, etc:

>>Some function keys have been remapped as follows:
>># Super+1 = Switch VGA mode (320x240)
>># Super+2 = Switch SVGA mode (640x480)
>># Super+3 = Decrease Brightness
>># Super+4 = Increase Brightness
>># Super+5 = Refresh

So I assume FN-1 etc does not work with your keymap also (or is Super = Fn key)?

regards

Bernd
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157918\"][{POST_SNAPBACK}][/a][/div]

Fn+num keys are disabled if you have kbd option in the X server options which is required if you want to enable stickykeys...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Sticky Keys
« Reply #4 on: April 04, 2007, 12:12:25 pm »
Quote
Quote
Quote
you may want to use my updated keymap as well

http://www.users.on.net/~hluc/myZaurus/pdaxii13.html#keymap
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Mmhh. reading again your page I saw that you remapped the functions normally on FN-1, etc:

>>Some function keys have been remapped as follows:
>># Super+1 = Switch VGA mode (320x240)
>># Super+2 = Switch SVGA mode (640x480)
>># Super+3 = Decrease Brightness
>># Super+4 = Increase Brightness
>># Super+5 = Refresh

So I assume FN-1 etc does not work with your keymap also (or is Super = Fn key)?

regards

Bernd
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157918\"][{POST_SNAPBACK}][/a][/div]

Fn+num keys are disabled if you have kbd option in the X server options which is required if you want to enable stickykeys...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157929\"][{POST_SNAPBACK}][/a][/div]
Is this what is causing this key behavior in dosbox?
[a href=\"https://www.oesf.org/forums/index.php?showtopic=23267&view=findpost&p=156955]https://www.oesf.org/forums/index.php?showt...ndpost&p=156955[/url]

BTW, I have "sticky keys" switched off in pdaxii13.config
« Last Edit: April 04, 2007, 12:14:11 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Sticky Keys
« Reply #5 on: April 09, 2007, 11:50:43 am »
Hi,

Quote
Fn+num keys are disabled if you have kbd option in the X server options which is required if you want to enable stickykeys...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157929\"][{POST_SNAPBACK}][/a][/div]

Not nice, but anyway I need sticky keys so I enabled them and assigend the functions to  change the display brightness to Super -<key>.

Next problem:

How to I configure FN-Tab to toggle Capslock?

With

! modifier keys
clear Lock
remove Lock = Tab
! add Lock = Caps_Lock
keycode 73 = Tab Tab Caps_Lock Caps_Lock

in the  file /etc/X11/kb/akita.xmodmap it does not work and if I add

add Lock = Caps_Lock

Tab *always* triggers CapsLock (regardless if I press TAB, FN-TAB, CNTRL-TAB, or SHIFT-TAB)

Do I have to change the file  /etc/sysconfig/keyboard/kernel.map?

Now it looks like

keycode 65 = Tab
        alt     keycode 65 = Caps_Lock
        shift   keycode 65 = Caps_Lock
        control keycode 65 = Caps_Lock
keycode 27 = Shift
keycode 89 = Alt
keycode 88 = Control
keycode 112 = Shift


regards

Bernd

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Sticky Keys
« Reply #6 on: April 10, 2007, 05:34:57 pm »
Hi Meanie,

Quote
Fn+num keys are disabled if you have kbd option in the X server options which is required if you want to enable stickykeys...

I found a solution to have both Sticky Keys and Fn+num!  

For those that are interested in sticky keys and FN-1 .. FN-4 the workaround to use both  is:

I used the instructions from Meanie to enable sticky keys.

To enable Fn-1 to Fn-4 again after enabling sticky keys I made the
following changes:


In /etc/X11/kb/akita.xmodmap I changed the lines for the keys 1 to 4 to

keycode 49 = 1 exclam           F13 F1
keycode 50 = 2 quotedbl         F14 F2
keycode 51 = 3 numbersign       F15 F3
keycode 52 = 4 dollar           F16 F4

and in /home/root/.config/openbox/rc.xml I added

  <keybind key="F13">
    <action name="Execute"><execute>xrandr -s 0</execute></action>
  </keybind>

  <keybind key="F14">
    <action name="Execute"><execute>xrandr -s 1</execute></action>
  </keybind>

  <keybind key="F15">
     <action name="Execute"><execute>setfl-wrapper</execute></action>
  </keybind>

  <keybind key="F16">
    <action name="Execute"><execute>setfl +</execute></action>
  </keybind>

Restarted X and voila - sticky keys and Fn-num works

I did only minor tests until now to but it seems to work.

Now if I get Fn-Tab for Capslock to work all my keyboard issues are solved.

(Note: setfl-wrapper is a script from weeXpc to ensure, that you can't switch off the screen using Fn-num)

regards

Bernd

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Sticky Keys
« Reply #7 on: April 11, 2007, 05:37:12 am »
Hi Bernd,

Thank you for that tutorial!

Are you aware that accessx seems to have an equivalent to Caps lock built-in?
If you hit the Shift key twice, all following keys are shifted, until you press shift once more. So maybe you don't need Caps lock at all on Tab?


A question:

I tried to follow Meanie's and your instructions, but the Fn-Num keys don't work here.
This is what I did. maybe I missed something important?

1. ipkg install accessx_0.951_armv5tel.ipk

2. in /usr/X11R6/bin/startx change defaultserverargs to " +kb +accessx -screen 480x640@270"

3. Put "ax +stickykeys -stickytwokeydisable -timeout" into ~/.matchbox/autoexec (so the tasks applet will execute this when it is started)

4. chmod +x ~/.matchbox/autoexec

5. changed akita.xmodmap for F13..F16 support as Bernd described (no other changes done to this file, coming from the weeXpc default file - may this be the problem?)

6. added ~/.config/openbox/rc.xml for F13..F16 support

Result:
Sticky keys work great, but Fn-Num don't have effect.



(Alternatively I tried for step 6 this:
No ~/.config/openbox/rc.xml, but instead changed the Mod2-1 etc. entries in the /etc/xdg/openbox/rc.xml to F13 etc. But that had an even funnier effect:
Hitting the numbers without any modifier changed the brightness. With Fn they had no special effect. )

Strange. Something must be different here than in your configuration.

Do you know what?

Thanks
daniel
« Last Edit: April 11, 2007, 05:40:11 am by daniel3000 »
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

BerndS

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Sticky Keys
« Reply #8 on: April 11, 2007, 02:53:49 pm »
Hi Daniel,

Quote
Hi Bernd,

Thank you for that tutorial!

Are you aware that accessx seems to have an equivalent to Caps lock built-in?
If you hit the Shift key twice, all following keys are shifted, until you press shift once more. So maybe you don't need Caps lock at all on Tab?

No, I was not aware of this feature. But now I know why I had CapsLock on while testing without knowing why  

Do you know where to get the docs for accessx?


Quote
A question:

I tried to follow Meanie's and your instructions, but the Fn-Num keys don't work here.
...
(Alternatively I tried for step 6 this:
No ~/.config/openbox/rc.xml, but instead changed the Mod2-1 etc. entries in the /etc/xdg/openbox/rc.xml to F13 etc. But that had an even funnier effect:
Hitting the numbers without any modifier changed the brightness. With Fn they had no special effect. )

Strange, I now have the same effect . I'm sure yesterday evening it worked. The only difference is that there were some suspend/resume cycles between yesterday and today.

I'll have to do more tests.

regards

Bernd

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Sticky Keys
« Reply #9 on: April 11, 2007, 04:57:08 pm »
Hi Bernd,


Quote
No, I was not aware of this feature. But now I know why I had CapsLock on while testing without knowing why   

Do you know where to get the docs for accessx?

No, I have no idea.


Quote
Strange, I now have the same effect . I'm sure yesterday evening it worked. The only difference is that there were some suspend/resume cycles between yesterday and today.

I'll have to do more tests.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158518\"][{POST_SNAPBACK}][/a][/div]

Resume / suspend, being a very special and Zaurus-specific thing, has caused a lot of trouble in the past. I think there were some more issues affecting keyboard functionality, which had to do with suspend/resume.


I hope you will find a way.

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Sticky Keys
« Reply #10 on: April 11, 2007, 09:59:47 pm »
Quote
Hi Meanie,

Quote
Fn+num keys are disabled if you have kbd option in the X server options which is required if you want to enable stickykeys...

I found a solution to have both Sticky Keys and Fn+num!  

For those that are interested in sticky keys and FN-1 .. FN-4 the workaround to use both  is:

I used the instructions from Meanie to enable sticky keys.

To enable Fn-1 to Fn-4 again after enabling sticky keys I made the
following changes:


In /etc/X11/kb/akita.xmodmap I changed the lines for the keys 1 to 4 to

keycode 49 = 1 exclam           F13 F1
keycode 50 = 2 quotedbl         F14 F2
keycode 51 = 3 numbersign       F15 F3
keycode 52 = 4 dollar           F16 F4

and in /home/root/.config/openbox/rc.xml I added

  <keybind key="F13">
    <action name="Execute"><execute>xrandr -s 0</execute></action>
  </keybind>

  <keybind key="F14">
    <action name="Execute"><execute>xrandr -s 1</execute></action>
  </keybind>

  <keybind key="F15">
     <action name="Execute"><execute>setfl-wrapper</execute></action>
  </keybind>

  <keybind key="F16">
    <action name="Execute"><execute>setfl +</execute></action>
  </keybind>

Restarted X and voila - sticky keys and Fn-num works

I did only minor tests until now to but it seems to work.

Now if I get Fn-Tab for Capslock to work all my keyboard issues are solved.

(Note: setfl-wrapper is a script from weeXpc to ensure, that you can't switch off the screen using Fn-num)

regards

Bernd
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158447\"][{POST_SNAPBACK}][/a][/div]

I doubt this will work because of the way the X server keymapping is done. However, I tried it anyway and gotten the same results as Daniel.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K