[email protected] wrote:
OK now that i've gotten dtlogin at a sensible 1024x768 and the proper
resolution being switched to on login i have one missing piece of the
puzzle.
When i take my card out and put it back in again the "sunray" login screen
is at the 1920x1200 resolution, not 1024x768.
I'm a bit puzzled where i could stick a /usr/X11/bin/xrandr -s 1024x768.
My bets are somewhere in
/etc/opt/SUNWut/loginGUI.start or /etc/opt/SUNWut/basedir/lib/utxinit.
I guess I haven't run into this. My resolutions aren't as disparate as
yours - I use 1280x1024 and 1600x1200, and in either of those cases the
login widget is clearly visible and usable for logging in at least.
Can you live with this minor inconvenience at login? If so, do what I
suggested below, and add the "-i" option to the utaction, so that when
you login and .dtprofile is executed it will immediately resize to fit.
If you really need the login screen itself sized properly, I'd go with
adding some code to /usr/dt/config/Xsetup, which gets run immediately
before the dtlogin greeter is drawn. If you make sure your code is
added *outside* of the Sun Ray code block ("# Start SUNWut" to "# End
SUNWut") it should remain intact. At least until you apply a dtlogin
patch - it may get overwritten then. Unfortunately, SRSS doesn't
leverage /etc/dt/config/Xsetup, as it probably should. You'd be faced
with a merging job anyway after a dtlogin patch, either way (i.e.
folding the new patch version of Xsetup into /etc/dt/config, or else
folding your changes into the newly patched /usr/dt/config/Xsetup).
I'm not sure utfit will work, however, while the greeter is drawn. By
default dtlogin does a server grab (to protect against malicious
keyboard grabbing apps trying to snoop your password). Unfortunately,
that will prevent utfit from executing xwininfo to determine the screen
dimensions. You *can* disable dtlogin's grab behavior, at the cost of
some security, by setting grabServer to false in Xconfig. See the
dtlogin man page for details. In that case I'd expect utfit to work,
but can't make any promises - I've never tried it in the greeter context.
-Bob
Any suggestions?
[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
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users