← Back to team overview

sslug-teknik team mailing list archive

Slides for to mus på et bord

 

Keywords: 2 mus to mus flere serielle porte multiple input devices X

Her er mine slides for foredraget i aften. Så slipper jeg for, at nogen
spørge, om jeg ikke lige kan lægge dem op på SSLUG-maskinen :-)

/Ole



BOOT
====

Linux version 2.2.5-15 (root@xxxxxxxxxxxxxxxxxxxxxx) (gcc version
egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #1 Mon Apr 19 22:21:09 EDT 1999
Detected 350799035 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 699.60 BogoMIPS
Memory: 387540k/393152k available (996k kernel code, 412k reserved, 4144k
data,
60k init)
VFS: Diskquotas version dquot_6.4.0 initialized
Enabling new style K6 write allocation for 383 Mb
CPU: AMD AMD-K6(tm) 3D processor stepping 0c
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfb480
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: 00:38 [1106/0586]: Work around ISA DMA hangs (00)
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
Initializing RT netlink socket
Starting kswapd v 1.5
Detected PS/2 Mouse Port.
Serial driver version 4.27 with MANY_PORTS MULTIPORT SHARE_IRQ enabled

ttyS00 at 0x03f8 (irq = 4) is a 16450
ttyS01 at 0x02f8 (irq = 3) is a 16450
ttyS02 at 0x03e8 (irq = 4) is a 16550A
ttyS03 at 0x02e8 (irq = 3) is a 16550A

pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.9)
Real Time Clock Driver v1.09
RAM disk driver initialized:  16 RAM disks of 383K size
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:DMA, hdd:DMA
hda: QUANTUM FIREBALL SE8.4A, ATA DISK drive
hdc: IBM-DTTA-351680, ATA DISK drive
hdd: ATAPI CDROM, ATAPI CDROM drive
ide2: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide1: probed IRQ 15 failed, using default.
hda: QUANTUM FIREBALL SE8.4A, 8063MB w/80kB Cache, CHS=1027/255/63
ide1: probed IRQ 15 failed, using default.
hda: QUANTUM FIREBALL SE8.4A, 8063MB w/80kB Cache, CHS=1027/255/63
hdc: IBM-DTTA-351680, 16124MB w/462kB Cache, CHS=32760/16/63
hdd: ATAPI 24X CD-ROM drive, 120kB Cache
Uniform CDROM driver Revision: 2.54
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12
raid5: measuring checksumming speed
raid5: using high-speed MMX checksum routine
   pII_mmx   :   752.094 MB/sec
   p5_mmx    :   673.989 MB/sec
   8regs     :   513.588 MB/sec
   32regs    :   368.808 MB/sec
using fastest function: pII_mmx (752.094 MB/sec)
scsi : 0 hosts.
scsi : detected total.
md.c: sizeof(mdp_super_t) = 4096
Partition check:
 hda: hda1 hda2 hda3
 hdc: [PTBL] [2055/255/63] hdc1
autodetecting RAID arrays
autorun ...
... autorun DONE.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 60k freed
Adding Swap: 104416k swap-space (priority -1)
Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
SB 4.16 detected OK (220)
<SoundBlaster EMU8000 (RAM512k)>
tulip.c:v0.89H 5/23/98 becker@xxxxxxxxxxxxxxxxxxxx
eth0: Digital DS21142/3 Tulip at 0xe800, 00 48 54 02 fd 04, IRQ 10.
eth0:  EEPROM default media type Autosense.
eth0:  Index #0 - Media 10baseT (#0) described by a 21142 Serial PHY (2)
block.
eth0:  Index #1 - Media 10baseT-FD (#4) described by a 21142 Serial PHY
(2)
block.
eth0:  Index #2 - Media 100baseTx (#3) described by a 21143 SYM PHY (4)
block.
eth0:  Index #3 - Media 100baseTx-FD (#5) described by a 21143 SYM PHY (4)
block.



RC.LOCAL
========

En mus i /dev/psaux og en i /dev/ttyS0. Indsæt i rc.local:

/usr/sbin/gpm -r 8 -m /dev/ttyS0 -t MicroSoft -M -r 14 -m /dev/psaux -t
ps2 -R

  -r 8            Responsiveness (Mus 1)
  -m /dev/ttyS0   Device         (Mus 1)
  -t MicroSoft    Musetype       (Mus 1)

  -M              Multiple mode (Dette er den magiske option)

  -r 14           Responsiveness (Mus 2)
  -m /dev/psaux   Device         (Mus 2)
  -t ps2          Musetype       (Mus 2)

  -R              Repeater data ud i /dev/gmpdata

Dette opretter /dev/gpmdata og /dev/gpmctl


INTERRUPTS
==========

$ cat /proc/interrupts
           CPU0
  0:    1887561          XT-PIC  timer
  1:      56698          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  3:     532148          XT-PIC  serial      (Mus 1 deler interrupt med
modem)
  4:         48          XT-PIC  serial
  5:        175          XT-PIC  soundblaster
  8:         12          XT-PIC  rtc
 10:      15264          XT-PIC  eth0
 12:      91881          XT-PIC  PS/2 Mouse  (Mus 2)
 13:          1          XT-PIC  fpu
 14:     122728          XT-PIC  ide0
 15:       4214          XT-PIC  ide1



IOPORTS
=======

$ cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0220-022f : soundblaster
02e8-02ef : serial(auto)                    (een)
02f8-02ff : serial(auto)                    (to)
0330-0333 : MPU-401 UART
0376-0376 : ide1
03c0-03df : vga+
03e8-03ef : serial(auto)                    (tre)
03f6-03f6 : ide0
03f8-03ff : serial(auto)                    (fire)
0620-0623 : sound driver (AWE32)
0a20-0a23 : sound driver (AWE32)
0e20-0e23 : sound driver (AWE32)
e000-e007 : ide0
e008-e00f : ide1
e800-e87f : eth0                               



XF86CONFIG
==========

Følgende skal rettes i /etc/X11/XF86Config

# **********************************************************************
# Pointer section
# **********************************************************************

Section "Pointer"
    Protocol    "MouseSystems"
    Device      "/dev/gpmdata"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Protocol   "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice

#    BaudRate   9600
#    SampleRate 150

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

#    Emulate3Buttons
#    Emulate3Timeout    50

# ChordMiddle is an option for some 3-button Logitech mice

#    ChordMiddle

EndSection                                                        

EndSection



Follow ups