Re: X on Mac

2007-05-29 Thread Brian Morris

On 5/27/07, Finn Thain <[EMAIL PROTECTED]> wrote:



On Sat, 26 May 2007, Joel Ewy wrote:

> Hmm.  As I recall, there is another layout (or was in XFree86 4.x) for
> the Mac called something like "macintosh_old".  I believe this was for
> the older, small ADB keyboards that didn't have Function keys.  It
> sounds like you're using a full-sized keyboard, but it might tell us
> something if you try out the other layout.

I think macintosh_old is for old kernels (or newer kernels that have been
configured to send ADB keycodes -- but I've never seen one, since powerpc
and m68k switched to linux keycodes years ago).


actually, no, we just switched. that is why when upgrading to 2.6 from 2.2
i had to run "loadkeys us" before which  i got garbage characters at
the console.
it was exactly the situation where described in your reference. so we
are switching now, because we (mac 68k) skipped 2.4 kernels, right ?

but your reference is helpful. I think somehow something is still confused.
I too saw the reference that macintosh_old [1] means prior to extendedII kb
that had no function keys. that was the kb with the adb cord you plugged
in on one side of the kb and the mouse on the other, that had a color apple
on the top.

the reference Finn gives could be updated and corrected for 68k mac and
put in our port pages. if we get it straight.

i tried loadkeys today with mac-usb-us, which is in
usr/share/keymaps/i386/qwerty  (just type loadkeys mac-usb-us). it
appears
to be the same as just "us" though. anyway my hunch is that
the problem is in console keymap not in X. I will keep investigating.

i think i might try building my kernel with the adb turned on. I think
mainstreaming support is not right. the pc keyboards do not fit. if
you want to see this with graphics try the xkeycap program. but that
obviously has not been
updated for macs since like 1998. ughh.

some people were surprised that powerbooks as late as g4 titantium had
adb keyboards. the things you learn in linux...


whoops, looks you guys beat me to it. both finn's 20 and christians 21 have

CONFIG_MAC_ADBKEYCODES=y

so according to finn's reference i should try booting with kernel option

keyboard_sends_linux_keycodes=1

