[email protected] wrote:
I thought that

/opt/SUNWut/bin/utxconfig -a -r 1920x1200

would have solve that starting res problem, but no, it kind of makes a
mess of things.

It's a good start. After that you need a script such as I sent out that can auto-fit the desktop on a hotdesk event.

I've attached my latest copy. I haven't tested it with multihead, and suspect it might provide unpleasant surprises.

Is there a way to set the default res to that but then reduce the size
accordingly when the x server starts up. Thinking about that i assume
dtlogin wouldnt know what to do with a dynamic resolution change.

Yes, as above that's exactly what I'm suggesting. The point is to make sure your virtual framebuffer is sufficiently large to handle whatever future hotdesks you may want to do, but then to size the desktop appropriately on each connect event.

BTW, I have another hack worth sharing. Pretty simple, really, but handy. I start up the following utaction in my $HOME/.dtprofile:

/opt/SUNWut/bin/utaction -c $HOME/.srconnectrc -d $HOME/.srdisconnectrc &

Then I can add whatever commands I want into those files which are useful, such as utfit on a connect, or a remote command to set my "away message" for my IR client on a disconnect (gaim had a nice plugin to handle this, but it seems for some reason that plugin isn't available for pidgin, which seems like a step backwards to me :().

-Bob

#!/bin/ksh
#exec 2>/tmp/utfit.out
#set -x
#print -n2 "$(/usr/openwin/bin/xprop -root)"
PATH=$PATH:/usr/openwin/bin:/usr/X11R6/bin

isCDE() {
        [ -z "$(xprop -root GNOME_SM_PROXY | grep -v 'no such atom on any 
window')" ]
}

# Get the original screen size the monitor/SRSS agreed was reasonable
DISPNUM=$(echo $DISPLAY | sed 's/:\([^.]*\).*/\1/')
DESIRED_SIZE=$(nawk -F '=' \
    '$1 == "CURRENT_RESOLUTION" { split($2,a,":"); print a[1] }' \
    /tmp/SUNWut/config/dispinfo/$DISPNUM)

# Get the size that the desktop is set to
DESKTOP_SIZE=$(xwininfo -root | nawk '/-geometry/{split($2,a,"[+-]"); print 
a[1]}')

# If they don't match, make the desktop resize to the monitor's capability
if ! isCDE && [ -n "$DESIRED_SIZE" -a "$DESKTOP_SIZE" != "$DESIRED_SIZE" ]
then
    xrandr -s "$DESIRED_SIZE"
    
# to work around a bug, send a HUP to gnome-panel in case it didn't
# handle the resize automatically as it should have
#    sleep 1; pkill -HUP gnome-panel
fi

exit 0
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to