Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.1 and USB keyboard problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Evinyatar
n00b
n00b


Joined: 15 Feb 2003
Posts: 70

PostPosted: Tue Jan 13, 2004 1:03 pm    Post subject: 2.6.1 and USB keyboard problems Reply with quote

I'm having a peculiar problem with both ppc-development-sources-2.6* kernels, being that I can't type a pipe ( | ) or a backslash ( \ ) on my USB Apple Pro Keyboard. Both are on the same key on my layout (Dutch QWERTY). However, when I switch to the console from X (alt-ctrl-f1) and hit that key, it switches back to X. I did not have this problem with 2.6.0-r2 or with 2.4.22. I used the same .config from my 2.6.0-r2 kernel to compile 2.6.1-r1, but no luck. This is my .config for 2.6.1-r1 (comments filtered out):
Code:
CONFIG_MMU=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_HAVE_DEC_LOCK=y
CONFIG_PPC=y
CONFIG_PPC32=y
CONFIG_GENERIC_NVRAM=y
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=14
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
CONFIG_6xx=y
CONFIG_ALTIVEC=y
CONFIG_TAU=y
CONFIG_PPC_STD_MMU=y
CONFIG_PPC_MULTIPLATFORM=y
CONFIG_PPC_CHRP=y
CONFIG_PPC_PMAC=y
CONFIG_PPC_PREP=y
CONFIG_PPC_OF=y
CONFIG_PPCBUG_NVRAM=y
CONFIG_KERNEL_ELF=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_PROC_DEVICETREE=y
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="console=ttyS0,9600 console=tty0 root=/dev/sda2"
CONFIG_GENERIC_ISA_DMA=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCI_LEGACY_PROC=y
CONFIG_PCI_NAMES=y
CONFIG_HOTPLUG=y
CONFIG_ADVANCED_OPTIONS=y
CONFIG_HIGHMEM_START=0xfe000000
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_KERNEL_START=0xc0000000
CONFIG_TASK_SIZE=0x80000000
CONFIG_BOOT_LOAD=0x00800000
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_LBD=y
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=m
CONFIG_BLK_DEV_IDESCSI=m
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDE_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST=y
CONFIG_BLK_DEV_IDEDMA_PMAC=y
CONFIG_BLK_DEV_IDE_PMAC_BLINK=y
CONFIG_BLK_DEV_IDEDMA_PMAC_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=m
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=m
CONFIG_SCSI_REPORT_LUNS=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_IEEE1394=m
CONFIG_IEEE1394_PCILYNX=m
CONFIG_IEEE1394_OHCI1394=m
CONFIG_IEEE1394_SBP2=m
CONFIG_IEEE1394_ETH1394=m
CONFIG_IEEE1394_RAWIO=m
CONFIG_ADB_CUDA=y
CONFIG_ADB_PMU=y
CONFIG_ADB=y
CONFIG_ADB_MACIO=y
CONFIG_INPUT_ADBHID=y
CONFIG_MAC_EMUMOUSEBTN=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_SYN_COOKIES=y
CONFIG_BRIDGE=m
CONFIG_NETFILTER=y
CONFIG_BRIDGE_NETFILTER=y
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_IRC=m
CONFIG_IP_NF_TFTP=m
CONFIG_IP_NF_AMANDA=m
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_LIMIT=m
CONFIG_IP_NF_MATCH_IPRANGE=m
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_PKTTYPE=m
CONFIG_IP_NF_MATCH_MARK=m
CONFIG_IP_NF_MATCH_MULTIPORT=m
CONFIG_IP_NF_MATCH_TOS=m
CONFIG_IP_NF_MATCH_RECENT=m
CONFIG_IP_NF_MATCH_ECN=m
CONFIG_IP_NF_MATCH_DSCP=m
CONFIG_IP_NF_MATCH_AH_ESP=m
CONFIG_IP_NF_MATCH_LENGTH=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_MATCH_TCPMSS=m
CONFIG_IP_NF_MATCH_HELPER=m
CONFIG_IP_NF_MATCH_STATE=m
CONFIG_IP_NF_MATCH_CONNTRACK=m
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_TARGET_NETMAP=m
CONFIG_IP_NF_TARGET_SAME=m
CONFIG_IP_NF_NAT_SNMP_BASIC=m
CONFIG_IP_NF_NAT_IRC=m
CONFIG_IP_NF_NAT_FTP=m
CONFIG_IP_NF_NAT_TFTP=m
CONFIG_IP_NF_NAT_AMANDA=m
CONFIG_IP_NF_TARGET_TCPMSS=m
CONFIG_IP_NF_ARPTABLES=m
CONFIG_IP_NF_ARPFILTER=m
CONFIG_IP_NF_ARP_MANGLE=m
CONFIG_IP_NF_COMPAT_IPCHAINS=m
CONFIG_IPV6_SCTP__=y
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
CONFIG_CRC32=y
CONFIG_MACE=m
CONFIG_SUNGEM=m
CONFIG_NET_PCI=y
CONFIG_8139TOO=m
CONFIG_INPUT=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1152
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=864
CONFIG_INPUT_EVDEV=y
CONFIG_GAMEPORT=m
CONFIG_SOUND_GAMEPORT=m
CONFIG_GAMEPORT_CS461x=m
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_PMACZILOG=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_I2C=m
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_ALGOBIT=m
CONFIG_I2C_KEYWEST=m
CONFIG_LIRC_SUPPORT=m
CONFIG_LIRC_MAX_DEV=2
CONFIG_LIRC_I2C=m
CONFIG_BUSMOUSE=y
CONFIG_NVRAM=y
CONFIG_GEN_RTC=y
CONFIG_AGP=m
CONFIG_AGP_UNINORTH=m
CONFIG_DRM=y
CONFIG_DRM_R128=m
CONFIG_VIDEO_DEV=m
CONFIG_VIDEO_BT848=m
CONFIG_VIDEO_TUNER=m
CONFIG_VIDEO_BUF=m
CONFIG_VIDEO_BTCX=m
CONFIG_FB=y
CONFIG_FB_OF=y
CONFIG_FB_CONTROL=y
CONFIG_FB_PLATINUM=y
CONFIG_FB_VALKYRIE=y
CONFIG_FB_CT65550=y
CONFIG_FB_IMSTT=y
CONFIG_FB_ATY128=y
CONFIG_FB_ATY=y
CONFIG_FB_ATY_CT=y
CONFIG_FB_ATY_GX=y
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_PCI_CONSOLE=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
CONFIG_SOUND=m
CONFIG_DMASOUND_PMAC=m
CONFIG_DMASOUND=m
CONFIG_SND=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_DUMMY=m
CONFIG_SND_CS46XX=m
CONFIG_SND_POWERMAC=m
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_SERIAL=m
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_JBD=y
CONFIG_FS_MBCACHE=y
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_ZISOFS_FS=y
CONFIG_UDF_FS=y
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_DEVFS_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_HFS_FS=m
CONFIG_HFSPLUS_FS=m
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
CONFIG_SMB_FS=m
CONFIG_PARTITION_ADVANCED=y
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_ISO8859_1=m
CONFIG_ZLIB_INFLATE=y
CONFIG_BOOTX_TEXT=y


