WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
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: 64
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: 14851
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: 64
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: 292
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: 823
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: 64
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.