jeff,

Certainly it's possible.  In fact, it probaby wouldn't be all that hard.

One of the first things the 'startx' screen script does, is grab the 
variables from the lts.conf file.

You could add code after the call to get the options, that displays a
menu.  Something like this:


  LTSP Screen Resolutions

    1)  1024 x 768
    2)  800 x 600
    3)  640 x 480

  Please enter a selection (1,2,3): 


Then, they select 1, 2 or 3, and the script internally sets
the X_MODE_0 variable to either "1024x768", "800x600" or "640x480".

Here's the code that you can add to the top of the startx script:

====================================================================
if [ "${X_MODE_0}" = "ASK" ]; then
  X_MODE_0=""
  while [ -z "${X_MODE_0}" ]; do
    clear
    echo "LTSP Screen Resolutions"
    echo
    echo "  1)  1024 x 768"
    echo "  2)  800 x 600"
    echo "  3)  640 x 480"
    echo
    echo -e "Please enter a selection (1,2,3): \c"
    read MODE
    case "${MODE}" in
        1)  X_MODE_0="1024x768"
            ;;
        2)  X_MODE_0="800x600"
            ;;
        3)  X_MODE_0="640x480"
            ;;
        *)  echo "Invalid selection!"
            sleep 1
            ;;
    esac
  done
fi
===================================================================


All you need to put in lts.conf is:

    X_MODE_0 = ASK

And it will ask the user what resolution they want.

it will get much trickier if you need to specify custom modeline info 
for the monitors, I'll leave that for an exersize for you.

Jim McQuillan
[EMAIL PROTECTED]




On Thu, 6 May 2004, Jeff Roberts wrote:

> Is it possible to write a screen script in ltsp 4 to allow the user to 
> select their resolution before running X?  I have a lot of users that 
> share terminals,
> and some of them still prefer 800x600 while most of them like 1024x768.  
> I was able to get the ssh screen script running that was posted a while 
> back but I really dont know where to start with creating one like I need.
> 
> -Jeff
> 
> [EMAIL PROTECTED] wrote:
> 
> >On Mon, 3 May 2004, Jeff Roberts wrote:
> >
> >  
> >
> >>I caught my typo while testing the lines on an ltsp 4 server.
> >>
> >>It looks like these keys do work under ltsp 4, but the lower resolutions 
> >>show a virtual desktop (viewport), is there any way to stop this, and 
> >>show a full desktop?
> >>    
> >>
> >
> >Nope,  X doesn't support that.
> >
> >  
> >
> >>Also, I dont suppose there is an easy way to enable those keys on my 
> >>older ltsp 3 box?  How risky is updating my ltsp 3 to ltsp 4?
> >>    
> >>
> >
> >it should work exactly the same way on ltsp-3
> >
> >
> >Jim.
> >
> >
> >  
> >
> >>Jeff Roberts wrote:
> >>
> >>    
> >>
> >>>hey everone,
> >>>
> >>>      
> >>>
> >>I need to be able to use ctrl alt + and ctrl alt - to change resolutions
> >>during a session.  I found a post that said I could do so if I had more
> >>than one mode defined, but I cant seem to get it working.  I am using
> >>the qvwm window manager and ltsp VERSION=3.0.4
> >>
> >>    
> >>
> >>>here is my lts.conf:
> >>>
> >>>
> >>>
> >>>[Default]
> >>>       SERVER             = 192.168.0.32
> >>>       XSERVER            = auto
> >>>       X_MODE_0 1024x768
> >>>       X_MODE_1 800x600
> >>>       X_MOUSE_PROTOCOL   = "PS/2"
> >>>       X_MOUSE_DEVICE     = "/dev/psaux"
> >>>       X_MOUSE_RESOLUTION = 400
> >>>       X_MOUSE_BUTTONS    = 3
> >>>       USE_XFS            = Y
> >>>       LOCAL_APPS         = N
> >>>       RUNLEVEL           = 5
> >>>
> >>>Thanks,
> >>>
> >>>Jeff
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.Net email is sponsored by: Oracle 10g
> >>>Get certified on the hottest thing ever to hit the market... Oracle 
> >>>10g. Take an Oracle 10g class now, and we'll give you the exam FREE. 
> >>>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> >>>_____________________________________________________________________
> >>>Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
> >>>     https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> >>>For additional LTSP help,   try #ltsp channel on irc.freenode.net
> >>>
> >>>      
> >>>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email is sponsored by: Oracle 10g
> >>Get certified on the hottest thing ever to hit the market... Oracle 10g. 
> >>Take an Oracle 10g class now, and we'll give you the exam FREE. 
> >>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> >>_____________________________________________________________________
> >>Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
> >>      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> >>For additional LTSP help,   try #ltsp channel on irc.freenode.net
> >>
> >>    
> >>
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: Oracle 10g
> >Get certified on the hottest thing ever to hit the market... Oracle 10g. 
> >Take an Oracle 10g class now, and we'll give you the exam FREE. 
> >http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> >_____________________________________________________________________
> >Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
> >      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> >For additional LTSP help,   try #ltsp channel on irc.freenode.net
> >
> >  
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
> deliver higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
> 



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to