After further investigation, my problem is definitely related to this bug. I was mistaken that xmodmap works with the USB keyboard initially, it does not work. Xorg.0.log is indicating that every few minutes, the USB keyboard is reloaded, because of a Read Error. That is why I lose my xmodmap settings every few minutes.
-- xmodmap settings not getting honored when keyboard devices are hotplugged https://bugs.launchpad.net/bugs/287215 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs