LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-18-2007, 03:22 PM   #1
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
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


Last edited by ygloo; 02-18-2007 at 03:40 PM.
 
Old 02-18-2007, 03:55 PM   #2
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
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.
 
Old 02-18-2007, 04:17 PM   #3
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
try imps2 as protocol for gpm.
 
Old 02-18-2007, 04:57 PM   #4
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Original Poster
Rep: Reputation: 30
my #1s post is wrong!

Last edited by ygloo; 02-18-2007 at 07:44 PM.
 
Old 02-18-2007, 05:43 PM   #5
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Original Poster
Rep: Reputation: 30
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

Last edited by ygloo; 02-18-2007 at 05:48 PM.
 
Old 02-18-2007, 08:07 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
do you really need gpm ?
 
Old 02-18-2007, 08:22 PM   #7
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Original Poster
Rep: Reputation: 30
not really
it could save some writing in tty...

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

Last edited by ygloo; 02-18-2007 at 08:28 PM.
 
Old 02-18-2007, 08:52 PM   #8
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Original Poster
Rep: Reputation: 30
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??
 
Old 02-24-2007, 08:52 PM   #9
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Original Poster
Rep: Reputation: 30
............................

Last edited by ygloo; 02-24-2007 at 08:55 PM.
 
Old 02-24-2007, 08:53 PM   #10
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Original Poster
Rep: Reputation: 30
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
 
Old 02-24-2007, 09:34 PM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Try other protocols:

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a tty???? rasejo Linux - General 5 02-23-2009 01:01 AM
tty magasem AIX 1 11-28-2006 05:47 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
How to get into different tty? Noerr Linux - General 3 05-29-2002 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration