Skip to contentSkip to conversation

XF4, SysRq, VT, mouse buttons, Keymaps and all that

DISCUSSION Iain Sandoe 4 participants 5 messages Apr 19, 2001 – Apr 21, 2001

lore
Share & tools
lore
#0 lore raw

Hi Franz,

copied to the list - since I think I've resolved the issues now ;-)

Quoted 9 lines · Franz
Quoted 4 lines · I wrote:

I've figured out the mouse key emulation, and VT switches (by using Option XkbDisable) - but I can't figure out where SysRq has ended up... and anyway the idea was to see if there's a way of dealing with it so that Laptops can use it too...

Well, just try to setup your configuration files correctly. See the excerpt from my XF86Config-4 below. VT switches happen with alt(option)-ctrl-Fx if configured correctly.

OK. What's happened is that the VT combination has shifted from <CMD>-<CNTL>-Fx to <ALT>-<CNTL>-Fx ... all OK now. (the config was correct)

[...]

Quoted 7 lines
Quoted 1 line

For use of >4.0.99.x should I have CONFIG_ADB_KEYCODE disabled?

For maximum compatibility options to be active you need:

CONFIG_INPUT_ADBHID=y
CONFIG_MAC_ADBKEYCODES=y
CONFIG_MAC_EMUMOUSEBTN=y

This is what I've had (or the equivalent) since the input layer back-port to 2.2.x...

and Option "XkbModel" "macintosh"

Quoted 1 line

This will give you all the /proc entries.

yep. it does.

Quoted 5 lines
Quoted 3 lines

the SysRq needs to be quite low-level to be a fairly guaranteed way of doing 'emergency' syncs and so on ... I'm assuming it's done individually for each of the possible hid input sources.

But is it enabled at all? Check /proc/sys/kernel/sysrq.

OK. It isn't by default (which was catching me out)

Shouldn't it be enabled by default if the kernel is built CONFIG_SYSRQ?

Additionally, like VT-switching, the modifier key appears to have changed to <ALT> from <CMD>...

SysRq doesn't appear to have _exactly_ the same behaviour as before (but this may be a consequence of the change of Xserver - no longer using fbdevhw).

