Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XFree on an iMac RevB [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Mr.Pop-N-Fresh
n00b
n00b


Joined: 14 Jun 2004
Posts: 37

PostPosted: Tue Jun 22, 2004 11:04 pm    Post subject: XFree on an iMac RevB [Solved] Reply with quote

I apologize for cross posting, but this isn't getting any response in the Desktop Environments forum, I can add that I have now gone back to XFree and tried Xeasyconf, which didn't help. The strange thing is that I installed XFCE, and what I assume is the default XFCE background (bluebox that says XFCE) shows up perfectly clean in the middle of the screen when I startxfce, same as my mouse cursor, it looks perfect regardless of where I move it to.

Cheers,
Mr.Pop-N-Fresh

Quote:

I am currently in the middle of my first ever linux install (I've been exposed before, so I have a bit of knowledge, but lets assume none and then I can just surprise you). With a little help from my friends who both run gentoo, and my brother who seems to know an unhealthy amount about PPCs, I've got this far. However, my friends have no PPC knowledge, and my brother, while quite versed in *nix, has never run gentoo and is a time zone away. So we've become stuck. I'm installing linux on an iMac RevB and have a working kernel (I configured it "myself") installed, however I cannot get X to work. I know the specific vertical refresh rates for the three possible resolutions
640x480 - 117.233
800x600 - 94.97
1024x768 - 75.03
from an apple service manual my brother has access to, however it doesn't contain any horizontal synch rates. On the net, I've found that people seem to use 58-62 as the range for horizontal sync on iMacs. However, it doesn't work for me, the picture is still completely screwy. (The mouse cursor moves "cleanly" surprisingly enough though). If I change the horizontal sync rate, X doesn't even start, and instead says the horizontal values are completely out of range. I looked into emerging drivers for the video card (ATI Rage Pro), but they are not available for PPC. I initially had tried XFree86, and experianced these same problems, before changing to X-Org at the suggestion of a friend. When I initially got the machine, it had Mac OS8.6 on it and worked fine, and looks fine when I boot off of the Mac OS9.2 install cd I have, but I can't find a way to get the sync rates from the mac install environment. I honestly have no idea what else to try.
Thanks

originally posted here:
https://forums.gentoo.org/viewtopic.php?p=1261896&highlight=#1261896


Last edited by Mr.Pop-N-Fresh on Fri Jun 25, 2004 8:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Jun 23, 2004 12:43 am    Post subject: Reply with quote

I assume you have a CRT monitor, not that it helps. Could you post your actual
XFree configuration? (file named /etc/X11/XF86Config-4) and also tell us your
kernel version as well as what you put in your kernel under the entry :
console driver --> frame-buffer support --->

That may give us a clue.
Back to top
View user's profile Send private message
Mr.Pop-N-Fresh
n00b
n00b


Joined: 14 Jun 2004
Posts: 37

PostPosted: Wed Jun 23, 2004 1:56 am    Post subject: Reply with quote

fb wrote:
... tell us your kernel version as well as what you put in your kernel under the entry :
console driver --> frame-buffer support --->

I'm running 2.6.4, and I believe the menu choices have changed, but in
Device Drivers --> Graphics Support -->
I have
[*] Open Firmware Framebuffer Device Support
[M] ATI Mach 64 Display Support

fb wrote:
...Could you post your actual XFree configuration?...

The version I've got the 'best' results with is a combination of the file created by xf86config and Xeasyconfig, I've removed all the comments.
Code:

Section "Module"

    Load        "dbe"     # Double buffer extension

    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

    Load        "type1"
    Load        "speedo"

EndSection


Section "Files"

    RgbPath   "/usr/X11R6/lib/X11/rgb"

    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

EndSection


Section "ServerFlags"
EndSection


Section "InputDevice"

    Identifier   "Keyboard1"
    Driver   "Keyboard"

    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc101"
    Option "XkbLayout"   "us"

EndSection


Section "InputDevice"

    Identifier   "Mouse1"
    Driver   "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/input/mice"

EndSection



Section "Monitor"

    Identifier  "iMac"


    HorizSync   58-62

    VertRefresh 60-90

EndSection


Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"

    Driver     "vga"

EndSection

Section "Device"
    Identifier  "ati"
    Driver      "ati"
    VendorName   "ATI"
    BoardName   "3D Rage Pro 215GP"
    ChipSet   "ati"
    ChipId   0x4750
    ChipRev   0x5c
    VideoRam    6144
    BusID   "PCI:0:18:0"
EndSection


Section "Screen"
    Identifier  "Screen 1"
    Device      "ati"
    Monitor     "iMac"
    DefaultDepth 16

#    Subsection "Display"
#        Depth       8
#        Modes       "1024x768" "800x600" "640x480"
#        ViewPort    0 0
#    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
#    Subsection "Display"
#        Depth       24
#        Modes       "1024x768" "800x600" "640x480"
#        ViewPort    0 0
#    EndSubsection
EndSection


Section "ServerLayout"

    Screen "Screen 1"

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection


The file generated by Xeasyconfig actually results in a black screen, but I'll include it incase there's something in it I missed.

Code:

Section "ServerLayout"
Identifier     "XFree86 Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath   "/usr/X11R6/lib/X11/fonts/truetype"
FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "extmod"
Load  "dri"
Load  "dbe"
Load  "record"
Load  "xtrap"
Load  "speedo"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option    "Protocol"        "IMPS/2"
Option          "ZAxisMapping"  "4 5"
Option          "Device"        "/dev/input/mice"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
UseModes   "Modes0"
HorizSync       30-70
VertRefresh     50-160
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option     "accel"                 # [<bool>]
#Option     "crt_display"           # [<bool>]
#Option     "composite_sync"        # [<bool>]
#Option     "hw_cursor"             # [<bool>]
#Option     "mmio_cache"            # [<bool>]
#Option     "panel_display"         # [<bool>]
#Option     "probe_clocks"          # [<bool>]
#Option     "reference_clock"       # <freq>
#Option     "shadow_fb"             # [<bool>]
#Option     "sw_cursor"             # [<bool>]
Identifier  "Card0"
Driver       "ati"
VendorName  "ATI"
BoardName   "3D Rage Pro 215GP"
ChipSet     "ati"
ChipId      0x4750
ChipRev     0x5c
BusID       "PCI:0:18:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes     "640x480" "800x600" "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes     "640x480" "800x600" "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes     "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes     "640x480" "800x600" "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes   "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes     "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
   Mode 0666
EndSection

Section "Modes"
        Identifier      "Modes0"
   # mode generated by Xeasyconf
   Modeline "1024x768" 100.000 800 816 824 840  600 616 624 640  -HSync -VSync
EndSection


Any and all help is much appreciated, if it means anything, I tried booting with Knoppix-PPC (to grab the XConfig file) but when X booted, it also had a black screen.

Cheers,
Mr.Pop-N-Fresh
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Jun 23, 2004 2:15 am    Post subject: Reply with quote

I personnaly didn't had much success with the openfirmware framebuffer device,
I would remove it completly. Now I see you compiled ATI Mach 64 as a module but
from the xfree configuration you are showing I would have expected ATI rage to
be your choice but then if you are sure of what your video card is (and I cannot tell
you that) it should be ok. So the only advice I can give you from the top of my head
is to remove support for openfirmware framebuffer and put in an ATI one (possibly
not as a module but that's your call). Recompile and test.

Cheers,
Francois
Back to top
View user's profile Send private message
Darth Void
n00b
n00b


Joined: 03 Apr 2004
Posts: 22
Location: California

PostPosted: Wed Jun 23, 2004 3:31 pm    Post subject: Reply with quote

Success!

(Had same problems as Pop N Fresh)

Using the Mach64 Framebuffer device in kernel config, and this simplified Device section in /etc/X11/xorg.conf I got X.Org running. It loaded twm so I still gotta put blackbox on there, but hey ;)

I used his refresh rates specified in the files he copied above.

Code:

Section "Device"
    Identifier "vid"
    Driver     "ati"
    #VideoRam 4096
    BusID     "PCI:0:18:0"
EndSection

_________________
http://www.tirlannon.net/
~
storm: Athlon XP 2000+, 512 MB PC2100 DDR, NVidia GeForce4 420MX, Gentoo 2005.0
wolverine: Bondi Blue iMac 233, 32 MB RAM
nightcrawler: Grape iMac 333, 128 MB RAM, MacOS X 10.2.8 (Jaguar)
Back to top
View user's profile Send private message
Mr.Pop-N-Fresh
n00b
n00b


Joined: 14 Jun 2004
Posts: 37

PostPosted: Fri Jun 25, 2004 3:02 am    Post subject: Reply with quote

fb wrote:
I personnaly didn't had much success with the openfirmware framebuffer device,
I would remove it completly. Now I see you compiled ATI Mach 64 as a module but
from the xfree configuration you are showing I would have expected ATI rage to
be your choice but then if you are sure of what your video card is (and I cannot tell
you that) it should be ok. So the only advice I can give you from the top of my head
is to remove support for openfirmware framebuffer and put in an ATI one (possibly
not as a module but that's your call). Recompile and test.

Cheers,
Francois

The kernel actually doesn't boot without the openfirmware framebuffer device. It also seems that when I try and compile mach64 into the kernel from the live cd it errors, but I can do it fine from a working kernel... I'm wondering if there's a dependency I'm missing for it, I'll be doing more looking, as theres no change on my problem.

Edit--
To be clear, right now, my kernel is
Device Drivers --> Graphics Support -->
[*] Open Firmware Framebuffer Device Support
[*] ATI Mach 64 Display Support
Back to top
View user's profile Send private message
Darth Void
n00b
n00b


Joined: 03 Apr 2004
Posts: 22
Location: California

PostPosted: Fri Jun 25, 2004 4:38 am    Post subject: Reply with quote

My working config is much like that (with the same things enabled) but I also have "control" display support enabled. I don't know if that will make a difference. I went through a 'make config' (no ncurses, no X) to get the kernel that works, and whenver I had any doubt, I chose "Y" to support it.

I sent you my config files though Pop, hope they can help you get this straightened out.
_________________
http://www.tirlannon.net/
~
storm: Athlon XP 2000+, 512 MB PC2100 DDR, NVidia GeForce4 420MX, Gentoo 2005.0
wolverine: Bondi Blue iMac 233, 32 MB RAM
nightcrawler: Grape iMac 333, 128 MB RAM, MacOS X 10.2.8 (Jaguar)
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Jun 25, 2004 5:49 am    Post subject: Reply with quote

Another thing Mr.Pop-N-Fresh would you have an option like "ofonly" in your
yaboot.conf file? That could be a cause of problem.
Back to top
View user's profile Send private message
Mr.Pop-N-Fresh
n00b
n00b


Joined: 14 Jun 2004
Posts: 37

PostPosted: Fri Jun 25, 2004 6:02 pm    Post subject: Reply with quote

It works, I used Darth Void's kernel configuration and my X config and it worked. I'm going through now and trying to figure out what I missed including since I noticed Darth Void has a lot of unecessary stuff (atleast to me, scsi, floppy, etc) Thanks for all the help, I'll post again when I figure out what exactly it was.


--Edit--
In
Device Drivers --> Graphics Support -->
I only needed to add
[*] Mach64 CT/VT/GT/LT (Incl. 3D Rage) support
which is a sub option to
"ATI Mach 64 Display Support "
Thanks again for all the help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum