Post your desktop v15 xorg.conf Mouse section

... AS THE DEVICES AND DRIVERS HAVE CHANGED SINCE V14...

Section "InputDevice"
Identifier "Mouse0" or "UMS Mouse" or "HMS Mouse" # claude.ai supplied those here, still not working.
# one of the UMS/HMS mouse I have on hand
# WAS working, now NONE do in Xorg
.... and all also-working entries here.
EndSection

bonus section:

also, probably are relevant are a 40-libinput.conf in its default or per-machine location if it has been
locally edited.


and whether the /dev/input/event# number [ which libinput assigns to mice ] is known, how ascertained, all of which may be relevant [ 0 or 1 ?? ]
however a working if one has knowledge of that.

Much appreciated. As the information, which may be available is not so far found with the
hours I have searched already.
---------------------------------------------
claude.ai supplied a large # of fixes which I had hoped to fix the
libevent /dev/input/event* frozen mouse pointer,
--------------------------------------------------
Today I detrmined that
there are
/dev/input/event10 as hms2, a small wireless usb mouse
/dev/input/event5 as hms1, a large trackball usb
and /dev/input/event0 as hms0. a trackball wireless usb mouse
-----------------------
the hms2 one initially worked when I first got nvidia-driver working with Xorg. ...
so this is puzzling...
libevent detects at least two of them but... that movement
is not transmitted TO THE ACTUAL MOUSE POINTER which
stays centered as it is on startup.
for some reason.
 
I would delete all files in /xorg.conf.d/ for libinput and pointer and try these loader settings.
/boot/loader.conf
Code:
hw.usb.usbhid.enable=1
usbhid_load="YES"
hint.ums.0.disabled="1"
 
Does anything not work without xorg.conf?
I only have conf files for the default keyboard layout (useful for non US keyboards) and for setting some device settings (VRR, tearfree). Ah and one backup conf file to force scfb when there are DRM issues on new FreeBSD releases :P
 
Does anything not work without xorg.conf?
xorg works, just without any mouse detection. The fixes in post # 2 did not work. I managed to find out a /dev/input/event10 for one mouse, an event5 for the trackball, and an event6 for a trackball wireless mouse, and at least two of the three work with libinput testing when in Xorg, but the mouse pointer, while the devices are detected [ I coded them into xorg.conf ] [ at least two of the three ], the mouse pointer stays unmovable. So I have an xterm to work with but no mouse movement, although I can detect the mouse movement in real time. Which is progress...
 
/etc/X11/xorg.conf

Code:
Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/sysmouse"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Generic 3-button USB mouse.
 
... AS THE DEVICES AND DRIVERS HAVE CHANGED SINCE V14...
I used the same general snippet 14-15.0-REL+ and 16.0-CUR Xfce Xorg and XLibre and Linux with USB keyboards, mice + trackballs, and touchscreens (evdev with disabled accel):
Code:
Section "InputClass"
    Identifier "ATTACK SHARK X3 Mouse (evdev custom)"
    MatchUSBID "1d57:fa61"
    Driver "evdev"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
EndSection
All devices worked without config and default libinput; evdev needs webcamd (pkg + service + group)
 
What's also affects is a sysctl, kern.evdev.rcpt_mask.
It's defaulted to 12 in all supported releases, but mouse pointer doesn't move with my Elecom HUGE PLUS trackball on X11 (stable/15).

Setting it to 13 helps. But strangely, working OK on recent main with the default value 12. Wayland seems to work in reverse (works but abnormally with 13 but fine with 12, scroll wheel works oddly with 13 on Wayland).
Not bisected (with ENOTIME 😅 ), but maybe any changes in between commit src 748b510477b3 and commit src 2bdde7628113 would did the trick.
 
Note that bits in sysctl kern.evdev.rcpt_mask defined in /usr/src/sys/dev/evdev/evdev.h means:
C:
#define    EVDEV_RCPT_SYSMOUSE    (1<<0)
#define    EVDEV_RCPT_KBDMUX    (1<<1)
#define    EVDEV_RCPT_HW_MOUSE    (1<<2)
#define    EVDEV_RCPT_HW_KBD    (1<<3)

And in decimal (picked from my /etc/sysctl.conf),
Code:
# kern.evdev.rcpt_mask=1    # bit0 (1<<0), via sysmouse
# kern.evdev.rcpt_mask=2    # bit1 (1<<1), via kbdmux
# kern.evdev.rcpt_mask=4    # bit2 (1<<2), direct USB mouse (ums)
# kern.evdev.rcpt_mask=8    # bit3 (1<<3), direct keyboard (atkbd and ukbd)
# kern.evdev.rcpt_mask=5    # Both bit2 and 0 (sysmouse and ums, no kbd)
# kern.evdev.rcpt_mask=6    # Both bit2 and 1 (ums and kbdmux)
# kern.evdev.rcpt_mask=7    # Bits2, 1, and 0 (ums, kbdmux and sysmouse)
# kern.evdev.rcpt_mask=9    # Bits3 and 0 (direct keyboard and sysmouse)
# kern.evdev.rcpt_mask=10    # Both bit3 and 1 (direct kbd and kbdmux)
# kern.evdev.rcpt_mask=11    # Bits3, 1, and 0 (HW kbd, kbdmux, sysmouse)
# kern.evdev.rcpt_mask=12    # Both bit3 and 2 (direct kbd and ums) default
kern.evdev.rcpt_mask=13        # Bits 3, 2 and 0 (HW kbd, ums and sysmouse)
# kern.evdev.rcpt_mask=14    # Bits 3, 2 and 1 (HW kbd, ums and kbdmux)
# kern.evdev.rcpt_mask=15    # All 4 bits
 
I added a "ServerFlags" section after reading the latest xorg log, and
saved xorg.conf from decades ago, to check where the setting
is noted; changed
Option "AutoAddDevices" "true" for
that seting, and now the large, legacy trackball I originally wanted to work
again, is working :) !! [ less RSI than smaller movable mice... ]
-----
the sysctl 12 > 13 had no effect prior to that.
---
and the new xorg log seems to point to eventual fixes for the other two, maybe they
would activate if the legacy on is not plugged in to the usb.
---------------
strangely, the arrow keys and pageup/down keys quit working in X for which there are workarounds by mouse and alternate programs for the time being... :rolleyes:
 
Just a question: what does this thread means?

That if I upgrade from 14.4 to 15.1 I get problems with the mouse?

That if I upgrade, I will not be able to use firefox and ask for a solution in the forum?

That again and again I get troubles when I upgrade?

Excuse me for the question, but I must be prepared for the troubles.

Such troubles are the reason I avoid to upgrade.
 
Back
Top