8

When I press the key 1 on my laptop keyboard, it does not print anything on the screen, but Shift+1 prints !. I have this problem only with just with 1!

  1. It doesn't matter which layout is in use, I tried different layouts and still 1 prints nothing.

  2. I test the issue on a USB keyabord plugged to my laptop and still can't print it.


  • My laptop: Dell Inspiron 5458
  • OS Edition: 18.10, Kubuntu

xev output when I press 1:

FocusOut event, serial 40, synthetic NO, window 0x3a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x3a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  2   4   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x3a00001,
    root 0x17b, subw 0x0, time 696147, (891,524), root:(891,528),
    state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
    XLookupString gives 1 bytes: (31) "1"
    XFilterEvent returns: False

xev output when I press Shift+1:

KeyPress event, serial 40, synthetic NO, window 0x3a00001,
    root 0x17b, subw 0x0, time 697230, (891,524), root:(891,528),
    state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x3a00001,
    root 0x17b, subw 0x0, time 698223, (891,524), root:(891,528),
    state 0x1, keycode 10 (keysym 0x21, exclam), same_screen YES,
    XLookupString gives 1 bytes: (21) "!"
    XmbLookupString gives 1 bytes: (21) "!"
    XFilterEvent returns: False

xev output when I press 2:

KeyRelease event, serial 40, synthetic NO, window 0x3a00001,
    root 0x17b, subw 0x0, time 694954, (891,524), root:(891,528),
    state 0x0, keycode 11 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: False

xmodmap -pm

xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock      
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)
4
  • Suggestion: Should add more information on setup: 1. Which keyboard layout is being used? 2. What kind of keyboard hardware (or laptop model)? These additional information will likely encourage any user with similar setup to help.
    – user37165
    Nov 23, 2018 at 7:07
  • Suggestion: 3. Which Ubuntu release is being used? This recent, but unanswered post hinted that the same laptop model (Dell Inspiron 5458) works in 14.04, but had misconfigured keyboard in 18.04. The system release may be a cause.
    – user37165
    Nov 24, 2018 at 5:46
  • Are you briefly touching the touchpad when you hit 1. When you hit shift 1 for ! are you doing it with the same hand, because the focusout and focusin notices are from the touchpad. If you hit 1 and shift with the same hand for ! that would explain why it does not occur then. Nov 24, 2018 at 7:02
  • I would also check xmodmap -pm see if anything stands out. Nov 24, 2018 at 7:10

2 Answers 2

1
+300

Narrow it down to hardware or software

First check to see if it is OS software, Application Tools or Laptop BIOS which is causing interference:

  1. Boot with Live USB and select "Try Ubuntu without Installing". Does the 1 key work properly? If not try step 2. If yes reinstall Ubuntu 18.10.
  2. Boot your laptop but interrupt Grub by pressing c key for command. Does the 1 key work properly? If Yes it is a problem with Ubuntu 18.10. If not go to step 3.
  3. Get a USB keyboard (they start at $10 if you can't borrow one) and plug it in. Boot your laptop normally. Does the 1 key work properly? If not try step 4. If yes check Dell Update website and install this: enter image description here
  4. Try using Windows 7/8/10. Does problem still exist?
3
  • Solved by: rm -rf ~/.config/* and a logout-login
    – mini
    Nov 25, 2018 at 18:44
  • 1
    @mini Please post that as an answer (yes, you can answer your own question).
    – wjandrea
    Nov 25, 2018 at 19:20
  • I second the @wjandrea motion and will happily upvote if you post a comment here after answer is posted. Nov 25, 2018 at 19:22
1

By removing ~/.config/kglobalshortcutsrc file, now that it's reset, I can type 1 by 1. My OS is Kubuntu and maybe there's kinda conflict by assigning new shortcut for Yakuake drop-down terminal or other software. But I don't know the exact reason for the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.