Events to detect change in physical keyboard key state

I would like my application to respond in one way to a keyboard key being pressed, and then another way to the key being released. That is, I want my application to be able to reflect the actual physical state of the keyboard key.
The obvious use of the (several) Java API's for keyboard events rapidly fires repeated KEY_PRESSED and KEY_RELEASED events if the key is held down for any time. This unfortunately obscures the actual state of the physical key (how do you know which was the last KEY_RELEASED?)
Is it possible to turn off the key repeat feature, just for component, say?
This would seem to be an obvious thing to do, but I can't find sample code anywhere. The code I find in the Sun Java API manuals all shows the above problem with key repetition.
I would be also pleased to know that the solution of this problem is well known, on some FAQ or something, but I have looked through several FAQ's and searched this formum and have found nothing that helps. Also, I have had the misfortune of having to build messy and non-robust solutions for the equivalent problem in other development environments. I hope it is already there somewhere in Java and I'm just missing it.
Thanks!

"If two subsequent KEY_RELEASED and KEY_PRESSED
events have the same
timestamp, they are caused by autorepeat"
This sounds good. But unfortunately the repeated
KEY_RELEASED and KEY_PRESSED caused by key autorepeat
on my system (Linux, java 1.5.0_09) have
timestamps that increase with each repetition.I think this means only that the pair of pressed/release events have the
same timestamp, not that every such pair has the same timestamp.
That is, if you have the sequence PRESS,RELEASE,PRESS,RELEASE,
the first two would have the same timestamp, and then the second two
would have the same timestamp, but different than the first. Regardless,
I found that also to not be the case; the PRESS and RELEASE did not have
the same timestamp even between pairs.
That said, this seems to work on both Windows and Linux, with the caveat
that releases may lag.
import java.awt.event.*;
import java.util.HashMap;
import java.util.Map;
import javax.swing.*;
public class LinuxKeyTest extends JPanel implements KeyListener {
     int delay = 750; // Must be > than your 500ms start delay.
     int delayRepeat = 75; // Must be greater than keyboard repeat interval.
     Map timers = new HashMap();
     int m_keyCode = -1;
     public static void main( String[] args ) {
          Runnable doRun = new Runnable() {
               public void run() {
                    new LinuxKeyTest();
          SwingUtilities.invokeLater( doRun );
     public LinuxKeyTest() {
          JPanel panel = new JPanel();
          panel.setFocusable( true );
          panel.requestFocusInWindow();
          panel.addKeyListener( this );
          JFrame f = new JFrame();
          f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          f.getContentPane().add( panel );
          f.setSize( 200, 100 );
          f.setLocation( 200, 200 );
          f.setVisible( true );
     public void keyPressed( KeyEvent e ) {
          int keyCode = e.getKeyCode();
          m_keyCode = keyCode;
          Integer timerKey = new Integer( keyCode );
          Timer timer = (Timer) timers.get( timerKey );
          if ( timer == null ) {
               KeyTimeout keyTimeout = new KeyTimeout( timerKey, e.getWhen() );
               timer = new Timer( delay, keyTimeout );
               timers.put( timerKey, timer );
               timer.start();
               pressed( keyCode );
          } else {
               ( (KeyTimeout) timer.getActionListeners()[0] ).setPressed( e.getWhen() );
               timer.restart();
     public void keyReleased( KeyEvent e ) {
          int keyCode = e.getKeyCode();
          Integer timerKey = new Integer( keyCode );
          Timer timer = (Timer) timers.get( timerKey );
          if ( timer != null ) {
               ( (KeyTimeout) timer.getActionListeners()[0] ).setReleased( e.getWhen() );
               timer.setInitialDelay( delayRepeat );
               m_keyCode = ( m_keyCode == keyCode ? -1 : keyCode );
          } else if ( m_keyCode != keyCode ) {
               released( keyCode );
     public void keyTyped( KeyEvent e ) {
     public void pressed( int keyCode ) {          
          System.out.println( keyCode + " pressed" );
     public void released( int keyCode ) {
          System.out.println( keyCode + " released" );
     public class KeyTimeout implements ActionListener {
          private Integer timerKey;
          private int keyCode;
          private long firstPressed;
          private long pressed;
          private long released;
          public KeyTimeout( Integer key, long time ) {
               this.timerKey = key;
               this.keyCode = timerKey.intValue();
               this.firstPressed = time;
               this.pressed = time;
               this.released = time;
          public void actionPerformed( ActionEvent e ) {
               if ( released != firstPressed && released != pressed ) {
                    released( keyCode );
                    stop();
               } else if ( m_keyCode != keyCode ) {
                    if ( m_keyCode == -1 ) {
                         released( keyCode );
                    stop();
          public void stop() {
               Timer timer = (Timer) timers.get( timerKey );
               timer.stop();
               timers.remove( timerKey );
          public void setPressed( long time ) {
               this.pressed = time;
          public void setReleased( long time ) {
               this.released = time;
}

Similar Messages

  • No sound when press physical keyboard keys

    Hello ! By clicking on the physical keyboard keys on my Blacberry Passport no sound ( tone) as when you press the virtual keys ( numbers, symbols, ....). And how are you ? What could be the problem? Is there a sound when you press the physical keys ?
    Solved!
    Go to Solution.

    Hi @SPBU 
    By design, audible 'typing noise' will not occur when pressing any of the physical keys.
    Audible noise will only occur when using the virtual keyboard. Thanks! 
    Did someone help you? Click Like! Did a post solve your issue? Click Accept as Solution!
    Follow me on Twitter or Google+ and subscribe to the Inside BlackBerry Help Blog

  • Changing the macbook keyboard

    Hi everybody hope someone'll be able to help me.
    I'm thinking of buying my first macbook this summer in the US. But there is one big hurdle - The keyboard. I want it in danish with the special danish keys Æ,Ø & Å.
    Whats the price for the keyboard?
    Can i change the physical keyboard myself? if not what would it cost to have the apple store do it for me?
    Have anybody experience with this i'd love if you could help me!
    Joey

    If getting a Danish keyboard is beyond what you want to pay, I recommend the overlays, stickers or just writing on the keys. I have been using Macs for Japanese since 1985. Some software I bought once came with some keyboard stickers and they worked really well. I know it's not the same as Danish, and now with modern input systems I don't bother, but I just thought I would add this info.

  • Getting the keyboard modifiers key state before injecting event.

    I'm using the Robot to inject keyboard events into a host computer from multiple clients.
    Since each client can have different modifiers keys (i.e. Shift, Alt, Ctrl, ...) set at a time and
    clients can interrupt each other, I need to be able to read from the host computer what
    modifier keys are set at that moment to get things back into synch.
    The KeyEvent class has a way to get the modifier keys through:
    KeyEvent.isShiftDown();
    KeyEvent.isControlDown():
    But this doesn't help (apparently) because that information is only available to a
    Keyboard listener when a key is pressed.
    What I need is a way to "get" the current keyboard modifier keys state before injecting
    an event through the Robot.
    Would anyone know how to do this?

    So... the clients send input events to the host and the host in turn simulates those events with the use of a Robot. Is that correct?
    If so then the program needs to save the last injected keyboard input that had a modifier mask in a field somewhere. Whenever you need to ask if any modifier keys are being pressed, you need only to look at this field and see if it is a pressed event. However, this method won't be able to detect a person physically at the host computer typing stuff.
    The central problem is that you can query keyboard input from OS (such as asking if shift is currently pressed) without a focused window using the standard api. But a focused window kind of defeats the purpose of what you are trying to do.

  • I would like to detect all the keyboard key is okay, but not every key can be detected by using LabVIEW example, keyboard keycode

    I would like to detect all the keyboard key is okay, but not every key can be detected by LabVIEW example ( we can use 『basic input demo.vi』to detect normal key』.
    I want to detect some 『hot key』 for example some keys exist in the upper part like 『search key』、『e-mail key』、『volumn control key』...etc. They are very often to be watched in some new keyboards, but we still don't know how to detect if their functions are okay.
    Can we detect signals of these 『hot key』 in LabVIEW? We can apply these hot key's functions in XP, so we should detect their signal, I think, but I can't do it.
    I serach some information about this question, and somebody said we can detect hot key's signal by grabing 『keybode』 these hot key feedback. But I don't know how to do these. I can't use VC. So anyone can give me a LabVIEW VI to grab keycode? Or any other solution we can detect all the key on the keyboard, including hot keys?
    Thanks!
    Regards,

    Maybe that is the limitation of Acquire Input Data.vi.The vi can't identify the Unformal key.
    You can try to use Event structure and set to listen "key down" event.
    There are two terminals VKey, ScanCode will sent out the information when you press key.
    There are two pictures in attached file, 2.jpg will show you the detail.
    Good luck.
    Attachments:
    SpecialKey.zip ‏17 KB

  • Event Structure's value change, not detecting changes when tabbing thru array of clusters

    Hi!  I have an array of clusters (int, int, string, int) control, and want to detecting changes made to the it.  I used the Event Structure's value change case on the array, it works excellent except that it'll only detect the changes when you click out of the element or press the enter key (the one by the numbers, not carriage return).  I want it to detect the changes when I tab thru the cluster or array too, but I can't figure it out... Does anyone have any ideas?
    Thanks!

    mfitzsimons wrote:
    altenbach
    Tried Value Change with my example done in 7.1 and it doesn't trgger an event.  That is why I suggested Mouse Down.
    Curious. I did a few minor edits in 8.0 before saving as 7.1, but the simple value change event got triggered just fine when the value vas terminated with a tab in 7.1. Every time.  Strange....
    Are you on 7.1 or 7.1.1? Maybe there's a difference (I am using 7.1.1).
    LabVIEW Champion . Do more with less code and in less time .

  • Change keyboard keys

    Hi,
    I bought a new Macbook Pro in Switzerland with the swiss (german) keyboard. How can I change the keyboard to have the spanish or us keyboard keys. Does Apple change it for free?
    Thanks
    Regards
    CLS

    carlos277 wrote:
    How can I change the keyboard to have the spanish or us keyboard keys. Does Apple change it for free?
    Change it for free… TANSTAAFL, my friend.
    Call a local Apple Store -- there's one in Barcelona
    <http://www.apple.com/es/retail/storelist/>
    or Apple Authorized Service Provider. I bet you won't like the price.
    The alternatives are key overlays or replacing the keycaps (something I wouldn't try). Or just learn to live with it…

  • Detect mouse clicks or keyboard events on desktop or everywhere

    Hi,
    What I have to do is to start the application minimized in the system tray. Then the application must be listening for crtl+shift+left mouse click in any part of the desktop or an opened application, when that happens, I have to show a window asking if the user want to take a screenshot starting in the x,y point he clicked and then take the screenshot.
    What I don't know how to do is to detect the mouse and keyboard events when the application is supposed to be running minimized in the system tray.
    How can I do that? Can anybody give me a hint?
    Thanks in advance.

    It's not possible with plain Java. You will need native code for this. Take a look at JNA.

  • I want to buy keyboard to change it because some keys was broken

    i want to buy keyboard to change it because some keys was broken

    OK that is not a problem except you do not tell us what kind of computer you have so we can direct you to the right keyboard to buy.

  • Have a PowerBook G4. I mistakenly hit a key (don't know what) that changed the entire keyboard into either typing numbers only or nothing at all. Please HELP...

    I have a PowerBook G4, 10.4.11. I mistakenly hit a key (don't know what) that changed the entire keyboard into either numbers only when typing or nothing at all with half the keyboard. Please HELP...

    Thank you TONS a brody.  Really appreciate it. 

  • DROID Physical Keyboard Problem - All keys don't work!

    Like many others, I switched to VZW in December from an iPhone so using a virtual keyboard was familiar to me - however, I had tried using the physical keyboard but noticed that not all the keys work (i.e. the space bar, backspace (delete)).  I simply wrote it up as quirk and thought it was something that would be corrected in a future update (2.0 -> 2.1).  Now 2.2 is about to be pushed any day now and rather that be optimistic that it's a firmware issue, has anyone else had this problem?
    I've done a factory reset on the device so it currently has nothing but the stock applications that it came with; so it can't be a market app that's causing an issue.

    Hi.  I am sorry you are having issues with your keyboard and I will be happy to help you from here.  I haven't had issues with my keyboard at all.   How long has this been going on?  It sounds like a hardware issue that we can help you with by going into the local store.
    Please let me know if you have any other questions.  
    Thanks!

  • Extra keyboard keys not detected

    How do I get them working?
    I read Extra Keyboard Keys and tried:
    # showkey --scancodes
    but that doesn't produce any (for those extra keys) output either.
    I had them working a while ago, except .. that was Windows (XP).
    $ lspci
    00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
    00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
    00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
    00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
    00:1d.0 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
    00:1d.1 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
    00:1d.2 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
    00:1d.3 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
    00:1d.7 USB controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
    00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
    00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 04)
    00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
    00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
    00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
    06:05.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)
    06:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
    06:09.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
    06:09.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
    06:09.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
    06:09.4 SD Host controller: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
    # lshw
    arch
    description: Notebook
    product: E2V
    version: N/A
    serial: 96NEV01J015040500BK000
    width: 32 bits
    capabilities: smbios-2.31 dmi-2.31
    configuration: boot=normal chassis=notebook uuid=0CF80EA0-706A-11D9-B90B-AFBC3B6A4702
    *-core
    description: Motherboard
    product: E2V
    physical id: 0
    serial: None
    *-firmware
    description: BIOS
    vendor: Phoenix Technologies LTD
    physical id: 0
    version: R01-A2P
    date: 11/29/2004
    size: 103KiB
    capacity: 448KiB
    capabilities: isa pci pcmcia pnp apm upgrade shadowing escd cdboot acpi usb agp biosbootspecification
    *-cpu:0
    description: CPU
    product: Intel(R) Pentium(R) M processor 1.73GHz
    vendor: Intel Corp.
    physical id: 4
    bus info: cpu@0
    version: 6.13.8
    slot: U1
    size: 800MHz
    capacity: 2400MHz
    width: 32 bits
    clock: 533MHz
    capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe bts est tm2 cpufreq
    *-cache:0
    description: L1 cache
    physical id: 8
    slot: L1 Cache
    size: 32KiB
    capacity: 32KiB
    capabilities: asynchronous internal write-back
    *-cache:1
    description: L2 cache
    physical id: 9
    slot: L2 Cache
    size: 2MiB
    capabilities: burst internal write-back unified
    *-memory
    description: System Memory
    physical id: 14
    slot: System board or motherboard
    size: 512MiB
    capacity: 3GiB
    *-bank:0
    description: DIMM DDR Synchronous
    physical id: 0
    slot: M1
    size: 512MiB
    width: 64 bits
    *-bank:1
    description: DIMM DDR Synchronous [empty]
    physical id: 1
    slot: M2
    *-cpu:1 DISABLED
    description: CPU
    physical id: 1
    bus info: cpu@0
    *-cpu:2 DISABLED
    description: CPU
    physical id: 2
    bus info: cpu@1
    version: 6.13.8
    size: 100MHz
    *-cpu:3 DISABLED
    description: CPU
    physical id: 3
    bus info: cpu@2
    version: 6.13.8
    *-cpu:4 DISABLED
    description: CPU
    physical id: 5
    bus info: cpu@3
    version: 6.13.8
    *-cpu:5 DISABLED
    description: CPU
    physical id: 6
    bus info: cpu@4
    version: 6.13.8
    *-cpu:6 DISABLED
    description: CPU
    physical id: 7
    bus info: cpu@5
    version: 6.13.8
    size: 100MHz
    *-cpu:7 DISABLED
    description: CPU
    physical id: 8
    bus info: cpu@6
    version: 6.13.8
    size: 50MHz
    *-pci
    description: Host bridge
    product: Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller
    vendor: Intel Corporation
    physical id: 100
    bus info: pci@0000:00:00.0
    version: 03
    width: 32 bits
    clock: 33MHz
    configuration: driver=agpgart-intel
    resources: irq:0
    *-display:0
    description: VGA compatible controller
    product: Mobile 915GM/GMS/910GML Express Graphics Controller
    vendor: Intel Corporation
    physical id: 2
    bus info: pci@0000:00:02.0
    version: 03
    width: 32 bits
    clock: 33MHz
    capabilities: pm vga_controller bus_master cap_list rom
    configuration: driver=i915 latency=0
    resources: irq:16 memory:b0080000-b00fffff ioport:1800(size=8) memory:c0000000-cfffffff memory:b0000000-b003ffff
    *-display:1 UNCLAIMED
    description: Display controller
    product: Mobile 915GM/GMS/910GML Express Graphics Controller
    vendor: Intel Corporation
    physical id: 2.1
    bus info: pci@0000:00:02.1
    version: 03
    width: 32 bits
    clock: 33MHz
    capabilities: pm cap_list
    configuration: latency=0
    resources: memory:24400000-2447ffff
    *-pci:0
    description: PCI bridge
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1
    vendor: Intel Corporation
    physical id: 1c
    bus info: pci@0000:00:1c.0
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
    configuration: driver=pcieport
    resources: irq:40 ioport:4000(size=4096) memory:24000000-241fffff ioport:24200000(size=2097152)
    *-usb:0
    description: USB controller
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1
    vendor: Intel Corporation
    physical id: 1d
    bus info: pci@0000:00:1d.0
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: uhci bus_master
    configuration: driver=uhci_hcd latency=0
    resources: irq:23 ioport:1820(size=32)
    *-usbhost
    product: UHCI Host Controller
    vendor: Linux 3.11.6-1-ARCH uhci_hcd
    physical id: 1
    bus info: usb@1
    logical name: usb1
    version: 3.11
    capabilities: usb-1.10
    configuration: driver=hub slots=2 speed=12Mbit/s
    *-usb:1
    description: USB controller
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2
    vendor: Intel Corporation
    physical id: 1d.1
    bus info: pci@0000:00:1d.1
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: uhci bus_master
    configuration: driver=uhci_hcd latency=0
    resources: irq:17 ioport:1840(size=32)
    *-usbhost
    product: UHCI Host Controller
    vendor: Linux 3.11.6-1-ARCH uhci_hcd
    physical id: 1
    bus info: usb@3
    logical name: usb3
    version: 3.11
    capabilities: usb-1.10
    configuration: driver=hub slots=2 speed=12Mbit/s
    *-usb
    description: Keyboard
    product: 2.4G Mouse
    vendor: 2.4G KB
    physical id: 1
    bus info: usb@3:1
    version: 11.10
    capabilities: usb-2.00
    configuration: driver=usbhid maxpower=100mA speed=2Mbit/s
    *-usb:2
    description: USB controller
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3
    vendor: Intel Corporation
    physical id: 1d.2
    bus info: pci@0000:00:1d.2
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: uhci bus_master
    configuration: driver=uhci_hcd latency=0
    resources: irq:18 ioport:1860(size=32)
    *-usbhost
    product: UHCI Host Controller
    vendor: Linux 3.11.6-1-ARCH uhci_hcd
    physical id: 1
    bus info: usb@4
    logical name: usb4
    version: 3.11
    capabilities: usb-1.10
    configuration: driver=hub slots=2 speed=12Mbit/s
    *-usb:3
    description: USB controller
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4
    vendor: Intel Corporation
    physical id: 1d.3
    bus info: pci@0000:00:1d.3
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: uhci bus_master
    configuration: driver=uhci_hcd latency=0
    resources: irq:19 ioport:1880(size=32)
    *-usbhost
    product: UHCI Host Controller
    vendor: Linux 3.11.6-1-ARCH uhci_hcd
    physical id: 1
    bus info: usb@5
    logical name: usb5
    version: 3.11
    capabilities: usb-1.10
    configuration: driver=hub slots=2 speed=12Mbit/s
    *-usb:4
    description: USB controller
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller
    vendor: Intel Corporation
    physical id: 1d.7
    bus info: pci@0000:00:1d.7
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: pm debug ehci bus_master cap_list
    configuration: driver=ehci-pci latency=0
    resources: irq:23 memory:b0040000-b00403ff
    *-usbhost
    product: EHCI Host Controller
    vendor: Linux 3.11.6-1-ARCH ehci_hcd
    physical id: 1
    bus info: usb@2
    logical name: usb2
    version: 3.11
    capabilities: usb-2.00
    configuration: driver=hub slots=8 speed=480Mbit/s
    *-pci:1
    description: PCI bridge
    product: 82801 Mobile PCI Bridge
    vendor: Intel Corporation
    physical id: 1e
    bus info: pci@0000:00:1e.0
    version: d4
    width: 32 bits
    clock: 33MHz
    capabilities: pci subtractive_decode bus_master cap_list
    resources: ioport:3000(size=4096) memory:b0100000-b01fffff ioport:20000000(size=67108864)
    *-network:0
    description: Wireless interface
    product: PRO/Wireless 2200BG [Calexico2] Network Connection
    vendor: Intel Corporation
    physical id: 5
    bus info: pci@0000:06:05.0
    logical name: wlp6s5
    version: 05
    serial: 00:15:00:31:55:bd
    width: 32 bits
    clock: 33MHz
    capabilities: pm bus_master cap_list ethernet physical wireless
    configuration: broadcast=yes driver=ipw2200 driverversion=1.2.2kmprq firmware=ABG:9.0.5.27 (Dec 12 2007) ip=192.168.0.103 latency=32 link=yes maxlatency=24 mingnt=3 multicast=yes wireless=IEEE 802.11bg
    resources: irq:20 memory:b0106000-b0106fff
    *-network:1
    description: Ethernet interface
    product: RTL-8139/8139C/8139C+
    vendor: Realtek Semiconductor Co., Ltd.
    physical id: 7
    bus info: pci@0000:06:07.0
    logical name: enp6s7
    version: 10
    serial: 00:0a:e4:a2:5c:c7
    size: 10Mbit/s
    capacity: 100Mbit/s
    width: 32 bits
    clock: 33MHz
    capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
    configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=32 link=no maxlatency=64 mingnt=32 multicast=yes port=MII speed=10Mbit/s
    resources: irq:20 ioport:3000(size=256) memory:b0107000-b01070ff
    *-pcmcia
    description: CardBus bridge
    product: PCIxx21/x515 Cardbus Controller
    vendor: Texas Instruments
    physical id: 9
    bus info: pci@0000:06:09.0
    version: 00
    width: 32 bits
    clock: 33MHz
    capabilities: pcmcia bus_master cap_list
    configuration: driver=yenta_cardbus latency=176 maxlatency=5 mingnt=192
    resources: irq:22 memory:28000000-28000fff ioport:3400(size=256) ioport:3800(size=256) memory:20000000-23ffffff memory:2c000000-2fffffff
    *-firewire
    description: FireWire (IEEE 1394)
    product: OHCI Compliant IEEE 1394 Host Controller
    vendor: Texas Instruments
    physical id: 9.2
    bus info: pci@0000:06:09.2
    version: 00
    width: 32 bits
    clock: 33MHz
    capabilities: pm ohci bus_master cap_list
    configuration: driver=firewire_ohci latency=32 maxlatency=4 mingnt=2
    resources: irq:22 memory:b0107800-b0107fff memory:b0100000-b0103fff
    *-storage
    description: Mass storage controller
    product: PCIxx21 Integrated FlashMedia Controller
    vendor: Texas Instruments
    physical id: 9.3
    bus info: pci@0000:06:09.3
    version: 00
    width: 32 bits
    clock: 33MHz
    capabilities: storage pm bus_master cap_list
    configuration: driver=tifm_7xx1 latency=57 maxlatency=4 mingnt=7
    resources: irq:22 memory:b0104000-b0105fff
    *-generic
    description: SD Host controller
    product: PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
    vendor: Texas Instruments
    physical id: 9.4
    bus info: pci@0000:06:09.4
    version: 00
    width: 32 bits
    clock: 33MHz
    capabilities: pm bus_master cap_list
    configuration: driver=sdhci-pci latency=57 maxlatency=4 mingnt=7
    resources: irq:22 memory:b0108400-b01084ff memory:b0108000-b01080ff memory:b0107400-b01074ff
    *-multimedia
    description: Multimedia audio controller
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller
    vendor: Intel Corporation
    physical id: 1e.2
    bus info: pci@0000:00:1e.2
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: pm bus_master cap_list
    configuration: driver=snd_intel8x0 latency=0
    resources: irq:21 ioport:1c00(size=256) ioport:18c0(size=64) memory:b0040800-b00409ff memory:b0040400-b00404ff
    *-communication
    description: Modem
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller
    vendor: Intel Corporation
    physical id: 1e.3
    bus info: pci@0000:00:1e.3
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: pm generic bus_master cap_list
    configuration: driver=snd_intel8x0m latency=0
    resources: irq:21 ioport:2400(size=256) ioport:2000(size=128)
    *-isa
    description: ISA bridge
    product: 82801FBM (ICH6M) LPC Interface Bridge
    vendor: Intel Corporation
    physical id: 1f
    bus info: pci@0000:00:1f.0
    version: 04
    width: 32 bits
    clock: 33MHz
    capabilities: isa bus_master
    configuration: driver=lpc_ich latency=0
    resources: irq:0
    *-ide
    description: IDE interface
    product: 82801FBM (ICH6M) SATA Controller
    vendor: Intel Corporation
    physical id: 1f.2
    bus info: pci@0000:00:1f.2
    version: 04
    width: 32 bits
    clock: 66MHz
    capabilities: ide pm bus_master cap_list
    configuration: driver=ata_piix latency=0
    resources: irq:17 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:18b0(size=16)
    *-serial UNCLAIMED
    description: SMBus
    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller
    vendor: Intel Corporation
    physical id: 1f.3
    bus info: pci@0000:00:1f.3
    version: 04
    width: 32 bits
    clock: 33MHz
    configuration: latency=0
    resources: ioport:20a0(size=32)
    Last edited by GERUM (2013-10-21 19:29:42)

    GERUM wrote:
    I read Extra Keyboard Keys and tried:
    # showkey --scancodes
    but that doesn't produce any (for those extra keys) output either.
    Wiki page you linked to wrote:Keys without a scancode are not recognized by the kernel.

  • My japanese macbook pro (late 2011) physical keyboard does not match with the on screen japanese keyboard in windows 8.1 so does caps lock

    I am using windows 8.1 pro on my Japanese macbook pro (Late 2011) and enabled japanese language but the problem is that when i press caps lock (lower left corner) it changes the input method from english to japanese. I checked my on screen keyboard (OSK) in windows and its different from my physical keyboard i.e. keys are different on my physical keyboard compared to OSK. Can anyone help me?
    Thanks
    Tenadona

    Can I suggest the following articles, which are worth reviewing?
    Boot Camp: About keyboards and key assignment for Microsoft Windows - Apple Support
    Boot Camp: Apple Wireless Keyboard keyboard mapping in Windows - Apple Support
    Boot Camp: Windows commands on an Apple keyboard
    Windows does require language packs to be installed, if you want the physical keyboard to match the on-screen keyboard.

  • Keyboard keys are not working

    Im on mac OS X 10.6.8 several keyboard keys are not working. For instance the at symbol is not working or question mark and random other punctuation keys. The problem started after running some code from terminal to trun off mouse acceleration and then installing a plug-in to control more accurately the mouse funtions. Ive since uninstalled the plug in and disabled the adjustment in terminal. Ive checked all the normal keyboard funcions to make sure settings were not funky. When I log out and log in as a differnt user the problem with the keyboard is fixed. Someone please help
    Code I ran
    defaults write .GlobalPreferences com.apple.mouse.scaling -1
    http://www.lockergnome.com/osx/2011/07/13/how-to-turn-off-mouse-acceleration-in- os-x/

    Hello lindzthecreator,
    I suggest this part of the article named One or more keys on the keyboard do not respond found here http://support.apple.com/kb/ts1381
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    All the very best,
    Sterling

  • Map Thinkpad Mouse Buttons to Keyboard Key

    Peace all!
    Does anyone know of a way to map the thinkpad mouse buttons to a normal keyboard key? I am unable to identify any mappable keycode using xev. Is it hardwired or something?
    ButtonPress event, serial 34, synthetic NO, window 0x4600001,
        root 0x115, subw 0x0, time 3353217, (155,11), root:(901,337),
        state 0x0, button 1, same_screen YES
    ButtonRelease event, serial 34, synthetic NO, window 0x4600001,
        root 0x115, subw 0x0, time 3353326, (155,11), root:(901,337),
        state 0x100, button 1, same_screen YES
    What I've managed to do is the opposite; map a keyboard key to a mouse button.
    http://www.geocities.jp/fred_b_maciel/kbd/kbd-e.html
    Basically involves using the Accessibility X mouse controlling feature(usually using numpad keys); remapping those to other keys.
    Thanks in advance?

    http://wiki.archlinux.org/index.php/Map … o_keycodes
    I presume I have to use this?
    http://wiki.archlinux.org/index.php/Setkeycodes
    The only way to detect a scancode is with,
    dmesg|tail -10
    fact, any time we press a key which has a scancode but no keycode, the kernel suggests us to use just 'setkeycodes' to
    The problem is thinkpad's mouse buttons are already bound. Is there another way to find out?
    The "Using HAL" website is broken.
    Also, is there a way to determine if the keys are actually hardware bound? Some of the thinkpad's keys are eg. FN keys and maybe the mute/light keys. In that case, there's no point in continuing further.

Maybe you are looking for

  • Error in clicking save to local file button in alv grid? urgent

    >>>>>       if lr_tabledescr->applies_to_data( <coltab_any> ) eq 'X'.  exactly i am getting error here how to rectify this error Error in clicking save to local file button and mail receipt button in alv grid?

  • Apps quit when I receive mail

    This started happening when I upgraded to iOS 5.  I have the latest the latest update.  I have also rebooted, closed all open apps to minimize the number of apps running. Anyone have any suggestions?

  • Moving events in iPhoto

    in iphoto, can you tell me how to move entire events into a new album and retain the event name, etc   the drag and drop method just dumps all the photos individually from the event into the new album. then i seem to have to recreate and rename the e

  • IE9 wont open pages, just give a new tab thats blank

    IE9 won't open a lot of pages.  It just opens a new tab that is a blank screen and a empty tab title.  The extension types all vary.  However, if I cut and paste the link in a new tab it will work.  I already tried to down grade the version to 8, but

  • Using systemMessageAttributes in BPEL Human Task

    Hi All, How can I use systemMessageAttributes: task:textAttribuite1 in human task. After creating a HT in BPEL, I am setting its outcome - rejecting or approving the task- using worklist Java API. Along with that I want to set the textAttribuite1 thr