comatose
comatose
comatose
comatose
hyenas
hyenas
hyenas
hyenas
Linux MintPPC Forums • View topic - Solved -Newbie PowerMac G5 - display sleeps on boot

All times are UTC + 1 hour





Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
  Print view

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
Author Message
PostPosted: Fri Mar 02, 2012 9:17 am 
Offline

Joined:Fri Feb 24, 2012 6:12 pm
Posts:111
Success! :o
N00b + nouveau = world of hurt :lol:

The detected phantom output has to be disabled in two places.
1. using xorg.conf as in "Option B" posted earlier.
2. AND at yaboot
Code:
boot: Linux video=DVI-I-1:d video=DVI-I-2:1280x1024:@75 video=TV-1:d


If I only do yaboot with no xorg.conf, xrandr still shows three outputs. Do it in both places and xrandr shows only one as intended.

I haven't tested for "Option A" yet as NV isn't included with this build. If someone will point me to how to get NV, I'll test that as well.

Finally, I can see what MintPPC 11 looks like. :D

PS: Install using auto url went without a hitch yesterday.
EDIT: Disregard 1 and 2 above. I think:
nouveau not kernel mode = xorg.conf
nouveau kernel mode = no xorg.conf should be required See Step By Step.

_________________
PowerMac G5 1.6 Nvidia 5200 + whatever I can find.
"... probably a successful egg—but with no chicken yet in sight." _ Listening to. _______ PPC FAQ


Last edited by str8bs on Sun Mar 04, 2012 6:10 pm, edited 2 times in total.

Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Sun Mar 04, 2012 10:38 am 
Offline

Joined:Fri Feb 24, 2012 6:12 pm
Posts:111
STEP BY STEP Getting from blank screen to GUI with nouveau.

Reader beware. I am new to Linux and make no claim of expertise. Having put myself through a bit of a crash course getting nouveau working on my system, I have gleaned some understanding of the cause and a workable solution. From my experience searching the net, it seems this problem presents itself in different ways, is described in multiple ways, and multiple pages lead to wild goose chases. I am simply writing this from the standpoint of: If I could start over again, what would have helped me isolate and resolve the issue without having any Linux experience?

My hardware repeats this issue for any distribution I have tried using nouveau. Judging from the net, it appears to be platform independent. IE: PPC X86 X64

This post is specific to nouveau using kernel mode-setting or KMS. (For the same problem with nouveau not in kernel mode, "Option B" on the first page of this thread may lead to resolution.) YMMV It is highly likely that there are better/easier ways. This worked for me.

Problem Definition:
Are we talking about the same thing? Descriptions like "blank screen, won't boot, wrong color depth" don't give us much to go on. Some possible indicators: (Read as "may be.")

  1. After successfully completing install, reboot results in a blank screen. May also be described as power save, black screen, sleep mode, or blank screen.
  2. Start up sound plays. (If the distribution has one. IE Ubuntu bongo drum.)
  3. Combined key entry CTL+ALT(Option)+F1 does not yield a prompt.
  4. You can get to a graphical login screen, but colors and/or resolutions are lower than expected.
  5. You CAN get to a prompt using the following at boot prompt
    Code:
    Linux 1 nosplash video=ofonly nouveau.modeset=0
  6. Others report that they have no problem on the same hardware.
  7. Hardware is verified to work properly using optimal display settings with other operating systems.
  8. Hardware used has more than one video output (multi-head). (Could also apply to laptop with external video capability.)
  9. NV or proprietary nvidia driver works on the hardware that nouveau is not.

