LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-28-2002, 09:16 PM   #1
soda
LQ Newbie
 
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15

Rep: Reputation: 0
Question Tcl/Tk Program to change Screen Resolution


Hello,

I have written a small Tcl/Tk program that changes the resolution and color depth of my X Window System. It lets me choose my favourite screen resolution and color depth and then restarts X automatically using the new XF86Config file. Now I wanted to implement a dialog box that tests the new configuration first before actually restarting X and asks the user whether that configuration is fine. I did this by opening another X session on a different console like this: XFree86 :1.0 -xf86config /xxx/XF86Config.test. Now this tests the new X configuration on a seperate X server. I can watch the black-white patterns and leave the X server by pressing <Ctrl><Alt><Backspace> and no error messages are being shown. However, I want to use a background image and a dialog that asks the user whether he wants to keep this X configuration or not. Now when I open that dialog (a small Tcl/Tk program) in the display :1.0 and press "Cancel" in order to leave the server and try a different configuration, I get an error message box (the X log file) that says (last line) "waiting for X server to shut down X connection to :1.0 broken (explicit kill or server shutdown)".
I don't understand why this error message is shown only when I use the confirmation dialog (or any other x application), and why without it, the X server will shutdown cleanly.

I am using the killall command to shutdown the X server; maybe it's too "brutal"? But then again when I kill it by <Ctrl><Alt><Backspace>, the same happens.
I know, for example, that with the other X configuration tools of other distributions like Mandrake, Suse, Redhat etc. one can get back to the initial server to test a different X configuration. But how?
 
Old 11-29-2002, 07:55 AM   #2
soda
LQ Newbie
 
Registered: Nov 2002
Location: Germany
Distribution: Slackware 8.1
Posts: 15

Original Poster
Rep: Reputation: 0
Solved the problem.
 
Old 01-20-2003, 06:05 AM   #3
celeb-x
LQ Newbie
 
Registered: Jan 2003
Posts: 18

Rep: Reputation: 0
how?



celeb-x@planet.nl
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change screen resolution? Brian Knoblauch Solaris / OpenSolaris 2 11-18-2005 02:08 PM
change screen resolution garyozzy Slackware 4 11-10-2005 06:28 PM
How to change screen resolution ejain Red Hat 4 11-22-2004 12:25 PM
Change Screen Resolution ikw38 Red Hat 9 11-01-2003 01:00 AM
How to change screen resolution mahsan Linux - Software 4 09-30-2003 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration