Dear phishfry:Does this work? It's all I need for my Dell laptop.
/etc/rc.conf
moused_enable="YES"
moused
man.freebsd.org
If you can use the USB mouse in vt(4), then it communicates with port /dev/psm0, which is set by default to communicate with in /etc/defaults/rc.conf:i can use the usb mouse in VT SHELL. ... i want to use touchpad of laptop in freebsd14.2 VT shell.
592 moused_enable="NO" # Run the mouse daemon.
593 moused_type="auto" # See man page for rc.conf(5) for available settings.
594 moused_port="/dev/psm0" # Set to your mouse port.
595 moused_flags="" # Any additional flags to moused.
ls /dev/psm* (EDIT alternatively dmesg | grep psm/EDIT), and set in /etc/rc.conf, i.e.:moused_enable="YES"
moused_port="/dev/psm1"
hmt cannot act like sysmouse(4)
I am pretty sure it's /dev/psm* a touchpad is communicating with:Wouldn't that be:
moused_port='/dev/hmt0'
# dmesg | grep psm0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Elantech Touchpad, device ID 0
Yes but hmt driver is for HID i2c bus devices not ps2.psm0: <PS/2 Mouse> irq 12 on atkbdc0
libinput list-devices to see what it detected.DEAr t-daemon:If you can use the USB mouse in vt(4), then it communicates with port /dev/psm0, which is set by default to communicate with in /etc/defaults/rc.conf:
Rich (BB code):592 moused_enable="NO" # Run the mouse daemon. 593 moused_type="auto" # See man page for rc.conf(5) for available settings. 594 moused_port="/dev/psm0" # Set to your mouse port. 595 moused_flags="" # Any additional flags to moused.
See which which port the touchpad has been assigned to:ls /dev/psm*(EDIT alternativelydmesg | grep psm/EDIT), and set in /etc/rc.conf, i.e.:
See moused(8) manual.Rich (BB code):moused_enable="YES" moused_port="/dev/psm1"
DEAR phishfry:Yes but hmt driver is for HID i2c bus devices not ps2.
I would say have a look atlibinput list-devicesto see what it detected.
libinput list-devices
Device: System keyboard multiplexer
Kernel: /dev/input/event0
Group: 1
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0
Device: System mouse
Kernel: /dev/input/event1
Group: 2
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: button
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: flat *adaptive custom
Rotation: 0.0
Device: Control Method Lid Switch
Kernel: /dev/input/event2
Group: 3
Seat: seat0, default
Capabilities: switch
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0
Device: Power Button
Kernel: /dev/input/event3
Group: 4
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0
Device: Sleep Button
Kernel: /dev/input/event4
Group: 5
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0
Device: AT keyboard
Kernel: /dev/input/event5
Group: 6
Seat: seat0, default
Capabilities: keyboard
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: n/a
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: n/a
Rotation: 0.0
Device: DELL0B21:00 04F3:3147 Mouse
Kernel: /dev/input/event6
Group: 7
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a
Scroll methods: button
Click methods: none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles: flat *adaptive custom
Rotation: 0.0
Device: DELL0B21:00 04F3:3147 TouchPad
Kernel: /dev/input/event7
Group: 8
Seat: seat0, default
Size: 117x81mm
Capabilities: pointer gesture
Tap-to-click: disabled
Tap-and-drag: enabled
Tap drag lock: disabled
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: *two-finger edge
Click methods: *button-areas clickfinger
Disable-w-typing: enabled
Disable-w-trackpointing: enabled
Accel profiles: flat *adaptive custom
Rotation: n/a
ls /dev/
acpi geom.ctl log pfil ufssuspend
apm gpt mdctl pts ugen0.1
apmctl hpet0 mem random ugen1.1
atkbd0 iic0 midistat reroot ugen1.2
audit iic1 mixer0 sequencer0 ugen1.3
auditpipe iic10 mixer1 sndstat uinput
backlight iic11 mlx5ctl stderr urandom
bpf iic12 music0 stdin usb
bpf0 iic13 nda0 stdout usbctl
console iic2 nda0p1 sysmouse wmistat0
consolectl iic3 nda0p2 tcp_log wmistat1
crypto iic4 nda0p3 ttyv0 wmistat2
ctty iic5 netdump ttyv1 wmistat3
devctl iic6 netmap ttyv2 wmistat4
devctl2 iic7 null ttyv3 wmistat5
devstat iic8 nvd0 ttyv4 wmistat6
dri iic9 nvd0p1 ttyv5 xpt0
drm input nvd0p2 ttyv6 zero
dsp0 io nvd0p3 ttyv7 zfs
dsp1 kbd0 nvme0 ttyv8 zvol
efi kbd1 nvme0ns1 ttyv9
fd kbdmux0 pass0 ttyva
fido klog pci ttyvb
full kmem pf ufsid
Dear vladimir kondratyev :You need https://github.com/wulf7/moused to make a I2C device be working with vt(4)
Indeed it is a built in moused problem. It just does not support evdev protocol.so i think that is not I2C driver for VT(4) problem.
Dear Vladimir kondratyev :Indeed it is a built in moused problem. It just does not support evdev protocol.
Yes. You can.Dear Vladimir kondratyev :
can I use usb mouse and touchpad in the same time when i install the I2C driver for VT(4) ? thanks
Dear vladimir kondratyev :You may skip the patch. That wont do any harm.
To select an area use tap-and-drag gesture and to insert selected text use triple-finger-tap one. Just like in terminal emulator.
DEar vladimir kondratyev :Ouch 'triple-finger-tap' is a typo. It is called '3-finger tap'. Just do a tap with 3 fingers at once.
If you redirected middle button to right one, '2-finger tap' gesture is what you need, probably.