Okay, so here I am, running Xev. My keyboard mostly works fine. I have a HP Pavillion Dv1000 and I'm running OpenSUSE. I've had the following problem on 3-4 other distros aswell.
-I hit "c" on my keyboard. Xev tells me I had two keyPress events, keycode 121 and keycode 54. 121 corresponds to the volume button.
-I hit "d" on the keyboard. Xev tells me that I had two keypress events, keycode 122 and keycode 40.
-I hit the "touchpad on" button. Xev tells me that I hit keycode 26, "e"
So the implications of this are that when I hit touchpad on, I also type the letter e. It also works in reverse for some reason. When I type "e", my touchpad toggles on/off.
Also, "c" mutes my volume, and "d" lowers my volume.
I'm not too worried about the touchpad error, because I plan on doing mostly programming in the shell, and I can LIVE with having to toggle on my mouse once in a while. The problem is the "c" and "d" thing.
The current fix is editing my .Xmodmap file to having keycodes 121 and 122 point to nothing. I really don't care about volume control. But here's the real
problem that I need help with. I open up nano, and I type #include , but when I hit the "c" I get a newline. Same with d.
If i were to type it, i would get
Every time I hit a c or a d, i get a newline. I suppose that means nano decides 121 and 122 point to a newline character.
vi does something similar and doesn't work.
I can live with every other issue
my keyboard has given me but not this. If someone can help me figure out how to change the way nano receives input, please tell me. Do I need to build nano myself and change somewhere in the source code where it talks about reading certain numbers?