Bug 12357 - xrandr problems on ibook
Summary: xrandr problems on ibook
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: PowerPC All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-08 07:13 UTC by wrobell
Modified: 2007-09-09 03:30 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description wrobell 2007-09-08 07:13:44 UTC
running xrandr on ibook gives

$ xrandr --output VGA-0 --auto
xrandr: cannot find crtc for output VGA-0

monitor shows message 'no signal input'

machine info:
1. cpuinfo:

processor       : 0
cpu             : 7447A, altivec supported
clock           : 1066.666000MHz
revision        : 0.1 (pvr 8003 0101)
bogomips        : 73.52
timebase        : 18432000
platform        : PowerMac
machine         : PowerBook6,5
motherboard     : PowerBook6,5 MacRISC3 Power Macintosh 
detected as     : 287 (iBook G4)
pmac flags      : 0000001b
L2 cache        : 512K unified
pmac-generation : NewWorld

2. xorg.conf:
Section "Device"
    Identifier "ATI Radeon Mobility"
    Driver     "ati"
    Option     "AGPFastWrite"            "true"
    Option     "AGPMode"                 "4"
    Option     "DynamicClocks"           "true"
    Option     "RenderAccel"             "true"
    Option     "DDCMode"                 "true"
    Option     "SWCursor"                "true"
    Option     "EnablePageFlip"          "true"
    Option     "BackingStore"            "enable"
    Option     "MacModel"                "ibook"
EndSection

Section "Screen"
    Identifier   "LCD Screen"
    Device       "ATI Radeon Mobility"
    Monitor      "LCD"
    DefaultFbBpp 32
    SubSection "Display"
        Modes    "1024x768"
        Depth    32
        Virtual  2304 1024
    EndSubSection
EndSection


xrandr execution flow:
1. monitor disconnected:
$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1280 x 1200
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
   800x600        60.3  
   640x480        59.9  
VGA-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  800x600 (0x64)   38.2MHz
        h: width   800 start  832 end  912 total 1024 skew    0 clock   37.4KHz
        v: height  600 start  603 end  607 total  624           clock   59.9Hz


2. monitor connected but switched off:
$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1280 x 1200
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
   800x600        60.3  
   640x480        59.9  
VGA-0 disconnected (normal left inverted right x axis y axis)
S-video connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x600        59.9*+   60.3  

3. monitor connected and switched on
$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1280 x 1200
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
   800x600        60.3  
   640x480        59.9  
VGA-0 connected (normal left inverted right x axis y axis)
   1280x1024      59.9  
   1280x960       59.9  
   1152x864       74.8  
   1024x768       84.9     75.1     70.1     60.0  
   832x624        74.6  
   800x600        98.7     84.9     72.2     75.0     60.3  
   640x480        99.8     84.6     75.0     72.8     60.0  
   720x400        70.1  
   640x350        70.1  
S-video connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x600        59.9*+   60.3
Comment 1 Keith Packard 2007-09-08 08:27:22 UTC
I suspect the S-Video is mis-detected, making this a radeon driver bug, not an xrandr application problem. You have only two crtcs, so you can't drive three outputs. Turn of the S-Video if you want to turn on the VGA.
Comment 2 wrobell 2007-09-08 12:28:42 UTC
i've changed component to 'Driver/Radeon'.

i've tried to switch off the S-video using xrandr

$ xrandr --output S-video --off

no success (monitor shows 'no signal input':

$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1280 x 1200
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
   800x600        60.3  
   640x480        59.9  
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 306mm x 230mm
   1280x1024      59.9  
   1280x960       59.9  
   1152x864       74.8  
   1024x768       84.9*    75.1     70.1     60.0  
   832x624        74.6  
   800x600        98.7     84.9     72.2     75.0     60.3  
   640x480        99.8     84.6     75.0     72.8     60.0  
   720x400        70.1  
   640x350        70.1  
S-video connected (normal left inverted right x axis y axis)
   800x600        59.9 +   60.3  


tried also:

$ xrandr --output S-video --off --output  VGA-0 --mode 1024x768

the same result as above
Comment 3 Alex Deucher 2007-09-08 21:24:12 UTC
the vga port on the ibook is driven by the tvdac, not the primary dac.  You need to grab the latest code from ati git and specify:

Option "MacModel" "ibook"

in the device section of your config.
Comment 4 wrobell 2007-09-09 03:30:25 UTC
applied all changes from git since 6.7.192, works fine. thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.