From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NAled-0004rR-Rn for garchives@archives.gentoo.org; Wed, 18 Nov 2009 14:37:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C604BE079D; Wed, 18 Nov 2009 14:36:50 +0000 (UTC) Received: from mail-pz0-f174.google.com (mail-pz0-f174.google.com [209.85.222.174]) by pigeon.gentoo.org (Postfix) with ESMTP id 92A63E079D for ; Wed, 18 Nov 2009 14:36:50 +0000 (UTC) Received: by pzk4 with SMTP id 4so787164pzk.32 for ; Wed, 18 Nov 2009 06:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=Q7lakZlv1vEWYAKgO0MYaHDTggRMGiiFLTHcJzQYOb0=; b=lnWhgnEyqiKUKXz1MzOBd+1lMjiKBPRG8wxZNZvV3v0i2oGlUVIlC1XCrrX2xOw1qn RZD7uW0An/nghnpFF5NEeYh34u7rC+WAzNkq3KqgvzAItodYLeeHRrBI6xhdbV36jOKx UmjFXMjuFTGVXLQOcWnAu0F9C/TUFh/gfRr1Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=g85C/FSn9o05Xm9kz99CghgHFJUs5yNQ9DNuuORA0upbaHD9SN1DCocyk2GOSulIFp w1Q5HedA26CCL+llCYTyA9xqHvww3h59GNHIAo8Xv9V6G8w8nIp7dOeFhZysRIILuOKA rh/PDefHJCjIobS5UT6NhxlRSsYkmmsutbpO4= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.143.25.36 with SMTP id c36mr1268758wfj.1.1258555010072; Wed, 18 Nov 2009 06:36:50 -0800 (PST) Date: Wed, 18 Nov 2009 23:36:49 +0900 Message-ID: <3ac129340911180636h6380c393w4b4e15d57897f2fe@mail.gmail.com> Subject: [gentoo-user] Re: Keyboard Mapping Issues [solved] From: daid kahl To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1a9920fa-f0ab-49a7-ae16-d9ac16cb420b X-Archives-Hash: 9e5e03051970e8857d8ed7ad4ed1ec22 2009/11/18 daid kahl : > Hello, > > After some recent updates, my keyboard shows some strange and > undesirable behavior. =A0It is a MacBook (no previous keyboard > problems), with US mapping and UTF-8 mode. > It appears that the problem is some unholy alliance between hal-0.5.13-r2 and the 2.6.30 gentoo-sources. I was upgrading from a fairly outdated kernel (2.6.27). Somehow (perhaps because hal looks for configurations in /usr/src/linux), even my old kernel functionality for hotkeys was bungled by the new kernel. The old kernel functionality was regained by rebuilding tons of packages against the properly eselected kernel. However, I have now gotten the hot keys working again in the newer kernel as well. The only unresolved issue is the '@' sign at command prompt is still a line-delete (very queer), but I regained all hotkeys and other features. The basic problem resulted from a new kernel configuration for the Apple hotkeys. Previously it was called USB_HIDINPUT_POWERBOOK (up until at least 2.6.27), but as of 2.6.28 (and up to at least 2.6.30) this is now called HID_APPLE. Although this feature got enabled from doing oldconfig, somehow it 'missed' a dependency. So in the raw .config it's showing up as being activated, but it won't show up in menuconfig. Using the menuconfig search tool (/) then I could check the dependencies of HID_APPLE, which I was missing EMBEDDED (it also depends on HID_SUPPORT && HID && (USB_HID || BT_HIDP)). This is, I suppose, a problem because I didn't follow my own advice to avoid oldconfig from very different kernel versions, as it can result in funky half-baked transformation of rule-name changes like the above. Then once I loaded HID_APPLE as a module, I could add a module rule which I called /etc/modprobe.d/fn-key : options hid_apple fnmode=3D2 Function mode 2 means that the F1-12 keys should behave as normal function keys, and only act like special hotkeys if I press the 'Fn' key -- I expect most Linux users would want this behavior...unless you like making the claw-hand to Fn-Alt-F4 and close windows... Just for a full report (and Google hits for other unfortunates), in the past, this was done through the usbhid module like: options hid pb_fnmode=3D2 At some point the battery indicator in xfce4-battery-plugin was reading 0 (tested some other indicators such as the xfce4-power-manager and got the same results). I regained proper battery % display by taking out the battery, rebooting into Mac OS, putting the battery back in, and rebooting back to Gentoo; maybe just temporarily removing the battery alone or booting to Mac OS alone was good enough, but I just did both at once through intuition. It's not at all clear which package was responsible for this bungling, since I was variously upgrading and downgrading e2fsprogs, e2fsprogs-libs, util-linux (none of these three are recommended for switching versions, by the way -- you probably need the buildpkg feature enabled in portage), udev, xf86-input-evdev, hal, device-mapper, and lvm2. If I had to guess, I'd say it was udev since now when I pull the power cable the screen auto-dims, which sounds like a udev feature (but I didn't scan the udev rules.d directory yet) -- but it was almost certainly hal, udev, or evdev, since those were the upgrades when I noticed on reboot that the battery read 0%. pommed had to rebuilt as well to get back volume control features. This was somewhere in the annoyance with ALSA not doing things correctly for my volume. I didn't test it, but it's possible pommed hotkeys don't work correctly in the old kernel now, since alsa and the keyboard mapping changed a bit in the 3 kernel versions. Now that everything works in the new kernel, I don't care to test. I wish my report on the upgrade from 2.6.27 to 2.6.30 was more systematic, but after so much work to get things functional, I'm in no position to go break it all again and pin point exactly the issue. But it seems to have been almost entirely in the kernel. Regards, daid