LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   GPM (http://www.linuxquestions.org/questions/linux-from-scratch-13/gpm-914738/)

devilboy09 11-21-2011 12:22 PM

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!!!!

druuna 11-21-2011 12:31 PM

Hi,
Quote:

Originally Posted by devilboy09 (Post 4529842)
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.

devilboy09 11-21-2011 12:38 PM

what about protocol and gpmopts?

druuna 11-21-2011 12:58 PM

Hi,
Quote:

Originally Posted by devilboy09 (Post 4529857)
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.

devilboy09 11-21-2011 01:24 PM

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


druuna 11-21-2011 01:30 PM

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.

devilboy09 11-21-2011 01:43 PM

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

druuna 11-21-2011 01:50 PM

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).

devilboy09 11-21-2011 02:00 PM

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!!!

devilboy09 11-22-2011 01:20 PM

can anybody tell me what's wrong?

spiky0011 11-22-2011 02:01 PM

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.

druuna 11-22-2011 02:03 PM

Hi,
Quote:

Originally Posted by devilboy09 (Post 4529918)
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.

spiky0011 11-22-2011 02:19 PM

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

druuna 11-22-2011 02:40 PM

Hi,
Quote:

Originally Posted by spiky0011 (Post 4530910)
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.

spiky0011 11-22-2011 02:52 PM

Hopefully this will fix devilboy,s problem


All times are GMT -5. The time now is 02:33 PM.