Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorgautoconfig 0.2 is now in portage! Please test it out!
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
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jun 26, 2005 4:00 am    Post subject: Xorgautoconfig 0.2 is now in portage! Please test it out! Reply with quote

Note: This application is for PPC only!

Xorgautoconfig 0.2.1 is now in portage, it fixes issues with PowerMac 4,2 machines and Macs with 2 video cards. There are no other major changes.

Xorgautoconfig is now in portage. I've fixed another segfault with nVdia based macs and made a number of other small cleanups.

In case you've missed it, Xorgautoconfig is a Gentoo adaption of the Xautoconfig tool that we've used in the past to set up displays on Apple computers. I've expanded the original program to support X.org, font directories, Pegasos and more. We need testers to try this out so it can be as robust as possible for use on our upcoming Gentoo LiveCDs. Who knows, your experience could be like morfic's on his mini:

"I tried Xorgautoconfig and it increased my glxgears score by 60%!" - morfic last night on IRC. Of course, your results may vary. :)

Please run Xorgautoconfig on your system and if you have problems or suggestions, send me (josejx AT gentoo DOT org) the generated xorg.conf file, the contents of cat /proc/cpuinfo, the output of lspci -v, and the output of fbset -i. If you don't have fbset, just emerge it. Or, just let me know how Xorgautoconfig worked too!

Note: Xorgautoconfig does backup your current xorg.conf, but it would be a good idea to make sure you have another backup copy around just in case.

Thanks for testing Xorgautoconfig! Let me know if there is anything that you think should be supported, added or removed.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml


Last edited by JoseJX on Tue Jul 26, 2005 7:18 pm; edited 2 times in total
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Sun Jun 26, 2005 11:59 am    Post subject: Reply with quote

It worked here. I didn't have an increase in speed, but it built a working xorg.conf, backed up the old one, and taught me a couple of tricks!
_________________
--Aaron
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jun 26, 2005 3:54 pm    Post subject: Reply with quote

Kinda works here.
If I change VertRefresh 56-60 to VertRefresh 56-75 I get a nice 1280x1024 screen. With the former settings I get what looks like the upper left 1280x1024 of a virtual 1600x1200 screen and an ugly distorted band if I move my mouse to the bottom of the screen.
BTW, why is the default depth set to 16 bits and not 24?

Code:
# This file was generated by Xorgautoconfig v0.2.
Section "ServerLayout"
   Identifier   "X.Org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice   "Mouse0" "CorePointer"
   InputDevice   "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

       RgbPath    "/usr/lib/X11/rgb"

# ModulePath can be used to set a search path for the X server modules.
# The default path is shown here.

       ModulePath    "/usr/lib/modules"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

# For X Font Server support, uncomment this and comment the other FontPaths
# Note that this is not required for most configurations
#       FontPath   "unix/:-1"
   FontPath   "/usr/share/fonts/Type1/"
   FontPath   "/usr/share/fonts/unifont/"
   FontPath   "/usr/share/fonts/ttf-bitstream-vera/"
   FontPath   "/usr/share/fonts/Speedo/"
   FontPath   "/usr/share/fonts/CID/"
   FontPath   "/usr/share/fonts/75dpi/"
   FontPath   "/usr/share/fonts/75dpi/:unscaled"
   FontPath   "/usr/share/fonts/default/"
   FontPath   "/usr/share/fonts/corefonts/"
   FontPath   "/usr/share/fonts/100dpi/"
   FontPath   "/usr/share/fonts/100dpi/:unscaled"
   FontPath   "/usr/share/fonts/misc/"
   FontPath   "/usr/share/fonts/TTF/"
   FontPath   "/usr/share/fonts/sharefonts/"
   FontPath   "/usr/share/fonts/cyrillic/"
   FontPath   "/usr/share/fonts/terminus/"
   FontPath   "/usr/share/fonts/encodings/"
   FontPath   "/usr/share/fonts/artwiz/"
   FontPath   "/usr/share/fonts/util/"
   FontPath   "/usr/share/fonts/freefont/"
   FontPath   "/usr/share/fonts/ukr/"
   FontPath   "/usr/share/fonts/local/"
EndSection

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

Section "Extensions"
#    Option "Composite"   "Disable"   # Experimental
EndSection

Section "ServerFlags"
    Option    "blank time"   "10"   # 10 minutes
    Option    "standby time"   "20"
    Option    "suspend time"   "30"
    Option    "off time"   "60"
### Uncomment this Server flag if X should not change resolutions.
### This is useful if mode changing crashes / corrupts the X server
#   Option  "DisableVidModeExtensions"
EndSection

Section "InputDevice"
   Identifier   "Keyboard0"
   Driver      "kbd"
# Change "XkbModel" to "macintosh_old" if you are using
# the deprecated adb keycodes.
   Option      "XkbModel"   "pc105"
   Option      "XkbLayout"   "us"
    Option       "XkbOptions"    "compose:rwin"
### Uncomment this if your layout uses nodeadkeys
   #Option      "XkbVariant"   "nodeadkeys"
EndSection

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

Section "Monitor"
   Identifier   "Monitor0"
   UseModes   "Modes0"
   ModelName   "Monitor Model"
   Option      "DPMS"
   HorizSync   31-83
   VertRefresh   56-75
EndSection

Section "Modes"
   Identifier   "Modes0"

   # Generated
   # D: 135.007 MHz, H: 79.981 kHz, V: 75.029 Hz
   Modeline "1280x1024" 135.007 1280 1296 1440 1688  1024 1025 1028 1066  +HSync +VSync
EndSection

Section "Device"
   Identifier   "Card0"
   ### Available Driver options:
   Option "ColorTiling" "false"  # True has trouble with latest xorg
   Option "BackingStore" "true"  # Increases performance
   Option "EnablePageFlip" "true" # Increases performance
   #Option "SWcursor"   "false" # Use Software Cursor
   #Option "NoAccel"   "false" # Disable Hardware Acceleration
   #Option "AGPMode"   "1"   # Set AGP data transfer rate, DRI only
   #Option "AGPFastWrite" "false" # Use AGP Fast Write, DRI only
   #Option "RenderAccel" "true"  # Hardware acceleration
   #Option "DCCMode"   "false" # Use querried modes from monitor
   #Option "MonitorLayout" "TMDS" # Enable this for Apple DVI LCDs
   ### See "man radeon" for additional options
   Option   "UseFBDev"   "True"
   Driver   "radeon"
   BusID   "PCI:0:16:0"
EndSection

Section "Screen"
   Identifier   "Screen0"
   Device      "Card0"
   Monitor      "Monitor0"
   DefaultDepth   16
   SubSection "Display"
      Depth      8
      Modes       "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth      16
      Modes       "1280x1024"
   EndSubSection
   SubSection "Display"
      Depth      24
      Modes       "1280x1024"
   EndSubSection
EndSection

Section "DRI"
   Group 0
   Mode 0666
EndSection

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jun 26, 2005 4:43 pm    Post subject: Reply with quote

The default depth is whatever your framebuffer's native depth is. If you want it to detect as 24 bit then you'll need to use a 24 bit frame buffer.

Which kernel version are you using? Does setting UseFBDev to false fix it?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jun 26, 2005 5:17 pm    Post subject: Reply with quote

JoseJX wrote:
The default depth is whatever your framebuffer's native depth is. If you want it to detect as 24 bit then you'll need to use a 24 bit frame buffer.
mmm, I'll see what I can find.

Quote:
Which kernel version are you using?
2.6.11-hardened-r13

Quote:
Does setting UseFBDev to false fix it?
Nope, that results in blank screen.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
blue.sca
l33t
l33t


Joined: 28 Aug 2003
Posts: 680
Location: Mainz, Germany

PostPosted: Mon Jun 27, 2005 7:48 am    Post subject: Reply with quote

this works amazing here :) thanks a lot...
_________________
geek by nature, linux by choice
i want my avatar back... thank you
:wq
Back to top
View user's profile Send private message
Miguel
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 118

PostPosted: Mon Jun 27, 2005 10:39 am    Post subject: Reply with quote

Worked very well for me on a iBook G4 800.
I just had to modify UseFBDev to True, else the screen flickered.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jun 27, 2005 2:44 pm    Post subject: Reply with quote

Which video card and hich kernel version are you using miguel?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Miguel
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 118

PostPosted: Mon Jun 27, 2005 2:48 pm    Post subject: Reply with quote

My video card is a Radeon Mobility 9200.
I'm running 2.6.12-gentoo.

