"Caps Lock" key malfunctions in 1.0.4
"Caps Lock" key malfunctions in 1.0.4
I'm not certain this is a bug in Puppy 1.0.4, but it is annoying and I don't remember it happening in previous versions of Puppy. It certainly doesn't happen in Windows 2000 on my computer.
What I'm talking about is, tapping my "Caps Lock" key turns on both the Caps Lock and Scroll Lock lights, then it takes three taps of the Caps Lock key to turn them back off. The first click apparently does nothing, the second turns off the Scroll Lock light, and the third turns off the Caps Lock light.
Edit: it's a PS/2 keyboard - and mouse - and I'm running Puppy from CD with a pup001 file on the hard drive, in a Mandrake ext2 partition.
What I'm talking about is, tapping my "Caps Lock" key turns on both the Caps Lock and Scroll Lock lights, then it takes three taps of the Caps Lock key to turn them back off. The first click apparently does nothing, the second turns off the Scroll Lock light, and the third turns off the Caps Lock light.
Edit: it's a PS/2 keyboard - and mouse - and I'm running Puppy from CD with a pup001 file on the hard drive, in a Mandrake ext2 partition.
Last edited by Flash on Mon 25 Jul 2005, 04:03, edited 1 time in total.
- Bancobusto
- Posts: 168
- Joined: Mon 13 Jun 2005, 20:52
- Location: Vancouver Island
I have basically the same situation, although it only takes two taps after initially turning on Caps Lock. The first turns off Scroll Lock, the second turns off Caps Lock. I don't think I had that problem in 1.0.3, but I was running it from a laptop and not on the machine I now have.
Walt
Now that you point it out to me, the answer seems painfully obvious.
Now that you point it out to me, the answer seems painfully obvious.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
I was also wondering whether this new "feature" was something that I had just not noticed before
It has got something to do with the X keyboard extension being enabled in the X server, I think.... dunno what else it could be.
We need to read up on this X keyboard extensions thing... I vaguelly recall reading somewhere that it needs certain config files to function.... maybe they're missing.
It has got something to do with the X keyboard extension being enabled in the X server, I think.... dunno what else it could be.
We need to read up on this X keyboard extensions thing... I vaguelly recall reading somewhere that it needs certain config files to function.... maybe they're missing.
Num Lock too. Both keys auto-repeat?!?!
I can confirm the Caps Lock behavior here. In addition to that, the Num Lock key requires 2 presses to active / deactivate. Strangely enough, both keys auto-repeat, which is a behavior I haven't seen since the days of telnet sessions on Windows 3.1.
Thank goodness the Caps Lock is the least used key on my keyboard. The Num Lock behavior, on the other hand, is quite annoying.
Thank goodness the Caps Lock is the least used key on my keyboard. The Num Lock behavior, on the other hand, is quite annoying.
Alt-Tab is also impacted even more
One more thing I noticed since my recent post:
The Alt-Tab key sequence is impacted by this bug as well. I noticed in previous versions of Puppy that I could not Alt-Tab between applications if the Num Lock light was on. Now I can only Alt-Tab when Num Lock is off the "second" time. This reduces its functionality to only work in
The Alt-Tab key sequence is impacted by this bug as well. I noticed in previous versions of Puppy that I could not Alt-Tab between applications if the Num Lock light was on. Now I can only Alt-Tab when Num Lock is off the "second" time. This reduces its functionality to only work in
you can disabe xkeyboard extensions by adding -kb to your X options ( either click the xoptions button in the video wizard, or edit /etc/xextraoptions )
if you do this, your keyboard should work properly again, but the rtl bug will appear (text in gtk2 apps like leafpad and tea and save-boxes will sometimes display from right-to-left instead of from left-to-right)
if you do this, your keyboard should work properly again, but the rtl bug will appear (text in gtk2 apps like leafpad and tea and save-boxes will sometimes display from right-to-left instead of from left-to-right)
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
This could be a project, if someone is interested...
The configuration files for the X keyboard extension are in /etc/X11/xkbd/, at least on Vector Linux and Mandrake.
There's a lot of stuff in that directory, most of it is unnecessary, but difficult to decide what to dump.
So, boot Austrumi, which is based on Slackware, and see how they have cut that directory down -- they will have kept files to support the Latvian language, so we could maybe cut it down even further.
But, basically, we should be able to copy what Austrumi has straight across the Puppy...
The configuration files for the X keyboard extension are in /etc/X11/xkbd/, at least on Vector Linux and Mandrake.
There's a lot of stuff in that directory, most of it is unnecessary, but difficult to decide what to dump.
So, boot Austrumi, which is based on Slackware, and see how they have cut that directory down -- they will have kept files to support the Latvian language, so we could maybe cut it down even further.
But, basically, we should be able to copy what Austrumi has straight across the Puppy...
i symlinked xkb/ on VL to X11/xkb on Puppy
no effect
so i tried copying the entire folder (about 2 megs) to Puppy, and restarting X and rebooting
no effect
i also tried using xmodmap to change the shift key to F12
no effect
(F12 behaves the same as the Caps Lock key)
i also tried renaming xmodmap so it wouldn't be found
no effect
i don't know a lot about xkb
i thought the patch was so GTK would work properly if xkb was disabled or not installed ... disabling xkb stops the keyboard problem, but the rtl gtk bug appears ... i thought applying the gtk patch is supposed to fix that ... the patch is for gtk-2.6, but it looks like it might be easy to patch 2.4 too
i think this is the patch for gtkentry.c
http://bugzilla.gnome.org/attachment.cg ... ction=view
no effect
so i tried copying the entire folder (about 2 megs) to Puppy, and restarting X and rebooting
no effect
i also tried using xmodmap to change the shift key to F12
no effect
(F12 behaves the same as the Caps Lock key)
i also tried renaming xmodmap so it wouldn't be found
no effect
i don't know a lot about xkb
i thought the patch was so GTK would work properly if xkb was disabled or not installed ... disabling xkb stops the keyboard problem, but the rtl gtk bug appears ... i thought applying the gtk patch is supposed to fix that ... the patch is for gtk-2.6, but it looks like it might be easy to patch 2.4 too
i think this is the patch for gtkentry.c
http://bugzilla.gnome.org/attachment.cg ... ction=view
here's a bug fix for gtk-2.4.0 ... it's not quite the same as the bugzilla patch, but maybe it would work (not that i'm a gtk or C expert)
- Attachments
-
- gtkbug.zip
- bug fix, maybe
- (413 Bytes) Downloaded 345 times
if you mean my bugfix file for gtk+2.4.0, it's put in gtk+-2.4.0/gtk/gtkentry.c ... i think you should be able to figure out the lines it replaces ... search for
if (pango_dir == PANGO_DIRECTION_NEUTRAL)
i'm no C programming expert, but it looks to me like it should work ... my fix is a little different to their bugfix ... their code seems to set rtl unless reading the value says to use ltr ... i reversed it so the default is ltr unless it specifically says to use rtl
if my fix doesn't work, maybe their fix would work
if it works, you should be able to put -kb in X options, so that the keyboard works properly, and leafpad and save boxes work properly too
if (pango_dir == PANGO_DIRECTION_NEUTRAL)
i'm no C programming expert, but it looks to me like it should work ... my fix is a little different to their bugfix ... their code seems to set rtl unless reading the value says to use ltr ... i reversed it so the default is ltr unless it specifically says to use rtl
if my fix doesn't work, maybe their fix would work
if it works, you should be able to put -kb in X options, so that the keyboard works properly, and leafpad and save boxes work properly too
i think Puppy 1.0.5 uses gtk-2.4
i downloaded the source
http://www.gtk.org/
http://www.gtk.org/download/
ftp://ftp.gtk.org/pub/gtk/v2.4/
gtkentry.c is one of the source files
i downloaded the source
http://www.gtk.org/
http://www.gtk.org/download/
ftp://ftp.gtk.org/pub/gtk/v2.4/
gtkentry.c is one of the source files
though it does say on the Puppy News page that
and Rox 2.3 thinks it was compiled with GTK-2.6.1 ... gtk-config thinks it is running 1.2.10 of course ... i don't remember offhand how you check which version of gtk you are runningI expect to have GTK 2.6.1 in Puppy 1.0.5