Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Keyboard problem with 2.6 kernel

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
41 posts
  • 1
  • 2
  • Next
Author
Message
Vanquirius
Retired Dev
Retired Dev
User avatar
Posts: 1297
Joined: Fri Jun 14, 2002 9:07 pm
Location: Ethereal plains
Contact:
Contact Vanquirius
Website

Keyboard problem with 2.6 kernel

  • Quote

Post by Vanquirius » Sun Nov 30, 2003 12:59 pm

Hello,

Some people may want to have me killed for that, but for the past months I've been using a MS Wireless Desktop (Keyboard + Mouse):

Code: Select all

input0: USB HID v1.11 Keyboard [Microsoft Microsoft Wireless Optical Desktop� 1.00] on usb1:5.0
input1: USB HID v1.11 Mouse [Microsoft Microsoft Wireless Optical Desktop� 1.00] on usb1:5.1
Anyway, both the keyboard and the mouse work perfectly with gentoo-sources, although I do get keycode errors which I just ignore:

Code: Select all

keyboard.c: can't emulate rawmode for keycode 272
keyboard.c: can't emulate rawmode for keycode 273
I was trying to keep away from the dev-kernel series because of 'exotic' hardware like this, but you know how tempting it is :roll:
So, I gave a shot to mm-sources-2.6.0-test10 last night. Everything worked fine, except for the keyboard. I don't get the keycode errors anymore, but instead it prints exclamation points (!) to infinity, as if I was holding shift+1. I'm pretty sure it's the keyboard, since unplugging it will stop the !.

Anyone have any ideas about what I could do to make this work?

edit2: removed config link, obsolete
Last edited by Vanquirius on Thu Jan 29, 2004 7:41 pm, edited 2 times in total.
Hello.
Top
Vanquirius
Retired Dev
Retired Dev
User avatar
Posts: 1297
Joined: Fri Jun 14, 2002 9:07 pm
Location: Ethereal plains
Contact:
Contact Vanquirius
Website

  • Quote

Post by Vanquirius » Thu Dec 04, 2003 1:00 pm

Maybe just blocking the erroneous keycodes...?
Hello.
Top
TenPin
Guru
Guru
User avatar
Posts: 500
Joined: Mon Aug 26, 2002 4:36 pm
Location: Kansas City

  • Quote

Post by TenPin » Thu Dec 04, 2003 5:39 pm

The keyboard driver in 2.6 just seems to have been generally b0rked.

I always had 2.4 working fine with all the keys on my laptop but with 2,6 it claims the (i) button (next to power button) on my Dell laptop is a:

Code: Select all

atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
The volume keys still work though. Its annoying because I used the (i) to bring up a new terminal.

mm-sources applies some 2.4 compatibilty patch but this makes no difference for me.
Top
dippen
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 83
Joined: Sun Sep 15, 2002 9:10 pm

  • Quote

Post by dippen » Fri Dec 05, 2003 12:32 am

@TenPin

i got the same messages.
the problem is the atkbd-24-compatibility patch wich is part of the mm sources since linux-2.4.20-test9-mm3.
reverse this patch ( -R ) and the errors are away ;)

i've noticed no other difference so far

BtW i got a standard cherry keyboard on a desktop pc.. i dont know wich key produces this error. it occurs when i log in and x is coming up
Top
TenPin
Guru
Guru
User avatar
Posts: 500
Joined: Mon Aug 26, 2002 4:36 pm
Location: Kansas City

  • Quote

Post by TenPin » Fri Dec 05, 2003 1:49 am

Removing that patch doesn't help in my case because test10 vanilla gives an error when I press a key that I want to use, hence xev doesn't detect the keypress, otherwise everthing is great with test10 and mm.
Top
NeighborhoodGullwings
Apprentice
Apprentice
User avatar
Posts: 159
Joined: Fri Dec 05, 2003 6:38 am

  • Quote

Post by NeighborhoodGullwings » Fri Dec 05, 2003 6:46 am

I too had problems with my keyboard with the 2.6 kernel. I've tried so far the mm-sources test9 and test10, as well as development-sources test9 and test10.

My keyboard is a Compaq "Easy Access Keyboard" (although my comp isn't a compaq anymore). And the extra buttons along the top work great in gs-sources using the lineakd program, but only some of them work in 2.6. I think some of the keyboard mappings have changed.

I'd like to know if this is a universal issue or if there's something we need to do to correct it.
Top
BarryJ
n00b
n00b
Posts: 72
Joined: Sun Apr 13, 2003 7:55 pm
Location: Wisconsin, USA
Contact:
Contact BarryJ
Website

  • Quote

Post by BarryJ » Sun Dec 07, 2003 11:44 pm

I'm having similar issues with my MS Office keyboard in 2.6 (Gentoo sources for test11). Some of the multimedia keys work, some don't. Dmesg adds this for the ones that don't:
keyboard.c: can't emulate rawmode for keycode 245
Top
DJ_Grijander
n00b
n00b
User avatar
Posts: 58
Joined: Fri Aug 15, 2003 10:47 pm

  • Quote

Post by DJ_Grijander » Mon Dec 08, 2003 12:34 am

Add another one to the list. This is what I get with kernel 2.6.0-pre11 vanilla sources and one of my internet keys:

Code: Select all

atkbd.c: Unknown key pressed (translated set 2, code 0x154, data 0x1a, on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x154, data 0x9a, on isa0060/serio0).
I seems that the system actually reads a keycode (154), but it doesn't run the associated action. Definitely, it seems that something is wrong with the new kernel and the keyboard driver...
Top
Vanquirius
Retired Dev
Retired Dev
User avatar
Posts: 1297
Joined: Fri Jun 14, 2002 9:07 pm
Location: Ethereal plains
Contact:
Contact Vanquirius
Website

  • Quote

Post by Vanquirius » Thu Dec 18, 2003 6:04 pm

Well, problem persists with 2.6.0-stable.
Even my "vanilla" ps/2 keyboard behaves very funky.

No idea whatsoever of what to do.
Hello.
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Thu Dec 18, 2003 9:55 pm

Mine just comes up strange... X handles the key map fine, the basic letter keys all work, on the console, but after that...

# seems to have turned into 'switch to previous vt'
Shift-3 (which should give me £ as I'm on a UK keyboard and keymap) gives me ú

Other similar oddities happen with other keys. I have no idea what's going on here... this is with 2.6.0 final, my keyboard is a Logitech Cordless Comfort, UK layout, connected with USB.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
Vanquirius
Retired Dev
Retired Dev
User avatar
Posts: 1297
Joined: Fri Jun 14, 2002 9:07 pm
Location: Ethereal plains
Contact:
Contact Vanquirius
Website

  • Quote

Post by Vanquirius » Fri Dec 19, 2003 2:11 am

Considering that everything is working fine in X, I suppose I can let go having the keyboard work properly in console. However, it is still very annoying to see @^ sprawling around my screen as my computer boots. I wonder, is there any way to effectively block any keyboard input in console? (leaving me with just X support...) It might sound like a stupid idea, but the console is of no use for me if I can't even login because of the funky keyboard problem. Thanks for any help.
Hello.
Top
Andersson
Guru
Guru
User avatar
Posts: 525
Joined: Sat Jul 12, 2003 10:00 pm
Location: Göteborg, Sweden

  • Quote

Post by Andersson » Sun Dec 21, 2003 3:00 am

I just installed 2.6 today, and I have this keyboard error as well (only some multimedia keys work and "Unknown key released" errors in dmesg). Just wanted to hear if anyone has found a solution? My keyboard is a microsoft natural keyboard.
Top
Andersson
Guru
Guru
User avatar
Posts: 525
Joined: Sat Jul 12, 2003 10:00 pm
Location: Göteborg, Sweden

  • Quote

Post by Andersson » Mon Dec 22, 2003 3:51 am

I've been googling around looking for a solution, and even if I haven't found one I thought I'd post a few links about scancodes, keycodes, keymaps and non-standard keyboards. Just in case anyone wants to keep looking. I'll manage without those four keys for a while...

Some background on how keyboards work in linux:
http://www.tldp.org/HOWTO/Keyboard-and- ... WTO-2.html
http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html
http://rick.vanrein.org/linux/funkey/

About the atkbd.c: Unknown key pressed error:
http://testing.lkml.org/slashdot.php?mid=337181
Here's a longer thread with a little more background on this problem:
http://seclists.org/lists/linux-kernel/ ... /0182.html

There is a fix suggested for that problem in those threads, to edit /usr/src/linux/drivers/input/keyboard/atkbd.c and change the scancodes right there in the source. I tried it, but must have gotten it wrong because I still couldn't get anything from that key. Perhaps I simply didn't know what I was doing. :)
Top
foosh
Apprentice
Apprentice
User avatar
Posts: 231
Joined: Sun Jan 11, 2004 7:52 am
Location: STL
Contact:
Contact foosh
Website

  • Quote

Post by foosh » Fri Jan 16, 2004 9:16 pm

dippen wrote:the problem is the atkbd-24-compatibility patch wich is part of the mm sources since linux-2.4.20-test9-mm3.
reverse this patch ( -R ) and the errors are away ;)
could you explain more clearly how to reverse the patch please?
http://wustlog.blogspot.com
Top
bi3l
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Thu Feb 06, 2003 10:37 am
Location: France

  • Quote

Post by bi3l » Mon Jan 19, 2004 2:49 pm

Just try to re-apply the patch and you'll be done...
Top
snakattak3
Guru
Guru
User avatar
Posts: 468
Joined: Wed Dec 11, 2002 5:13 am
Location: Seattle

  • Quote

Post by snakattak3 » Thu Jan 29, 2004 8:51 am

Same issue here. Gentoo-Dev-sources-2.6.1. Getting these messages in dmesg

Code: Select all

atkbd.c: Unknown key released (translated set 2, code 0x92 on isa0060/serio0).
atkbd.c: Unknown key pressed (translated set 2, code 0xd8 on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0xd8 on isa0060/serio0).
atkbd.c: Unknown key pressed (translated set 2, code 0xd7 on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0xd7 on isa0060/serio0).
with some of my extra function keys. Some seem to work, and some don't. They all used to work with the old kernel. Has anyone found a fix or a hack yet? I was just going to copy the old 2.4.24 keyboard.c to the new kernel and replace it, but they are very different files, and from looking at the new layout, I don't think that the old keyboard.c can replace atkbd.c in the new 2.6 series.
Ban Reality TV!
Adopt an Unanswered Post
Top
kritip
n00b
n00b
User avatar
Posts: 56
Joined: Sat Jan 03, 2004 6:39 pm
Location: Nuneaton, Warks, UK

  • Quote

Post by kritip » Mon Feb 02, 2004 5:21 pm

I have the Microsoft Wireless Natural Multimedia Keyboard and Wireless Intellimouse Explorer V2.

With the stock 2.6 kernels i can't log in to the system (i don't start with X running). I can typically type 'root' hit return and then i just get a constant string of $$$$$$$$$$$$$$$$$$$$$$4 appearing with will comtinue forever until i press the volume up/doen buttons a few times, then all key non letter buttons on that console no longer work.

This has also been the case up until the latest mm releases where the keyboard will mow seem to type and then delete anything i type until i t sudden;y starts to work after many login attempts!!!! VERY odd.

The keyboard and mouse both use the one USB port via wireless and i don't have these problems running a Knoppix (2.4 kernel) Disc. I haven't tried a Gentoo 2.4 kernel yet, as i built this system on the 2.6 kernel and don't really wanns don grade.

Also with the mm sources, a patch was applied that got my # key working, but the lastest rc of 2.6.2 non-mm doesn't even appear to ahve this applied!!


Does anyone else experiece these same symptoms?? I can't beleive something likethis would exist in a stable kernel, everything else runs fine!!!

Any other suggestions, test, or anyone i can report my problems to??

Cheers,

Kristian
Signature?? I don't want a signature!
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Mon Feb 02, 2004 8:29 pm

Well I just switched to 2.6.1-gentoo and lost my #~ key... I can get the # back with xmodmap but it's not having the ~ at all, except in combination with modeswitch :S

