PowerMac G4 graphics issue
Alexey Dokuchaev
danfe at FreeBSD.org
Sat Mar 29 16:40:46 UTC 2014
On Sat, Mar 29, 2014 at 09:10:59AM -0700, Justin Hibbits wrote:
> On Mar 29, 2014 5:42 AM, "Alexey Dokuchaev" <danfe at 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
More information about the freebsd-ppc
mailing list