[FIXED]How to configure a serial mouse on debian squeeze?

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

[FIXED]How to configure a serial mouse on debian squeeze?

#1 Post by felipevencato »

I have a very old Pentium 3 that don`t have USB or PS2 suport.
I need to configure a serial mouse.
I did it on debian etch editing xorg.conf. I chage the mouse protocol to "Microsoft" and it works normaly.
But on squeeze it does not exist!

How can I configure it?

Sorry for my poor english!
Last edited by felipevencato on 2010-03-04 19:26, edited 2 times in total.

Japser
Posts: 173
Joined: 2008-02-13 13:21

Re: How to configure a serial mouse on debian squeeze?

#2 Post by Japser »

You can create a xorg.conf with only that mouse-part in it.

(afaik) --Japser.

felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

Re: How to configure a serial mouse on debian squeeze?

#3 Post by felipevencato »

Can you send an example?

Japser
Posts: 173
Joined: 2008-02-13 13:21

Re: How to configure a serial mouse on debian squeeze?

#4 Post by Japser »

No, I assumed you could copy it from your Etch-install but aparently you don't have it anymore.

felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

Re: How to configure a serial mouse on debian squeeze?

#5 Post by felipevencato »

I put the old xorg.conf (debian etch) on /etc/X11/
the system will use this file on the next boot?
how can I restart the xorg (Ctrl+Alt+Backspace do not respond)

fsmithred
Posts: 1873
Joined: 2008-01-02 14:52

Re: How to configure a serial mouse on debian squeeze?

#6 Post by fsmithred »

You need lots of fingers.
ctrl-alt-SysRq(PrintScreen)-k

felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

Re: How to configure a serial mouse on debian squeeze?

#7 Post by felipevencato »

Nothing happened
This command freezes the PC
The screen went totally black

felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

Re: How to configure a serial mouse on debian squeeze?

#8 Post by felipevencato »

I put this code in /etc/X11/xorg.conf
it's my old debian etch xorg.conf file that works.

Code: Select all

Section "ServerLayout"
 Identifier     "X.org do Kurumin"
 Screen      0  "Screen0" 0 0
 InputDevice    "Keyboard0" "CoreKeyboard"

# Configuração do Mouse: 
# Nesta opção você configura o tipo de mouse conectado no micro
# As opções disponíveis são: "PS/2 Mouse", "Serial Mouse" e "USB Mouse"
# Se o cursor do seu mouse estiver lento, errático ou impreciso, 
# experimente usar a opção "USB Mouse", que usa um driver mais preciso.

# Synaptics TouchPad not detected
# USB Mouse not detected
 InputDevice    "PS/2 Mouse" "CorePointer"
 InputDevice    "Serial Mouse" "CorePointer"
# ALPS TouchPad not detected
EndSection

#
# Esta opção permite que o X abra mesmo que o mouse esteja desconectado:
#
Section "ServerFlags"
 Option "AllowMouseOpenFail"  "true"
 
EndSection

# Não altere as linhas abaixo a menos que saiba o que está fazendo!

Section "Files"
 FontPath  "/usr/share/fonts/X11/misc"
 FontPath  "/usr/X11R6/lib/X11/fonts/misc"
 FontPath  "/usr/share/fonts/X11/cyrillic"
 FontPath  "/usr/X11R6/lib/X11/fonts/cyrillic"
 FontPath  "/usr/share/fonts/X11/100dpi/:unscaled"
 FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
 FontPath  "/usr/share/fonts/X11/75dpi/:unscaled"
 FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
 FontPath  "/usr/share/fonts/X11/Type1"
 FontPath  "/usr/X11R6/lib/X11/fonts/Type1"
 FontPath  "/usr/share/fonts/X11/100dpi"
 FontPath  "/usr/X11R6/lib/X11/fonts/100dpi"
 FontPath  "/usr/share/fonts/X11/75dpi"
 FontPath  "/usr/X11R6/lib/X11/fonts/75dpi"
 FontPath  "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
 Load  "dbe"
 Load  "ddc"
 Load  "dri"
 Load  "extmod"
 Load  "freetype"
 Load  "glx"
 Load  "int10"
 Load  "type1"
 Load  "vbe"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"abnt2"
	Option		"XkbLayout"	"br"
	Option		"XkbVariant"	"abnt2"
	Option		"XkbOptions"	"abnt2"
EndSection

## Esta opção configura um teclado us-internacional no iceWM e outros gerenciadores diferentes do KDE.
## Para usá-la, você deve descomentar todas as linhas e remover a seção acima.

#Section "InputDevice"
# Identifier	"Keyboard0"
# Driver	"kbd"
# Option	"CoreKeyboard"
# Option	"XkbRules" "xorg"
# Option	"XkbModel" "pc105"
# Option	"XkbLayout" "abnt2"
#EndSection



Section "InputDevice"
	Identifier  "Serial Mouse"
	Driver  "mouse"
	Option  "Protocol"  "Microsoft"
	Option  "Device"   "/dev/ttyS0"
	Option  "Emulate3Buttons"  "true"
	Option  "Emulate3Timeout"  "70"
	Option  "SendCoreEvents"   "true"
EndSection

Section "InputDevice"
	Identifier	"PS/2 Mouse"
	Driver		"mouse"
	Option  "Protocol"	"auto"
# Substitua a linha acima por esta se a rodinha do mouse não estiver funcionando:
#	Option  "Protocol	"IMPS/2"
# Substitua a linha acima por esta se seu mouse não estiver funcionando:
#	Option  "Protocol	"ExplorerPS/2"
	Option  "ZAxisMapping"   "4 5"
	Option  "Device"    "/dev/input/mice"
	Option  "Emulate3Buttons"   "true"
	Option  "Emulate3Timeout"   "70"
	Option  "SendCoreEvents"    "true"
EndSection

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
	Option  "SendCoreEvents"		"true"
        Option          "Protocol"              "IMPS/2"
# Substitua a linha acima por esta se seu mouse não estiver funcionando
#	Option  "Protocol"			"ExplorerPS/2"
        Option          "ZAxisMapping"          "4 5"
        Option          "Buttons"               "5"
EndSection

# Mouses especiais:

# Mouse com 5 botões (dois botoes laterais) e roda (se a função dos dois botões extra e da roda 
# ficarem trocadas, substitua a linha "Option "ZAxisMapping" "4 5" por "Option "ZAxisMapping" "6 7"):
Section "InputDevice"
	Identifier "Mouse7bt"
	Driver "mouse"
	Option "Protocol" "ExplorerPS/2"
	Option "ZAxisMapping" "4 5"
	Option "Buttons" "7"
	Option "Device" "/dev/input/mice"
EndSection 

# Mouse com 5 botões (dois botoes laterais) e DUAS rodas de scrool:
Section "InputDevice"
	Identifier "Mouse9bt"
	Driver "mouse"
	Option "Protocol" "ExplorerPS/2"
	Option "ZAxisMapping" "6 7 8 9"
	Option "Buttons" "9"
	Option "Device" "/dev/input/mice"
EndSection 


Section "InputDevice"
        Identifier      "ALPS TouchPad"
        Driver          "synaptics"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "LeftEdge"              "120"
        Option          "RightEdge"             "830"
        Option          "TopEdge"               "120"
        Option          "BottomEdge"            "650"
        Option          "FingerLow"             "14"
        Option          "FingerHigh"            "15"
        Option          "MaxTapTime"            "0"
        Option          "MaxTapMove"            "110"
        Option          "EmulateMidButtonTime"  "75"
        Option          "VertScrollDelta"       "20"
        Option          "HorizScrollDelta"      "20"
        Option          "MinSpeed"              "0.2"
        Option          "MaxSpeed"              "0.5"
        Option          "AccelFactor"           "0.01"
        Option          "EdgeMotionMinSpeed"    "15"
        Option          "EdgeMotionMaxSpeed"    "15"
        Option          "UpDownScrolling"       "1"
        Option          "CircularScrolling"     "1"
        Option          "CircScrollDelta"       "0.1"
        Option          "CircScrollTrigger"     "2"
EndSection

Section "InputDevice"
        Identifier      "Synaptics TouchPad"
        Driver          "synaptics"
        Option          "Device"                "/dev/input/mouse"
        Option          "Protocol"              "auto-dev"
#        Option          "LeftEdge"              "1700"
#        Option          "RightEdge"             "5300"
#        Option          "TopEdge"               "1700"
#        Option          "BottomEdge"            "4200"
#        Option          "FingerLow"             "25"
#        Option          "FingerHigh"            "30"
#        Option          "MaxTapTime"            "180"
#        Option          "MaxTapMove"            "220"
#        Option          "VertScrollDelta"       "100"
#        Option          "MinSpeed"              "0.09"
#        Option          "MaxSpeed"              "0.18"
#        Option          "AccelFactor"           "0.0015"
        Option          "SHMConfig"             "on"
	Option		"Emulate3Buttons"   	"true"
#        Option          "Repeater"              "/dev/ps2mouse"
EndSection

# Auto-generated by KNOPPIX mkxf86config

Section "Monitor"
	Identifier "Monitor0"
 Option "DPMS" "true"
	VendorName	"___"
	ModelName	"___d356"
	HorizSync 30 - 54 # DDC-probed
	VertRefresh 50 - 120 # DDC-probed
EndSection


Section "Device"  # (sw_cursor is needed for some ati and radeon cards)

 #Option "sw_cursor"
 #Option "hw_cursor"
 #Option "NoAccel"
 #Option "ShowCache"
 #Option "ShadowFB"
 #Option "UseFBDev"
 #Option "Rotate"
 #Option "NvAGP" "0" 

 Identifier  "Card0"

# The following line is auto-generated by KNOPPIX mkxf86config

# Aqui vai o driver usado pela placa de vídeo. Os drivers disponíveis não:
# chips, cirrus, cyrix, fbdev, glint, i740, i810, mga, neomagic, nv
# r128, radeon, rendition, s3virge, sis, tdfx, tga, trident, tseng, vesa, vga
# 
# O vesa é um driver genérico que funciona na maioria das placas de vídeo
# O fbdev é outro drivers genérico que aproveita o recurso de acesso direto à memória 
# de vídeo suportado pelo Kernel. Se você vê o pinguin durante o boot em texto do sistema,
# significa que a sua placa suporta o fbdev.

 Driver      "vesa"

 VendorName  "All"
 BoardName   "All"
# BusID       "PCI:1:0:0"
EndSection

#
# Aqui vai a configuração da resolução e taxa de atualização usada pelo monitor.
# As várias seções determinam as resoluções disponíveis para cada configuração de profundidade 
# de cor, enquanto a opção "DefaultColorDepth" determina qual será usada.

Section "Screen"
 Identifier "Screen0"
 Device     "Card0"
 Monitor    "Monitor0"
 DefaultColorDepth 24
 SubSection "Display"
  Depth     8
  Modes "1024x768" "800x600" "640x480"
 EndSubSection
 SubSection "Display"
  Depth     16
  Modes "1024x768" "800x600" "640x480"
 EndSubSection
 SubSection "Display"
  Depth     24
  Modes "1024x768" "800x600" "640x480"
 EndSubSection
EndSection

Section "DRI"
 Mode 0666
EndSection
And the mouse stil dead.

As you say, i put just the mouse config code like this:

Code: Select all

Section "InputDevice"
	Identifier  "Serial Mouse"
	Driver  "mouse"
	Option  "Protocol"  "Microsoft"
	Option  "Device"   "/dev/ttyS0"
	Option  "Emulate3Buttons"  "true"
	Option  "Emulate3Timeout"  "70"
	Option  "SendCoreEvents"   "true"
EndSection
And the mouse still dead.

Every time I change my xorg file I stop/start de GDM

Code: Select all

#/etc/init.d/gdm stop
#/etc/init.d/gdm start
What I'm doing wrong?

User avatar
Korrode
Posts: 107
Joined: 2010-03-03 19:20
Location: Australia

Re: How to configure a serial mouse on debian squeeze?

#9 Post by Korrode »

felipevencato wrote:I put this code in /etc/X11/xorg.confAs you say, i put just the mouse config code like this:

Code: Select all

Section "InputDevice"
	Identifier  "Serial Mouse"
	Driver  "mouse"
	Option  "Protocol"  "Microsoft"
	Option  "Device"   "/dev/ttyS0"
	Option  "Emulate3Buttons"  "true"
	Option  "Emulate3Timeout"  "70"
	Option  "SendCoreEvents"   "true"
EndSection
And the mouse still dead.
Bit of a long shot, but try:

Code: Select all

Option "Protocol" "auto"
(instead of "Microsoft").

felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

Re: How to configure a serial mouse on debian squeeze?

#10 Post by felipevencato »

Nothing happend

Suppose that xorg is not using the settings in my xorg.conf
How do I force xorg to use the settings from the xorg.conf file?

Japser
Posts: 173
Joined: 2008-02-13 13:21

Re: How to configure a serial mouse on debian squeeze?

#11 Post by Japser »

Just happen to find this: http://packages.debian.org/squeeze/inputattach

Note: just guessing.

felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

Re: How to configure a serial mouse on debian squeeze?

#12 Post by felipevencato »

IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

To install

Code: Select all

aptitude install inputattach
To run

Code: Select all

inputattach --microsoft /dev/ttyS0
To get more information
http://wiki.archlinux.org/index.php/Att ... put_system

But the mouse only works while the program is running
How can I put the inputattach to start with X?

Japser
Posts: 173
Joined: 2008-02-13 13:21

Re: How to configure a serial mouse on debian squeeze?

#13 Post by Japser »

Nice to hear it works.
To start it at boottime you can put a command in the file /etc/rc.local

--Japser.

felipevencato
Posts: 10
Joined: 2010-03-03 14:46
Location: Brazil>Rio Grande do Sul>Porto Alegre
Contact:

Re: How to configure a serial mouse on debian squeeze?

#14 Post by felipevencato »

Now I can say.

Thanks for all the help you gave me!!!!

stderr
Posts: 33
Joined: 2009-08-03 13:36

Re: [FIXED]How to configure a serial mouse on debian squeeze

#15 Post by stderr »

Thread resurrection.

I also want to use a serial mouse. But I can't get it to start with X.

As the OP has done I open a root terminal and do

Code: Select all

# inputattach --mouseman /dev/ttyS0 &
(mouseman = a logitech three button mouse)
and it works fine until I close the root terminal (shut down the program).

This documentation is installed with the inputattach package.
"/usr/share/doc/inputattach/README.Debian"

Code: Select all

inputattach for Debian
----------------------

This package does not include an initscript to initialize your
devices automatically; it isn't possible to adequately control
inputattach as would be required for an initscript.

To automatically attach a serial device to the input layer, the
recommended approach is simply to add the appropriate lines to
/etc/rc.local, or to a local udev rules file. For example, to
configure a Mouse Systems mouse on the first serial port:
 * in /etc/rc.local
        inputattach --daemon -msc /dev/ttyS0
 * or in /etc/udev/010_local.rules
        ACTION="add", KERNEL=="ttyS0", RUN+="inputattach --daemon -msc %p"

I tried adding these lines to rc.local (one at a time), none works.
/etc/rc.local:
inputattach --daemon --mouseman /dev/ttyS0 # doesnt work
inputattach --daemon -mman /dev/ttyS0 # nope
inputattach --daemon --mouseman /dev/ttyS0 & # nope
inputattach --daemon -msc /dev/ttyS0 # nope
inputattach --mouseman /dev/ttyS0 & # nope


rc.local is default empty (next to), looks like this, line added just before "exit 0"

Code: Select all

#!/bin/sh -e
pcscd
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

inputattach --daemon --mouseman /dev/ttyS0

exit 0
Ideas ?

Post Reply