What DID they do to the keyboard map in 2.6???
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
jingo
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 134
Joined: Wed Dec 04, 2002 3:25 pm
Location: Denmark

  • Quote

Post by jingo » Mon Feb 02, 2004 9:53 pm

Found this patch ... is this what is already in the mm?

http://www.spinics.net/lists/kernel/msg236787.html

I would think it should apply to my gentoo-dev-sources 2.6.1 kernel source, but I am having troubles applying it.

Anyone know if this solves the problem?
I'm not a perfectionist, even though my parents were
Top
kritip
n00b
n00b
User avatar
Posts: 56
Joined: Sat Jan 03, 2004 6:39 pm
Location: Nuneaton, Warks, UK

  • Quote

Post by kritip » Mon Feb 02, 2004 10:12 pm

maw wrote:Well I just switched to 2.6.1-gentoo and lost my #~ key... I can get the # back with xmodmap but it's not having the ~ at all, except in combination with modeswitch :S

What DID they do to the keyboard map in 2.6???
try the latest mm sources, they will get you back a normal ~# rather than having to resort to xmodmap (which only applies to X doesn't it?) The latest mm sources have the fix for that (which i read somewhere was caused by a kernel developer from SuSE not thinking that particular key was used, don't quote me on that though)

Seems like my other problem of the scrolling $$ is not that common, at least the #~ is fixed now, i await every new kernel release in hope it fixes it.

Kristian
Signature?? I don't want a signature!
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Mon Feb 02, 2004 10:31 pm

I found a patch which I was able to manually apply to 2.6.1-gentoo, which has sorted things out in X, but the console's still mucked up. I'll try mm sources another day I think.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
jingo
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 134
Joined: Wed Dec 04, 2002 3:25 pm
Location: Denmark

  • Quote

Post by jingo » Mon Feb 02, 2004 10:38 pm

maw wrote:I found a patch which I was able to manually apply to 2.6.1-gentoo, which has sorted things out in X, but the console's still mucked up. I'll try mm sources another day I think.
This patch:
http://www.spinics.net/lists/kernel/msg236787.html
??

How did you apply it?
I'm not a perfectionist, even though my parents were
Top
maw
Apprentice
Apprentice
Posts: 175
Joined: Sun Aug 25, 2002 6:54 pm
Location: Nottingham, UK
Contact:
Contact maw
Website

  • Quote

Post by maw » Tue Feb 03, 2004 10:23 am

No, it was a much simpler patch than that. Unfortunately I've lost the URL... the patch was by the same person though, so I suspect what you've found is a newer variant, especially given the reference to -mm3.

The one I did was only one hunk, so it was easy to do by hand.
Your Gentoo woll sle me sodenly!
I may the beaute of it not sustene
(to misquote Chaucer)
Top
To
Veteran
Veteran
User avatar
Posts: 1145
Joined: Sat Apr 12, 2003 9:12 pm
Location: Coimbra, Portugal
Contact:
Contact To
Website

  • Quote

Post by To » Tue Feb 03, 2004 11:32 am

I've exactly the same problem with my Microsoft Wireless Natural Multimedia Keyboard and Wireless Intellimouse Explorer V2.

Tó

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Top
Uncle_Psychosis
Guru
Guru
User avatar
Posts: 387
Joined: Sat Jan 31, 2004 2:16 pm

Re: Keyboard problem with 2.6 kernel

  • Quote

Post by Uncle_Psychosis » Tue Feb 03, 2004 11:57 am

ManuChao wrote:Hello,

Some people may want to have me killed for that, but for the past months I've been using a MS Wireless Desktop (Keyboard + Mouse):
In my experience microsoft hardware is pretty damn good (a lot better than their software anyway!)

I'm not sure I can help with the keymap problems, but for the people with multimedia key problems, have you tried using lineak?

http://lineak.sourceforge.net/

I've not had any problems getting this to work (mind you, I've not tried using the "volume" and "mute" buttons yet but thats a whole new thread :-) )

HTH

Sam
Top
Post Reply

41 posts
  • 1
  • 2
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic