Display Error

2004-09-24 Thread ksrangsy
Hello, I have a question about Xwin.  I've been using Xwin T1 connection and on
dial-up but without the full interface response with dial-up.  But now that I
have a dsl connection, I get a display error.  Attached is the XWin.log with
the error message.  Is there anything I can do to fix this error; any help
would be extremely appreciated.

Thank you.



XWin.log
Description: Binary data


Missing characters from a Type1 font

2004-09-24 Thread Arthur Norman
I install the AMS "computer modern" type1 fonts (as fetched form any big 
TeX archive) and then try to use them. I appear to find that using cygwin 
and its X server that the character with code 0xa1 is not displayed when 
XDrawString is used. The code is a second-mapping of what would otherwise 
be code 0x00, a capital Gamma.
Running exactly the same code on several 32-bit Linux systems causes the 
character to be visible (specifically SuSE 9.0 + current updates and 
RedHat 6.1). The new fonts were added using "xset fp+" and Delta, Theta 
appear ok from 0xa2, 0xa3, so the font can really be accessed. I have some 
belief that things fail on SuSE 9.x x86_64 too but can not readily check 
that again just now.  As short a demo program I have got is a hack of a 
Hello World program found on the Web. It should display
   X Gamma Y Delta | Theta Lambda Hello, World
but as I say on cygwin the Gamma is just missed out.  Have I missed some 
fine print in a manual please anybody?

unpack cmps-unix.tar.gz to somwhere
pushd 
type1inst
xset fp+ `pwd`
xset fp rehash
popd
gcc hello.c -L/usr/X11R6/lib -lX11 -o hello
./hello

/*
 * This is basically an X "Hello World" program found in a collection
 * of Hello Worlds on the web. I have stripped some comments to reduce
 * bulk
 */
#include 
#include 
#include 
#define STRING  "X\x00Y\x01Z\x02\x03Hello, world"
#define STRING  "X\xa1Y\xa2Z\xa3\xa4Hello,\xa0world"
#define STRINGlength 19
#define BORDER  1
#define FONT"-unknown-cmr17-medium-r-normal--40-0-0-0-p-0-adobe-fontspecific"
XWMHintsxwmh = {
(InputHint|StateHint),  /* flags */
False,  /* input */
NormalState,/* initial_state */
0,  /* icon pixmap */
0,  /* icon window */
0, 0,   /* icon location */
0,  /* icon mask */
0,  /* Window group */
};
main(argc,argv)
int argc;
char **argv;
{
Display*dpy;/* X server connection */
Window  win;/* Window ID */
GC  gc; /* GC to draw with */
XFontStruct *fontstruct;/* Font descriptor */
unsigned long fth, pad; /* Font size parameters */
unsigned long fg, bg, bd;   /* Pixel values */
unsigned long bw;   /* Border width */
XGCValues   gcv;/* Struct for creating GC */
XEvent  event;  /* Event received */
XSizeHints  xsh;/* Size hints for window manager */
char   *geomSpec;   /* Window geometry string */
XSetWindowAttributes xswa;  /* Temporary Set Window Attribute struct */
if ((dpy = XOpenDisplay(NULL)) == NULL) {
fprintf(stderr, "%s: can't open %s\en", argv[0], XDisplayName(NULL));
exit(1);
}
if ((fontstruct = XLoadQueryFont(dpy, FONT)) == NULL) {
fprintf(stderr, "%s: display %s doesn't know font %s\en",
argv[0], DisplayString(dpy), FONT);
exit(1);
}
fth = fontstruct->max_bounds.ascent + fontstruct->max_bounds.descent;
bd = BlackPixel(dpy, DefaultScreen(dpy));
bg = WhitePixel(dpy, DefaultScreen(dpy));
fg = BlackPixel(dpy, DefaultScreen(dpy));
pad = BORDER;
bw = 8;
xsh.flags = (PPosition | PSize);
xsh.height = fth + pad * 2;
xsh.width = XTextWidth(fontstruct, STRING, STRINGlength) + pad * 2;
xsh.x = (DisplayWidth(dpy, DefaultScreen(dpy)) - xsh.width) / 2;
xsh.y = (DisplayHeight(dpy, DefaultScreen(dpy)) - xsh.height) / 2;
win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy),
  xsh.x, xsh.y, xsh.width, xsh.height,
  bw, bd, bg);
XSetStandardProperties(dpy, win, STRING, STRING, None, argv, argc, &xsh);
XSetWMHints(dpy, win, &xwmh);
xswa.colormap = DefaultColormap(dpy, DefaultScreen(dpy));
xswa.bit_gravity = CenterGravity;
XChangeWindowAttributes(dpy, win, (CWColormap | CWBitGravity), &xswa);
gcv.font = fontstruct->fid;
gcv.foreground = fg;
gcv.background = bg;
gc = XCreateGC(dpy, win, (GCFont | GCForeground | GCBackground), &gcv);
XSelectInput(dpy, win, ExposureMask);
XMapWindow(dpy, win);
while (1) {
XNextEvent(dpy, &event);
if (event.type == Expose && event.xexpose.count == 0) {
XWindowAttributes xwa;  /* Temp Get Window Attribute struct */
int x, y;
while (XCheckTypedEvent(dpy, Expose, &event));
if (XGetWindowAttributes(dpy, win, &xwa) == 0)
break;
x = (xwa.width - XTextWidth(fontstruct, STRING, STRINGlength)) / 2;
y = (xwa.height + fontstruct->max_bounds.ascent
 - fontstruct->max_bounds.descent) / 2;
XClearWindow(dpy, win);
/* The next line appears to me to behave oddly */
XDrawString(dpy, win, gc, x, y, STRING, STRINGlength);
}
}

Re: BScreen::BScreen: an error occcurred while querying the X server

2004-09-24 Thread Michel Bardiaux
[EMAIL PROTECTED] wrote:
Hello,
Am having difficulty getting this email through.
I installed cygwin per a the web site's and a Professor's instructions.  In startx, got
BScreen::BScreen: an error occured whil querying the Xserver.
another window manager already running on display:0.0.
Openbox: no managable screens found   aborting
...attached is the XWin.log.
Thank you,
Brian Ammon
The problem is not with the X server, XWin.log shows it started 
normally. But you specified -multiwindow, meaning you will be using 
MS-Windows itself as window manager. So startx should not start any WM 
of its own. What exactly is there in your startx?

--
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41


Re: BScreen::BScreen: an error occcurred while querying the X server

2004-09-24 Thread Mark Paulus
Do you have a .xinitrc that is starting a window
manager?  

If you want to use startx and want to use a window manager
via .xinitrc (such as fvwm2 or wmaker), then you also
need to add a .xserverrc that invokes XWin WITHOUT
the multiwindow option:
e.g.

$ cat .xserverrc
exec X :0 -clipboard

$ cat .xinitrc
exec wmaker


On Fri, 24 Sep 2004 11:59:09 -0400, [EMAIL PROTECTED] wrote:

>Hello,
>Am having difficulty getting this email through.

>I installed cygwin per a the web site's and a Professor's instructions.  In startx, 
>got

>BScreen::BScreen: an error occured whil querying the Xserver.
>another window manager already running on display:0.0.

>Openbox: no managable screens found   aborting

>...attached is the XWin.log.

>Thank you,
>Brian Ammon






BScreen::BScreen: an error occcurred while querying the X server

2004-09-24 Thread Bammon0001
Hello,
Am having difficulty getting this email through.

I installed cygwin per a the web site's and a Professor's instructions.  In startx, got

BScreen::BScreen: an error occured whil querying the Xserver.
another window manager already running on display:0.0.

Openbox: no managable screens found   aborting

...attached is the XWin.log.

Thank you,
Brian Ammon


XWin.log
Description: XWin.log


Re: multiple connections from Xserver

2004-09-24 Thread Igor Furlan

--- Michel Bardiaux <[EMAIL PROTECTED]> wrote:

> Vijay Kiran Kamuju wrote:
> 
> > Hi Tom,
> > 
> > Alex's solution just solved my prob
> > 
> > bye,
> > Vijay
> 
> But since you didnt describe your problem very
> clearly (there are 
> several interpretions possible), no one else will
> benefit from the 
> solution. So please explain anyway.


You are right... perhaps he does not care ;-)


Re: start up screen problem

2004-09-24 Thread Michel Bardiaux
Vijay Kiran Kamuju wrote:
Hi,
i am using humming bird exceed and cygywin/x to connect to solaris servers
i noticed some thing quite different
check out the first screen after successfully logging in
cde1.gif ---> Cygwin/X
cde2.gif ---> HummingBird Exceed
there is colorloss in the images due to gif conversion,
if u want ill provide the orignal bmps
can anyone tell me why its happening?
can u fix this?
bye,
Vijay
What does xdpyinfo say in both cases?
--
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41


Re: multiple connections from Xserver

2004-09-24 Thread Michel Bardiaux
Vijay Kiran Kamuju wrote:
Hi Tom,
Alex's solution just solved my prob
bye,
Vijay
But since you didnt describe your problem very clearly (there are 
several interpretions possible), no one else will benefit from the 
solution. So please explain anyway.


On Fri, 24 Sep 2004 09:25:42 -0400, Tom Sobczynski <[EMAIL PROTECTED]> wrote:
Vijay,
I think there is some confusion about what it is you are trying to
accomplish.  If you tell us more about what you'd really like to be able
to do, we can try to provide you with good options.  For instance, are
you interested in seeing two desktops on remote systems, or do you want
to run specific applications on two remote systems and simply interact
with them from your Windows desktop?  Am I making any sense, or just
muddying the waters more?
Tom

On Fri, 2004-09-24 at 00:34, Vijay Kiran Kamuju wrote:
is it possible to connect to multiple clients from my XServer
im already running XWin by
XWin -clipboard -query yamuna&
i wanted 2 connect to another server named himalya while keeping
connection to above open
it gives a fatal error and i am providing the
Contents of /tmp/XWin.log
-
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.1.0-1
Contact: [EMAIL PROTECTED]
XWin was started with the following command line:
XWin -clipboard -query himalaya
ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
winCheckDisplayNumber - Cygwin/X is already running on display 0
Fatal server error:
InitOutput - Duplicate invocation on display number: 0.  Exiting.
winDeinitMultiWindowWM - Noting shutdown in progress


--
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41


Re: multiple connections from Xserver

2004-09-24 Thread Vijay Kiran Kamuju
Hi Tom,

Alex's solution just solved my prob

bye,
Vijay


On Fri, 24 Sep 2004 09:25:42 -0400, Tom Sobczynski <[EMAIL PROTECTED]> wrote:
> Vijay,
> 
> I think there is some confusion about what it is you are trying to
> accomplish.  If you tell us more about what you'd really like to be able
> to do, we can try to provide you with good options.  For instance, are
> you interested in seeing two desktops on remote systems, or do you want
> to run specific applications on two remote systems and simply interact
> with them from your Windows desktop?  Am I making any sense, or just
> muddying the waters more?
> 
> Tom
> 
> 
> 
> On Fri, 2004-09-24 at 00:34, Vijay Kiran Kamuju wrote:
> > is it possible to connect to multiple clients from my XServer
> >
> > im already running XWin by
> >
> > XWin -clipboard -query yamuna&
> >
> > i wanted 2 connect to another server named himalya while keeping
> > connection to above open
> >
> > it gives a fatal error and i am providing the
> >
> > Contents of /tmp/XWin.log
> > -
> >
> > Welcome to the XWin X Server
> > Vendor: The Cygwin/X Project
> > Release: 6.8.1.0-1
> >
> > Contact: [EMAIL PROTECTED]
> >
> > XWin was started with the following command line:
> >
> > XWin -clipboard -query himalaya
> >
> > ddxProcessArgument - Initializing default screens
> > winInitializeDefaultScreens - w 1024 h 768
> > winInitializeDefaultScreens - Returning
> > winCheckDisplayNumber - Cygwin/X is already running on display 0
> >
> > Fatal server error:
> > InitOutput - Duplicate invocation on display number: 0.  Exiting.
> >
> > winDeinitMultiWindowWM - Noting shutdown in progress
> 
>


Re: multiple connections from Xserver

2004-09-24 Thread Tom Sobczynski
Vijay,

I think there is some confusion about what it is you are trying to
accomplish.  If you tell us more about what you'd really like to be able
to do, we can try to provide you with good options.  For instance, are
you interested in seeing two desktops on remote systems, or do you want
to run specific applications on two remote systems and simply interact
with them from your Windows desktop?  Am I making any sense, or just
muddying the waters more?

Tom

On Fri, 2004-09-24 at 00:34, Vijay Kiran Kamuju wrote:
> is it possible to connect to multiple clients from my XServer
> 
> im already running XWin by
> 
> XWin -clipboard -query yamuna&
> 
> i wanted 2 connect to another server named himalya while keeping
> connection to above open
> 
> it gives a fatal error and i am providing the 
> 
> Contents of /tmp/XWin.log
> -
> 
> Welcome to the XWin X Server
> Vendor: The Cygwin/X Project
> Release: 6.8.1.0-1
> 
> Contact: [EMAIL PROTECTED]
> 
> XWin was started with the following command line:
> 
> XWin -clipboard -query himalaya
> 
> ddxProcessArgument - Initializing default screens
> winInitializeDefaultScreens - w 1024 h 768
> winInitializeDefaultScreens - Returning
> winCheckDisplayNumber - Cygwin/X is already running on display 0
> 
> Fatal server error:
> InitOutput - Duplicate invocation on display number: 0.  Exiting.
> 
> winDeinitMultiWindowWM - Noting shutdown in progress



Re: problem in scaleable fonts during update

2004-09-24 Thread Alexander Gottwald
On Fri, 24 Sep 2004, aroushdi wrote:

> Hi everybody ,
> while updating my cygwin to the latest level i get the following message :
> title:mkfontscale.exe Entry point Not Found
> body : The procedure entry point FT_Get_BDF_Property could not be 
> located in the dynamic link library cygfreetype-6.dll

which version of libfreetype do you have installed?

I've not seen such a problem with the 2.1.5-1 package. Maybe you have 
cygfreetype-6.dll installed multiple times on your system.

bye
ago 
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: The "no font fixed" problem

2004-09-24 Thread Alexander Gottwald
On Fri, 24 Sep 2004 [EMAIL PROTECTED] wrote:

> Many thanks!  Following your release of the new xorg-x11-{fonts,xwin}-6.8.1.0-2
> package, I'd like to report that X worked 1st time after a fresh
> install.

cool
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: running xterm in cygwin

2004-09-24 Thread Alexander Gottwald
On Fri, 24 Sep 2004, Leow Wee Kheng wrote:

> Hi,
> 
> I installed Cygwin/X in my WinXP PC.
> But, it has problem opening the X display.
> I've set the display to my PC's host name
> using "export DISPLAY=leowwk-1" but it still
> doesn't work. Any idea what's the problem?

you were at least missing the display number:

export DISPLAY=leowwk-1:0.0

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: multiple connections from Xserver

2004-09-24 Thread Alexander Gottwald
On Fri, 24 Sep 2004, Vijay Kiran Kamuju wrote:

> is it possible to connect to multiple clients from my XServer
> 
> im already running XWin by
> 
> XWin -clipboard -query yamuna&

if you start multiple instances of XWin you must start to number them

1st XWin -query foo
2nd XWin :1 -query bar
3rd XWin :2 -query blubb

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


problem in scaleable fonts during update

2004-09-24 Thread aroushdi
Hi everybody ,
while updating my cygwin to the latest level i get the following message :
title:mkfontscale.exe Entry point Not Found
body : The procedure entry point FT_Get_BDF_Property could not be 
located in the dynamic link library cygfreetype-6.dll
attatche is the image of the message.
thks for the help

<>

Re: running xterm in cygwin

2004-09-24 Thread luke . kendall
On 24 Sep, Leow Wee Kheng wrote:
>  I installed Cygwin/X in my WinXP PC. 
>  But, it has problem opening the X display. 
>  I've set the display to my PC's host name 
>  using "export DISPLAY=leowwk-1" but it still 
>  doesn't work. Any idea what's the problem? 

You shouldn't need to set it explicitly, unless you're running it from
a command outside X (e.g. from a DOS prompt), and even then it should
only need to be set to ":0.0".

You have remembered to actually start X first, haven't you?
Experiment by starting X (use "startx" or run xinit directly).
Check out /tmp/XWin.log to see if any errors are reported.

luke



Re: The "no font fixed" problem

2004-09-24 Thread luke . kendall
On 21 Sep, Alexander Gottwald wrote:
>  On Tue, 21 Sep 2004 [EMAIL PROTECTED] wrote:
>  
> > The problem with X not running because of the error "no font 'fixed'"
> > has been around so long that some months ago a I scripted a post-install
>  
>  I could provide new packages where the remounting of /usr/X11R6/lib/X11/fonts
>  is not done anymore but the list files are autogenerated on postinstall. 
>  
>  It works on binmode (as expected) but I was not able to get hands on a clean
>  textmode install to test.
>  
>  bye
>   ago

Many thanks!  Following your release of the new xorg-x11-{fonts,xwin}-6.8.1.0-2
package, I'd like to report that X worked 1st time after a fresh
install.

Many thanks, Alexander,

luke



Re: multiple connections from Xserver

2004-09-24 Thread Michel Bardiaux
Vijay Kiran Kamuju wrote:
is it possible to connect to multiple clients from my XServer
What do you mean *to* multiple clients *from* X server? Unless you mean 
some kind of session manager, it works the other way, a client (like 
xterm) connects to the server.

im already running XWin by
XWin -clipboard -query yamuna&
i wanted 2 connect to another server named himalya while keeping
connection to above open
You apparently try to start two X servers on the same machine. What role 
is 'himalaya' supposed to play? Be another display, or run xterm (and 
from there your programs).

it gives a fatal error and i am providing the 

Contents of /tmp/XWin.log
-
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.1.0-1
Contact: [EMAIL PROTECTED]
XWin was started with the following command line:
XWin -clipboard -query himalaya
ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
winCheckDisplayNumber - Cygwin/X is already running on display 0
Fatal server error:
InitOutput - Duplicate invocation on display number: 0.  Exiting.
winDeinitMultiWindowWM - Noting shutdown in progress

--
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41