Forum / NoMachine for Windows / Setting different resolutions on NoMachine 5
- This topic has 4 replies, 2 voices, and was last updated 8 years, 9 months ago by huang.
-
AuthorPosts
-
January 18, 2016 at 11:15 #9680huangParticipant
We used to use version 3.5, we could set resolutions for every single session by changing the script in .nxs file. There were 3 option keys “Resolution”, “Resolution height” and “Resolution width” in the group “General”. However in Version 5.0 there are no more these 3 option keys in .nxs file, as alternative there is a option key called “window state” in player.cfg, which u can still set <normal> or <fullscreen> for the sessions with.
The problems are:
1. no matter how many sessions u have created and saved (for every single session u got a .nxs file) there is only 1 player.cfg file for all of them, if I want set 1 session as “fullscreen” and other 1 as “normal”, how does it work?
2. where can I set the concrete resolutions except the “normal”, e.g I want to create 2 sessions, 1 of them with 1024×768 and the other one with 800×600?
January 18, 2016 at 12:29 #9700TorParticipantHi huang.
All the keys you’ve mentioned are still used in NXS files. I can’t think of a reason why you didn’t find them, so I suggest to use the latest NoMachine version, create a new connection and read the corresponding NXS file created by default in ‘Documents/NoMachine’.
You may wish to read also these articles giving more information about how desktop resize works in version 5:
Resize and scaling options for NoMachine client version 4 or later
https://www.nomachine.com/AR02M00835Changing how you view the remote host
https://www.nomachine.com/changing-how-you-view-the-remote-host1. no matter how many sessions u have created and saved (for every single session u got a .nxs file) there is only 1 player.cfg file for all of them, if I want set 1 session as “fullscreen” and other 1 as “normal”, how does it work?
The CFG file affects all client instances. If you want to use different CFG files you may create a shortcut/link to the NoMachine client and use the ‘–config’ command line option, for example (on Mac OS X):
/Applications/NoMachine.app/Contents/MacOS/nxplayer --config /tmp/custom.cfg
You may also create a single CFG file starting the client always in fullscreen mode, and use the ‘–geometry’ command line option for those connections that should not be fullscreen, for example (on Mac OS X):
/Applications/NoMachine.app/Contents/MacOS/nxplayer --session server.nxs --geometry 1024x768
2. where can I set the concrete resolutions except the “normal”, e.g I want to create 2 sessions, 1 of them with 1024×768 and the other one with 800×600?
Use the NXS file as you did in version 3.5. More details here:
The most frequently asked options for pre-configuring the client and the session behavior
https://www.nomachine.com/DT07M00094#19January 19, 2016 at 13:43 #9707huangParticipantHi Tor,
thank you for answering my questions. I am using “NoMachine Enterprise Client” 5.0.47 right now, because we don’t want client and server on same computer. Anyway I think it is almost the same as normal NoMachine Client.
You are right, the option key “Resolution” is still in the NXS file, however it does not work by me. I have tried to change the value of Resolution as “fullscreen”, “availabel” or concrete resolutions e.g “1024×768”, that did not work. Only if I changed the option key “window state” in player.cfg as “fullscreen”, session screen will be turned onto fullscreen. Can you set resolution by changing the option keys in NXS file? Like “fullscreen”, “availabel”, “fit in window” or “1024×768” etc.
February 3, 2016 at 11:28 #9938TorParticipantHi huang.
In order to ease the configuration you’re trying to achieve, we’ve added a new Feature Request:
Offer the possibility to restore the window geometry when starting the client or connecting to a desktop
https://www.nomachine.com/FR02N03008We’ll release it very soon, so I’d suggest to enable the notify option in the feature request page. Once you’ll use this new version you’ll just need to enable the new key you’ll find in the NXS file, and the client window will try to go to the same geometry set in the “Resolution” key.
February 5, 2016 at 16:12 #9981huangParticipantHi Tor,
thank you for your help, I am using the second suggestion of yours, i.e I set the value of “window state” in player.cfg as “fullscreen”(can also be “multiscreen”), so the default desktop will be fullscreen. Then I write a script with c to read the value of “resolution”, if it was not fullscreen, it would automatically add the parameter –geometry s%(value of the resolution) into the command line of sessions.
So far it works perfect, before the new release comes I will use this as temporary solution. Thanks again for all of your Help!
-
AuthorPosts
This topic was marked as solved, you can't post.