LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-21-2011, 12:22 PM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
GPM


i've installed this package but i don't know how to fill /etc/sysconfig/mouse.my mouse is connected to my computer with usb port.i thin the address of my mouse is /dev/input/mice.here's the output of ls /dev/input:
Code:
ls /dev/input 
by-path/ event0 event1 event2 mice mouse0
i also issued this command : mouse-test
and here's the output:
Code:
This program is designed to help you in detecting what type your
mouse is. Please follow the instructions of this program. If you're
bored before it is done, you can always press your 'Interrupt' key
(usually Ctrl-C)

	 *** Remember: don't run any software which reads the mouse device
	 *** while making this test. This includes "gpm","selection", "X"

Note that this program is by no means complete, and its main role is
to detect how does the middle button work on serial mice


Trying with 1200 baud



 The possible device nodes are:

	/dev/agpgart
and the program just stopped!!!!
 
Old 11-21-2011, 12:31 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by devilboy09 View Post
i've installed this package but i don't know how to fill /etc/sysconfig/mouse.my mouse is connected to my computer with usb port.i thin the address of my mouse is /dev/input/mice.here's the output of ls /dev/input:
Code:
ls /dev/input 
by-path/ event0 event1 event2 mice mouse0
From the GPM chapter:
Quote:
/dev/input/mice is often used for USB mice
Try that one first.

Hope this helps.
 
Old 11-21-2011, 12:38 PM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
what about protocol and gpmopts?
 
Old 11-21-2011, 12:58 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by devilboy09 View Post
what about protocol and gpmopts?
What was the output generated by:
Code:
gpm -m /dev/input/mice -t -help
Do any of the available types suite your mouse?

imps2 is widely used, might work but a better option might be present depending on your hardware.

You might not need any special options for your mouse, leave GPMOPTS empty for now.

Hope this helps.
 
Old 11-21-2011, 01:24 PM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
Code:
What was the output generated by: 
Code:
gpm -m /dev/input/mice -t -help
here's the output:
Code:
gpm 1.20.6 20090209 10:59:23 +0100
Available mouse types are:

r name   synonym         description

  mman     The "MouseMan" and similar devices (3/4 bytes per packet).
            Synonyms: Mouseman
  ms       The original ms protocol, with a middle-button extension.
            Synonyms: 
  acecad   Acecad tablet absolute mode(Sumagrapics MM-Series mode)
            Synonyms: 
  bare     Unadorned ms protocol. Needed with some 2-buttons mice.
            Synonyms: Microsoft
  bm       Micro$oft busmice and compatible devices.
            Synonyms: BusMouse
  brw      Fellowes Browser - 4 buttons (and a wheel) (dual protocol?)
            Synonyms: 
  cal      Calcomp UltraSlate
            Synonyms: 
  calr     Calcomp UltraSlate - relative mode
            Synonyms: 
  etouch   EloTouch touch-screens (only button-1 events, by now)
            Synonyms: 
  evdev    Linux Event Device
            Synonyms: 
  exps2    IntelliMouse Explorer (ps2) - 3 buttons, wheel unused
            Synonyms: ExplorerPS/2
  js       Joystick mouse emulation
            Synonyms: Joystick
  genitizer "Genitizer" tablet, in relative mode.
            Synonyms: 
  gunze    Gunze touch-screens (only button-1 events, by now)
            Synonyms: 
* imps2    Microsoft Intellimouse (ps2)-autodetect 2/3 buttons,wheel unused
            Synonyms: 
  logi     Used in some Logitech devices (only serial).
            Synonyms: Logitech
  logim    Turn logitech into Mouse-Systems-Compatible.
            Synonyms: 
  mm       MM series. Probably an old protocol...
            Synonyms: MMSeries
* ms3      Microsoft Intellimouse (serial) - 3 buttons, wheel unused
            Synonyms: 
  ms+      Like 'ms', but allows dragging with the middle button.
            Synonyms: 
  ms+lr    'ms+', but you can reset m by pressing lr (see man page).
            Synonyms: 
* msc      Mouse-Systems-Compatible (5bytes). Most 3-button mice.
            Synonyms: MouseSystems
  mtouch   MicroTouch touch-screens (only button-1 events, by now)
            Synonyms: 
  ncr      Ncr3125pen, found on some laptops
            Synonyms: 
  netmouse Genius NetMouse (ps2) - 2 buttons and 2 buttons 'up'/'down'.
            Synonyms: 
  pnp      Plug and pray. New mice may not run with '-t ms'.
            Synonyms: 
