WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14872
Re: Can the recent Xorg detect a serial mouse?
« Reply #15 on: December 22, 2024, 05:44:42 AM »
Check which driver extensions are loaded using:
Code: [Select]
tce-status -i | grep xf86
I suggest you try with xf86-input-evdev loaded, but not xf86-input-libinput or xf86-input-mouse and see what happens.

(I assume 01-mouse.conf  is placed in /usr/local/share/X11/xorg.conf.d)

Also, it would be good to check which input your mouse is using with this:
Code: [Select]
dmesg | grep ttyS

Offline t18

  • Jr. Member
  • **
  • Posts: 67
Re: Can the recent Xorg detect a serial mouse?
« Reply #16 on: December 22, 2024, 08:51:22 AM »
Check which driver extensions are loaded using:
Code: [Select]
tce-status -i | grep xf86
I suggest you try with xf86-input-evdev loaded, but not xf86-input-libinput or xf86-input-mouse and see what happens.


xf86-input-mouse removed fron onboot.lst, xorg.0.log attached.

Code: [Select]
libXxf86dga
libXxf86vm
xf86-input-evdev
xf86-video-fbdev
xf86-video-vesa


Quote
(I assume 01-mouse.conf  is placed in /usr/local/share/X11/xorg.conf.d)
Yes, it is.

Quote
Also, it would be good to check which input your mouse is using with this:
Code: [Select]
dmesg | grep ttyS


Mouse plugged in to COM1.

Code: [Select]
00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0d: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14872
Re: Can the recent Xorg detect a serial mouse?
« Reply #17 on: December 22, 2024, 09:40:51 AM »
So your keyboard is ttyS0?

Sorry, but I've run out of ideas - I don't have the hardware to test.

Offline t18

  • Jr. Member
  • **
  • Posts: 67
Re: Can the recent Xorg detect a serial mouse?
« Reply #18 on: December 22, 2024, 11:03:55 AM »
AFAIK the serial port 1 is ttyS0 and the mouse is usually plugged in to it.
While the serial port 2 is ttyS1, used for modems or digitizer.
On my pc the keyboard is plugged in to the AT port.
Anyway thank you so much for the time you have devoted to me, I'll keep it like that.

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 308
Re: Can the recent Xorg detect a serial mouse?
« Reply #19 on: December 22, 2024, 07:13:47 PM »
I guess by disabling hotplugging you're trying to stop this in the Xorg log:
Code: [Select]
Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.

The 'mouse' driver accesses the mouse directly from the serial devices like in Juanitos configuration, but it's being disabled.

The other drivers rely on the Linux kernel having detected/configured the serial mouse correctly as described here. But that page doesn't mention serial mice.

I wonder if the Linux kernel's serial mouse driver ("sermouse" - built into the kernel according to the "CONFIG_MOUSE_SERIAL=y" settings in the build configuration) isn't working, so the only way is to force Xorg to access the serial port directly via its 'mouse' driver (maybe by not loading either xf86-input-libinput or xf86-input-evdev but just xf86-input-mouse)?

It sounds like if the sermouse driver is working you should have a /dev/input/mice device that can be used like a PS/2 mouse by X.

I gather you can also check the Linux serial mouse device by loading libinput.tcz and running:

Code: [Select]
sudo libinput list-devices

And see if it lists a /dev/input/event* device that matches your serial mouse.

Offline gadget42

  • Hero Member
  • *****
  • Posts: 844
Re: Can the recent Xorg detect a serial mouse?
« Reply #20 on: December 23, 2024, 06:23:25 AM »
@t18, if/when you have the opportunity it would be interesting to investigate @CNK hypotheses and see what your results are.

Happy Holidays and keep us posted. thanks.
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline t18

  • Jr. Member
  • **
  • Posts: 67
Re: Can the recent Xorg detect a serial mouse?
« Reply #21 on: December 25, 2024, 04:45:16 AM »
@t18, if/when you have the opportunity it would be interesting to investigate @CNK hypotheses and see what your results are.

Happy Holidays and keep us posted. thanks.

Will do. I'll have to find some time.

Best wishes you all.

Offline t18

  • Jr. Member
  • **
  • Posts: 67
