From owner-freebsd-ppc@FreeBSD.ORG Sat Jan 25 15:00:56 2014 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A2A777BD; Sat, 25 Jan 2014 15:00:56 +0000 (UTC) Received: from smtpauth2.wiscmail.wisc.edu (wmauth2.doit.wisc.edu [144.92.197.222]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7136A1886; Sat, 25 Jan 2014 15:00:55 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) id <0MZY00G00PK5H900@smtpauth2.wiscmail.wisc.edu>; Sat, 25 Jan 2014 09:00:49 -0600 (CST) X-Spam-PmxInfo: Server=avs-2, Version=6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.1.25.145415, SenderIP=0.0.0.0 X-Spam-Report: AuthenticatedSender=yes, SenderIP=0.0.0.0 Received: from comporellon.tachypleus.net (adsl-76-208-68-77.dsl.mdsnwi.sbcglobal.net [76.208.68.77]) by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0MZY00BEHPPCX500@smtpauth2.wiscmail.wisc.edu>; Sat, 25 Jan 2014 09:00:48 -0600 (CST) Message-id: <52E3D19F.5000002@freebsd.org> Date: Sat, 25 Jan 2014 09:00:47 -0600 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 To: Alexey Dokuchaev , ppc@freebsd.org Subject: Re: Sharing experience: X11 on Mac Mini G4 (ATI RV280) References: <20140125135241.GB97062@FreeBSD.org> In-reply-to: <20140125135241.GB97062@FreeBSD.org> X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 15:00:56 -0000 On 01/25/14 07:52, Alexey Dokuchaev wrote: > Hi, > > After playing around with fresh -CURRENT on the console, I've built X11 bits > to see if I can go graphic. Fresh ports tree, Nathan's patch [*] applied, > WITHOUT_NEW_XORG added to /etc/make.conf. > > Results are not totally atrocious, but still somewhat disappointing. Ports > that I've installed: > > x11-servers/xorg-server (w/out HAL/devd crap; AIGLX on; suid root) > x11-drivers/xf86-video-ati > x11-drivers/xf86-input-keyboard > x11-drivers/xf86-input-mouse > x11/{xterm,xinit,xauth} > graphics/mesa-demos (for glxinfo/glxgears) > x11-wm/openbox > > A tiny ~/.xinitrc (should be enough for the test): > > xterm & > exec openbox > > 1) Simply running "startx" (w/out /etc/X11/xorg.conf) both as normal user > and root did not work: Xorg complained that "Primary device is not PCI" > (WTF?) and "Failed to load module fbdev" (duh! didn't install that one; > I want normal ATI driver and GLX/DRI support). > > 2) X -configure as root produced xorg.conf.new file with some meaningful > Device section (mentions correct card name per pciconf(8); Driver = > "radeon" and some probably correct BusID). No idea why it could not be > determined via simple "startx" without any X11 config though, like it > had always worked for my on x86 for the past few years already. > > 3) Copying xorg.conf.new file to /etc/X11/xorg.conf allowed me to finally > see xterm with openbox default window decorations; glxinfo reports that > direct rendering is enabled. glxgears reported around 85 FPS (that is, > on Radeon 9200; on my ~2006 x86 laptop with Intel GMA 900 it is around > 830 FPS). About five minutes later X hung. Mac Mini itself was still > alive (via ssh), but trying to switch consoles resulted in instant hang > of the entire system, requiring me to power-cycle it. The drm(4) module on PPC sometimes has issues. You could try disabling it in your xorg.conf (or removing the relevant kernel modules, drm.ko and radeon.ko, from /boot/kernel) and see if that helps. It will make 3D slower, but might fix the stability issues. -Nathan > 4) It looks like OpenBox (I've tried both builds with and without Imlib2) > has some endianess problem: xterm icon appeared greenish (in the window > title and when switching windows with Alt-Tab). Other colors (at least > what I could see during this very short test run) were OK. This seems > particularly weird as I did not find any related patches in Gentoo/Arch > packages of OpenBox. > > I'd like to hear other's people experience with X11 on Mac Mini G4 against > recent -CURRENT. Any ideas/pointers on how to remedy problems I've seen > are also much appreciated, thanks! > > ./danfe > > [*] http://people.freebsd.org/~nwhitehorn/new_xorg_ppc.diff > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"