And I've got this in my rc.conf:
Code:
KEYMAP="us"


Any ideas?
Back to top
View user's profile Send private message
hanta
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 115
Location: Vantaa - Finland

PostPosted: Tue Jan 13, 2004 4:30 pm    Post subject: Re: 2.6.1 and USB keyboard problems Reply with quote

Evinyatar wrote:
I'm having a peculiar problem with both ppc-development-sources-2.6* kernels, being that I can't type a pipe ( | ) or a backslash ( \ ) on my USB Apple Pro Keyboard.

Ive got the same exact problem, but the missing/troublesome characters differ. Mine are * and '. Its making coding pretty hard.

Evinyatar wrote:
Both are on the same key on my layout (Dutch QWERTY). However, when I switch to the console from X (alt-ctrl-f1) and hit that key, it switches back to X.

My layout is Finnish QWERTY and the key is same for both characters. My system also switches from console to X and in gnome it takes a screenshot(?).

The key in my keyboard is in the corner of enter and right shift.

Evinyatar wrote:
I did not have this problem with 2.6.0-r2 or with 2.4.22. I used the same .config from my 2.6.0-r2 kernel to compile 2.6.1-r1, but no luck.

I havent used any other 2.6 -kernels, but 2.4.x worked fine. Im using AMD Athlon XP, A7N8X-DLX and 2.6.1-love2.

