LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2007, 10:42 AM   #1
Dark Carnival
Member
 
Registered: Jun 2003
Posts: 166

Rep: Reputation: 30
Launching a seperate X-session with a specific resolution, how ?


Hey

I usually launch a few games by having a seperate X-session spawn and then use that, the problem is I'm trying to trick a program in Wine which won't run properly unless it's run in a 1024x768 window.

My usual resolution is 1280x1024 and so the new X-server will also have that resolution, meaning the Wine window won't fill up the screen unless i hit [CTRL][ALT]+
This is workable, sure, but I'm writing a HOWTO up on winehq so that any other people can run the game too, so I'm really eager to do this as good as possible

The X-server is being launched like:
Code:
X :3 -ac &
Is there any forms of switches which can make it select 1024x768 on start-up ?

Please
 
Old 06-28-2007, 11:16 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
I don't know if there is a better way, but maybe you can use the -screen or -layout option and select another screen which you have configures in xorg.conf to support only 1024x768 ?
 
Old 06-28-2007, 11:27 AM   #3
Dark Carnival
Member
 
Registered: Jun 2003
Posts: 166

Original Poster
Rep: Reputation: 30
I may investigate that for my own setup
Unfortunately though, I think that's a little much to ask the user for..
I've looked in the manual though, and I can't find any obvious switches though...
 
Old 06-28-2007, 12:14 PM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
You are probably right.
Maybe you can provide a downloadable script that copies xorg.conf, appends the right Screen setup at the end and start X with appropriate -config option that the user will just run?
 
Old 06-28-2007, 12:59 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
How about making xorg.confs.1280 and xorg.conf.1024 then making 2 aliases for each that are easy to remember that use the -config option for right xorg file?

E.g. 'startx1024' and 'startx1280' or the like.
 
Old 06-28-2007, 02:22 PM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
After more thought, what about using the xrandr command?
xrandr -s 1024x768

Last edited by Agrouf; 06-28-2007 at 02:24 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to autostart some script after launching an X Session? dreamtheater Linux - Software 2 10-13-2006 09:51 AM
kill a specific session in windows rabeea General 8 12-15-2004 03:10 PM
launching an app into a specific workspace? jasonv Fedora 0 11-14-2004 04:58 PM
View a specific tty session using SSH? intermod Linux - General 2 02-03-2004 01:16 PM
over sized desktop with specific resolution N_A_J_M Linux - General 5 01-09-2004 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 AM.

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