![]() |
usb keyboard stops on-screen keyboard
I have an N800 running release version of OS2008, using a usb mini-B to A converter which auto switches the usb port to host mode.
I can use my usb nano keyboard just fine and the on-screen keyboard if disabled so it doesn't appear when I select a text field... which is good! However, if I unplug the keyboard, I'd expect the N800 to revert to popping up the on-screen keyboard, but it doesn't. This makes it very difficult to use, and requires a reboot. Does anyone know how to re-enable the virtual keyboard? thanks! |
Re: usb keyboard stops on-screen keyboard
Quote:
There is probably some xterm command line thing that will work. Unfortunately I do not know what that command string might be. |
Re: usb keyboard stops on-screen keyboard
Quote:
|
Re: usb keyboard stops on-screen keyboard
I can confirm that this happened to me also (yesterday). My fix was to reboot! I'm researching this, and will post any progress in this thread.
Edit: I cannot reproduce this problem today! Is this a consistent problem, or did it just happen once? Did you try disconnecting the attached USB device (keyboard) by tapping the USB icon in the status bar before unplugging the keyboard? That is the *safe* way to disconnect USB devices... Interesting that I cannot reproduce it again. |
Re: usb keyboard stops on-screen keyboard
Quote:
Well thats the *safe* way to disconnect USB devices in windows environment, isn't it? or this does apply to all environments like MAC and LINUX. |
Re: usb keyboard stops on-screen keyboard
Quote:
Code:
maemo-gtk-im-switch xim I noticed that it disables keyboard also if you connect usb mouse or gamepad so I guess it monitors kernel input subsystem and when any device creates new input device in /dev/input/ (like all usb and BT input devices do) keyboard is disabled and when they vanish it is enabled. Maybe those device files sometimes fail to vanish on keyboard disconnection? Maybe because they are in use? |
Re: usb keyboard stops on-screen keyboard
I get this problem immediately upon loading penguinbait's joystick.ko kernel module, too, whether I have anything attached or not.
|
Re: usb keyboard stops on-screen keyboard
Quote:
M5 |
Re: usb keyboard stops on-screen keyboard
Should we bugzilla this?
|
Re: usb keyboard stops on-screen keyboard
Did somebody solve this problem?
Your answer is much appreciate ~ |
Re: usb keyboard stops on-screen keyboard
indeed. i have no idea about xterm so i need to know exactly what to do if its going to help me :/
|
Re: usb keyboard stops on-screen keyboard
I am experiencing this problem as well... plugging in a USB keyboard to my N800 disables the onscreen keyboard (good)... both unplugging the keyboard or unmounting the USB keyboard by clicking on the icon on the top bar *then* unplugging the keyboard fails to bring back the onscreen keyboard (bad).
The only way I know how to re-enable the onscreen keyboard functionality is to reboot the unit. Anybody come up with a solution that doesn't involve a reboot? Thanks for any help... |
Re: usb keyboard stops on-screen keyboard
given that this also happens when using bluetooth keyboards im starting to wonder if there is some issue with the way the onscreen keyboard is told to show or not.
does anyone have any knowledge about how it gets the signal that a physical keyboard is now "inserted" and it should stay away? hmm, maybe it could be related to how the slider keyboard on the N810 works, as it should probably trigger some of the same stuff, right? |
Re: usb keyboard stops on-screen keyboard
i just had a look using the gconf editor, and found that there is a box under /system/osso/af labeled keyboard-attached. this becomes checked when i pair my bluetooth keyboard with my N800, and should in theory go unchecked when i turn the keyboard off.
turning the check on manually seems to stop the onscreen keyboard from going active. so people, if you have trouble getting the onscreen keyboard to show, go and see if the box is checked, and if it is, try to uncheck it. |
Re: usb keyboard stops on-screen keyboard
That did it! I installed the gconf editor and noted that - after unplugging the USB keyboard - the 'keyboard-attached' setting was still checked... Unchecking that option restored the onscreen keyboard... Thanks!
|
Re: usb keyboard stops on-screen keyboard
glad it worked. now if we could figure out what it is thats forgetting to uncheck that option when a keyboard is unplugged...
funny thing is that i found it while looking for a way to slow down the finger keyboard check, as i currently rather use the center dpad then whack the screen as is currently required... |
Re: usb keyboard stops on-screen keyboard
Thus, in OS2008, we can execute xterm command
gconftool-2 -t bool -s /system/osso/af/keyboard-attached true for disabling virtual keyboard and gconftool-2 -t bool -s /system/osso/af/keyboard-attached false for enabling virtual keyboard. It may be more convenient (in the script for example) then manually using gconf editor. |
Re: usb keyboard stops on-screen keyboard
true, but for the odd time when the keyboard gets stuck. having gconf editor handy to unstick it may be just as simple (if it do not happen to often).
|
Re: usb keyboard stops on-screen keyboard
Good spot with the gconf setting there! I've been looking for that one for a while now (particularly handy for the USB Mouse app since the tablet detects the mouse as a HID device and disables the onscreen keyboard!).
I can shed some light on the strange/random USB keyboard issue by the way (as far as bluetooth, I don't know I've run into it once or twice myself, but I imagine it's something somewhat similar): IF you're using USB host mode (especially if you're using the auto-switching OTG adapter) and you take the device out of host mode BEFORE disconnecting the keyboard itself from the USB bus, the kernel never receives the USB disconnect signal, so it never removes any of the sys or device entries for the keyboard (it thinks it's still connected). It's a problem that we've run into for all of the USB devices, and the only really viable solution at this point is to be careful with how you handle things. For example, if you've got the auto switching OTG adapter: This scenario will cause the problem every time: - Connect OTG adapter with USB keyboard plugged into it - All works, you type, yada yada yada - You unplug the OTG adapter with the USB keyboard plugged into it - Onscreen keyboard will not return. Compared to this which will never cause the problem (as far as I can tell): - Connect OTG adapter with USB Keyboard plugged into it - All works, you type, yada yada yada - UNPLUG USB KEYBOARD from OTG adapter, leaving OTG adapter sitll connected to tablet. - Wait a second (well probably by this point not really required, but you get the idea) - Disconnect OTG adapter from tablet. - Onscreen keyboard will return normally. Now, that should only affect USB keyboards, since it's a USB problem that's causing it... BUT, I would guess that if for some reason the BT keyboard looses connection or the tablet doesn't "unpair" successfully with it, you'll run into the same scenario... -Rob |
Re: usb keyboard stops on-screen keyboard
Another issue that sometimes afflicts the N800 (not N810): After Ctrl-Space or some such (from USB or BT keyboard), you get a narrow, completion-only bar designed for the N810's thumbboard. It could be helpful, but the trouble is, after disconnecting the external keyboard, it locks into that mode; stylus-tap, finger-tap, or d-pad enter all bring the completion bar (but no keyboard) up. The fix for this one:
Code:
gconftool-2 -t bool -s /system/osso/af/slide-open false Seems like a script that sets keyboard-attached and slide-open both false belongs in powerlaunch, osso-statusbar-cpu, personal menu, and/or command-navigator. |
Re: usb keyboard stops on-screen keyboard
awesome! this just happened to me this morning and was driving me buggy...
so, is there a way to issue both of these xterm commands at once? like concatenating them together in personal menu or something? |
Re: usb keyboard stops on-screen keyboard
A shell script should do the trick Iirc.
|
Re: usb keyboard stops on-screen keyboard
uuu... how do i do that?
sorry, my newbieness is showing I started to do some googlind and found a site - it makes it look like I just 'vi' a script with both commands: Code:
#start script- rekey |
Re: usb keyboard stops on-screen keyboard
save the script. :)
chmod +x <script name> mv <script name> /usr/local/bin/ ...then, you can run that script from a button/menu/whatever with one tap. |
Re: usb keyboard stops on-screen keyboard
no need to move it, altho it makes it easier to recall the path to i guess ;)
it also just dawned on me that it may be unwise to argue with someone thats using a evil genius as a avatar... least of all as i do not consider myself on sid's level of knowledge, experience, or age for that matter... i fear i would be more in the area of a cross between greg and mike, with the majority being greg (basically, i need to come up with a way to deliver pain via the phone lines)... |
Re: usb keyboard stops on-screen keyboard
@briand
thanks!! so I'm guessing I run it in personal menu with: Code:
./ <script_name> thanks in advance |
Re: usb keyboard stops on-screen keyboard
Well, if you move it to a location on the path, just the name would work. If you place it in the current directory, ./name would be right. (Note that I've no clue what directory hildon-desktop runs in, so this is pretty useless here.) If it's anywhere, the full path /path/to/name will work.
|
Re: usb keyboard stops on-screen keyboard
Thanks SO MUCH for this script! This is a wonderful development!
|
Re: usb keyboard stops on-screen keyboard
Quote:
Quote:
Quote:
|
Re: usb keyboard stops on-screen keyboard
Heh.
Quote:
|
Re: usb keyboard stops on-screen keyboard
Quote:
"Indeed. And, as Pitr doesn't actually speak Russian, but just pretends to, I am responding in the cyrillic font, but writing in English. Confusing, no? (actually, if you know how to pronounce the cyrillic letters, you can read this quite easily!)" ..it's just something we evil geniuses do, from time to time... ;) |
Re: usb keyboard stops on-screen keyboard
I know; I thought that (i.e. writing english, with a fake slavic
|
All times are GMT. The time now is 23:28. |
vBulletin® Version 3.8.8