Problem Verification:
OK. So we fit in the maybe category. Now what? The following steps would lead to verification. (As of this posting, I am unaware of any definitive indicator.)

  1. At the boot prompt:
    Code:
    Linux 1 nosplash video=ofonly nouveau.modeset=0
    When prompted, enter root password set during install.
  2. Verify that xorg.conf file is NOT being used. I stress this step. If it is, it can change log entries and lead to more head scratching.
    Code:
    more /var/log/Xorg.0.log
    Scan the first few lines for the following:
    Code:
    ...
    (==)]Using config file: "/etc/X11/xorg.conf"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    ...
    If only the line ending in xorg.conf.d is listed, skip to step 5. If "Using config file...xorg.conf" is listed, continue to the next step. (keys CTL+Z to leave the log screen)
  3. rename the xorg.conf
    Code:
    mv /etc/X11/xorg.conf /etc/X11/xorg.whatever
    Substitute directory path to match what is used in the log if different. Linux is case sensitive. Pay attention to capital letters.
  4. Reboot
    Code:
     shutdown -r now
    Let the machine boot normally all the way up to the blank screen. (Just "Linux" at the boot: prompt.) When you are sure you have allowed time for the system to finish booting, combine keys CTL+ALT+F1 followed by CTL+ALT+DEL. This will again reboot the machine. (The point is creating a new Xorg.0.log unaffected by xorg.conf file.) This time enter the command in step 1 above to get back to a prompt.
  5. Code:
    Xorg -configure
    The message ""number of created screens does not match number of detected devices" is one potential verifier. (Do not copy or move the xorg.conf.new file anywhere. This was just to check for the message.)
  6. Code:
    more /var/log/Xorg.0.log
    Scan through the log for detected displays such as:
    Code:
    ...
    (II) NOUVEAU(0): Output DVI-I-1 has no monitor section
    (II) NOUVEAU(0): Output DVI-I-2 has no monitor section
    (II) NOUVEAU(0): Output TV-1 has no monitor section
    ...
    Note exactly what the system is calling each display. This varies by hardware. IE: DVD-D-1, VGA-0, etc.
  7. Continue scanning the log.
    Code:
    ...
    (II) NOUVEAU(0): Printing probed modes for output TV-1
    (II) NOUVEAU(0): Modeline "720x576"x50.0   28.66  720 776 856 960  576 576 588 597 -hsync -vsync (29.9 kHz)
    (II) NOUVEAU(0): Modeline "1024x768"x50.0   54.16  1024 1064 1200 1344  768 768 777 806 -hsync -vsync (40.3 kHz)
    (II) NOUVEAU(0): Modeline "800x600"x50.0   32.14  800 840 920 1040  600 600 604 618 +hsync +vsync (30.9 kHz)
    (II) NOUVEAU(0): Modeline "720x480"x50.0   25.20  720 752 872 960  480 480 493 525 -hsync -vsync (26.2 kHz)
    (II) NOUVEAU(0): Modeline "640x480"x50.0   23.10  640 672 768 880  480 480 492 525 -hsync -vsync (26.2 kHz)
    (II) NOUVEAU(0): Modeline "400x300"x100.0   20.10  400 432 496 640  300 300 303 314 doublescan +hsync +vsync (31.4 kHz)
    (II) NOUVEAU(0): Modeline "320x240"x100.0   14.73  320 344 392 560  240 240 246 263 doublescan -hsync -vsync (26.3 kHz)
    (II) NOUVEAU(0): Modeline "320x200"x100.0   12.32  320 344 392 560  200 200 202 220 doublescan -hsync -vsync (22.0 kHz)
    (II) NOUVEAU(0): Output DVI-I-1 disconnected
    (II) NOUVEAU(0): Output DVI-I-2 connected
    (II) NOUVEAU(0): Output TV-1 connected
    (II) NOUVEAU(0): Using fuzzy aspect match for initial modes
    (II) NOUVEAU(0): Output DVI-I-2 using initial mode 1024x768
    (II) NOUVEAU(0): Output TV-1 using initial mode 1024x768
    ...
    Alternately:
    Code:
    cat /var/log/Xorg.0.log | grep connected
    If you see connected displays that are not currently physically connected, this is further verification. (I suspect that "fuzzy aspect match" thing is the culprit for those only experiencing poor color/resolution.

Solution:
With the information gathered from the logs, explicitly set video parameters at the boot: prompt to disable any outputs that are not currently connected using multiple video= parameters.

Sample code: This command disables DVI-I-1 and TV-1. It also sets DVI-I-2 to 1280x1024 refresh rate 60 with depth 24.
Code:
boot: Linux video=DVI-I-1:d video=DVI-I-2:1280x1024:@60:-24 video=TV-1:d

The possible settings are: (Courtesy of this linked wiki.)


Quote:
The format is: video=<conn>:<xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd]

