Title: Ubuntu 11.04, Dual 5850 issues Post by: area on July 08, 2011, 07:40:06 AM I'm trying to get dual 5850s up and running on Ubuntu 11.04 and having a great deal of trouble. As soon as I run
Code: sudo aticonfig --initial -f --adapter=all Code: aticonfig --list-adapters Code: aticonfig --odgc --adapter=all poclbm only sees one card that it is able to use too. Both cards are seen correctly in lscpi: Code: 01:00.0 VGA compatible controller: ATI Technologies Inc Cypress [Radeon HD 5800 Series] EDIT: Looking at Xorg.0.log I find the following: Code: [ 8.579] (==) Using config file: "/etc/X11/xorg.conf" Which seems like a likely culprit for the problem - though as far as I can can tell, I do have such a device section in my xorg.conf (linked above). Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: swivel on July 08, 2011, 09:15:01 AM You should have two screen sections one for each card. See my xorg.conf (http://paste.ubuntu.com/640005/). Change the PCI bus ID for the second card. Mine is on PCI:3:0:0 yours is PCI:2:0:0.
Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: area on July 08, 2011, 09:32:09 AM Adding a screen section for my second card did not have an effect. Introducing the 'Monitor' sections cause my freeze on boot issue to return.
Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on July 08, 2011, 11:20:43 AM Don't forget after adding a second screen section for the other card to add a line to your Server Layout section too.
Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: area on July 08, 2011, 11:40:47 AM Both with and without the additional line, I get the freeze on boot (no display, no response to ping) - this is the case even if I just use swivel's xorg.conf (after changing the PCI bus ID).
Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on July 08, 2011, 12:01:04 PM Both with and without the additional line, I get the freeze on boot (no display, no response to ping) - this is the case even if I just use swivel's xorg.conf (after changing the PCI bus ID). If you are able to access the filesystem then perhaps remove gdm from the boot process and see if you can at least get to the console. For 11.04 I think you need to comment out Code: start on (filesystem to do this. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: area on July 08, 2011, 05:25:50 PM That indeed lets me boot, and allows me to SSH in. I still see both cards from
Code: sudo aticonfig --lsa But I now get Code: sudo aticonfig --odgc --adapter=all Which is fair enough. Attempting to start X as my user informs me that I am not authorized, and if I sudo X, I get Code: (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found which in itself is suspicious, as there are appropriate sections for both in the xorg.conf it claims to be using. After printing the above lines, it hangs. EDIT: Jumped the gun there, those are the HDMI audio addresses, which there are not sections for - which makes sense. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on July 08, 2011, 06:15:55 PM That indeed lets me boot, and allows me to SSH in. I still see both cards from Code: sudo aticonfig --lsa But I now get Code: sudo aticonfig --odgc --adapter=all Which is fair enough. Attempting to start X as my user informs me that I am not authorized, and if I sudo X, I get Code: (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found which in itself is suspicious, as there are appropriate sections for both in the xorg.conf it claims to be using. After printing the above lines, it hangs. EDIT: Jumped the gun there, those are the HDMI audio addresses, which there are not sections for - which makes sense. Forgive me if you find the following patronising but I'm unsure of your comfort with the Linux command line and have erred on the side of caution. After logging in by ssh you'll need to start some basic form of X to use aticonfig. I'd suggest running Code: xinit & If you don't have an ".xinitrc" in your home directory this should just start a basic X session and spawn a single xterm window. I personally include a ".xinitrc" file containing the single line "cat" to prevent the xterm from spawning. You probably lack the authority to run X because you are accessing the system remotely. Try running Code: sudo dpkg-reconfigure x11-common and select 'Anybody' from the resulting list (I think the default in Ubuntu is 'Console Users Only'). Now try xinit again. Remember to close any previous invocations of xinit. To do this use Code: jobs to list the background processes and Code: kill %n to close background process [n]. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: cicada on July 08, 2011, 07:26:12 PM Didn't see it here, but don't Crossfire the cards; remove the jumper if you've got it attached, and ensure it's not enabled in the software. The aticonfig commands to check this escape me at the moment.
When Crossfired, it may be trying to treat your cards as a single interface, and denying direct requests to the second card. I don't have a whole lot of experience in this area, but I do know it caused some similar weirdness when I tried enabling it on my pair of 5830's. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: area on July 08, 2011, 10:10:12 PM No need to apologise about maybe being patronising. It's definitely better to err on the side of caution in such situations. In particular making it so that X could be run by any user is not something I'd have come across quickly, so thanks for that.
Nevertheless, it doesn't seem to change much. The complete output: Code: user@obelix:~$ xinit & at which point I lose my SSH connection, no response to ping, and I have to reset. I do not have the cards connected via the Crossfire bridge, or chained together in software. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on July 08, 2011, 10:52:28 PM No need to apologise about maybe being patronising. It's definitely better to err on the side of caution in such situations. In particular making it so that X could be run by any user is not something I'd have come across quickly, so thanks for that. Nevertheless, it doesn't seem to change much. The complete output: Code: user@obelix:~$ xinit & at which point I lose my SSH connection, no response to ping, and I have to reset. I do not have the cards connected via the Crossfire bridge, or chained together in software. Hmm... It sounds like the fglrx driver is crashing almost as soon as you start X. Perhaps try reinstalling the drivers. Code: chmod +x ati-driver-installer-11-6-x86.x86_64.run I would select Code: 2) Generate Distribution Specific Driver Package and generate packages designed for Ubuntu (say no to Fedora and Suse package options). Then uninstall the existing drivers and install these newly generated ones. Code: sudo dpkg -r fglrx fglrx-amdcccle fglrx-dev Then reboot, log in, and try xinit again. If you're not sure about your xorg.conf file then back it up and run Code: sudo aticonfig --initial but judging by the output (which looks perfectly healthy to me) I don't think xorg.conf is the problem. You might consider installing an older version of Catalyst instead of 11.6. Versions before 11.6 respect BIOS limits so if one of your cards has had ridiculous clock frequencies commited then this is an option. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: Rob P. on July 09, 2011, 12:35:00 AM Wow...
Okay, some basics for folks: 1) If you are not logged in, but have a graphical login being displayed, then X is already running. DO NOT start it again. 2) If you are not logged in, then the "root" user is currently running X. 3) If you ARE logged in as a user, then THAT USER is running X, not root. So, for case #2 above, for all commands, you'll have to run them with "sudo", because you have to run them as root (hence the above error): Code: DISPLAY=:0 sudo aticonfig --odgc --adapter=all Also, you need the "DISPLAY=:0" because over SSH you don't have a valid DISPLAY variable, so you need to tell the commands where to find X. For case #3 above (assuming you are SSHing into the box as the same user logged in), you cannot run them as "root" (via "sudo") because X is already running as another user, so instead you use: Code: DISPLAY=:0 aticonfig --odgc --adapter=all This logic needs to be applied to ANY aticonfig command. To avoid this confusion, I set my Ubuntu boxes to auto-login as a user, I then use that same account to SSH in, and that way I never have to run commands as root. Also, any time you add or delete a card, you MUST run (add sudo if you need to): Code: aticonfig -f --initial --adapter=all In order to get a valid xorg.conf file built with the update. Finally, make sure OpenCL is seeing all of your cards: Code: # This assumes 64-bit, change to 32-bit if needed If you don't see one line for each card, then the problem may be with OpenCL. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: area on July 09, 2011, 07:24:51 AM Hmm... It sounds like the fglrx driver is crashing almost as soon as you start X. Perhaps try reinstalling the drivers. ... You might consider installing an older version of Catalyst instead of 11.6. Versions before 11.6 respect BIOS limits so if one of your cards has had ridiculous clock frequencies commited then this is an option. Identical behaviour with a regenerated Catalyst 11.6, as well as Catalyst 11.5 (though the cards are new, so they shouldn't have any weird clocking set). Also, you need the "DISPLAY=:0" because over SSH you don't have a valid DISPLAY variable, so you need to tell the commands where to find X. This is in my .bashrc already; either way I'm fairly sure the problem is occurring before having it set would be relevant. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on July 09, 2011, 08:58:35 AM Hmm... It sounds like the fglrx driver is crashing almost as soon as you start X. Perhaps try reinstalling the drivers. ... You might consider installing an older version of Catalyst instead of 11.6. Versions before 11.6 respect BIOS limits so if one of your cards has had ridiculous clock frequencies commited then this is an option. Identical behaviour with a regenerated Catalyst 11.6, as well as Catalyst 11.5 (though the cards are new, so they shouldn't have any weird clocking set). Also, you need the "DISPLAY=:0" because over SSH you don't have a valid DISPLAY variable, so you need to tell the commands where to find X. This is in my .bashrc already; either way I'm fairly sure the problem is occurring before having it set would be relevant. This problem is defeating me too. There are not many things in my experince which will crash Linux but this appears to be happening immediately whenever you try running X. Without more information I still think the drivers are causing the crash. Please post a list of your running processes here using Code: ps aux Have you tried removing all traces of ATI's drivers from your system and starting a dummy version of X? We're not going for a usable X environment at the moment, just for Linux to load X and not crash horribly. xorg.conf Code: Section "InputDevice" At least there would be no mention of fglrx (and "lsmod | grep fglrx" should return nothing at all times) so if the system still hangs then we know something else is causing it. I know these methods are rather clumsy, I would naturally try many things before taking such steps, but diagnosing a problem on a computer using a forum like this is a different game altogether. If this doesn't work then I suggest reinstalling X. If this fails then flatten the drive and install Ubuntu fresh (although I think plain Debian is more suitable here let's not start throwing more variables into the pot). Don't worry about SDK for now, let's just try to stop Linux from crashing the moment you start X up. Oh, and just to be crystal clear, by "log in" I of course mean via SSH. There should certainly be no gdm or other graphical login manager at all. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on July 09, 2011, 09:09:34 AM Sorry, you may want to largely ignore my last post for now. I was just reading over your inital post and you claimed that you could start X up with your own xorg.conf. Please try this first before trying to purge the system of fglrx.
If you can get to a stage where you are able to run Code: xinit & and have X running in Linux without crashes then we're good and can work from there. Probably the most basic xorg.conf which should initialise both cards is: Code: Section "Device" Try to isolate a small simple change to xorg.conf which will cause Linux to crash and look at the log if possible. Make sure Linux really is crashing if possible. Connect a keyboard and monitor if you have them and run "xinit &" on the machine using the console. If Ctrl+Alt+F2 does not take you to a second terminal (enabled by default in Ubuntu) then things really are bad. If Ctrl+Alt+F2 does give you a responsive console then login and look at "top" and "ps aux" for clues. Try killing all "xinit" and see if responsiveness returns to the first terminal (Ctrl+Alt+F1). Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: Zagitta on July 09, 2011, 08:17:22 PM --snip-- 1) If you are not logged in, but have a graphical login being displayed, then X is already running. DO NOT start it again. 2) If you are not logged in, then the "root" user is currently running X. 3) If you ARE logged in as a user, then THAT USER is running X, not root. --snip-- I'm pretty sure which user X is running as is irrelevant if you just run Code: xhost + Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: area on July 09, 2011, 11:43:54 PM The system really does lock properly - Ctrl+Alt+F2 has no effect.
Removing the line Code: Screen "Screen 1" in your 'bare-bones' xorg.conf is the difference between hanging and not, so it really is that second card. Upon further investigation, I think that second card has died at some point during this process - if I only have that physical card in slot 1 present, the system refuses to POST. It boots fine with just the first card in slot one. I might tinker a little more later, but I suspect it's RMA time. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on July 10, 2011, 12:11:51 AM The system really does lock properly - Ctrl+Alt+F2 has no effect. Removing the line Code: Screen "Screen 1" in your 'bare-bones' xorg.conf is the difference between hanging and not, so it really is that second card. Upon further investigation, I think that second card has died at some point during this process - if I only have that physical card in slot 1 present, the system refuses to POST. It boots fine with just the first card in slot one. I might tinker a little more later, but I suspect it's RMA time. Ah, a faulty card! If only my knowledge of Linux were sufficient to help you fix that; alack. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: being on September 11, 2011, 11:43:48 AM Hey.
I have two cards and one monitor. I want to be "stuck" on one screen only (so my mouse cursor wouldn't slide on the other screen), so I made two different xorg.conf files and made one initialize one card and second the second card. I used gdm for my desktop and xinit -config xorg2.conf -- :1 to "activate" the second card. But the problem is, that when I run poclbm.py it hangs till I ALT+CTRL+F9 to activate the second cards screen :1 So basically I'm only able to use the main desktop card with this setup. Any advice to make it function? Thanks. Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: teukon on September 11, 2011, 12:33:31 PM Hey. I have two cards and one monitor. I want to be "stuck" on one screen only (so my mouse cursor wouldn't slide on the other screen), so I made two different xorg.conf files and made one initialize one card and second the second card. I used gdm for my desktop and xinit -config xorg2.conf -- :1 to "activate" the second card. But the problem is, that when I run poclbm.py it hangs till I ALT+CTRL+F9 to activate the second cards screen :1 So basically I'm only able to use the main desktop card with this setup. Any advice to make it function? Thanks. Have you tried linking the first card to your monitor and the second to a dummy monitor with a single xorg.conf file? Scroll up to find my example of pointing my cards to a dummy monitor and compare the file with the one generated by Code: aticonfig --initial Title: Re: Ubuntu 11.04, Dual 5850 issues Post by: being on September 11, 2011, 02:26:19 PM Have you tried linking the first card to your monitor and the second to a dummy monitor with a single xorg.conf file? Scroll up to find my example of pointing my cards to a dummy monitor and compare the file with the one generated by Tried. The cursor can still slide to the other screen/monitor, but the transition from one screen to the other seems to be without lag now.Code: aticonfig --initial Doesn't solve the problem, but at least helps out a bit. :) Thanks. |