|
List Info
Thread: Problem with Xorg and maybe wscons too?
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-20 18:04:51 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
On Oct 20, 2006, at 07:52, Adrian Christiansen wrote:
> Hello
>
> I have an eMac G4 1GHz ATi-modell:
> ATI Radeon 7500 (RV200) graphiccard with 32mb ram
attached.
> The screen has an horisontal sync rate at 72kHz, and a
vertical on
> 72-138Hz.
> The eMac have OpenFirmware version 3.
>
> NetBSD 3.0.1 NetBSD 3.0.1 (GENERIC) #0: Fri Jul 14
00:43:25 UTC 2006
> builds b3.netbsd.org:/home/builds/ab/netbsd-3-0-1-RELEASE/ma
cppc/
>
200607131826Z-obj/home/builds/ab/netbsd-3-0-1-RELEASE/src/sy
s/arch/
> macppc/compile/GENERIC
> macppc
>
> When I try to start wscons I get this error message:
> wsconscfg: WSDISPLAYIO_ADDSCREEN: Cannot allocate
memory
> wsconscfg: WSDISPLAYIO_ADDSCREEN: Cannot allocate
memory
That's harmless - ofb doesn't support virtual consoles in
3.0.1 ( it
does in -current though )
> And when I try to startx, I get a message about bad
display, attached
> the full output from startx and the Xorg.0.log. I took
a good time
> looking up all the specs and details for my eMac on
Apple.com, but
> maybe something else is wrong? I attached my xorg.conf
as well.
Hmm, this is the problem:
Fatal server error:
xf86MapVidMem: could not mmap screen [s=80000,a=90000000]
(Invalid
argument)
And here's why:
(--) PCI (0:16:0) ATI
Technologies Inc Radeon RV200 QW [Radeon 7500]
rev 0, Mem 0x98000000/27, 0x90000000/16, I/O
0x0400/8, BIOS
0x90020000/17
The register range at 0x90000000 is only 64kB ( hence /16 as
in 16 bits
wide ) but the radeon driver tries to mmap 512kB which of
course fails.
This is a bug in X.org's radeon driver, I reported it to
x.org a while
ago and it should have been fixed in 7.x
Meanwhile - why don't you just use the XFree86 4.5 that
comes with
NetBSD? It doesn't have this problem as far as I remember
and the
graphics chip is old enough to be fully supported by
XFree86.
have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQEVAwUBRTkPw8pnzkX8Yg2nAQLg5Af9GVyl17o48ccX02cYl7gQV+mU6uvs
KSx2
VpEQJjbXr4SpWEe8kuU7Mm6jk3Ja2PdDqZI6OKjIXSkjco9GjSlxVva8ay0R
tE5J
4t7ZzFReC5PWDjVIazfPcjj3lZw3gLyKLbVlwZvgm/n2VqqbHhcUE0+wmulQ
FOfZ
slxS6mdmhNUAImGRpEbaEjt8JSnb1nitHUXMbFkXvNZRcyQkepqPxEOOvf30
H+7s
TFGVCWgq0nLdjB2sGY5kUGY5Bcu8Eb/Lz1OYKEIHRq7VzeNCERPVm1uNoVZ9
7Ej0
zhiuJcBc0JZi5YHy2eBKiquyv/xzlFxtXrtyyNTmRacP42sbyLerFA==
=I8b/
-----END PGP SIGNATURE-----
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-21 11:42:03 |
Hello again
Now I've installed Xfree86 from the cd's sets, and tried to
get it
working... but I end up with a black screen at the best of
times. I
had to enter modelines in the Monitor section in order to
get Xfree86
to start at all. I calculated them with:
htt
p://xtiming.sourceforge.net/cgi-bin/xtiming.pl
Based on the data I found on Apple.com
X is acculy running, there's twm, xclock and some xterms in
the there
somewhere... but I can't see it. I also tried to kill X and
ended up
with a psychedelic pattern over the entire screen. (over ssh
this is).
It's square dots in wave like patterns, a bit like an 80's
fabric
print maybe. And I get the console in it... all messed up,
but it's
there.
So, thanks for all the help so far!
And here's something new to bite in.
Take care!
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-21 18:02:33 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
On Oct 21, 2006, at 07:42, Adrian Christiansen wrote:
> Now I've installed Xfree86 from the cd's sets, and
tried to get it
> working... but I end up with a black screen at the best
of times. I
> had to enter modelines in the Monitor section in order
to get Xfree86
> to start at all. I calculated them with:
> htt
p://xtiming.sourceforge.net/cgi-bin/xtiming.pl
> Based on the data I found on Apple.com
some iMacs have similar problems - the monitor works at a
fixed
horizontal frequency and is very picky about that.
change
HorizSync 71.0-73.0
to
HorizSync 72
and get rid of the modelines. Maybe that will help,
something similar
works on G3 iMacs. You may also want to try different
resolutions, for
instance I got 1024x768 to work but not 800x600.
If that doesn't help try to generate a modeline that matches
72kHz
horizontal as accurately as possible.
Finally - have a look at your XFree86.0.log - maybe the
monitor reports
its parameters and supported modes.
have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQEVAwUBRTpgucpnzkX8Yg2nAQJqjQgAl4+4DAKWCsDseeTPvabv0BFQqrU5
ft65
u7zyfLIurbP0VmMgMGkZAGhAulrpYmki6Do6UAoCmzNEcCM03Opg1Zy9o3Sk
5ZqN
0dcqDDYaDqENVZv/j/j6EkRp+mAvLt1wqszuQ3awEgA04pWgBMxhu2sUh9uo
BDwU
kISBR3DImBvThPh18rdZRQ1yDOCi3vqx6kGuPEvjGU48D21BaygkAZq0qR5I
4oOW
lj+15Txsho282qe/NxIF6oOHbS3Ue9uWFlLRel+68P60WzepDMH73+eMFCqU
SRnM
zgVMFg7p9/pAHcp2C86mIkUJopIhBWvnBtj6C6E2Tae2xCcZghekKA==
=18wS
-----END PGP SIGNATURE-----
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-21 19:22:56 |
Hi,
In case it helps, this (below) is the XF86Config I use in
the eMac. I
use it in 1024x768 24 mode and works fine -- I haven`t tested
the
800x600 mode.
I`ve got the ModeLines from some other config file for a
eMac, I think
they were calculated with some automated configuration
program or
calculator.
> I also tried to kill X and ended up
> with a psychedelic pattern over the entire screen.
(over ssh this is).
> It's square dots in wave like patterns, a bit like an
80's fabric
> print maybe. And I get the console in it... all messed
up, but it's
> there.
I get also this pattern when exiting X11, but the text
displays in
white background so a simple "clear" will clean up
the pattern and you
will get normal console black (although some minimal
distortion
remains at the edges of the screen where no text is
displayed).
Please note that when using wskbd0 in both the wscons
wsdisplay0 and
the X server, it will detach from wsdisplay0 when the X
server starts
in NetBSD-3 (not in NetBSD-2). You can reconnect it to
wsdisplay0 and
everything will work fine (a simple re-plugging of the
keyboard USB
cable will do it).
In NetBSD-3, without the iBookHacks the system will crash.
In NetBSD-2, it won`t crash but you will have no console
screen
(although you can type commands and they will work, of
course).
In fact, this will disconnect the eMac monitor, so it can be
of use
for some things.
The XF86Config follows:
----------------------------------------------
# File generated by xf86config.
#
# Copyright (c) 1999 by The XFree86 Project, Inc.
#
# Permission is hereby granted, free of charge, to any
person obtaining a
# copy of this software and associated documentation files
(the "Software"),
# to deal in the Software without restriction, including
without limitation
# the rights to use, copy, modify, merge, publish,
distribute, sublicense,
# and/or sell copies of the Software, and to permit persons
to whom the
# Software is furnished to do so, subject to the following
conditions:
#
# The above copyright notice and this permission notice
shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT
WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE
# SOFTWARE.
#
# Except as contained in this notice, the name of the
XFree86 Project shall
# not be used in advertising or otherwise to promote the
sale, use or other
# dealings in this Software without prior written
authorization from the
# XFree86 Project.
#
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't
initialise the DGA extension
EndSubSection
# This loads the Type1 and FreeType font modules
Load "type1"
Load "speedo"
Load "freetype"
# Load "xtt"
# This loads the GLX module
# Load "glx"
# This loads the DRI module
# Load "dri"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
# FontPath "/usr/pkg/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath
"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath
"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
# FontPath
"/usr/X11R6/lib/X11/fonts/freefont/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
# ModulePath "/usr/X11R6/lib/modules"
EndSection
Section "ServerFlags"
# Option "NoTrapSignals"
# Option "DontVTSwitch"
# Option "DontZap"
# Option "Dont Zoom"
# Option "DisableVidModeExtension"
# Option "AllowNonLocalXvidtune"
# Option "DisableModInDev"
# Option "AllowNonLocalModInDev"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "Protocol" "wskbd"
Option "Device" "/dev/wskbd0"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "es"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
EndSection
Section "Monitor"
Identifier "Apple"
HorizSync 30-112
VertRefresh 50-160
ModeLine "800x600" 112 800 816 824 840 600 616 624
640 -hsync -vsync
ModeLine "1024x768" 100 1024 1108 1280 1408 768
768 780 796 +hsync +vsync
EndSection
Section "Device"
Identifier "Radeon"
VendorName "Unknown"
BoardName "Unknown"
Driver "ati"
Option "iBookHacks" "true"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "Radeon"
Monitor "Apple"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1024x768" "800x600"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1"
"CoreKeyboard"
EndSection
# Section "DRI"
# Mode 0666
# EndSection
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-22 12:16:57 |
Hi again
I got 1024x768 to work with your modeline, and I tried three
modelines
I found on the Internet, that where said to work on eMacs
running
XFree86 in 1280x960. None of them did work:/ I did also try
two
different modeline generators, and none of their outputs did
work.
ModeLine "800x600" 112 800 816 824 840 600
616 624 640 -hsync -vsync
ModeLine "1024x768" 100 1024 1108 1280 1408
768 768 780 796 +hsync +vsync
#Modeline "1280x960" 122.25 1280 1328 1424 1696
960 961 964 1002
+hsync +vsync -csync
That modeline is from a working XFree86.config... at least
if you are
using Gentoo. And maybe only 1.25GHz modell?
Is there something about the diffrent eMac modelles? The
700MHz one
have an nVidia card, the 1GHz ATI Radeon 7500 and the
1.25GHz has an
ATI Radeon 9200.
So maybe the modelines are different for the different
modells?
According to the eMac manual, the monitor will only work in
72kHz
h.sync and these resolutions:
640x480 138Hz
800x600 112Hz
1024x768 89.0Hz
1152x864 80.0Hz
1280x960 72.0Hz
Which is strange, because I remember there being 60 and 72Hz
in
1280x960... I could be wrong though.
Maybe it would be a good thing to have a list of working
modelines
collected on NetBSD.org somewhere?
Take care!
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-22 12:59:27 |
How do I make users available to use X?
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-22 13:30:22 |
Hi,
On 10/22/06, Adrian Christiansen <adrian.christiansen gmail.com> wrote:
> Is there something about the diffrent eMac modelles?
The 700MHz one
> have an nVidia card, the 1GHz ATI Radeon 7500 and the
1.25GHz has an
> ATI Radeon 9200.
> So maybe the modelines are different for the different
modells?
Hmm... supposedly the modelines depend only on the monitor,
which is
expected to be the same across these eMac models (although
it may not
be... not sure).
>
> According to the eMac manual, the monitor will only
work in 72kHz
> h.sync and these resolutions:
> [...]
> 1024x768 89.0Hz
> [...]
This rate is correct for my eMac at 1024x768 too.
-Marco
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-22 13:36:52 |
On 10/22/06, Adrian Christiansen <adrian.christiansen gmail.com> wrote:
> I got 1024x768 to work with your modeline, and I tried
three modelines
> I found on the Internet, that where said to work on
eMacs running
> XFree86 in 1280x960. None of them did work:/ I did also
try two
> different modeline generators, and none of their
outputs did work.
>
> #Modeline "1280x960" 122.25 1280 1328 1424
1696 960 961 964 1002
> +hsync +vsync -csync
Try with this modeline too; it's from the same file from
which I got
my modelines:
ModeLine "1280x960" 100 1280 1288 1392 1664 1024
1027 1030 1064
-Marco
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-22 14:07:48 |
Hi Adrian,
not that I have any specific knowledge about eMacs.
But somewhere along the line you mess up horizontal
and vertikal sync; and I am not shure to which one
the eMac monitor restriction applies.
Please reassure yourself which one matters.
Because
horizontal frequency: Pixelclock / number of pixels per line
vertical frequency Pixelclick / total number of pixels
both including the invisible pixel that make the time for
the
backtravel of the e-ray in CRTs.
Adrian Christiansen wrote:
..
> ModeLine "800x600" 112 800 816 824 840
600 616 624 640 -hsync -vsync
This gives:
horizontal: 112 MHz / 840 = 133 kHz
vertical: 112 MHz / (840 x 640) = 208 Hz
More than 200Hz vertical frequency or refresh-rate, I don't
think
many monitors out there can follow that quickly.
> ModeLine "1024x768" 100 1024 1108 1280
1408 768 768 780 796
> +hsync +vsync
horizontal: 100 MHz / 1408 = 71 kHz
vertical: 100 Mhz / ( 1408 x 796) = 89 Hz
>
> #Modeline "1280x960" 122.25 1280 1328 1424
1696 960 961 964 1002
> +hsync +vsync -csync
> That modeline is from a working XFree86.config... at
least if you are
> using Gentoo. And maybe only 1.25GHz modell?
>
> Is there something about the diffrent eMac modelles?
The 700MHz one
> have an nVidia card, the 1GHz ATI Radeon 7500 and the
1.25GHz has an
> ATI Radeon 9200.
> So maybe the modelines are different for the different
modells?
>
> According to the eMac manual, the monitor will only
work in 72kHz
> h.sync and these resolutions:
> 640x480 138Hz
> 800x600 112Hz
> 1024x768 89.0Hz
> 1152x864 80.0Hz
> 1280x960 72.0Hz
>
> Which is strange, because I remember there being 60 and
72Hz in
> 1280x960... I could be wrong though.
If you add about 5% for backtravel and assume progressive
mode (i.e.
non-interlaced as in TVs) that backs up what is initially
stated, you will always end up around 72kHz horizontal.
Okay, so the requirement clearly applies to horizontal
frequency.
Having two different vertical frequencies (refresh-rates)
for one
resolution would work with adjusting the time you allow for
vertical
backtravel because the time you spend per line is fixed by
the 72kHz
horizontal requirement of your monitor.
>
> Maybe it would be a good thing to have a list of
working modelines
> collected on NetBSD.org somewhere?
>
> Take care!
>
>
There is some good and short documentation for xfree what
the modeline
means and how it translates to the "physics" of
the device,
and how to construct modelines for specific requirements
with that
knowledge.
I don't have a link available right now, though.
HTH
Rudi
|
|
| Problem with Xorg and maybe wscons too? |

|
2006-10-24 12:35:14 |
Hi
That modeline didn't work... and non-root users can't use
X...
Is there any other open source operative system who are
easier to work with?
Feels really messy and fuzzy with everything in the macppc
port, maybe
it's a port for the elite and not for the common people
interested in
using an *BSD on their mac?
2006/10/22, Marco Trillo <marcotrillo gmail.com>:
> On 10/22/06, Adrian Christiansen
<adrian.christiansen gmail.com> wrote:
> > I got 1024x768 to work with your modeline, and I
tried three modelines
> > I found on the Internet, that where said to work
on eMacs running
> > XFree86 in 1280x960. None of them did work:/ I did
also try two
> > different modeline generators, and none of their
outputs did work.
> >
> > #Modeline "1280x960" 122.25 1280 1328
1424 1696 960 961 964 1002
> > +hsync +vsync -csync
>
> Try with this modeline too; it's from the same file
from which I got
> my modelines:
>
> ModeLine "1280x960" 100 1280 1288 1392 1664
1024 1027 1030 1064
>
>
> -Marco
>
|
|
[1-10]
|
|