LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-02-2005, 09:36 PM   #1
richikiki
Member
 
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Rep: Reputation: 15
Logitech usb/ps2 mouse config for Xfree86


Hi guys,

My last step to have my powerful system working is to have the right configuration for my Logitech optical mouse in Xfree86.

Im using my mouse usb/ps2 in ps2 mode so this is now in /dev/ttyxxx and now it is configure or attached to /dev/mouse.

Now my problem is anyone know which is the right driver for my mouse I try with the ones that are in the documentation but until now without success.

My best regards in advance guys.
 
Old 04-03-2005, 12:25 AM   #2
danns
Member
 
Registered: Nov 2003
Posts: 38

Rep: Reputation: 15
I'm not sure what you mean by ps/2 mode. Do you mean you have one of those usb to ps/2 adapters on the mouse and it is plugged into your ps/2 port? If so, why? Why not go usb?

Anyway, is this a scroll mouse that you are trying to configure? If that is the case, the protocol you want to use is IMPS/2. I've always set my mice to /dev/psaux (even usb mice). That works for me.

What version of slackware are you using? I thought 10.0 shipped with X11.org not XFree86.

By-the-by, I am using a Logitech USB Optical Scroll mouse, Again, it's configured in xorg.conf as /dev/psaux using the IMPS/2 protocol. Furthermore, for the scroll features:

Option "ChordMiddle"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
 
Old 04-03-2005, 01:17 AM   #3
richikiki
Member
 
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Original Poster
Rep: Reputation: 15
Red face

Hi danns,

Yes you right Im using my logitech mouse with the adaptor usb->ps2, I did it because I thing that is more easy to configure a ps2 that a USB.

Any way Im using Slack 10.1 and I installed the Xfree86 4.5.0 binaries for Linux-ix86-glibc23.

Now Im I little bit confuse because you said that my distro is shipped with X11.org mmm I don't know what that mean, I was thinking that Xfree is the standard for graphic evironments.

Usually I use xf86cfg -textmode to configure my Xfree86. so if you know how to config x11.org please let me know.

Finally, my device is a Logitech USB Optical Scroll mouse

Greetings.
 
Old 04-03-2005, 01:24 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Xfree and Xorg are essentially the same thing ( there are a few improvements in Xorg, but more or less you won't notice a difference except for naming of some things).

Personally ( keep in mind this is an opinion), I like to use usb instead of ps/2 for my mouse. the way I have mine set up:

open up (as root) /etc/X11/<config file> ( yours will be different than mine since you are using Xfree instead of Xorg, but yours is probably named either XF86Config or XF86Config-4)

go down to here:

Section "InputDevice"

# Identifier and driver

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"

************************************

the Identifier and driver are what you set up through xf86config or xorgconfig.
for protocol, I like to use IMPS/2 for usb, and device being /dev/input/mice (for usb, not ps/2)
the ZAxisMapping is for the scrollwheel, 4 being up and 5 being down
 
Old 04-03-2005, 07:00 AM   #5
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
Quote:
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
If you do it that way the 6, and 7 buttons will be unusable.

Instead

Option "Buttons" "7"
Option "ZAxisMapping" "6 7"

And then put the following into your .xinitrc file.

xmodmap -e "pointer = 1 2 3 6 7 4 5"

Now all your buttons should work. You can test it with xev to make sure and then bind the extra buttons to whatever you like depending on you WM.
 
Old 04-03-2005, 10:29 AM   #6
richikiki
Member
 
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Original Poster
Rep: Reputation: 15
Unhappy

Hi guys,

Well, still not working :'( my mouse the model is this:

http://www.logitech.com/index.cfm/pr...CONTENTID=8066

Is suppoused that is attached to /dev/mouse -> /dev/ttyS0 the link is there.

Q1: How I can see if the mouse is working on /dev/mouse, like using cat or somenthing and moving the mouse to see if there is data collected.

So this is my configuration in the mouse section in XF86Config:

#Mouse section
Section "InputDevice"
Identifier "Mouse0"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection

This is my messages boot:
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
y cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
CPU: After generic, caps: bfebfbff 00100000 00000000 00000000
CPU: Common caps: bfebfbff 00100000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 00:1f.1
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
PCI: Discovered primary peer bus ff [IRQ]
PCI: Using IRQ router PIIX/ICH [8086/24d0] at 00:1f.0
PCI: Found IRQ 3 for device 00:1f.1
PCI: Sharing IRQ 3 with 00:1d.2
PCI: Sharing IRQ 3 with 00:1f.2
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10f
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH5: IDE controller at PCI slot 00:1f.1
PCI: Enabling device 00:1f.1 (0005 -> 0007)
PCI: Found IRQ 3 for device 00:1f.1
PCI: Sharing IRQ 3 with 00:1d.2
PCI: Sharing IRQ 3 with 00:1f.2
ICH5: chipset revision 2
ICH5: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdcio, hddio
hda: HL-DT-ST DVDRAM GSA-4163B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-cdrom driver.
hda: ATAPI 40X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
libata version 1.10 loaded.
ata_piix version 1.03
PCI: Found IRQ 3 for device 00:1f.2
PCI: Sharing IRQ 3 with 00:1d.2
PCI: Sharing IRQ 3 with 00:1f.1
PCI: Setting latency timer of device 00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0xBC00 ctl 0xB882 bmdma 0xB400 irq 3
ata2: SATA max UDMA/133 cmd 0xB800 ctl 0xB482 bmdma 0xB408 irq 3
ata1: dev 0 cfg 49:2f00 82:7c6b 83:7b09 84:4003 85:7c69 86:3a01 87:4003 88:207f
ata1: dev 0 ATA, max UDMA/133, 160086528 sectors:
ata1: dev 0 configured for UDMA/133
ata2: SATA port has no device.
scsi0 : ata_piix
scsi1 : ata_piix
Vendor: ATA Model: Maxtor 6Y080M0 Rev: YAR5
Type: Direct-Access ANSI SCSI revision: 05
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 160086528 512-byte hdwr sectors (81964 MB)
Partition check:
sda: sda1 sda2 sda3 < sda5 sda6 >
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 3293.600 MB/sec
32regs : 2208.800 MB/sec
pIII_sse : 5191.600 MB/sec
pII_mmx : 3245.600 MB/sec
p5_mmx : 3256.000 MB/sec
raid5: using function: pIII_sse (5191.600 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.8(17/11/2003)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 120k freed
Adding Swap: 979924k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,6), internal journal
scsi2 : SCSI host adapter emulation for IDE ATAPI devices
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
i810_rng: cannot disable RNG, aborting
i810_rng hardware driver 0.9.8 loaded
hw_random hardware driver 1.0.0 loaded
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 5 for device 00:1d.7
PCI: Setting latency timer of device 00:1d.7 to 64
ehci_hcd 00:1d.7: Intel Corp. 82801EB USB2
ehci_hcd 00:1d.7: irq 5, pci mem e08a9c00
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:1d.7: enabled 64bit PCI DMA
PCI: cache line size of 128 is not supported by device 00:1d.7
ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 8 ports detected
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 11 for device 00:1d.0
PCI: Sharing IRQ 11 with 00:1d.3
PCI: Setting latency timer of device 00:1d.0 to 64
uhci.c: USB UHCI at I/O 0xc480, IRQ 11
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 11 for device 00:1d.1
PCI: Setting latency timer of device 00:1d.1 to 64
uhci.c: USB UHCI at I/O 0xc800, IRQ 11
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 3 for device 00:1d.2
PCI: Sharing IRQ 3 with 00:1f.1
PCI: Sharing IRQ 3 with 00:1f.2
PCI: Setting latency timer of device 00:1d.2 to 64
uhci.c: USB UHCI at I/O 0xc880, IRQ 3
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 11 for device 00:1d.3
PCI: Sharing IRQ 11 with 00:1d.0
PCI: Setting latency timer of device 00:1d.3 to 64
uhci.c: USB UHCI at I/O 0xcc00, IRQ 11
usb.c: new USB bus registered, assigned bus number 5
hub.c: USB hub found
hub.c: 2 ports detected
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Q2: Any idea, how to resolve my issue.

Greatings.
 
Old 04-03-2005, 10:46 AM   #7
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
Why is your mouse linked to ttyS0? It's not a serial mouse!

link it against /dev/mouse against psaux and restart X.

$ rm /dev/mouse

and then relink it to psaux because it's a ps/2 mouse.

$ ln -s /dev/mouse /dev/psaux
 
Old 04-03-2005, 12:02 PM   #8
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
You may also use /dev/psaux

Then also setup /dev/input/mice in another device section for usb mice on Mouse1

However you need to enable it in ServerLayout

InputDevice "Mouse1" "AlwaysCore"



No need to use /dev/mouse in the config.

I would just use /dev/input/mice and plug in the usb.

Last edited by DavidPhillips; 04-03-2005 at 12:05 PM.
 
Old 04-03-2005, 12:06 PM   #9
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
By the way the driver is mouse

the protocol is imps/2
 
Old 04-03-2005, 12:50 PM   #10
richikiki
Member
 
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Original Poster
Rep: Reputation: 15
Thumbs up

Guys thanks so much.

Problem resolved

Solution:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "CorePointer"
Option "Protocol" "IMPS/2"
#Option "Device" "/dev/input/mice"
Option "Device" "/dev/psaux"
Option "ChordMiddle"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
 
Old 05-06-2005, 05:28 PM   #11
ToBe
Member
 
Registered: Aug 2003
Distribution: RHEL 4&5 Ubuntu LTS 6.06 & 8.04, FreeBSD
Posts: 74

Rep: Reputation: 20
THANKS for this thread...

My problem was the symlink... changing to
device "/dev/input/mice" made all the difference in the world for me.
 
  


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
Had USB mouse, now have PS2, but doesn't work infornography Linux - Newbie 2 07-31-2005 01:14 AM
xfree86 mouse ps2 debian BIG PROBLEM ;(((( szwed Linux - Hardware 3 07-10-2003 03:42 AM
Using a Logitech Wireless mouse with xfree86 SephiroX Linux - Hardware 0 04-06-2003 08:03 PM
Logitech First Mouse+ PS2 double click jang Linux - General 2 12-11-2002 01:58 AM
Logitech ps2 wheel mouse bxb32001 Linux - Hardware 9 08-07-2002 10:40 PM


All times are GMT -5. The time now is 04:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration