"Caps Lock" key malfunctions in 1.0.4

Please post any bugs you have found
Post Reply
Message
Author
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

"Caps Lock" key malfunctions in 1.0.4

#1 Post by Flash »

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.
Last edited by Flash on Mon 25 Jul 2005, 04:03, edited 1 time in total.

User avatar
Bancobusto
Posts: 168
Joined: Mon 13 Jun 2005, 20:52
Location: Vancouver Island

#2 Post by Bancobusto »

Same here.

Didn't notice it in 1.03, but maybe I just wasn't yelling as much back then. :roll:
Freedom isn't just a Puppy-Linux forum member!

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

Same here (using PS2 keyboard)

We have had some problems with keyboards in 1.0.4 - so hopefully this will lead to some insights for Barry and G2 and anyone looking at the keyboard script (not even sure where that is?)

8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Walt H
Posts: 217
Joined: Thu 02 Jun 2005, 02:07
Location: citizen of the world
Contact:

#4 Post by Walt H »

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.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#5 Post by BarryK »

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.

Glitchman

Num Lock too. Both keys auto-repeat?!?!

#6 Post by Glitchman »

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.

Glitchman

Alt-Tab is also impacted even more

#7 Post by Glitchman »

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

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#8 Post by GuestToo »

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)

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#9 Post by BarryK »

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...

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#10 Post by GuestToo »

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

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#11 Post by GuestToo »

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 344 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#12 Post by BarryK »

Okay, it looks like for pup 1.0.5 I'll have to disable xkbd in /usr/X11R6/bin/xwin, using that "-kb" option.
And, apply the patch to the gtk source.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#13 Post by dvw86 »

I noticed that this bug was not fixed in the final version of 1.0.5. G2, I downloaded you bug fix code, where do I insert it?

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#14 Post by GuestToo »

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

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#15 Post by dvw86 »

GuestToo wrote:if you mean my bugfix file for gtk+2.4.0, it's put in gtk+-2.4.0/gtk/gtkentry.c ...
I'm sure it's just me, but I can't find the file gtk+-2.4.0/gtk/gtkentry.c

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#16 Post by GuestToo »

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

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#17 Post by GuestToo »

though it does say on the Puppy News page that
I expect to have GTK 2.6.1 in Puppy 1.0.5
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 running

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#18 Post by GuestToo »

apparently Puppy 1.0.5 (maybe 1.0.4 too) has gtk-2.6.1 ... see: here

Post Reply