Skip to contentSkip to conversation

Detect ps/2 / usb mouse for a live-cd

DISCUSSION Jonas Melian Garcia 5 participants 8 messages Feb 4, 2005

lore
Share & tools
lore
#0 lore raw

hello!

Now i'm using kudzu to detect the mouse in a live-cd.

Hotplug detect the sound card and alsasound load the modules Hotplug detect the network card also.

But it is possible detect the mouse to can configure correctly? Where are the devices that hotplug detect?

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 1 line · Jonas Melian Garcia

But it is possible detect the mouse to can configure correctly?

No, because the kernel lacks serio hotplug support.

Signature · 2 lines
ciao,
Marco
#2 lore raw
In reply to Jonas Melian Garcia
Quoted 9 lines · Jonas Melian Garcia

hello!

Now i'm using kudzu to detect the mouse in a live-cd.

Hotplug detect the sound card and alsasound load the modules Hotplug detect the network card also.

But it is possible detect the mouse to can configure correctly? Where are the devices that hotplug detect?

Why do you need to detect them?
Usually the right modules are loaded by hotplug and the xorg entry is identical for most mouse types:
(works only for 2.6 kernel)

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "7"
EndSection

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Jonas Melian Garcia
Quoted 1 line

Why do you need to detect them?

I need detect the (serial or usb) mouse to config correctly gpm

Quoted 12 lines
Quoted 5 lines

Now i'm using kudzu to detect the mouse in a live-cd.

But it is possible detect the mouse to can configure correctly? Where are the devices that hotplug detect?

Why do you need to detect them?
Usually the right modules are loaded by hotplug and the xorg entry is identical for most mouse types:
(works only for 2.6 kernel)

Quoted 12 lines

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "7"
EndSection

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to Jonas Melian Garcia
Quoted 1 line · Jonas Melian Garcia

I need detect the (serial or usb) mouse to config correctly gpm

/usr/sbin/gpm -m /dev/input/mice -t imps2

that should work for ps2 or usb .. serial is another thing, because the kernel does not know about it .. fortunately its very rarely used.

Kind regards,
Stefan

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#5 lore raw
In reply to Jonas Melian Garcia

Good, because now I can replace kudzu by discover to detect the graphical card. I believe that it is better.

Thanks

Quoted 11 lines
Quoted 1 line

I need detect the (serial or usb) mouse to config correctly gpm

/usr/sbin/gpm -m /dev/input/mice -t imps2

that should work for ps2 or usb .. serial is another thing, because the kernel does not know about it .. fortunately its very rarely used.

Kind regards,
Stefan

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#6 lore raw
In reply to Jonas Melian Garcia
Quoted 8 lines · Stefan Schweizer

On Fri, 04 Feb 2005 11:55:27 +0000, Jonas Melian Garcia

Quoted 3 lines

But it is possible detect the mouse to can configure correctly? Where are the devices that hotplug detect?

Why do you need to detect them?
Usually the right modules are loaded by hotplug and the xorg entry is identical for most mouse types:

That doesn't work all that well for touchpads, though arguably part of the problem there is that the kernel touchpad drivers still have glitches ...

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#7 lore raw
In reply to Jonas Melian Garcia
Quoted 2 lines · Jonas Melian Garcia

But it is possible detect the mouse to can configure correctly? Where are the devices that hotplug detect?

If you're using 2.6, just use /dev/input/mice, it should Just Work.

Bill

Quoted 1 line

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel