Skip to contentSkip to conversation

XF68_FBDev and option keys (was Re: XF68_FBDev under MkLinux? and Re: pre-R5&miscs)

DISCUSSION Martin Costabel 2 participants 3 messages Dec 9, 1998

lore
Share & tools
lore
#0 lore raw

Hi,

one of my several problems with X servers is solved, thanks to Takashi Oe. I can now use the option keys as modifiers for the keyboard under XF68_FBDev, and this in both R4 and pre-R5.

This was in fact a problem of my configuration, so it seems I did not read enough documentation (or maybe there isn't enough, hint, hint :-)).

Takashi Oe <[email protected]> wrote on Tue, 8 Dec 1998:

Quoted 3 lines

You might want to double check that xkb is really used when you fire up XF68_FBDev. XF68_FBDev should say something about "System: xkb bra bra bra ..." to stderr but nothing else about xkb.

There was, in fact, an error message that I neglected. It came from the line

    xkb_symbols     { include "symbols/macintosh"  };

in /usr/X11/lib/X11/xkb/keymap/macintosh.
I did not know that this had to be changed.

I think this is a bug, it should be "symbols/macintosh/us" in the standard distribution, and it is now "symbols/macintosh/fr" for me, and this makes my French keyboard work in XF68_FBDev just as it had been working in XPmac all the time.

If I don't set XkbKeymap "macintosh" in XF86Config, or if there is an error as above, then XF68_FBDev uses the console keymap, but apparently only incompletely, without the options keys as modifiers.

My two other problems persist: No mouse buttons 2&3 in XF68_FBDev (and no, adb_buttons=1 in the boot command line is no solution!), neither in R4 nor in pre-R5; and mixed-up color palette in XPmac in pre-R5. The latter problem would, of course, lose its importance if the former were solved.

--
Martin

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#1 lore raw

Hi,

Quoted 10 lines · Martin Costabel

There was, in fact, an error message that I neglected. It came from the line

    xkb_symbols     { include "symbols/macintosh"  };

in /usr/X11/lib/X11/xkb/keymap/macintosh.
I did not know that this had to be changed.

I think this is a bug, it should be "symbols/macintosh/us" in the standard distribution, and it is now "symbols/macintosh/fr" for me, and this makes my French keyboard work in XF68_FBDev just as it had been working in XPmac all the time.

I wouldn't say it's a bug because Xpmac had no problem and your original installation was specifically talored to the likes of Xpmac in a way. But, anyway, I'm glad to know you can finally use the option key.

Quoted 2 lines

My two other problems persist: No mouse buttons 2&3 in XF68_FBDev (and no, adb_buttons=1 in the boot command line is no solution!), neither in

Ok, in console (not in X), try "showkey". This will show you the keycode and such for the console mode. Pick a key or two that you like to use to emulate the middle and right buttons and find their keycodes in console. With that, use the option. For example, if you want to keycode 113 for the middle button and keycode 115 for the right button, then

	adb_buttons=113,115

should do. This is according to the kernel source that I got a few days ago but I think there was a mention of this option's usage sometime ago in linux-pmac list.

Quoted 3 lines

R4 nor in pre-R5; and mixed-up color palette in XPmac in pre-R5. The latter problem would, of course, lose its importance if the former were solved.

I have no clue about the palette problem.

Takashi Oe

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#2 lore raw
Quoted 11 lines · Takashi Oe

Hi,

Quoted 6 lines · Martin Costabel

There was, in fact, an error message that I neglected. It came from the line

    xkb_symbols     { include "symbols/macintosh"  };

in /usr/X11/lib/X11/xkb/keymap/macintosh.
I did not know that this had to be changed.

Quoted 7 lines
Quoted 4 lines

I think this is a bug, it should be "symbols/macintosh/us" in the standard distribution, and it is now "symbols/macintosh/fr" for me, and this makes my French keyboard work in XF68_FBDev just as it had been working in XPmac all the time.

I wouldn't say it's a bug because Xpmac had no problem and your original installation was specifically talored to the likes of Xpmac in a way.

No, the specific tailoring consisted in calling Xpmac via /usr/bin/X11/X -kbdtype "fr(extended)" and creating a file xkb/symbols/macintosh/fr.

The line I called buggy is found in the XF68_FBDev rpm as well as in the Xpmac rpm. So it seems to me that it has to be changed in any case in order to make xkb work in XF68_FBdev. It is probably less important for US keyboards, because they only use the shift key as modifier, i.e. on one key you usually only have 2 symbols, whereas I have up to 4, so I need the option key as modifier. With a US keyboard you can probably get away with xkb disabled.

I also hope that R5 will include a good documentation for these things, otherwise in a couple of weeks you will have users crying for help all over the place.

Quoted 3 lines
Quoted 2 lines

My two other problems persist: No mouse buttons 2&3 in XF68_FBDev (and no, adb_buttons=1 in the boot command line is no solution!), neither in

[]

Quoted 6 lines

With that, use the option. For example, if you want to keycode 113 for the middle button and keycode 115 for the right button, then

        adb_buttons=113,115

should do. This is according to the kernel source that I got a few days ago but I think there was a mention of this option's usage sometime ago in linux-pmac list.

I know about this, but I would hate to have to do this. I would prefer not to give up two good keys for mouse button emulation. Plus, I prefer to click my mouse button if I need a mouse click. Why can't the mouse work in FBDev as in Xpmac?

--
Martin

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]