Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2014 16:40:46 +0000
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        Justin Hibbits <jrh29@alumni.cwru.edu>
Cc:        Chris Bigguy <bigguy_40@yahoo.com>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: PowerMac G4 graphics issue
Message-ID:  <20140329164046.GA7227@FreeBSD.org>
In-Reply-To: <CAHSQbTAy89HtJHfq1CmDGyygNwOVSh_19NnESgjvX1WhpdMDDQ@mail.gmail.com>
References:  <20081108120019.440D2106570D@hub.freebsd.org> <762295.44650.qm@web33105.mail.mud.yahoo.com> <20140329105152.GA73812@FreeBSD.org> <20140329124227.GA22005@FreeBSD.org> <CAHSQbTAy89HtJHfq1CmDGyygNwOVSh_19NnESgjvX1WhpdMDDQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 29, 2014 at 09:10:59AM -0700, Justin Hibbits wrote:
> On Mar 29, 2014 5:42 AM, "Alexey Dokuchaev" <danfe@freebsd.org> 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. ;-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140329164046.GA7227>