* ps2      Busmice of the ps/2 series. Most busmice, actually.
            Synonyms: PS/2
* sun      'msc' protocol, but only 3 bytes per packet.
            Synonyms: 
* summa    Summagraphics or Genius tablet absolute mode(MM-Series)
            Synonyms: 
  syn      The "Synaptics" serial TouchPad.
            Synonyms: synaptics
  synps2   The "Synaptics" PS/2 TouchPad
            Synonyms: synaptics_ps2
  twid     Twidddler keyboard
            Synonyms: 
  vsxxxaa  The DEC VSXXX-AA/GA serial mouse on DEC workstations.
            Synonyms: 
  wacom    Wacom Protocol IV Tablets: Pen+Mouse, relative+absolute mode
            Synonyms: 
  wp       Genius WizardPad tablet
            Synonyms: wizardpad
 
Old 11-21-2011, 01:30 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

There's no point in posting the output. Only you know what kind of mouse you have, how can we know?

EDIT: Maybe this will help:
Code:
dmesg | egrep -i "mouse|mice"
This should show what is picked up by the kernel.

Last edited by druuna; 11-21-2011 at 01:32 PM.
 
Old 11-21-2011, 01:43 PM   #7
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
thi is the output of dmesg | egrep -i "mouse|mice":
Code:
[    2.500646] mousedev: PS/2 mouse device common for all mice
[   20.564685] input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input2
but i can not figure it out.the book says i should put imps2 in protocol .i did and nothing happened
 
Old 11-21-2011, 01:50 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Code:
cat > /etc/sysconfig/mouse << "EOF"
# Begin /etc/sysconfig/mouse

MDEVICE="/dev/input/mice"
PROTOCOL="imps2"
GPMOPTS=""

# End /etc/sysconfig/mouse
EOF

/etc/rc.d/init.d/gpm restart
Don't forget the last command, that (re)starts your mouse (assuming you installed the boot-script).
 
Old 11-21-2011, 02:00 PM   #9
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
Oops! i can't restart gpm.i got this error
Code:
/etc/rc.d/init.d/functions:line 20 :/lib/lsb/init_params:No such a file or directory
also i got this message at startup. i didn't think that it's a big deal.it seems it is!!!
 
Old 11-22-2011, 01:20 PM   #10
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
can anybody tell me what's wrong?
 
Old 11-22-2011, 02:01 PM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Did you install the gpm from the boot scripts.
Install the /etc/rc.d/init.d/gpm init script included in the blfs-bootscripts-20111119 package.
 
Old 11-22-2011, 02:03 PM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by devilboy09 View Post
Oops! i can't restart gpm.i got this error
Code:
/etc/rc.d/init.d/functions:line 20 :/lib/lsb/init_params:No such a file or directory
also i got this message at startup. i didn't think that it's a big deal.it seems it is!!!
The /etc/rc.d/init.d/functions file seems not correct. That file, amongst others, was installed in LFS (7.6 LFS-Bootscripts).

If I check my LFS 7.0 /etc/rc.d/init.d/functions or /etc/rc.d/init.d/gpm file I do not see any reference to init_params....

Hope this helps.
 
Old 11-22-2011, 02:19 PM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I to have the same in /functions
# Set any needed environment variables e.g. HEADLESS
. /lib/lsb/init_params

ps I have not installed bootscipts yet on this system. On my 6.7 system there is no reference to params either

Last edited by spiky0011; 11-22-2011 at 02:32 PM. Reason: Added more info
 
Old 11-22-2011, 02:40 PM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
I to have the same in /functions
# Set any needed environment variables e.g. HEADLESS
. /lib/lsb/init_params
I just remembered: Errata for the 7.0 Version of the LFS Book

Hope this helps.
 
1 members found this post helpful.
Old 11-22-2011, 02:52 PM   #15
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hopefully this will fix devilboy,s problem
 
  


Reply

Tags
gpm, lfs



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
[SOLVED] gpm-1.20.6-make install-gpm error janakiramulu Linux From Scratch 12 05-12-2011 02:00 AM
GPM not working on 10.2 distantlyyours Slackware - Installation 1 09-25-2005 04:15 PM
gpm problem? ingerul Fedora 0 11-01-2004 10:44 AM
Boot without GPM erickFis Slackware 2 02-12-2004 09:16 AM
Is GPM necessary? erickFis Slackware 10 01-30-2004 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:36 AM.

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