Ubuntu :: Disabling Keyboard Repeat From The Command-line
Apr 11, 2010
Some Flash games don't work very well on Linux because when you hold down a key (such as one of the cursor keys) the Flash player sends the game multiple KeyDown and KeyUp events, leaving the game unable to tell the difference between a user holding a key or a user tapping a key quickly. (On other platforms it seems that typematic repeat generates multiple KeyDown events but not KeyUp events.)
Anyway, to work around this problem, I go to System->Preferences->Keyboard and disable "Key presses repeat when key is held down" when I want to play a Flash game, then put it back afterwards. I do this often enough that I'd like to set up some shortcut keys to change the setting. I figured out the following commands to turn it off and on again:
My problem is that when I have tried entering these on the command-line (in a gnome-terminal), X-windows seems to get confused and behaves as though I'm holding down the enter key. It doesn't stop if I press enter again. I tried pressing ctrl-alt-f1 to switch to a text console and it worked fine, but when I pressed ctrl-alt-f7 to go back to X it still behaved as though I was holding down enter. I had to press ctrl-alt-backspace to reset X before it would return to normal. I *think* it happens in particular when changing the setting from true to false. I'm running Karmic Koala with all the updates.
I know that I can use the GUI (gnome-volume-properties) enable/disable the USB sticks/disks automount features, by checking/unchecking the pertinent options.My question is: how can I obtain the same results from the command line (that is, without using any GUI frontend)?
Keyboard repeat doesn't seem to work correctly on my system (Xubuntu, 9.10). Holding a key down ends in the repeat function stopping after a certain point, and at different times each time. Also, editing text fields is tricky because the field currently highlighted reverts to its previous value if I don't hit enter fast enough (I have to type new values into a notepad and copy and paste it quickly into the field).
When I go to boot up, I ususally have a failedattempt or two at logging in, because my autorepeat rate on the keyboard will often give me morethan one character when I depress a key. SoI put my password in wrong and get a failed attempt.After I log in I usually run:kbdrate -r 6 -d 500This gets my autorepeat rate down to 6 char per secondand delay time to 500 to where I can actually use the keyboard. Is there some place I can run those commands duringboot, so that I don't have the failed and repeated
I installed the Open Source Media Center (OSMC) on my Raspberry Pi 2. It's based on Debian Jessie. I bought a Blueooth Keyboard (Keysonic KSK-3211) and an USB-Bluetooth adapter (CSL Bluetooth Stick Nano). And now I am looking for a way to pair the keyboard with the raspberry via command line.
I'm new to all this bluetooth stuff in debian. It's the first time I try to install it. As far as I've understood I need an agent that is started with the pairing PIN. Then I type this PIN at the keyboard and that's it. Am I right?
The problem is, that every agent I've found in howtos or descriptions like bluez-simple-agent or bluetooth-agent (like described here [URL] ....) is not installed (and as far as I know can't be installed) under Jessie.
The bluetooth adapter is recognized
Code: Select allosmc@osmc:~$ hcitool dev Devices: hci0 00:1A:7D:DA:71:0C the keyboard is found Code: Select allosmc@osmc:~$ hcitool scan Scanning ... 00:12:A1:70:42:28 Bluetooth Keyboard
And I can ping the keyboard
Code: Select allosmc@osmc:~$ sudo l2ping 00:12:A1:70:42:28 Ping: 00:12:A1:70:42:28 from 00:1A:7D:DA:71:0C (data size 44) ... 0 bytes from 00:12:A1:70:42:28 id 0 time 14.82ms 0 bytes from 00:12:A1:70:42:28 id 1 time 9.91ms 0 bytes from 00:12:A1:70:42:28 id 2 time 32.62ms 0 bytes from 00:12:A1:70:42:28 id 3 time 28.81ms ^C4 sent, 4 received, 0% loss
So everything seems to be ok ... but I can't find the command for pairing the keyboard. Looks like something changed in Jessie so that the old tutorials are outdated.
I'm running into some weird behavior while using xinput to disable the keyboard that might be an underlying bug, and I'm wondering if anyone could reproduce it or provide any insight into what's causing it. I'm running Ubuntu desktop 10.10 64-bit in a VMware Workstation VM running on a Windows 7 64-bit host.First I use "xinput list" to find out which keyboards are present in the system. In my case there's only one with id=9. Next I execute "xinput set-prop 9 "Device Enabled" 0" to disable the keyboard at id=9. Now, if I type this into the terminal and hit enter, the keyboard gets disabled but at the same time the enter key becomes stuck. The system thinks the enter key is being held down.
However, if I make a script with the same command and execute it by clicking it in Nautilus, the keyboard gets disabled and no keys are stuck. It seems if the keyboard is disabled with a press of the keyboard, then whatever key was pressed to trigger the disabling of the keyboard becomes stuck.
You might ask why I would want to disable the keyboard in the first place. It's because I'm running Ubuntu in VMware Unity mode, where the system in the VM is integrated with the host desktop system, the VM's windows appear as individual windows on the host desktop,etc. In this mode, whenever I close a VM window by hitting a key on the keyboard (for example, hitting Ctrl+D while in gnome-terminal) and focus goes back to a host window, then that key becomes stuck the next time I open a VM window. If I close a VM window by clicking the mouse then there's no problem. I'm pretty sure now that this is caused by the above mentioned bug from disabling the keyboard. I think in Unity mode VMware workstation runs a script to disable the keyboard in the guest whenever VM windows lose focus, so key presses don't continue to be piped to the guest OS. However, if this action is triggered by a press of the keyboard, then that key becomes stuck in the guest OS.
I want my keyboard to be disabled for sometime say 5min or more. My keyboard gets loaded more than fingers it bears sometimes loads of books.So want to disable for a specific time
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
I have a directory in which the files are stored. the users must be able to only read or add files to the directory. the users must not delete the files under the directory. how can i do this? is it possible to disable the rm command?
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:
Code:
#! /bin/bash # #TODO write this for gnome and xterm
[code]....
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
which does not work on the invisible directories (why?). When I used ".*" as wildcard it changed all (visible) files including the parent directory (the one I was currently working in which is the "dot") . I can change the invisible directories owner and group using dophin but how is it done from the command line?
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ${0##*/} [-x] [-g] code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code: gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
Using netbook asus 1005ha with lucid beta 1 with most of updates on learning to use the CLI and headaches cd command does not seem to reconise directories here is a sample
Code:
yeh i know read the f#####g manual i am but any help would be greatly accepted tried sudo with same commands same problem did have a problem on my debian system that was to do with paths this is not the same on a different footnote anyone thinking of upgrading to lucid sit tight on 9.10 there are still to many issues that need ironing out for a system that is your main system.
I have been trying to repeat the first two rows in a Calc document but I keep getting an error.
Here are the instructions that I used.
Printing Rows or Columns on Every Page If you have a sheet that is so large that it will be printed multiple pages, you can set up rows or columns to repeat on each printed page. As an example, If you want to print the top two rows of the sheet as well as the first column (A)on all pages, do the following:
1.Choose Format - Print Ranges - Edit. The Edit Print Ranges dialog appears.
2.Click the icon at the far right of the Rows to repeat area. The dialog shrinks so that you can see more of the sheet.
3.Select the first two rows and, for this example, click cell A1 and drag to A2. In the shrunk dialog you will see $1:$2. Rows 1 and 2 are now rows to repeat.
4.Click the icon at the far right of the Rows to repeat area. The dialog is restored again.
5.If you also want column A as a column to repeat, click the icon at the far right of the Columns to repeat area.
6.Click column A (not in the column header).
7.Click the icon again at the far right of the Columns to repeat area.
Rows to repeat are rows from the sheet. You can define headers and footers to be printed on each print page independently of this in Format - Page.
in gnome 3 I can't change my keyboard settings which define how fast a key get's repeated, if you keep it pressed. Screenshot is attached, unfortunately only in german.
edit://In addition prior to gnome 3 I was able to change the keyboard "handler" (I have a Logitech G110 with macro-keys and I was able to let g15macro handle them) which I am not any more. Why?
Totem can play .flv file download on Internet. However it can't repeat playing. At end of playing the .flv file following warning popup, disregarding [Repeat Mode] check or uncheck
Code: An error occurred internal data stream error [OK]
After clicking [OK] and the starting icon [triangle] I can replay .flv file.
When I boot the linux kernel 2.6 , I was kicked out and request to run fsck manually. After running fsck -y /dev/vg00/lvol3 and /dev/vg00/lvol4 and reboot, I still get the same error and request me to run fsck . I attach the console output in here .