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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-21-2011, 12:22 PM
|
#1
|
|
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 349
Rep:
|
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!!!!
|
|
|
|
11-21-2011, 12:31 PM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
Hi,
Quote:
Originally Posted by devilboy09
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.
|
|
|
|
11-21-2011, 12:38 PM
|
#3
|
|
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 349
Original Poster
Rep:
|
what about protocol and gpmopts?
|
|
|
|
11-21-2011, 12:58 PM
|
#4
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
Hi,
Quote:
Originally Posted by devilboy09
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.
|
|
|
|
11-21-2011, 01:24 PM
|
#5
|
|
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 349
Original Poster
Rep:
|
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
|
|
|
|
11-21-2011, 01:30 PM
|
#6
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
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.
|
|
|
|
11-21-2011, 01:43 PM
|
#7
|
|
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 349
Original Poster
Rep:
|
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
|
|
|
|
11-21-2011, 01:50 PM
|
#8
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
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).
|
|
|
|
11-21-2011, 02:00 PM
|
#9
|
|
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 349
Original Poster
Rep:
|
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!!!
|
|
|
|
11-22-2011, 01:20 PM
|
#10
|
|
Member
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 349
Original Poster
Rep:
|
can anybody tell me what's wrong?
|
|
|
|
11-22-2011, 02:01 PM
|
#11
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,562
|
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.
|
|
|
|
11-22-2011, 02:03 PM
|
#12
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
Hi,
Quote:
Originally Posted by devilboy09
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.
|
|
|
|
11-22-2011, 02:19 PM
|
#13
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,562
|
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
|
|
|
|
11-22-2011, 02:40 PM
|
#14
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,714
|
Hi,
Quote:
Originally Posted by spiky0011
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.
|
11-22-2011, 02:52 PM
|
#15
|
|
Senior Member
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,562
|
Hopefully this will fix devilboy,s problem
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:29 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|