<conn>: Connector, e.g. DVI-I-1, see your kernel log.
<xres> x <yres>: resolution
M: compute a CVT mode?
R: reduced blanking?
-<bpp>: color depth
@<refresh>: refresh rate
i: interlaced (non-CVT mode)
m: margins?
e: output forced to on
d: output forced to off
D: digital output forced to on (e.g. DVI-I connector)
Note the difference between d - disable and D - digital. IE: D might be used if system detects DVI-I and your cable has a DVI connector on both ends.

Hopefully the system will boot to the GUI login now. To make this permanent and prevent typing the command each boot, search for "modify yaboot" or "yaboot.conf."

Apparent Cause: (My theory anyway.)
Nouveau KMS attempts to detect connected displays and set appropriate resolution settings when the system boots. For some hardware, it detects / sets connected displays that are not there and may set default display to output that is not physically connected . May also choose correct display but force resolution settings to lower values compatible with that detected device. One common denominator seems to be systems with a TV out or capability of external out. IE: ADC to TV adapter.

Quirk
The refresh rate seems to get reset to display native when X starts. Enter terminal from GUI.
Code:
xrandr -q
xrandr -r 75
to view and change refresh rate. I believe this can be made permanent by script.

End

Worked for me. No xorg.conf file required.
Please post if it works for you, needs to be revised, or if you think I'm full of BS. Please let us know if you find one. I will update here confirmed cards with phantom ports so others can be spared the pain.



str8bs

UPDATE These nasty little buggers appear to move around. If the above procedure does not work, try swapping ports and repeat the process. reference Thanks TRzone
For those with DualLink port, it may be worth repeating test with append nouveau.duallink=0

Confirmed Phantom ports and workaround (port location is from facing the back)
G5 with Nvidia FX5200 plugged to left port (DVI-I-2) boot: Linux video=TV-1:d
G5 with Nvidia 6800 plugged to left port (DVI-I-2) boot: Linux video=TV-1:d video=TV-2:d
G5 with Nvidia 6600 plugged to left port (DVI-I-2) boot: Linux video=TV-1:d

.

_________________
PowerMac G5 1.6 Nvidia 5200 + whatever I can find.
"... probably a successful egg—but with no chicken yet in sight." _ Listening to. _______ PPC FAQ


Last edited by str8bs on Fri Aug 24, 2012 9:55 pm, edited 7 times in total.

Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Sun Mar 04, 2012 3:31 pm 
Site Admin
Offline

Joined:Fri Oct 08, 2010 3:45 pm
Posts:2744
This is a very interesting thread. Thanks for the contributions! I made a sticky post of it.


Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Sun Mar 04, 2012 6:06 pm 
Offline

Joined:Fri Feb 24, 2012 6:12 pm
Posts:111
@linuxopjemac - Thank you for the software!

_________________
PowerMac G5 1.6 Nvidia 5200 + whatever I can find.
"... probably a successful egg—but with no chicken yet in sight." _ Listening to. _______ PPC FAQ


Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Thu Mar 08, 2012 6:56 pm 
Offline

Joined:Thu Dec 08, 2011 7:17 pm
Posts:24
hey !

thanks a lot for this complete tip !
worked for me on my PowerPC G5 using ubuntu 10.04 LTS ppc
worked also with the latest ubuntu 12.04 bêta but too much buggy. I don't know if it's a nouveau pb or a too young and unstable Precise Pangolin.

Still a bit slow by the way.

Question : did you manage to have 3d effects to work ?

thx again


Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Fri Mar 09, 2012 4:40 pm 
Offline

Joined:Fri Feb 24, 2012 6:12 pm
Posts:111
@Marty
Thanks for the feedback! As for your question, I'm too much of a n00b to know what I am talking about, but I would have to say yes, out of the box on MintPPC 11 based on attached screenshot.

IF I understand the wiki's, this section of glxinfo is telling me that nouveau is using hardware rendering and not software.
Code:
...
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NV34
OpenGL version string: 1.5 Mesa 7.11.2
...

