Nicolas Joly | 9 Sep 2005 15:22
Picon
Picon
Favicon

Can't do 1280x1024 <at> 24 anymore with -current tdfx changes


Hi,

I recently upgraded my i386, running -current, at home and noticed
that i cannot run X server at 1280x1024 depth 24 anymore. I checked
that reverting the recent tdfx changes restore the old behaviour.

Both old and new Xfree86 logs are available, if someone want to have a
look:

<URL:ftp://ftp.pasteur.fr/pub/computing/NetBSD/misc/XFree86.0.log.old>
<URL:ftp://ftp.pasteur.fr/pub/computing/NetBSD/misc/XFree86.0.log.new>

Thanks in advance,
Regards.

--

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

Michael | 9 Sep 2005 17:06
Picon
Favicon

Re: Can't do 1280x1024 <at> 24 anymore with -current tdfx changes

Hello,

> I recently upgraded my i386, running -current, at home and noticed
> that i cannot run X server at 1280x1024 depth 24 anymore. I checked
> that reverting the recent tdfx changes restore the old behaviour.

Odd. The parameters read via DDC match what you had before:
(II) TDFX(0): Monitor0: Using hsync range of 30.00-70.00 kHz
(II) TDFX(0): Monitor0: Using vrefresh range of 47.00-120.00 Hz

And the mode you used - 1280x1024 <at> 60Hz - is listed as supported:
(II) TDFX(0): #3: hsize: 1280  vsize 1024  refresh: 60  vid: 32897

That's apparently the cause:
(II) TDFX(0): Not using default mode "1024x768" (hsync out of range)
(**) TDFX(0): Preferred mode size is 1024x768
(II) TDFX(0): Not using default mode "1152x864" because it is larger
than the preferred mode (1024x768). 

I'll have a look why this happened - it didn't happen here though,
apparently my monitor doesn't report a preferred mode so XFree's DDC
code doesn't force me to use it. This should be overrideable.

have fun
Michael
Michael | 9 Sep 2005 17:27
Picon
Favicon

Re: Can't do 1280x1024 <at> 24 anymore with -current tdfx changes

Hello,

> That's apparently the cause:
> (II) TDFX(0): Not using default mode "1024x768" (hsync out of range)
> (**) TDFX(0): Preferred mode size is 1024x768
> (II) TDFX(0): Not using default mode "1152x864" because it is larger
> than the preferred mode (1024x768). 
> 
> I'll have a look why this happened - it didn't happen here though,
> apparently my monitor doesn't report a preferred mode so XFree's DDC
> code doesn't force me to use it. This should be overrideable.

I had a look at the code - apparently it's supposed to force the
preferred mode on you when your monitor reports one. There is an option
to override this behaviour ( 'UsePreferredMode' ) which defaults to
TRUE for some reason, so to get rid of this add something like this to
your Monitor section: 
Option "UsePreferredMode" "false"

Then you'll get:
(**) Option "UsePreferredMode" "false"
(**) TDFX(0): Use of a preferred mode has been disabled.

have fun
Michael
Nicolas Joly | 9 Sep 2005 22:57
Picon
Picon
Favicon

Re: Can't do 1280x1024 <at> 24 anymore with -current tdfx changes

On Fri, Sep 09, 2005 at 11:27:32AM -0400, Michael wrote:
> Hello,
> 
> > That's apparently the cause:
> > (II) TDFX(0): Not using default mode "1024x768" (hsync out of range)
> > (**) TDFX(0): Preferred mode size is 1024x768
> > (II) TDFX(0): Not using default mode "1152x864" because it is larger
> > than the preferred mode (1024x768). 
> > 
> > I'll have a look why this happened - it didn't happen here though,
> > apparently my monitor doesn't report a preferred mode so XFree's DDC
> > code doesn't force me to use it. This should be overrideable.
> 
> I had a look at the code - apparently it's supposed to force the
> preferred mode on you when your monitor reports one. There is an option
> to override this behaviour ( 'UsePreferredMode' ) which defaults to
> TRUE for some reason, so to get rid of this add something like this to
> your Monitor section: 
> Option "UsePreferredMode" "false"
> 
> Then you'll get:
> (**) Option "UsePreferredMode" "false"
> (**) TDFX(0): Use of a preferred mode has been disabled.

