[FreeNX-kNX] FreeNX Resolution Won't Resize to Monitor Upon Resuming Session

chris at ccburton.com chris at ccburton.com
Mon Apr 9 10:20:49 UTC 2012


freenx-knx-bounces at kde.org wrote on 27/03/2012 07:05:22:

>I looked at my nxnode file, and I don't have any of the lines posted 
originally by Marcelo.  

Let me guess . . 

That's probably because you're using the hardy .deb which doesn't have 
nxlog

see line 579 of (your) nxnode  where it says -option

Marcello says changing it made a difference to him (on ubuntu)

Quote:-  "I saw that but it worked for me.
The background is not resizing, but the panel is resizing.

Regards."


but
if you look at the source 

        nx-X11/programs/Xserver/hw/nxagent/Args.c

it says:-

/*
 * This had to be '-options' since the beginning
 * but was '-option' by mistake. Now we have to
 * handle the backward compatibility.
*/

  if (!strcmp(argv[i], "-options") || !strcmp(argv[i], "-option"))



So it's up to you if you change it.


>On Wed, Mar 28, 2012 at 3:15 PM, Marcelo Boveto Shima 
<marceloshima at gmail.com> wrote:
>The file to change is nxnode

>On Wed, Mar 28, 2012 at 6:14 PM, Marcelo Boveto Shima
><marceloshima at gmail.com> wrote:
>> I found the problem.
>>
>> Change -option to -options

[SNIP]       

>>  PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R \
>>      -name "NX - $user@$SERVER_NAME:$display - $session (GPL Edition)" 
-option

This is the bit Marcello is refering to 
---------------------------------------------------^


>>   "$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP 
$AGENT_EXTRA_OPTIONS_X
>>    :$display 2>&3 &

changed to


>>> PATH="$PATH_BIN:$PATH" $COMMAND_NXAGENT $P $R -name "NX - 
$user@$SERVER_NAME:$display - $session (GPL Edition)" -options 
$USER_FAKE_HOME/.nx/C-$sess_id/options" $B $FP $AGENT_EXTRA_OPTIONS_X 
:$display 2>&3 &





> Yes, Ctrl Alt and using the 4 arrow keys works.  I am able to slide 
> over to different parts of the screen now.  I didn't know you could 
> do this...  However, still doesn't explain why it won't resize?

This sounds like the Linux client, which won't auto resize anyway
unless
you feed it -resize=1 as a parameter,
and even then
it seems to resize to the original setting,
not
your current monitor.

> 
> > Both clients are set to use the available area in the display 
> > options.  However, when the session is restored using a smaller 
> > resolution (1024x600 ), what I see on the screen is a 1024 x 600 
> > resolution showing part of the original 1920 x 1200 resolution 
> > screen.


That's normal, (if not desired . . )
else
you are talking about rescaling a 1920x1200 to 1024x600
like
vnc does ( and NX shadowing, try using the windows nxclient
                to shadow a large Linux screen session
                then drag the Linux desktop down to a 
                very small area )


If you re-scale the desktop,
so
a large desktop is squashed to fit a small monitor
        ( like vnc does )
you will end up with a a screen you can't read in extreme
circumstances,
        ( so there would need to be a control to
         allow you to choose windowing/scaling )

What my KDE does is to
map pixel to pixel without scaling
trim my "wallpaper" to fit, and centre it
resize appliactions to fit so I can see the scroll bars
resize "kickoff" and the "panel" bar to fit.


>  My desktop shortcut icons are off the screen except for the
> > trash icon and my gnome3 menus are not visible, as they are off the 

Any icons you have locked in place beyond 1024x600
will
not be visible.

If you have your icons set to sort themselves,
they should shuffle around to try and fit the smaller size.


I can't work out why your menu is off the left side tho,
as
the windowing should start from top left,
but then
I don't know much about gnome.


Maybe your "menu" just gives up if the screen it too small.


> > screen up to the left.  Thus, I'm unable to run anything, as my 
> > desktop was not resized to the resolution.  Rather, a window created
> > using the resolution of 1024 x 600 is displayed showing part of the 
> > screen that was created by the very first session.  Would it be 
> > helpful if I attached screenshots?
 
I think your best bet is to have a desktop which works at 1024x600





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20120409/7fbd70c8/attachment.html>


More information about the FreeNX-kNX mailing list