Also... What "Option "XkbOptions" "compose:rwin" do?? :p
Back to top
View user's profile Send private message
fnorgby
n00b
n00b


Joined: 30 Jun 2005
Posts: 1

PostPosted: Thu Jun 30, 2005 11:30 pm    Post subject: Worked great for me! Reply with quote

533 g4 w/Rage 128 pro. took a couple seconds tops.

Very cool bc I was having problems getting a working config (n00b).
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jul 17, 2005 3:33 pm    Post subject: Reply with quote

Miguel, this link explains the usage of the compose key:
http://www.linuxhowtos.org/Tips%20and%20Tricks/compose.htm
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Wed Jul 20, 2005 10:15 am    Post subject: Reply with quote

Works well for my 5,6 Pwerbook 15", but gives a blank screen on my mini with a 20" cinema attached (conf looks ok at first glance though)

Not had chance to check out why, but will report back.

Thanks
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jul 20, 2005 3:04 pm    Post subject: Reply with quote

Try setting the UseFBDev to the opposite of whatever it's set to (True/False).
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Thu Jul 21, 2005 6:33 pm    Post subject: Reply with quote

JoseJX wrote:
Try setting the UseFBDev to the opposite of whatever it's set to (True/False).


It was false, but although true gave me X and a mouse cursor, the screen had equidistant slanted lines horizantally across the screen with a light blue background 8O

btw: used 0.21 as well.
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 21, 2005 7:23 pm    Post subject: Reply with quote

Are you using OFFB or the RadeonFB?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Thu Jul 21, 2005 7:59 pm    Post subject: Reply with quote

JoseJX wrote:
Are you using OFFB or the RadeonFB?


radeonfb, not sure what OFFB is btw :roll:

Can you clear up as well, why there is a init script for this to load at startup? would'nt this mean any edits made would be discarded each time you boot?
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Jul 21, 2005 8:57 pm    Post subject: Reply with quote

OFFB = Open Firmware Frame Buffer :)

I'm not sure why it's not working for you, do you already have a working configuration? Can you provide the output of Xorgautoconfig --dump?

The reason for including an init script is that this tool will be used on our upcoming LiveCDs for automatic X.org configuraiton on Boot.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Sun Aug 28, 2005 6:24 pm    Post subject: Reply with quote

JoseJX wrote:
OFFB = Open Firmware Frame Buffer :)

I'm not sure why it's not working for you, do you already have a working configuration? Can you provide the output of Xorgautoconfig --dump?

The reason for including an init script is that this tool will be used on our upcoming LiveCDs for automatic X.org configuraiton on Boot.


Thanks for the info.

My mac mini now works with my 20" cinema display.

The xorg.conf was just missing the option for cinema panels (TMDS) that was commented out :wink: :roll:

With that enabled the panel works fine :)
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1766
Location: PB, Germany

PostPosted: Thu Dec 22, 2005 2:41 pm    Post subject: Reply with quote

None of the Xorgautoconfig did work for my iBook G3 600, Radeon Mobility M6 LY.
I also tried --safe and --fbdev.
I always get a distorted screen with horizontal lines, getting increasingly bright. It is because of the missing Option "UseFBDev" "True".
My working xorg.conf is here.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Dec 22, 2005 10:06 pm    Post subject: Reply with quote

I've used it and it configured the video with no problem.
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Sat Dec 24, 2005 10:26 am    Post subject: Reply with quote

It worked well for me. I ran it on a PowerMac G4 (7400, PowerMac3,3) with a ATI Radeon 9200 Mac Edition (PCI bus)/128MB DDR in it and an old SGI/Sony GDM-17E21 17" monitor attached. I am using a Sun Swedish keyboard, so I used the --keymap=se option. This is a recently installed machine and I hadn't put much effort into setting up X11. What I had worked, but I was using the (generic?) "ati" driver. Xorgautoconfig did a much better job than my initial naive xorg.conf.

glxgears before Xorgautoconfig ("ati" driver): ~120 FPS
glxgears after Xorgautoconfig ("radeon" driver): ~525 FPS

Nice 440% increase! 8O

The Swedish keyboard works as well, including the "Alt Graph" key to get special characters like @, $, |. The compose key only gives me ~ (i.e., it doesn't seem to function as a composer for multiple keys), but that's no big deal.

Thanks for the work on that! :D
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