From owner-freebsd-ppc@FreeBSD.ORG Sat Mar 29 17:02:22 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 553FEAA5; Sat, 29 Mar 2014 17:02:22 +0000 (UTC) Received: from mail-yh0-x22e.google.com (mail-yh0-x22e.google.com [IPv6:2607:f8b0:4002:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F26CB6B2; Sat, 29 Mar 2014 17:02:21 +0000 (UTC) Received: by mail-yh0-f46.google.com with SMTP id b6so6210099yha.33 for ; Sat, 29 Mar 2014 10:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=cOFb1TEhJXSfL0ZCEPqGQEC8Q0dMrc24ix1BkL9ImT8=; b=hGS5lNtyYX1bWOdCph++s7n48epohMgMzW9Jq1LpSFBL9og0oYcrBCUx2+kB4AcuwR 4S2LiohwZcAP+7kD7iliJV+/sF88z895JuFCONy9HhMy/W4P4DyffWLiyzmFJTG8U2Sa fZ50AVNJyV4gu3A/+zGhsyABuHxW8ya/DPgQ+9op8iKTgJ7hG2F6XmF1dP7f8oIyCq4Y ryfV3FKHjaJ2x5VqzkugNLFfIJPE/gVyD17jiY0HYy0iElw/LkUlic9do+FNlPn4y4+u Qk8yHqiSeDPnXx2E1cQEbIAKF1wvVLYvX65oOII15qnX99qst4A+W0mtCu3Mgvk47juv 88KA== X-Received: by 10.236.126.81 with SMTP id a57mr4750239yhi.95.1396112541209; Sat, 29 Mar 2014 10:02:21 -0700 (PDT) Received: from zhabar.att.net (107-222-186-3.lightspeed.sntcca.sbcglobal.net. [107.222.186.3]) by mx.google.com with ESMTPSA id c24sm15019065yhc.2.2014.03.29.10.02.20 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 29 Mar 2014 10:02:21 -0700 (PDT) Date: Sat, 29 Mar 2014 10:02:17 -0700 From: Justin Hibbits To: Alexey Dokuchaev Subject: Re: PowerMac G4 graphics issue Message-ID: <20140329100217.505671e8@zhabar.att.net> In-Reply-To: <20140329164046.GA7227@FreeBSD.org> References: <20081108120019.440D2106570D@hub.freebsd.org> <762295.44650.qm@web33105.mail.mud.yahoo.com> <20140329105152.GA73812@FreeBSD.org> <20140329124227.GA22005@FreeBSD.org> <20140329164046.GA7227@FreeBSD.org> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; powerpc64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Chris Bigguy , FreeBSD PowerPC ML 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, 29 Mar 2014 17:02:22 -0000 On Sat, 29 Mar 2014 16:40:46 +0000 Alexey Dokuchaev wrote: > On Sat, Mar 29, 2014 at 09:10:59AM -0700, Justin Hibbits wrote: > > On Mar 29, 2014 5:42 AM, "Alexey Dokuchaev" > > wrote: > > > Looks like `relax_mmap' is defined in powerpc/ofw/ofw_syscons.c, > > > but I've removed "device sc" from kernel config in favor of > > > "device vt". Does it mean that X11 + ATI card + Newcons is not > > > supported yet? Can it be easily fixed, or I have to go back to > > > syscons(4) for now? > > > > Correct. Newcons+ofwfb+ATI in X11 doesn't work. You can try > > xf86-video-scfb in ports to get X working with newcons for you, but > > you lose any hardware acceleration that the ATI driver gives. > > It's OK, as long as I can have hardware acceleration I can stay with > syscons for a while. I've backed out vt(4) support from kernel > config and rebuilt; startx(1) now gets me to graphics mode with > xterm(1) and window manager just fine (FWIW, hw.ofwfb.relax_mmap is 1 > by default now; I'm too lazy to dig out which particular commit made > it so, but thanks for that). > > HW accel seems to work: X11 overall feels quite fast; glxinfo reports: > > direct rendering: Yes > server glx vendor string: SGI > server glx version string: 1.4 > ... [but] > OpenGL vendor string: Mesa Project > OpenGL renderer string: Software Rasterizer > OpenGL version string: 2.1 Mesa 9.1.7 > OpenGL shading language version string: 1.20 > > glxgears spin at ~53 FPS. I haven't benchmarked Quake yet. ;-) Awesome! I've never had success with DRI on PowerPC. > However, screen resolution is 1024x768 for some reason; xrandr(1) > yields: > > Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024 > DVI-1 disconnected 1024x768+0+0 (normal left inverted right x axis y > axis) 0mm x 0mm DVI-0 disconnected (normal left inverted right x axis > y axis) S-video disconnected (normal left inverted right x axis y > axis) 1024x768 (0x55) 65.0MHz > h: width 1024 start 1048 end 1184 total 1344 skew 0 clock > 48.4KHz v: height 768 start 771 end 777 total 806 clock > 60.0Hz > > That's not native resolution of my LCD monitor; any ideas how to get > one? Why X reports "maximum 1024 x 1024"; nothing like that is set in > xorg.conf. > > ./danfe I think X is just setting it to a square that's big enough to hold the current screen. That's not always the case, though, as on my G5 I see: Screen 0: minimum 640 x 400, current 1920 x 1080, maximum 1920 x 1080 Hope that helps. - Justin