Evinyatar wrote:
And I've got this in my rc.conf:
Code:
KEYMAP="us"

Mine is
Code:
KEYMAP="fi-latin1 euro2"


Evinyatar wrote:
Any ideas?

No. Sorry :(
_________________
Janne
Back to top
View user's profile Send private message
hanta
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 115
Location: Vantaa - Finland

PostPosted: Tue Jan 13, 2004 8:59 pm    Post subject: Re: 2.6.1 and USB keyboard problems Reply with quote

YES!
I solved my problem :)

***'''

Actually I got the answer from a Finnish Usenet Group, but still.
Seems that the problem is indeed with thw 2.6.1 kernel and some USB keyboards (mine is Logitech Internet Keyboard Deluxe). Apparently the key in question returns a code 84 when 43 is expected and 84 is defined as last_console in console and print screen in X.

I had a choise to either redefine my keymaps or edit the kernel file:
drivers/char/keyboard.c

editing the line:
static unsigned short x86_keycodes[256] =
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
...
80, 81, 82, 83, 84, 93, 86, 87, 88, 94, 95, 85,259,375,260, 90,
...

so that the above 84 is changed to 43, fixes the problem and, from what I've heard, makes the kernel act like the old 2.4 series.

I edited the keyboard.c, recompiled the kernel and keyboard is working fine :)
_________________
Janne
Back to top
View user's profile Send private message
Evinyatar
n00b
n00b


Joined: 15 Feb 2003
Posts: 70

PostPosted: Wed Jan 14, 2004 10:25 am    Post subject: Reply with quote

Thanks! That did it :D
Back to top
View user's profile Send private message
aequitas
Apprentice
Apprentice


Joined: 28 Aug 2002
Posts: 190
Location: Ooy bij arnhem

PostPosted: Fri Jan 23, 2004 6:08 pm    Post subject: Reply with quote

Got the same problem. Dutch logitech elite here. Soon to be replaced with a apple keyboard :)

Am compiling the kernel right now. Pretty sure it will work.

Thanx
_________________
I am not superstitious, that brings bad luck.
Back to top
View user's profile Send private message
ltj
n00b
n00b


Joined: 13 Feb 2004
Posts: 10
Location: Denmark

PostPosted: Sat Feb 14, 2004 3:12 pm    Post subject: Reply with quote

hanta: Thanks a lot! It did the trick in X.

But the problem still exists in the console - has anyone found a solution to that?
In my case th (43) key switches between virtual consoles when pressed.

Regards.
Back to top
View user's profile Send private message
ltj
n00b
n00b


Joined: 13 Feb 2004
Posts: 10
Location: Denmark

PostPosted: Mon Feb 16, 2004 10:12 am    Post subject: Re: 2.6.1 and USB keyboard problems Reply with quote

Solved the problem!

In my case the modification of keyboard.c had no effect in the console.
It still has the last_console property - that one I did'nt see in hanta's post:

hanta wrote:
YES!
Apparently the key in question returns a code 84 when 43 is expected and 84 is defined as last_console in console and print screen in X.

I had a choise to either redefine my keymaps or edit the kernel file:
drivers/char/keyboard.c


So redefining my keymap (dk-latin1) was the solution. I just copied the definition of keycode 43 to an identical defintion of keycode 84, and it now works as proposed. Thanx


Regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum