change screen resolution for particular program

Asked by Daniel Brumbaugh-Keeney

Running old programs, especially in wine (winehq.org), I frequently would like to change the screen resolution prior to running the program and return it to my normal resolution afterward. While a wine-specific solution would work for my purposes, I would imagine this would be accomplished by adding some extra commands to the launcher. I imagine something like

screenres -c '10240x768';wine /path/to/program.exe;screenres -c '1280x1024'

Is there a command line utility to do this?
Is there some better ubuntu way?
If nothing else, can wine do that?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Cotterell
Solved:
Last query:
Last reply:
Revision history for this message
Best Michael Cotterell (mepcotterell) said :
#1

try using xrandr, possibly in a bash script

Revision history for this message
Daniel Brumbaugh-Keeney (db-keen) said :
#2

Thanks Michael Cotterell, that solved my question.

Revision history for this message
Daniel Brumbaugh-Keeney (db-keen) said :
#3

Thanks, that's exactly what I was looking for.