You are not logged in.

#1 2012-06-11 19:24:58

bagheera
Member
Registered: 2009-06-13
Posts: 84

[solved] xinit: diffrent screen resolution on diffrent screens

Hi, In my primary screen i run KDE on native screen resolution of 1280x1024. However, i would like to play some older games (Icewind Dale) on VirtualBOX emulated machine on second screen. The problem is, second screen has the same native resolution, when i need lower one (800x600).

How can i change resolution with xinit?

Currently, my command to run virtual machine is:

xinit /usr/lib/virtualbox/VirtualBox --comment "XPbox" --startvm "c92d685e-2659-4a86-b0e8-64e1e968dd6d" -- :1

Last edited by bagheera (2012-06-12 15:47:26)


arch linux user

Offline

#2 2012-06-11 20:08:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [solved] xinit: diffrent screen resolution on diffrent screens

`man xrandr`

As to applying what's in the manual, It could all be on one line, but it could quickly become confusing.  I'd recommend passing a parameter to xinit (eg "VBox") and have xinitrc as follows:

if [[ $1 == VBox ]]; then
    xrandr <parameters to set proper resolution>
    VirtualBox <parameters to run your vb session + app>
fi
# other "normal" xinitrc stuff here.

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-06-12 15:46:57

bagheera
Member
Registered: 2009-06-13
Posts: 84

Re: [solved] xinit: diffrent screen resolution on diffrent screens

That's a very elegant and smart way to run multiple applications. Thanks for tip.


arch linux user

Offline

Board footer

Powered by FluxBB