With that option, it works fine again ...
Thanks a lot.

--

-- 
Nicolas Joly

(Continue reading)

Michael | 10 Sep 2005 01:27
Picon
Favicon

Re: Can't do 1280x1024 <at> 24 anymore with -current tdfx changes

Hello,

> With that option, it works fine again ...
> Thanks a lot.

Sorry for the hassle, but the reason you didn't need this option before
was that monitor detection didn't work at all.

have fun
Michael
Julian Coleman | 12 Sep 2005 19:54
Picon

Re: Reduced colour xdm images

It would be good if xdm worked on displays with 256 or fewer colours with
our default install.  How about changing xdm's Xresources to have:

  #if PLANES > 8
  xlogin*logoFileName: /usr/X11R6/include/X11/pixmaps/NetBSD.xpm
  #else
  #if PLANES >= 4
  xlogin*logoFileName: /usr/X11R6/include/X11/pixmaps/NetBSDrc.xpm
  #else
  xlogin*logoFileName: /usr/X11R6/include/X11/pixmaps/NetBSDbw.xpm
  #endif
  #endif

where NetBSDrc.xpm is a reduced colour image and NetBSDbw.xpm is replaced
by a real black & white image?  (See the images at:

  http://www.coris.org.uk/misc/NetBSDrc.xpm
  http://www.coris.org.uk/misc/NetBSDbw.xpm

).

J

--

-- 
  My other computer also runs NetBSD    /        Sailing at Newbiggin
        http://www.netbsd.org/        /   http://www.newbigginsailingclub.org/

Adrian Christiansen | 12 Sep 2005 19:58
Picon
Gravatar

How to build x11 programs with gcc and pkg-config using xorg libs?

Hello

I tryed to build some x11 applications with gcc using pkg-config with
-lX11 and gcc
with just just -l/usr/pkg/xorg/lib. But I didn't get anyone of them to
build. I searched the
net around but didn't find anything.
Can I reconfigure pkg-config to use the xorg libs when telling it to
use -lX11 (and all
the other xlibs and xincludes)?

I'm trying to follow the following tutorials:
http://users.actcom.co.il/~choo/lupg/tutorials/xlib-programming/xlib-programming.html
http://xander.ncl.ac.uk/game/

Take care! :)

Jeremy C. Reed | 12 Sep 2005 23:48

Re: How to build x11 programs with gcc and pkg-config using xorg libs?

On Mon, 12 Sep 2005, Adrian Christiansen wrote:

> I tryed to build some x11 applications with gcc using pkg-config with
> -lX11 and gcc
> with just just -l/usr/pkg/xorg/lib. But I didn't get anyone of them to
> build. I searched the

Can you give any specific example? And example of errors?

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/

César Catrián C. | 19 Sep 2005 18:29

screen goes blank

Hi.

My screen goes blank protecting the screen even with the command 'xset -dpms', 
after a few minutes, but I don't know where to disable that feature. I would
like to ask about the proper way to deal with this, in order to get the screen
always 'on'.

Thanks in advance

César Catrián C.
http://mioficina.cjc.cl/


Hubert Feyrer | 19 Sep 2005 19:15
Picon
Favicon

Re: screen goes blank

On Mon, 19 Sep 2005, [UTF-8] César Catrián C. wrote:
> My screen goes blank protecting the screen even with the command 'xset -dpms',
> after a few minutes, but I don't know where to disable that feature. I would
> like to ask about the proper way to deal with this, in order to get the screen
> always 'on'.

I have

 	xset s off

in my .xinitrc.

  - Hubert

Gmane