WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can the recent Xorg detect a serial mouse?  (Read 418 times)

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Can the recent Xorg detect a serial mouse?
« on: December 14, 2024, 12:39:36 AM »
That's the last piece for my Pentium 166 mosaic.

I've put the following snippet in xorg.conf.d but unsuccessfully:

Code: [Select]
Section "InputClass"
Identifier "Mouse0"
MatchIsPointer "On"
MatchDevicePath "/dev/ttyS0"
MatchDriver "mouse"
Option "EmulateWheel" "On"
Option "EmulateWheelButton" "2"
EndSection

Trying to use xorg.conf in the traditional way instead, the following snippet disables the keyboard as well:

Code: [Select]
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection

Anything I can do?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Can the recent Xorg detect a serial mouse?
« Reply #1 on: December 14, 2024, 02:36:14 AM »
You could try starting the gui without any xorg conf or snippets and then examine the xorg log to see what is detected and if any errors are found.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Can the recent Xorg detect a serial mouse?
« Reply #2 on: December 14, 2024, 07:51:17 AM »
The attached one is the Xorg.0.log without any config file.

It seems there is no track of pointers.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Can the recent Xorg detect a serial mouse?
« Reply #3 on: December 14, 2024, 08:25:02 AM »
I'm not sure if libinput and/or xf86-input-libinput can handle a serial mouse?

You might need to go back to xf86-input-evdev, but I would check the libinput documentation first.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Can the recent Xorg detect a serial mouse?
« Reply #4 on: December 14, 2024, 10:16:43 AM »
It seems not to be any track of serial devices on the Libinput documentation.

I've found somewhere references to evdev + input-attach or xf86-input-mouse (not xf86-input-VMmouse, I guess). Are there packages available on TCL?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Can the recent Xorg detect a serial mouse?
« Reply #5 on: December 14, 2024, 10:24:20 AM »
Hi t18
Try adding the boot code:
Code: [Select]
i8042.nopnpReboot and see if anything changed.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Can the recent Xorg detect a serial mouse?
« Reply #6 on: December 14, 2024, 10:48:55 AM »
You would need to build xf86-input-evdev, see http://www.tinycorelinux.net/7.x/x86/tcz/src/xf86-input-evdev/ or xf86-input-mouse.

It might be easier to install tc-5.x and see if it’s going to work first.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Can the recent Xorg detect a serial mouse?
« Reply #7 on: December 14, 2024, 02:16:55 PM »
Hi t18
Try adding the boot code:
Code: [Select]
i8042.nopnpReboot and see if anything changed.

Everything slower and no mouse detection.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Can the recent Xorg detect a serial mouse?
« Reply #8 on: December 14, 2024, 02:18:36 PM »
You would need to build xf86-input-evdev, see http://www.tinycorelinux.net/7.x/x86/tcz/src/xf86-input-evdev/ or xf86-input-mouse.

It might be easier to install tc-5.x and see if it’s going to work first.

I'll try 5.x as soon as I find another hard drive.

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 291
Re: Can the recent Xorg detect a serial mouse?
« Reply #9 on: December 16, 2024, 10:33:24 PM »
On x86_64 I'm using the last xf86-input-evdev.tcz extension (from TC13) instead of libinput with the current Xorg in TC15 and it works. I haven't tried a serial mouse though. I do know that Xvesa works with serial mice.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Can the recent Xorg detect a serial mouse?
« Reply #10 on: December 21, 2024, 11:17:54 AM »
Installed TCL 5.4 but evdev doesn't detect any pointer.

Installed also xf86-input-mouse without any changes. I haven't found any reference on how configuring it (if necessary). The posts available on the web are generally outdated and it's difficult to align them to a specific Xorg version.

Yes, Xvesa supports serial mice but the available screen resolutions are lower than on Xorg.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Can the recent Xorg detect a serial mouse?
« Reply #11 on: December 21, 2024, 11:33:31 AM »
Do you need something like this:
Code: [Select]
Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
# Option     "Protocol" "auto"
# Option     "Device" "/dev/mouse"
# Option     "ZAxisMapping" "4 5 6 7"
    Option "Protocol"    "Microsoft"
    Option "Device"      "/dev/ttyS0"
    Option "Emulate3Buttons"
EndSection

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 291
Re: Can the recent Xorg detect a serial mouse?
« Reply #12 on: December 21, 2024, 10:45:32 PM »
I can't find the exact man pages for the Xorg version in TC15, but this is for Debian with Xorg 21.1.7 vs 21.1.9 in TC15:
xorg.conf(5)
mouse(4)
evdev(4)
libinput(4)

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Can the recent Xorg detect a serial mouse?
« Reply #13 on: Today at 05:11:08 AM »
I can't find the exact man pages for the Xorg version in TC15...

It seems some pages are just missing.

Offline t18

  • Jr. Member
  • **
  • Posts: 63
Re: Can the recent Xorg detect a serial mouse?
« Reply #14 on: Today at 05:19:17 AM »
Do you need something like this:
Code: [Select]
Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
# Option     "Protocol" "auto"
# Option     "Device" "/dev/mouse"
# Option     "ZAxisMapping" "4 5 6 7"
    Option "Protocol"    "Microsoft"
    Option "Device"      "/dev/ttyS0"
    Option "Emulate3Buttons"
EndSection

Putting it in a 01-mouse.conf file, either alone or along with the above posted InputClass, has no effect.

Also putting Xorg-7.7 after the xf86-input-mouse entry in onboot.lst has no effect.

Finally, I haven't found the manner to disable hotplugging without locking the whole system.

Attached is my Xorg.0.log.