Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16884 - Loading of windowkeys.inc in /etc/init.d/keymaps
Summary: Loading of windowkeys.inc in /etc/init.d/keymaps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 06:20 UTC by Lars Weiler (RETIRED)
Modified: 2003-04-27 12:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
loading ibook-altgr keymap (keymaps,982 bytes, text/plain)
2003-03-09 10:23 UTC, Lars Weiler (RETIRED)
Details
ibook-altgr keyboard setting (ibook-altgr.inc,21 bytes, text/plain)
2003-03-09 10:25 UTC, Lars Weiler (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Weiler (RETIRED) gentoo-dev 2003-03-05 06:20:22 UTC
Seems that a x86-user wrote that file ;-)

If you're a ppc-user and have use of third options on the keyboard, the load of
windowkeys.inc mess it up.  The keycode 125 is for the Apple-Key, but most will
use it as third option key (with remapping it to AltGr).

I suggest to delete the loading of windowkeys.inc in /etc/init.d/keymaps
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-09 09:50:03 UTC
Please attach your /atc/init.d/keymaps
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2003-03-09 10:23:41 UTC
Created attachment 9167 [details]
loading ibook-altgr keymap

Actually I wrote a small ibook-altgr keymap file, that I will load in
/etc/init.d/keymaps in stead of windowkeys.inc

The ibook-altgr is added in the next attachment.

But this would not be a good solution for every gentoo-user.  The best thing
would be a further variable like KEYBOARD_TYPE where one can set his
keyboard-type (101/104/105/ibook etc.).  Relating to the this, the settings in
/etc/init.d/keymaps would be done.
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2003-03-09 10:25:04 UTC
Created attachment 9168 [details]
ibook-altgr keyboard setting
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-27 12:52:48 UTC
Ok, I updated keymaps to look like below.  You can just add to /etc/rc.conf:

EXTENDED_KEYMAP="ibook-altgr"

It will be fixed in the next unstable baselayout.

--------------------- /etc/init.d/keymaps -----------------------------
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/keymaps,v 1.15 2003/01/21 22:05:07 azarah Exp $


depend() {
	need localmount
}

checkconfig() {
	if [ -z "${KEYMAP}" ]
	then
		eerror "You need to setup \$KEYMAP in /etc/rc.conf first"
		return 1
	fi
}

start() {
	checkconfig || return 1

	# Force linux keycodes for PPC ...
	if [ -f /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes ]
	then
		echo 1 > /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes
	fi
	
	ebegin "Loading key mappings"
	
	# Enable unicode ...
	set -- ${KEYMAP}
	if [ "$1" = "-u" ]
	then
		/usr/bin/kbd_mode -u
	fi
	
	# New kbd support ...
	if [ -x /bin/loadkeys ]
	then
		[ -z "${EXTENDED_KEYMAP}" ] && local EXTENDED_KEYMAP="windowkeys"
		
		/bin/loadkeys -q ${EXTENDED_KEYMAP} ${KEYMAP} >/dev/null
	# Old console-tools support ...
	elif [ -x /usr/bin/loadkeys ]
	then
		[ -z "${EXTENDED_KEYMAP}" ] && local EXTENDED_KEYMAP="windowkeys.inc"
		
		/usr/bin/loadkeys -q ${EXTENDED_KEYMAP} ${KEYMAP} >/dev/null
	else
		eend 1 "loadkeys executable not found"
		return 1
	fi
	eend $? "Error loading key mappings"
}


# vim:ts=4