Xwin shutdown command line option
Hi is there a way to shutdown the Xserver from command line rather than using ps and checking for pid of XWin and using kill -9 if u can provide that option from command line it would be gr8 when XWin is started i have to go to the tray icon and shutit down, i have to connect more than 1 solaris machines using XWin using XDMCP so i can build a script just so that i can connect to what ever solaris machine? Bye, Vijay
Re: -clipboard & xwinclip & -nounicodeclipboard
Hi, This patch will fix that problem. BTW, should I commit to CYGWIN branch or trunk? Kensuke Matsuzaki mailto:[EMAIL PROTECTED] http://peppermint.jp clipboard.diff Description: Binary data
6.8.1.0-1/XP-Pro 5.1 Cant open display 127.0.0.1:0.0
[Xwin 6.8.1.0-1, Windows XP pro 5.1, experienced with linux X, not a windows or cygwin hacker] (Machine has Hummingbird Exceed installed but not running) My first try at cygwin-x: Installed from web. Clicked on the Cygwin icon. Got a cygwin window. Typed startxwin.sh I see: welcome to the xwin X server vendor: the cygwin/X project Release: 6.8.1.0-1 contact: cyg XWin was started with the following command line: XWin -multiwindow -clipboard -silent-dup-error xterm Xt error: Can't open display 127.0.0.1:0.0 I tried "xdpyinfo -display :0.0", "xdpyinfo -display localhost:0.0"; I tried from a linux machine "xterm -display swine:0.0". Nothing can connect. A "ps" shows a /usr/X11R6/bin/XWin process. I tried(after a clean reboot) "XWin -multiwindow -logverbose 3 -logfile xlog &" same result -- can not connect to the xserver, though the process seems to be running. The xlog file tells me further: ddxProcessArgument - Initializing default screens winIntializeDefaultScreens - w 1024 h 768 winIntializeDefaultScreens - Returning What am I doing wrong? -- George Young attached is output from cygcheck -s -v -r: Cygwin Configuration Diagnostics Current System Time: Tue Sep 21 17:03:20 2004 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\WINDOWS\system32\nls c:\WINDOWS\system32\nls\ENGLISH c:\Program Files\Novell\ZENworks\ c:\Program Files\SecureCRT\ Output from C:\cygwin\bin\id.exe (nontsec) UID: 1004(gyoung) GID: 513(None) 513(None) Output from C:\cygwin\bin\id.exe (ntsec) UID: 1004(gyoung) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME = `C:\cygwin\home\gyoung' MAKE_MODE = `unix' PWD = `/home/gyoung' USER = `gyoung' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\gyoung\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `SWINE' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVS_RSH = `/bin/ssh' HOMEDRIVE = `C:' HOMEPATH = `\' HOSTNAME = `swine' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' LOGONSERVER = `\\SWINE' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man:/usr/X11R6/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/bin' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig' PRINTER = `E-710 R7 Color Server US' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping 2, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0702' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `C:\DOCUME~1\gyoung\LOCALS~1\Temp' TERM = `cygwin' TMP = `C:\DOCUME~1\gyoung\LOCALS~1\Temp' USERDOMAIN = `SWINE' USERNAME = `gyoung' USERPROFILE = `C:\Documents and Settings\gyoung' WINDIR = `C:\WINDOWS' _ = `/usr/bin/cygcheck.exe' POSIXLY_CORRECT = `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0020 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x0008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x0008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x0008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options -- "Are the gods not just?" "Oh no, child. What would become of us if they were?" (CSL)
RE: Doh! problem solved was Re: bug? - startxwin.bat missing from recent Cygwin install
> I'll bet I'm not the only noob making the same > mistake. You weren't! Thanks for the info. It's a good suggestion. Kris
RE: Re: -clipboard & xwinclip & -nounicodeclipboard
Yes, KDE's Konsole program. -Original Message- From: Alexander Gottwald [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 1:19 PM To: [EMAIL PROTECTED] Cc: 'Zach Gelnett' Subject: RE: Re: -clipboard & xwinclip & -nounicodeclipboard Zach Gelnett wrote: > >Not unusual. > > > >Does the error happen when copying between xterm and notepad (or the other > >way). If not, which was the program you were copy copied the text from? > > Well whenever I select in just the terminal from the kde desktop whatever is > selected takes over the clipboard until something else is selected. You're refering to KDEs terminal here? I'll see if I can reproduce it. bye ago NP: Regicide - The Fragrance -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Doh! problem solved was Re: bug? - startxwin.bat missing from recent Cygwin install
I apologize for not reading the install section in the excellent Cygwin/X User's Guide more closely. I missed two packages during the setup. Is it possible to rename these two packages: X-start-menu-icons X-startup-scripts so that they match the other packages (xorg-x11...) so they would appear in the same section during setup? I'll bet I'm not the only noob making the same mistake. Thanks for taking the time to help me out. John --- Alexander Gottwald <[EMAIL PROTECTED]> wrote: > John Hebert wrote: > > > Howdy, > > > > I installed the latest release of Cygwin, and it > > doesn't include startxwin.bat. Is this normal? Was > it > > removed for a specific reason? > > > > I remember playing around with CygwinX about a > year > > ago and it was there. > > do you have the startup-scripts package form X11 > section installed? > > bye > ago > NP: Regicide - The Fragrance > -- > [EMAIL PROTECTED] > http://www.gotti.org ICQ: 126018723 > __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
RE: Re: -clipboard & xwinclip & -nounicodeclipboard
Zach Gelnett wrote: > >Not unusual. > > > >Does the error happen when copying between xterm and notepad (or the other > >way). If not, which was the program you were copy copied the text from? > > Well whenever I select in just the terminal from the kde desktop whatever is > selected takes over the clipboard until something else is selected. You're refering to KDEs terminal here? I'll see if I can reproduce it. bye ago NP: Regicide - The Fragrance -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: bug? - startxwin.bat missing from recent Cygwin install
John Hebert wrote: > Howdy, > > I installed the latest release of Cygwin, and it > doesn't include startxwin.bat. Is this normal? Was it > removed for a specific reason? > > I remember playing around with CygwinX about a year > ago and it was there. do you have the startup-scripts package form X11 section installed? bye ago NP: Regicide - The Fragrance -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: window position with default window manager
--- "Earle F. Philhower, III" wrote: > AGO wrote... > > Subject: Re: window position with default window > manager > > From: Alexander Gottwald > <[EMAIL PROTECTED]> > > On Tue, 21 Sep 2004, Elvin Peterson wrote: > > > It is possible to make all windows appear at the > top > > > left corner of the screen? I have looked at the > > > command line options and found nothing > appropriate. I > > > am using the -multiwindow option. > > Afaik the internal windowmanager has no option to > configure placing the > > windows. > > Most(all?) X apps have a "-geometry" command line > option, the > MWM does obey an initial position specified there > IIRC... I had forgotten all about it, as I hadn't used that option for a long time. emacs -geometry +0+0 does the trick. Isn't there an option for setting this in the Xdefaults file for all apps? Thanks for the help! __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail
bug? - startxwin.bat missing from recent Cygwin install
Howdy, I installed the latest release of Cygwin, and it doesn't include startxwin.bat. Is this normal? Was it removed for a specific reason? I remember playing around with CygwinX about a year ago and it was there. John __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail
RE: Re: -clipboard & xwinclip & -nounicodeclipboard
>Not unusual. > >Does the error happen when copying between xterm and notepad (or the other >way). If not, which was the program you were copy copied the text from? Well whenever I select in just the terminal from the kde desktop whatever is selected takes over the clipboard until something else is selected. I've tried un-selecting the item (clicking so that the select goes away), copying in windows and such but nothing seems to work. The only way to change what's in the clipboard is to select something else in cygwin, but this then "takes control" of the clipboard and again I cannot copy in windows but I can paste whatever was last selected in cygwin. > >bye >ago > >NP: Decoded Feedback - Bondage >-- > [EMAIL PROTECTED] > http://www.gotti.org ICQ: 126018723
Re: -clipboard & xwinclip & -nounicodeclipboard
Zach Gelnett wrote: > >Please provide more information about > > > >- version of XWin > > When it starts it says: > Welcome to the XWin X Server > Vendor: The Cygwin/X Project > Rlease: 6.8.1.0-1 > > >- OS (Win9x or WinNT, Version, language) > Win2k 5.00.2195 service pack 4, English Not unusual. Does the error happen when copying between xterm and notepad (or the other way). If not, which was the program you were copy copied the text from? bye ago NP: Decoded Feedback - Bondage -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: window position with default window manager
AGO wrote... > Subject: Re: window position with default window manager > From: Alexander Gottwald <[EMAIL PROTECTED]> > On Tue, 21 Sep 2004, Elvin Peterson wrote: > > It is possible to make all windows appear at the top > > left corner of the screen? I have looked at the > > command line options and found nothing appropriate. I > > am using the -multiwindow option. > Afaik the internal windowmanager has no option to configure placing the > windows. Most(all?) X apps have a "-geometry" command line option, the MWM does obey an initial position specified there IIRC... -- -Earle F. Philhower, III [EMAIL PROTECTED] http://www.ziplabel.com
Re: -clipboard & xwinclip & -nounicodeclipboard
>Please provide more information about > >- version of XWin When it starts it says: Welcome to the XWin X Server Vendor: The Cygwin/X Project Rlease: 6.8.1.0-1 >- OS (Win9x or WinNT, Version, language) Win2k 5.00.2195 service pack 4, English >xwinclip is not supported anymore and lacks many features and fixes which >are >incorporated into the xserver itself. That's cool, I'm quite interested in getting the xserver features working properly. >bye > ago >-- > [EMAIL PROTECTED] > http://www.gotti.org ICQ: 126018723
Re: -clipboard & xwinclip & -nounicodeclipboard
On Tue, 21 Sep 2004, Zach Gelnett wrote: > Im using the latest version of the KDE desktop from > kde-cygwin.sourceforge.net/install > > If I run the XWin.exe with the -clipboard option I keep getting this > error: > > winClipboardErrorHandler ERROR: > BadValue (integer parameter out of range for operation) > > And whatever it is that I selected takes over my clipboard, basically the > selects from Cygwin are whats in my clipboard no matter what. I can paste > into windows but I cant copy from windows and have it show up in either > windows or cygwin. Please provide more information about - version of XWin - OS (Win9x or WinNT, Version, language) > So I restart the X server, this time not using the clipboard option. When > the server comes up I run: xwinclip >/dev/null & > This seems to work fine for a while, then it arbitrary crashes. Ive piped > the output to a log file and heres what I get: xwinclip is not supported anymore and lacks many features and fixes which are incorporated into the xserver itself. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
-clipboard & xwinclip & -nounicodeclipboard
Im using the latest version of the KDE desktop from kde-cygwin.sourceforge.net/install If I run the XWin.exe with the -clipboard option I keep getting this error: winClipboardErrorHandler ERROR: BadValue (integer parameter out of range for operation) And whatever it is that I selected takes over my clipboard, basically the selects from Cygwin are whats in my clipboard no matter what. I can paste into windows but I cant copy from windows and have it show up in either windows or cygwin. So I restart the X server, this time not using the clipboard option. When the server comes up I run: xwinclip >/dev/null & This seems to work fine for a while, then it arbitrary crashes. Ive piped the output to a log file and heres what I get: UnicodeSupport - Windows NT/2000/XP Unicode clipboard I/O GetClipboardData () failed: So I restart X yet again this time with the nounicodeclipboard option. This, Im afraid, doesnt seem to do anything at all. No clipboard functionality, buggie or otherwise.
Re: window position with default window manager
On Tue, 21 Sep 2004, Elvin Peterson wrote: > It is possible to make all windows appear at the top > left corner of the screen? I have looked at the > command line options and found nothing appropriate. I > am using the -multiwindow option. Afaik the internal windowmanager has no option to configure placing the windows. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
window position with default window manager
It is possible to make all windows appear at the top left corner of the screen? I have looked at the command line options and found nothing appropriate. I am using the -multiwindow option. TIA. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail
Re: Error report
To clarify, my fonts directory was mounted in binary mode. The command-line output I included was before the FAQ fix and should show that. There's a new thread on the font problem that seems to concur with my observation.
Re: PseudoColor "emulation" working.
On Tue, 21 Sep 2004, Sebastian wrote: > Hey fellow developers, > Following up my last post regarding pseudocolor emulation and my ideas to fix it, > here's an update. > > I've modified the XWin server and running pseudocolor applications in an XWin window > running ontop a 16/32bpp windows desktop is now possible, using shadow gdi > rendering, it's however not possible to run both truecolor and pseudocolor apps at > the same time. great > When using the -emulatepseudo flag, XWin now opens a window on the desktop with the > same depth as the windows desktop however the shadow DIB that's allocated is 8bpp > and only a pseudocolor visual is created. BitBlt() (win32 function) does all the > color conversion and the like. > I haven't tested this thoroughly with different pseudocolor apps, just the one i had > to get working. > > The ToDo-list mentions "Emulate PseudoColor on TrueColor" this is not what this > modification does as it doesn't let you run truecolor apps simultaneously. > > What i plan to do next, in case of spare time, is to allocate both a 8bpp DIB and a > truecolor DIB and point these to their corresponding visuals, let the applications > draw to them, then BitBlt() the DIBs to the XWin window (using a different > raster-operation code), dunno if this is possible but it's worth a shot. > > When not supplying the -emulatepseudo flag the server works just like before. > > Is there any interest to merge my changes into the XWin source-tree? Please supply > information on how this can be done. You could send me the patches and I'll review it and commit to CVS bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: The "no font fixed" problem
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 -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
PseudoColor "emulation" working.
Hey fellow developers, Following up my last post regarding pseudocolor emulation and my ideas to fix it, here's an update. I've modified the XWin server and running pseudocolor applications in an XWin window running ontop a 16/32bpp windows desktop is now possible, using shadow gdi rendering, it's however not possible to run both truecolor and pseudocolor apps at the same time. When using the -emulatepseudo flag, XWin now opens a window on the desktop with the same depth as the windows desktop however the shadow DIB that's allocated is 8bpp and only a pseudocolor visual is created. BitBlt() (win32 function) does all the color conversion and the like. I haven't tested this thoroughly with different pseudocolor apps, just the one i had to get working. The ToDo-list mentions "Emulate PseudoColor on TrueColor" this is not what this modification does as it doesn't let you run truecolor apps simultaneously. What i plan to do next, in case of spare time, is to allocate both a 8bpp DIB and a truecolor DIB and point these to their corresponding visuals, let the applications draw to them, then BitBlt() the DIBs to the XWin window (using a different raster-operation code), dunno if this is possible but it's worth a shot. When not supplying the -emulatepseudo flag the server works just like before. Is there any interest to merge my changes into the XWin source-tree? Please supply information on how this can be done. Cheers, Sebastian Haby is 8bpp and only a pseudocolor visual is created. BitBlt() (win32 function) does all the color conversion and the like. I haven't tested this thoroughly with different pseudocolor apps, just the one i had to get working. The ToDo-list mentions "Emulate PseudoColor on TrueColor" this is not what this modification does as it doesn't let you run truecolor apps simultaneously. What i plan to
The "no font fixed" problem
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 fixup, based on http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof FWIW, here's the output on a machine we installed Cygwin on today. You'll note that most of the theories about the cause of the problem were incorrect in this case: Now trying to workaround the new X installation problem Hmm, /usr/X11R6/lib/X11/fonts exists. So much for that theory. Hmm, /usr/X11R6/lib/X11/fonts/misc exists too. So much for that theory. Hmm, /usr/X11R6/lib/X11/fonts/misc had plenty of fonts (446, actually) Checking for /usr/X11R6/lib/X11/fonts mount point... D:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmo de) Unmounting /usr/X11R6/lib/X11/fonts in preparation for fix Now re-running setup: you will need to choose RE-INSTALL for each of the X11 font sets (about 4 sets) under the X11 category. ** Lets try starting X to see if it now works. If you have to kill any of these attempts, you can continue from where you left off by using the try-X script. ** etc. So, the FAQ entry's theories don't seem to match the real cause, whatever that may be. I assume this problem has been affecting everyone, for months now, not just us? Or have I missed something? Here's the fixup script that generates the above output. The "yorn" script just asks for and examines a y/n answer. fixup-X #!/bin/sh # # As of about June 2004, every Cygwin installation installs a broken # version of X. # # Workaround is as per the FAQ: # http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof # This is an attempt to automate the workaround as far as possible. # # Author: Luke Kendall # DONE_PROOF=/etc/profile.d/.X-fixed # Same as in try-X MYNAME=`basename $0` XFONTDIR=/usr/X11R6/lib/X11/fonts if [ -s $DONE_PROOF ] then echo "$MYNAME: $DONE_PROOF indicates X11 has already been fixed." if yorn "do you really want to do it again" then : else exit 0 fi fi if [ ! -d $XFONTDIR ] then echo "Strange but kind of good: as expected, $XFONTDIR did not exist" else echo "Hmm, $XFONTDIR exists. So much for that theory." if [ ! -d $XFONTDIR/misc ] then echo "Not unexpected, $XFONTDIR/misc did not exist" else echo "Hmm, $XFONTDIR/misc exists too. So much for that theory." NUM=`ls $XFONTDIR/misc | wc -l` if [ $NUM -le 100 ] then echo "As expected, $XFONTDIR/misc had few fonts ($NUM, actually)" else echo "Hmm, $XFONTDIR/misc had plenty of fonts ($NUM, actually)" fi fi fi echo "Checking for $XFONTDIR mount point..." if mount | grep "$XFONTDIR" then echo "Unmounting $XFONTDIR in preparation for fix" umount $XFONTDIR else echo "Hmm, pretty strange, $XFONTDIR wasn't mounted on C:/cygwin$XFONTDIR" fi echo "Now re-running setup: you will need to choose RE-INSTALL for each" echo "of the X11 font sets (about 4 sets) under the X11 category." //samba/install/win32/cygwin/setup.exe echo "**" echo "Let's try starting X to see if it now works. If you have to" echo "kill any of these attempts, you can continue from where you left off" echo "by using the try-X script." echo "**" $CYG_POST_DIR/try-X - cut here -- Regards, luke