2013-01-25T21:50:25ZFluxBBhttps://bbs.archlinux.org/viewtopic.php?id=136439Hello, sorry to necropost but I came across this thread in my search for the same issue, and I've got a semi-solution that isn't mentioned here yet:

It only works in X, but is a slightly cleaner solution than numlockx. The xkb option numpad:mac changes the keymap so that the numlock state has no effect, and the numpad keys only send numbers.

You can either set it via "setxkbmap -option numpad:mac", or permanently through an X config file like this one:

Command clear or shift clear or just clear turn numlock on and off it's been a while just try...

Yeah I know how to do it, I'd just prefer if I didn't have to. There's no numlock key on this keyboard, Linux should just handle it like OS X and force numlock on all the time.

]]>https://bbs.archlinux.org/profile.php?id=121612012-12-16T22:28:17Zhttps://bbs.archlinux.org/viewtopic.php?pid=1206814#p1206814Command clear or shift clear or just clear turn numlock on and off it's been a while just try...]]>https://bbs.archlinux.org/profile.php?id=164912012-12-15T17:03:53Zhttps://bbs.archlinux.org/viewtopic.php?pid=1206351#p1206351The console alternative to numlockx is setleds. I can of course use that, but I find it to be a hack. I don't really want, "turn numlock on programmatically," I want, "understand that this keyboard doesn't have a concept of numlock, and the numpad-8 key is always an 8."

I guess what I really want is for numlockx and setleds to outright fail on this keyboard, because there's no num lock to set in the first place. I think I'd have to patch the kernel for that though.

Actually, Linux (and possibly others) seems to treat the locks in a weird way. I'd expect them to be per-keyboard, but if I hit caps lock on my laptop keyboard, the letters on my USB keyboard come out capitalised too.

]]>https://bbs.archlinux.org/profile.php?id=121612012-02-25T00:34:32Zhttps://bbs.archlinux.org/viewtopic.php?pid=1062946#p1062946Every single one of my LEDs have died over the years, first the capslock (odd as I never used it), then the numlock and recently scroll lock. It's not too confusing once you get used to it.Gamers tend to use WSAD or at least the actual arrow keys. The numpad is just somewhat odd, out of place, on keyboards these days. However, the extra keys are always welcome.

It's strange though, that there's no way to simply send a keycode (keysym) to your keyboard driver instructing it to use the numlock key (mapped or not), or atleast, that there's no Console alternative to numlockx.

At any rate, good luck with your project, and yeah, updating the various wiki entries is always awesome.

Oh, forgive me, I didn't realise the keyboard lacked a physical Numlock key. What does "Clear" actually do (out of curiosity), something similar to "^u" on the terminal?

Edit: What about remapping the F13-F16 keys or do they serve another purpose?

I have no idea what it does in OS X. Under linux, it gets mapped to numlock. But of course there's no numlock LED, so it's confusing.

The lack of a numlock key is the one design deviation that I like about this keyboard. In OS X, no matter what, the number pad keys produce numbers. There is no concept of num lock, it's just always on. I've never in my life used the number pad for arrow keys (I don't game), so the whole key is useless to me.

I guess I could remap all the number pad keys to their non-number-pad equivalents, but then there would be no way to differentiate between the numpad and the other keys for keyboard shortcuts.

]]>https://bbs.archlinux.org/profile.php?id=121612012-02-24T22:48:05Zhttps://bbs.archlinux.org/viewtopic.php?pid=1062919#p1062919Oh, forgive me, I didn't realise the keyboard lacked a physical Numlock key. What does "Clear" actually do (out of curiosity), something similar to "^u" on the terminal?

Edit: What about remapping the F13-F16 keys or do they serve another purpose?

Only works in X11. And while that will turn on numlock, it doesn't prevent me from turning it off again. I guess I could do that and then remap the Clear key to something other than numlock.

masteryod wrote:

Did you consider making a wiki page about this? It could be very handy for many people in the future

I will add it to the Apple Keyboard wiki page when I figure the rest of it out, or give up

]]>https://bbs.archlinux.org/profile.php?id=121612012-02-24T20:35:00Zhttps://bbs.archlinux.org/viewtopic.php?pid=1062854#p1062854Did you consider making a wiki page about this? It could be very handy for many people in the future ]]>https://bbs.archlinux.org/profile.php?id=371632012-02-24T20:13:29Zhttps://bbs.archlinux.org/viewtopic.php?pid=1062848#p1062848

I still don't know how to get the number pad to always enter digits. ...on the console too.

]]>https://bbs.archlinux.org/profile.php?id=514652012-02-24T20:03:44Zhttps://bbs.archlinux.org/viewtopic.php?pid=1062845#p1062845Okay, so I've made progress. Using a program called getscancodes, I identified the scancodes of the Alt and Command (Meta) keys. I've also written a udev rule to do all this when the keyboard is plugged in.

I've uploaded a package to the AUR that does all these things automatically.

I still don't know how to get the number pad to always enter digits. There's an option for it in KDE, but I'd like it to behave the same way on the console too.

]]>https://bbs.archlinux.org/profile.php?id=121612012-02-24T19:53:55Zhttps://bbs.archlinux.org/viewtopic.php?pid=1062838#p1062838I just got an Apple aluminium USB keyboard. I like the keyboard itself, but I'd like the layout to match the rest of my normal (US) keyboards. This means:

- Make the function keys default over the multimedia keys (solved)- Map F13-15 to SysRQ, Scroll Lock, and Pause, respectively (solved)- Swap the Command (Meta) and Alt keys (solved, see next post)- Disable Num Lock, and make the numeric keypad always enter digits- This should all happen automatically when the keyboard is attached, not on boot (solved, see next post)

This has to work both on a VT and in X. And it shouldn't affect any other keyboards in the system, just the Apple keyboard. So far, I've done this:

- Add "options hid_apple fnmode=2" to /etc/modprobe.d/modprobe.conf. This makes the F keys the default- Used keyfuzz to remap the F13-15 keys:

I suspect I need to write a udev rule to run the keyfuzz script when the keyboard is plugged in.

How do I do the rest of these things? In particular, how do I figure out the scancodes for keyfuzz? showkey -s gives 0xe0 0x5b for the command key, but "0xe05b 56" doesn't work as input to keyfuzz (EVIOCGKEYCODE: Invalid argument). And how do I disable num lock?