Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition | |||
|
|
Solution Type Problem Resolution Sure Solution 1001562.1 : How to permanently set the Sun Ray[TM] screen resolution
PreviouslyPublishedAs 202136 Symptoms On a Sun Ray[TM] appliance, how can I set the default screen resolution to a value which persists after logouts, hot desking, and powercycle events? Resolution On the SRSS 2.0 and higher, either utresadm or utxconfig can be used to define persistent screen resolution settings. On the SRSS 1.3 and earlier, only The Sun Ray 150 has a fixed physical resolution of 1024x768. How to use utresadm to define persistent screen resolution settings:
IMPORTANT NOTE: utresadm settings changes might become active
To set a default resolution for a specific appliance for all tokens, # /opt/SUNWut/sbin/utresadm -a -c default -t default <resolution> would set the overall default resolution ("-c default"). # /opt/SUNWut/sbin/utresadm -a -c IEEE802.080020f84a86 -t default 1280x1024@76 sets a default resolution of 1280x1024@76 for the appliance with MAC A detailed example how to use utresadm: See IMPORTANT NOTE at the beginning of this section. # /opt/SUNWut/sbin/utresadm -o # (there is nothing specified thus far) # /opt/SUNWut/sbin/utresadm -a -c IEEE802.0003ba141958 -t default 1152x900@76 Then the user inserted a smartcard, and logged in. As this was a new % /opt/SUNWut/sbin/utresadm IEEE802.0003ba141958 default -- 1152x900@76 As autosizing is enabled, the utxconfig resolution does not apply here: % /opt/SUNWut/bin/utxconfig -l RESOLUTION=1280x1024 <---- ignored because autosizing enabled ENABLE_PSEUDOCOLOR_VISUAL=no DEFAULT_PSEUDOCOLOR_VISUAL=no ENABLE_AUTO_SIZING=yes <---- autosizing enabled ENABLE_MULTISCREEN=yes ENABLE_XINERAMA=no SCREEN_GEOMETRY=1x1 <---- ignored because autosizing enabled SCREEN_ORDER=0 Hence, the display is indeed running at the 1152x900@76 configured by With all utresadm configurations, the appliance should also pick up the To enter multiple utresadm configurations at once, use the "utresadm -i" Example for utresadm -i: # /opt/SUNWut/sbin/utresadm -o > utresadm.out (create example data file) # cat utresadm.out # Resolution export version=1 hostname=labhost # Resolution export started at 2003-06-18T13:00:0Z cid=IEEE802.0003ba141958 token=default res=1152x900@76 cid=IEEE802.0003ba141958 token=MicroPayflex.5000f8ad00130100 res=1024x768@75 # Resolution export ended at 2003-06-18T13:00:0Z # /opt/SUNWut/sbin/utresadm -i < utresadm.out cid=IEEE802.0003ba141958 token=default: Data already exists cid=IEEE802.0003ba141958 token=MicroPayflex.5000f8ad00130100: Data already exists Here, both already exist, and thus are ignored. You can delete them # /opt/SUNWut/sbin/utresadm -d -c IEEE802.0003ba141958 -t MicroPayflex.5000f8ad00130100 # /opt/SUNWut/sbin/utresadm -d -c IEEE802.0003ba141958 -t default # /opt/SUNWut/sbin/utresadm -o # and then re-add them using utresadm -i # /opt/SUNWut/sbin/utresadm -i < utresadm.out IEEE802.0003ba14195 default -- 1152x900@76 IEEE802.0003ba141958 MicroPayflex.5000f8ad00130100 -- 1024x768@75 # /opt/SUNWut/sbin/utresadm -o # Resolution export version=1 hostname=labhost # Resolution export started at 2003-06-18T13:02:0Z cid=IEEE802.0003ba141958 token=default res=1152x900@76 cid=IEEE802.0003ba141958 token=MicroPayflex.5000f8ad00130100 res=1024x768@75 # Resolution export ended at 2003-06-18T13:02:0Z # A non-prileged user cannot run utresadm -a/-i, but he can overrule How to use utxconfig to define persistent screen resolution settings: - Once logged in, run % /opt/SUNWut/bin/utxconfig -s off -r <resolution> such as % /opt/SUNWut/bin/utxconfig -s off -r 1280x1024 Xconfig record added/changed. This will disable autosizing for the current token, thus disabling utresadm resolution settings. - Then log out and log in again, and confirm with "utxconfig -l": % /opt/SUNWut/bin/utxconfig -l RESOLUTION=1280x1024 ENABLE_PSEUDOCOLOR_VISUAL=no DEFAULT_PSEUDOCOLOR_VISUAL=no ENABLE_AUTO_SIZING=no <---- autosizing disabled, 1280x1024 is active ENABLE_MULTISCREEN=no ENABLE_XINERAMA=no SCREEN_GEOMETRY=1x1 SCREEN_ORDER=0
To delete the utxconfig settings again, use "utxconfig -e [-t <token>]". # utxconfig -o user.1055330985-7666,1280x1024,-1,no,no,yes,yes,no,1,1,0 <--- enabled user.1055332426-6402,1280x1024,-1,no,no,no,yes,no,1,1,0 <--- disabled MicroPayflex.00004acf65000100,1280x1024,-1,no,no,yes,yes,no,1,1,0. ^^^ <--- enabled Here, only the 1280x1024 for user.1055332426-6402 applies. The utxconfig Special considerations on multihead displays: The multihead implementation in the SRSS 3.1 and earlier does not allow
Example correct multihead configuration: # /opt/SUNWut/bin/utxconfig -t MicroPayflex.5000f8b000130100 -m on -s off -r 800x600 -x off -R 2x1 (logout and login) % /opt/SUNWut/bin/utxconfig -l RESOLUTION=800x600 ENABLE_PSEUDOCOLOR_VISUAL=no DEFAULT_PSEUDOCOLOR_VISUAL=no ENABLE_AUTO_SIZING=no <--- autosizing disabled, thus RESOLUTION is active ENABLE_MULTISCREEN=yes <--- multiscreen enabled ENABLE_XINERAMA=no <--- "utxconfig -x off" disables xinerama SCREEN_GEOMETRY=2x1 <--- screen geometry is set to two columns, one row SCREEN_ORDER=0 <--- optional Error messages: utxconfig is case sensitive. Example error: # /opt/SUNWut/bin/utxconfig -a -r 1024X768 utxconfig: invalid resolution specification utxconfig: Update failed. "1024X768" is invalid because of the capital X, a lower case x is necessary. utresdef requires that the resolution has been defined. Use # /opt/SUNWut/sbin/utresadm -a -c default -t default 1024x768 res=1024x768: Object not found 1024x768@60, 1024x768@75, and 1024x768@85 are the built-in timings available to utresadm. 1024x768 is not valid. Abbreviations: SRSS: Sun Ray[TM] Server Software. References: utxconfig(1) How to modify the screen resolution within GNOME Java Desktop. Additional Information On Sun Ray[TM], there are two independent screen resolutions, the resolution used by the Xsun process, also called "virtual resolution", resp. the "desktop dimensions", and the resolution used by the framebuffer in the appliance, also called the "physical resolution". To set persistent screen resolutions on Sun Ray[TM], the desktop dimensions must Upon Sun Ray[TM] session startup, the desktop dimensions are computed as 1.) Check whether autosizing is enabled for the current token. 2.) If autosizing is disabled, the settings from utxconfig are used. 3.) If autosizing is enabled, then with the SRSS 2.0 utresadm screen Product Sun Ray Server Software 2.0 Sun Ray Server Software 1.3 Sun Ray Server Software 1.2 Sun Ray Server Software 3.1 Sun Ray Server Software 3.0 Sun Ray 1g Ultra-Thin Client Sun Ray 100 Ultra-Thin Client Sun Ray 150 Ultra-Thin Client Sun Ray 1 Ultra-Thin Client Sun Ray 170 Ultra-Thin Client Internal Comments List of things which are important to understand:
Many users will try utresadm with autosizing disabled, or try
1.) Collect ut_gather, explorer does not collect the necessary information.
2.) Ask the customer what resolution settings they would like to have,
3.) Check autosizing settings in utxconfig-o.out. utxconfig -o output: pseudo.0003ba141958,1024x768,-1,no,no,yes,yes,yes,1,1,0
In this example output, autosizing is turned off for the default
4.) For those tokens where utresadm settings are used, check the Example: appliance 080020f08c33 has 800x600@75 default utresadm settings: In utresadm -o output, this looks as follows: cid=IEEE802.080020f08c33 token=default res=800x600@75 # ls /tmp/SUNWut/config/rescache/pseudo.080020f08c33 IEEE802.080020f08c33
I also have overruled this default for smartcard cid=IEEE802.080020f08c33 token=MicroPayflex.00004acf65000100
The corresponding rescache file is in a separate directory. # cat /tmp/SUNWut/config/rescache/MicroPayflex.00004acf65000100/IEEE802.080020f08c33 RESNAME=800x600@75
then the smartcard session got the default utresadm resolution for
If this was caused by 4969150, the utresadm resolution setting will become # /opt/SUNWut/sbin/utrestart -c [one minute later, and MicroPayflex.00004acf65000100 still inserted at IEEE802.080020f08c33] # cat
The additional tools such as utresdef are not fully implemented in There is an open RFE 4764050 utresadm should allow modifications rather than requiring delete/add against utresadm. Sun Ray, SunRay, utresadm, utxconfig, utsettings, utset, resolution, screen resolution Previously Published As 22076 Change History Date: 2007-09-26 User Name: 91286 Action: Update Canceled Comment: *** Restored Published Content *** Won't get this one reworked before the migration to IBIS. Version: 0 Attachments This solution has no attachment |
||||||||||||
|