Re: Can the recent Xorg detect a serial mouse?
« Reply #22 on: January 01, 2025, 04:34:15 PM »
I wonder if the Linux kernel's serial mouse driver ("sermouse" - built into the kernel according to the "CONFIG_MOUSE_SERIAL=y" settings in the build configuration) isn't working, so the only way is to force Xorg to access the serial port directly via its 'mouse' driver (maybe by not loading either xf86-input-libinput or xf86-input-evdev but just xf86-input-mouse)?

xf86-input-evdev loads even though removed from onboot.lst
xf86-input-libinput is not available on TCL 5.4.

Quote
It sounds like if the sermouse driver is working you should have a /dev/input/mice device that can be used like a PS/2 mouse by X.

I gather you can also check the Linux serial mouse device by loading libinput.tcz and running:

Code: [Select]
sudo libinput list-devices

And see if it lists a /dev/input/event* device that matches your serial mouse.

libinput.tcz is not available on TCL 5.4.

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 308
Re: Can the recent Xorg detect a serial mouse?
« Reply #23 on: January 01, 2025, 06:03:02 PM »
I wonder if the Linux kernel's serial mouse driver ("sermouse" - built into the kernel according to the "CONFIG_MOUSE_SERIAL=y" settings in the build configuration) isn't working, so the only way is to force Xorg to access the serial port directly via its 'mouse' driver (maybe by not loading either xf86-input-libinput or xf86-input-evdev but just xf86-input-mouse)?

xf86-input-evdev loads even though removed from onboot.lst

You could delete the symlink at "/usr/local/lib/xorg/modules/input/evdev_drv.so".

Quote
It sounds like if the sermouse driver is working you should have a /dev/input/mice device that can be used like a PS/2 mouse by X.

I gather you can also check the Linux serial mouse device by loading libinput.tcz and running:

Code: [Select]
sudo libinput list-devices

And see if it lists a /dev/input/event* device that matches your serial mouse.

libinput.tcz is not available on TCL 5.4.

If you can't try TC15 again then I'm not sure what the options are for viewing mice in TC5. You could try testing the emulated PS/2 mouse device in Xorg or with GPM, as described in the Linux kernel mouse driver documentation link.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11741
Re: Can the recent Xorg detect a serial mouse?
« Reply #24 on: January 01, 2025, 10:00:24 PM »
Hi t18
... xf86-input-evdev loads even though removed from onboot.lst ...
Remove  xf86-input-evdev.tcz  from your local copy of  Xorg-7.7.tcz.dep.

Offline t18

  • Jr. Member
  • **
  • Posts: 67
Re: Can the recent Xorg detect a serial mouse?
« Reply #25 on: January 02, 2025, 06:59:35 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.

That's what I've done.


If you can't try TC15 again then I'm not sure what the options are for viewing mice in TC5. You could try testing the emulated PS/2 mouse device in Xorg or with GPM, as described in the Linux kernel mouse driver documentation link.

Yes, I can use TCL 15 again. But the aim would be to find the correct settings on TCL 5.x and then put them on TCL 15.
That's what I've caught.


Hi t18
... xf86-input-evdev loads even though removed from onboot.lst ...
Remove  xf86-input-evdev.tcz  from your local copy of  Xorg-7.7.tcz.dep.

For mouse settings I'm using TCL 5.x as Juanito suggested.
I'll check if it's possible to remove evdev from it.


Offline t18

  • Jr. Member
  • **
  • Posts: 67
Re: Can the recent Xorg detect a serial mouse?
« Reply #26 on: January 05, 2025, 10:39:52 AM »
Hi t18
... xf86-input-evdev loads even though removed from onboot.lst ...
Remove  xf86-input-evdev.tcz  from your local copy of  Xorg-7.7.tcz.dep.

Removing it the keyboard gets disabled, so I can't switch to prompt and check the Xorg.0.log.

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 308
Re: Can the recent Xorg detect a serial mouse?
« Reply #27 on: January 05, 2025, 04:51:29 PM »
You might need to configure the kbd driver too, like Juanito's example for the mouse driver. But if the mouse didn't work, I'm not sure there's anything more to do in order to make Xorg use the direct mouse driver.