LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mouse in tty (https://www.linuxquestions.org/questions/slackware-14/mouse-in-tty-530196/)

ygloo 02-18-2007 03:22 PM

mouse in tty
 
hello,
installed Slackware11, after boot I see login prompt
I type username, password and log in...

there is a white square in the top-right corner of tty
( think it is mouse )
when i move mouse in any direction the white square stays where it is -
interesting thing is that top line gets executed...

in "X" mouse is working
and "gpm" is running:
root 2276 0.0 0.1 1536 532 ? Ss 22:52 0:00 /usr/sbin/gpm -m /dev/mouse -t ps2

:Pengy:

bartonski 02-18-2007 03:55 PM

Quote:

Originally Posted by ygloo
in "X" mouse is working
and "gpm" is running:
root 2276 0.0 0.1 1536 532 ? Ss 22:52 0:00 /usr/sbin/gpm -m /dev/mouse -t ps2

Under slackware, /dev/mouse a soft link to the actual device. See what that is pointing to. Do an ls -l on /dev/mouse, then do the same on the device that that points to. On my ancient Slackware 8 machine, it looks like this:


$ ls -l /dev/mouse
lrwxrwxrwx 1 root root 5 Oct 29 2000 /dev/mouse -> psaux
$ ls -l /dev/psaux
crw-rw-rw- 1 root sys 10, 1 Jul 17 1994 /dev/psaux



I'm not sure exactly where you would go from there, but it should tell you something if that link is broken.

pdw_hu 02-18-2007 04:17 PM

try imps2 as protocol for gpm.

ygloo 02-18-2007 04:57 PM

my #1s post is wrong!

ygloo 02-18-2007 05:43 PM

once again from beginning:
 
system boots
i log in - mouse is working ok...
and can copy/paste in tty

then i execute "startx" - X loads ( here mouse works )
i press Shift_Alt_F2 - and land on tty2

here i see white square in top-right corner and while moving the mouse
top line gets executed!...

X is changing something
/etc/X11/xorg.conf:

Quote:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "BlankTime" "0"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
EndSection

Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "record"
Load "dbe"
Load "dri"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc101"
Option "XkbLayout" "us,bg(phonetic)"
Option "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection


@bartonski

ls -l /dev/mouse <--'
lrwxrwxrwx 1 root root 5 2007-01-26 20:07 /dev/mouse -> psaux
ls -l /dev/psaux <--'
crw-rw---- 1 root sys 10, 1 2007-02-19 00:32 /dev/psaux

looks the same


@pdw_hu
i run
/usr/sbin/gpm -m /dev/mouse -t imps2
O0o.oops(): [server_tools.c(84)]: mouse initialization failed

less /var/log/syslog:
Quote:

Feb 19 01:15:58 pine /usr/sbin/gpm[2512]: *** err [mice.c(1742)]:
Feb 19 01:15:58 pine /usr/sbin/gpm[2512]: imps2: PS/2 mouse failed init
Feb 19 01:15:58 pine /usr/sbin/gpm[2512]: O0o.oops(): [server_tools.c(84)]:
Feb 19 01:15:58 pine /usr/sbin/gpm[2512]: mouse initialization failed

H_TeXMeX_H 02-18-2007 08:07 PM

do you really need gpm ?

ygloo 02-18-2007 08:22 PM

not really
it could save some writing in tty...

I exit X and gpm is not working properly...
what is X changing??

ygloo 02-18-2007 08:52 PM

info gpm

Quote:

File: gpm.info, Node: Bugs and Problems, Next: Mouse Types, Prev: Command Line, Up: Server Invocation

2.3 Bugs and Problems
=====================

The `gpm' server may have problems interacting with X: if your mouse is
a single-open device (i.e. a bus mouse), you should kill `gpm' before
starting X, or use the `-R' option (see above). To kill `gpm' just
invoke `gpm -k'. This problem doesn't apply to serial mice.

Two instances of gpm can't run on the same system. If you have two
mice use the `-M' option (see above).

While the current console is in graphic mode, `gpm' sleeps until
text mode is back (unless `-R' is used). Thus, it won't reply to
clients. Anyways, it is unlikely that mouse-eager clients will spur out
in hidden consoles.

The clients shipped out with gpm are not updated, thus there are
potential security risks when using them.

any1 seen gpm act like I described in above posts??

ygloo 02-24-2007 08:52 PM

............................

ygloo 02-24-2007 08:53 PM

it works with imps/2 protocol in xorg.conf

Code:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "imps/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection


H_TeXMeX_H 02-24-2007 09:34 PM

Try other protocols:

run
Code:

/usr/sbin/gpm -t help
for a full list ... maybe something else will work.


All times are GMT -5. The time now is 07:10 AM.