I think Ubuntu may do some 2d default under desktop settings? This wiki may help.

str8bs


Attachments:
Screenshot.jpg
Screenshot.jpg [ 95.11 KiB | Viewed 2822 times ]

_________________
PowerMac G5 1.6 Nvidia 5200 + whatever I can find.
"... probably a successful egg—but with no chicken yet in sight." _ Listening to. _______ PPC FAQ
Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Fri Mar 09, 2012 5:40 pm 
Offline

Joined:Thu Dec 08, 2011 7:17 pm
Posts:24
Thanks for the answer.

yes i have it too. this seems to work

BUT

in ubuntu under system->preferences->appearence you can toggle "visual desktop effects" ON. But i can't make it work : "unable to activate desktop effects"


Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Thu Mar 15, 2012 12:18 am 
Offline

Joined:Fri Feb 24, 2012 6:12 pm
Posts:111
@ Marty
Sorry for the non-help. Did you get hardware rendering working on yours?
I tried 10.04 on my G5 again. Same blank screen and solution as in this thread.
I notice nouveau driver is not installed out of box with this build so I install:
xserver-xorg-video-nouveau and mesa utils.
Reboot and verify I'm using nouveau now, but it is still only software rendering.
I find this in Xorg.0.log
Code:
(II) AIGLX error: dlopen of /usr/lib/dri/nouveau_dri.so failed (/usr/lib/dri/nou
veau_dri.so: cannot open shared object file: No such file or directory)
(II) AIGLX: reverting to software rendering

I think I need to get hardware rendering for 3d. (I'm making an assumption this is required for the desktop effects.)

Strange, as it works out of the box with MintPPC. I wonder if there is a different package that could be installed?
I found this thread relating to the same issue with Intel based. Looks like it will compile the driver I'm missing, but I'm not sure where to find the sources for PPC. Getting way over my n00b head at this point.

_________________
PowerMac G5 1.6 Nvidia 5200 + whatever I can find.
"... probably a successful egg—but with no chicken yet in sight." _ Listening to. _______ PPC FAQ


Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Fri Mar 16, 2012 11:14 am 
Offline

Joined:Thu Dec 08, 2011 7:17 pm
Posts:24
hello !

yes i also noticed nouveau driver was not installed by default. I did the same as you did, but with no luck. Tried to make que xorg.conf also but without success. Maybe i will try to blacklist nv driver next time as they could conflict : last time i used Ubuntu PPC (before this tip mentioned here came out) i had to blacklist nouveau driver to make nv driver to work.

Quote:
I found this thread relating to the same issue with Intel based. Looks like it will compile the driver I'm missing, but I'm not sure where to find the sources for PPC. Getting way over my n00b head at this point.


there are no proprietary drivers provided by nvidia for ppc platform so you won't be able to compile. this is why nouveau driver must support your hardware.

if you have any suggestions i am interested !


Top
 Profile  
 

Re: Solved -Newbie PowerMac G5 - display sleeps on boot
PostPosted: Mon Mar 19, 2012 2:43 am 
Offline

Joined:Fri Feb 24, 2012 6:12 pm
Posts:111
@Marty
Correct, there is no proprietary PPC driver. I have a hunch that intel thread is the correct path for 10.04 though. The beginning talks about removing proprietary drivers and then they move on to recompiling the kernel and nouveau_dri.so to get 3d. I think I read that NV can not do 3d.

Side note: On MintPPC11 using nouveau, logged in Gnome session, I installed compiz-fusion and was able to get a 3d cube and other eye candy effects. I was surprised this old Nvidia card performed as well as it did.

_________________
PowerMac G5 1.6 Nvidia 5200 + whatever I can find.
"... probably a successful egg—but with no chicken yet in sight." _ Listening to. _______ PPC FAQ


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC + 1 hour


  Who is online

Users browsing this forum: Google [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Style by web designer custom , optymalizacja seo pozycjonowanie stron pozycjonowanie
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
comatose
comatose
comatose
comatose
hyenas
hyenas
hyenas
hyenas