XDM login question

XDM login question

Post by CPM2 Alex Agranov 118 » Tue, 09 Jun 1998 04:00:00



I'm using a simple 3-button mouse, that doesn't have any switch on it.
Therefore I placed the following lines into my .bash_profile:

echo 'Hold down the left mouse button and press ENTER'
read GARBAGE
echo '*n' > /dev/mouse

The last line causes reinitialization of the mouse and as soon as the
left button is pressed down, mouse initializes into MouseSystems mode.

Now I wish to change my system to use XDM (or even KDM). Can I get some
sort of similar functionality under it? Can I specidy what commands
should be run at XDM login? Can I somehow simulate echo/read (may be
some sort of dialog box?)

Any help will be appreciated.
Thanks in advance,
                     Sasha

--
"Bless Be He Who Has a God In Him,
  For I Can No Longer Find Mine"
                                  - "The Jews"
--
        ''~``
       ( + + )
+-.ooo0--(_)--0ooo.---------------------------+
|                     Alexander Agranov       |
|                   Israel, TelRad - CPM B    |

|  (   )    0ooo.      (972) 8 9131187        |
+---\ (-----(   )-----------------------------+
     \_)     ) /
            (_/

 
 
 

XDM login question

Post by Dirk Gesch » Wed, 10 Jun 1998 04:00:00


[Posted and mailed]



Quote:> I'm using a simple 3-button mouse, that doesn't have any switch on it.
> Therefore I placed the following lines into my .bash_profile:

> echo 'Hold down the left mouse button and press ENTER'
> read GARBAGE
> echo '*n' > /dev/mouse

> The last line causes reinitialization of the mouse and as soon as the
> left button is pressed down, mouse initializes into MouseSystems mode.

> Now I wish to change my system to use XDM (or even KDM). Can I get some
> sort of similar functionality under it? Can I specidy what commands
> should be run at XDM login? Can I somehow simulate echo/read (may be
> some sort of dialog box?)

There is maybe a better way to switch the mouse into the MouseSystem modus.
Try to use ClearDTR and/or ClearRTS as options in the pointer section of
your XF86Config file. As the man pages says:

       ClearDTR
               This option clears the DTR line on the serial port
               used  by the mouse.  This option is only valid for
               a mouse using  the  MouseSystems  protocol.   Some
               dual-protocol  mice  require  DTR to be cleared to
               operate in MouseSystems mode.  Note,  in  versions
               of  XFree86 prior to 2.1, this option also cleared
               the RTS line.   A  separate  ClearRTS  option  has
               since been added for mice which require this.

       ClearRTS
               This option clears the RTS line on the serial port
               used by the mouse.  This option is only valid  for
               a  mouse  using  the  MouseSystems protocol.  Some
               dual-protocol mice require both DTR and RTS to  be
               cleared to operate in MouseSystems mode.  Both the
               ClearDTR and ClearRTS options should be  used  for
               such mice.

Maybe this will fix your problem,

Dirk
--
---------------------------------------------------------------------

| Universit"at Gh Kassel    | Tel.  :      0561/804-4581            |
| Fachbereich Physik        | Heinrich-Plett-Stra/3e 40             |
| Theoretische Physik       | 34132 Kassel                          |
---------------------------------------------------------------------

 
 
 

1. XDM login vs remote login (determining which one)

In a shell script (Bourne and/or C), how would one determined if they
logged into a workstation remotely (via telnet, rlogin, rsh, ...) or
through the console via XDM?  I'd prefer to implement this login in a
user's startup script (such as .cshrc or .profile).

I noticed that when logging in through the console via XDM, using `tty
-l` will only give you the name of a pseudo-terminal.  The same goes for
a remote login.  

Any help would be very much appreciated!  --john
--
=========================================================================
John J. Sasso, Jr                        Systems
Programmer/Administrator
Rensselaer Polytechnic Institute         Lockheed-Martin (KAPL Division)
Engineering Physics Dept., Masters       Schenectady, NY

2. changing broken links

3. XDM Login vs Remote Login (determining which is which)

4. Help, printing on RH5.1

5. Question about setting an X-only login using xdm/gdm in Slackware...

6. FreeBSD 4.6 mount_smbfs disappointing

7. Related question: How to find out last n login session in xdm?

8. cpio error

9. xdm startup question.../xdm pan problem

10. XDM Question (memory needed for XDM?)

11. Silly XDMCP/xdm/Linux question -xdm won't issue xdmcp queries properly.

12. Netscape Question, XDM Question

13. Automatically restarting XDM Login