at least until i get a new kernel with adbkeycodes unset...
(can't try it now just yet, ASAP though)


More here http://www.debian.org/ports/powerpc/keycodes

-f


[1] it was actually std or standard. found in xkeycaps and also in
/usr/share/keymaps/macintosh. note also that parts of mac-us
keymap there are missing which seems to be an aborted attempt
to give macs a matched keyboard not a warped pc map that has missing
and extra keys. but I think that the map to use is mac-usb-[country_code].

Brian


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



working xorg.conf i promised

2007-05-29 Thread Brian Morris

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
# Then it was modified by hand merging with ppc xorg.conf that worked and
# further editing to include framebuffer modes (output of fbset -x).
# so far it only works on my q630 and FAILS on my q605
# also only tested with unstable/xorg7.2 (etch is 7.1)  BCM 5/29/07
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
   RgbPath  "/usr/share/X11/rgb"
   ModulePath   "/usr/lib/xorg/modules"
   FontPath "/usr/share/fonts/X11/misc/"
   FontPath "/usr/share/fonts/X11/TTF/"
   FontPath "/usr/share/fonts/X11/OTF"
   FontPath "/usr/share/fonts/X11/Type1/"
   FontPath "/usr/share/fonts/X11/CID/"
#   FontPath "/usr/share/fonts/X11/100dpi/"
   FontPath "/usr/share/fonts/X11/75dpi/"
EndSection


Section "Module"
   Load  "extmod"
   Load  "dbe"
   Load  "dri"
   Load  "glx"
   Load  "record"
   Load  "xtrap"
   Load  "freetype"
   Load  "type1"
EndSection

Section "InputDevice"
   Identifier  "Generic Keyboard"
   Driver  "kbd"
   Option  "CoreKeyboard"
   Option  "XkbRules"  "xorg"
   Option  "XkbModel"  "macintosh"
   Option  "XkbLayout" "us"
EndSection

Section "InputDevice"
   Identifier  "Configured Mouse"
   Driver  "mouse"
   Option  "CorePointer"
   Option  "Device""/dev/psaux"
#   Option  "Protocol"  "PS/2"
   Option  "Protocol"  "auto"
   Option  "Emulate3Buttons"   "true"
   Option  "ZAxisMapping" "4 5 6 7"
EndSection

Section "Device"
   Identifier  "FB"
   Option  "ShadowFB"  "true"
   Driver  "fbdev"
   Option  "UseFBDev"  "true"
   VideoRam  600
EndSection

Section "Monitor"
   Identifier  "emachines"
   DisplaySize 35 22
   UseModes"800x600"
   UseModes"640x480"
   HorizSync 28-70
   VertRefresh 40-120
#   Gamma 2.075 2.025 1.375
   Option  "DPMS"
EndSection
Section "Modes"
   Identifier "800x600"
#
#   fbset 800x600-60
#   !test this first : "fbi some_pic.jpg"
   Mode "800x600-60"
   # D: 40.000 MHz, H: 37.879 kHz, V: 60.317 Hz
   DotClock 40.001
   HTimings 800 856 984 1056
   VTimings 600 601 605 628
   Flags"+HSync" "+VSync"
EndMode
EndSection
# the 15 bit mode actually does not work right now.
Section "Modes"
   Identifier "640x480"
   #fbset 640x480-72
   Mode "640x480-66"
   # D: 29.999 MHz, H: 34.722 kHz, V: 66.136 Hz
   DotClock 30.000
   HTimings 640 720 784 864
   VTimings 480 483 486 525
   Flags"-HSync" "-VSync"
EndMode
EndSection

Section "Screen"
   Identifier  "Default Screen"
   Device  "FB"
   Monitor "emachines"
   DefaultDepth8
   SubSection "Display"
   Viewport   0 0
   Virtual 800 600
#Visual "GrayScale"
   Depth   8
   EndSubSection
   SubSection "Display"
   Viewport   0 0
   Depth   15
   Virtual 640 480
   EndSubSection
EndSection

Section "ServerLayout"
   Identifier  "Default Layout"
   Screen  "Default Screen"
   InputDevice "Generic Keyboard"
   InputDevice "Configured Mouse"
EndSection


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: X on Mac

2007-05-29 Thread Finn Thain


On Tue, 29 May 2007, Brian Morris wrote:

> On 5/27/07, Finn Thain <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Sat, 26 May 2007, Joel Ewy wrote:
> >
> > > Hmm.  As I recall, there is another layout (or was in XFree86 4.x) 
> > > for the Mac called something like "macintosh_old".  I believe this 
> > > was for the older, small ADB keyboards that didn't have Function 
> > > keys.  It sounds like you're using a full-sized keyboard, but it 
> > > might tell us something if you try out the other layout.
> >
> > I think macintosh_old is for old kernels (or newer kernels that have 
> > been configured to send ADB keycodes -- but I've never seen one, since 
> > powerpc and m68k switched to linux keycodes years ago).
> 
> actually, no, we just switched.

Sure you just switched, but others have been running 2.6 on m68k macs for 
years.

AFAIK, ADB keycodes were deprecated around 2.4 by those Debian packages 
that care about the console. And for ADB, naturally m68k follows in the 
powermac footsteps.

> whoops, looks you guys beat me to it. both finn's 20 and christians 21 
> have
> 
> CONFIG_MAC_ADBKEYCODES=y

That's because I used the debian config for that kernel. I build smaller 
kernels for myself, and I don't enable CONFIG_MAC_ADBKEYCODES. It doesn't 
do anything in 2.6.x. It should be removed from Kconfig.

> i should try booting with kernel option keyboard_sends_linux_keycodes=1

The 2.6.x kernel doesn't use that either (I don't know if userspace does 
anything with it).

-f


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]