The SysRq messages no longer break through onto the screen (I did get them on VT-1 at one point - but couldn't reproduce it).

- and once you've got into SysRq mode it appears to be 'sticky' - i.e. commands accepted with a single keypress until you do SysRq again. Hmmm. It might have been like that before - and I never noticed - because I always did three-key-presses.

----

The issue of a "GoodWay" (tm) to support Laptops with SysRq remains - I'd like to be able to use it on my Lombard...

====

So, now the correct place to make changes to get the right symbols out for ~/` ±/§ and so on is in /usr/X11R6/..../xkb/symbols/gb - I assume.

====

I guess that I must have missed a place to look for the changes that occurred to the modifier keys etc.... perhaps Kaoru should add this information to his ftp directory. If people who monitor the -dev list don't know, what chance have Users got ;-?

====

anyway, thanks for the help - I'm now the proud owner of a nicely accelerated, non-flickering, ati mach64 XF4 installation.... *and* know which keys to press ;-))

next time I have some time - I'll do the Lombard & the 9600 (imstt could be amusing)...

BTW: It runs MoL (almost fine) too.

ciao,
Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw

Iain Sandoe wrote:
[]

Quoted 2 lines

OK. What's happened is that the VT combination has shifted from <CMD>-<CNTL>-Fx to <ALT>-<CNTL>-Fx ... all OK now. (the config was correct)

[]

Quoted 2 lines

Additionally, like VT-switching, the modifier key appears to have changed to <ALT> from <CMD>...

[]

Quoted 4 lines

I guess that I must have missed a place to look for the changes that occurred to the modifier keys etc.... perhaps Kaoru should add this information to his ftp directory. If people who monitor the -dev list don't know, what chance have Users got ;-?

The inversion of Alt and Cmd is actually mentioned in one if the LinuxPPC2000Q4 Readme files.
And it is one of the first things I am always changing back in the keymaps. There is really no sane reason for it, and you *have* to undo it if you want a modifier key to get non-US characters on a US keyboard or an Apple-like keyboard layout on a non-US keyboard.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 14 lines · Martin Costabel

Iain Sandoe wrote:
[]

Quoted 2 lines

OK. What's happened is that the VT combination has shifted from <CMD>-<CNTL>-Fx to <ALT>-<CNTL>-Fx ... all OK now. (the config was

correct)
[]

Quoted 1 line

Additionally, like VT-switching, the modifier key appears to have

changed to

Quoted 1 line

<ALT> from <CMD>...

[]

Quoted 3 lines

I guess that I must have missed a place to look for the changes that occurred to the modifier keys etc.... perhaps Kaoru should add this information to his ftp directory. If people who monitor the -dev list

don't

Quoted 8 lines
Quoted 1 line

know, what chance have Users got ;-?

The inversion of Alt and Cmd is actually mentioned in one if the LinuxPPC2000Q4 Readme files.
And it is one of the first things I am always changing back in the keymaps. There is really no sane reason for it, and you *have* to undo it if you want a modifier key to get non-US characters on a US keyboard or an Apple-like keyboard layout on a non-US keyboard.

Please stop this keyboard layout bashing! I'm a getting bored by your wrong patches on the lists. You can blame Apple for labeling the OPT key with ALT, but that's it. Every linux doc talks about using ALT-CTRL-Fx for VT switching and that's how it works now.

If you want to have it different, create a "XkbVariant SwitchOptCmd", "XkbVariant Powerbook" etc. and _submit_ it to the XFree86 project.

If you are too lazy to fix it correctly, that's ok, but keep your hacks private and stay off the lists with wrong patches (that will break on every upgrade) that just confuse people.

Franz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 2 lines · Franz Sirl

Please stop this keyboard layout bashing! I'm a getting bored by your wrong patches on the lists.

Ouch. I guess I asked for this, having used some strong language myself. If I have offended you, I am sorry.

But I am not quite sure what "patches" you are talking about. The only keyboard-related things I remember having sent to the linuxppc lists in the last couple of months were two tiny keymaps for the console and XF4, respectively, that adapt the US keyboard on my iBook to my taste, and a more or less complete XF4 keymap for French Macintosh keyboards that was the first of its kind, AFAICT. I would not consider these as "patches", but as legitimate user modifications of configuration files. I think I even have occasionally tried to discourage people from patching the Linux kernel or the XFree86 sources just for small modifications of the keyboard layout. And I never sent these things out to preach to the masses, but only to users that were, like me earlier, in a situation where things just did not work.

What you can blame me for is having been too tired this week to pay attention to which list I was answering. I shouldn't have written to the dev list. But when even seasoned developers seem to have the same keyboard problems as newbies... :-)

Quoted 3 lines

You can blame Apple for labeling the OPT key with
ALT, but that's it. Every linux doc talks about using ALT-CTRL-Fx for VT switching and that's how it works now.

Beyond questions of style and personal taste(*), I think there remains a real problem. I am talking about the 2 keys labelled alt/option and <Apple>/<Cloverleaf> on my iBook keyboard, using recent kernels and XF4. Please correct me if I am wrong here, but I think the situation is as follows:

The 2 keys produce in X the keycodes 64 and 115, respectively, and with the standard macintosh/us symbols file, this results in the keysyms "Alt_L" and "NoSymbol". The latter one is not very useful. There are a couple of variants on this in the PC style symbol file collection, but in NONE of the keymaps that come with XFree86 (in kfukui's excellent precompiled version), is either one of these keys mapped to the keysym "Mode_switch" that seems to be necessary in order to produce more than 2 symbols per key. The problem is that Apple keyboards don't have an AltGr key that is used for this purpose on PC keyboards. Apple keyboards traditionally use the alt key for this same purpose.

In the console, the situation is similar. The keycodes are 56 and 125, and they are mapped to Alt and Decr_Console, respectively. This gives me the possibility to switch consoles in two ways, either by pressing alt-Fx or by repeatedly hitting the Apple key, but I don't get an AltGr key.

Quoted 2 lines

If you want to have it different, create a "XkbVariant SwitchOptCmd", "XkbVariant Powerbook" etc. and _submit_ it to the XFree86 project.

I am sorry, but I don't have enough time (or call me lazy if you prefer) to lift myself to the level I consider necessary to act as an XFree developer. I will remain on the level of a user who struggles to get things working so that he can use them for his daily work.

Quoted 3 lines

If you are too lazy to fix it correctly, that's ok, but keep your hacks private and stay off the lists with wrong patches (that will break on every upgrade) that just confuse people.

Time permitting, I think I shall continue to offer help to fellow Linux users. From the feedback I got so far, I do not get the impression that I confused anyone who wasn't much more confused before. I made it always clear that these were just "my private hacks". And I just upgraded a few minutes ago to XFree86-4.0.99.3-0a (thanks Kaoru!) without any problem and without breaking my "patches", thank you.

--
Martin

(*) I don't care which key is used to switch consoles, but there is a question of taste or style here: I prefer consistency of keyboard use betweeen my Mac under Linux and the same Mac under MacOS. You seem to prefer consistency with other Linux boxes with PC keyboards. As an example, in Netscape, I like to be able to use Apple-x/c/v for cut/copy/paste or Apple-q/w for quit/close, under both Linux and MacOS (Mozilla adopted the Microsoft Ctrl-x/c/v/q/w, unfortunately). Likewise, I like to have alt-shift-L for the pipe symbol on a French Mac keyboard under both Linux and MacOS. This used to be the standard until very recently. If this is no longer the default now, then I think I have the right to apply some simple modifications to the keymaps in order to keep my preferred behavior. And I think I have the right to explain to others what I did.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
Quoted 7 lines · Martin Costabel
Quoted 2 lines

If you want to have it different, create a "XkbVariant SwitchOptCmd", "XkbVariant Powerbook" etc. and _submit_ it to the XFree86 project.

I am sorry, but I don't have enough time (or call me lazy if you prefer) to lift myself to the level I consider necessary to act as an XFree developer. I will remain on the level of a user who struggles to get things working so that he can use them for his daily work.

You don't need to be a developer to submit patches. [email protected] is the patch submission address for non-members.

--
Earthling Michel Dänzer (MrCooper) \ Debian GNU/Linux (powerpc) developer
CS student, Free Software enthusiast \ XFree86 and DRI project member

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/