Solved how to enable my touchpad of laptop in freebsd14.2 VT shell ?

Dear all :
i have a laptop with touchpad , below is inform:
hmt0: <DELL0B21:00 04F3:3147 TouchPad> on hidbus0
hconf0: <DELL0B21:00 04F3:3147 Configuration> on hidbus0
hmt0: Multitouch touchpad with 0 external buttons, click-pad


how to enable touchpad in freebsd14.2 VT shell ? thanks.
 
Does this work? It's all I need for my Dell laptop.
/etc/rc.conf
moused_enable="YES"

Dear phishfry:
yeah, i am dell laptop user same. i can use mouse and touchpad in gnome GUI. but when working in VT shell, i can't use touchpad . i can use the usb mouse in VT SHELL. my question was : i want to use touchpad of laptop in freebsd14.2 VT shell. thanks.
 
i can use the usb mouse in VT SHELL. ... i want to use touchpad of laptop in freebsd14.2 VT shell.
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 alternatively dmesg | grep psm/EDIT), and set in /etc/rc.conf, i.e.:
Rich (BB code):
moused_enable="YES"
moused_port="/dev/psm1"
See moused(8) manual.
 
Wouldn't that be:

moused_port='/dev/hmt0'
I am pretty sure it's /dev/psm* a touchpad is communicating with:

From a ThinkPad:
Code:
 # dmesg | grep psm0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Elantech Touchpad, device ID 0
 
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 alternatively dmesg | grep psm/EDIT), and set in /etc/rc.conf, i.e.:
Rich (BB code):
moused_enable="YES"
moused_port="/dev/psm1"
See moused(8) manual.
DEAr t-daemon:
now i can't find psm* device in my laptop. and i know the psm device for ps/2 mouse. i have configure my VT use usb mouse, and work normal. now, question was enable tochpad of laptop for VT shell. thanks.
 
Yes but hmt driver is for HID i2c bus devices not ps2.

I would say have a look at libinput list-devices to see what it detected.
DEAR phishfry:
thanks for your help . below was ilbinput list-devices. but , i still not find any /dev/hmt* device . why my gnome can use touchpad , VT shell can't . please help me again. thanks.
Code:
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
 
below was my device:
Code:
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
 
dmesg |grep hmt
hmt0: <DELL0B21:00 04F3:3147 TouchPad> on hidbus0
hmt0: Multitouch touchpad with 0 external buttons, click-pad
hmt0: 5 contacts with [C] properties. Report range [0:0] - [3512:2442]
 
Dear Vladimir kondratyev :
i have download i2c driver from github.com. now other question was below .
1. To prevent double movement on bluetooth devices, following patch should be
applied to bthidd
diff --git a/usr.sbin/bluetooth/bthidd/hid.c b/usr.sbin/bluetooth/bthidd/hid.c
--- usr.sbin/bluetooth/bthidd/hid.c
+++ usr.sbin/bluetooth/bthidd/hid.c
@@ -560,12 +560,12 @@ hid_interrupt(bthid_session_p s, uint8_t *data, int32_t len)
mi.u.data.y = mouse_y;
mi.u.data.z = mouse_z;
mi.u.data.buttons = mouse_butt;
-
+/*
if (ioctl(s->srv->cons, CONS_MOUSECTL, &mi) < 0)
syslog(LOG_ERR, "Could not process mouse events from " \
"%s. %s (%d)", bt_ntoa(&s->bdaddr, NULL),
strerror(errno), errno);
-
+*/
if (hid_device->mouse && s->srv->uinput &&
uinput_rep_mouse(s->umouse, mouse_x, mouse_y, mouse_z,
mouse_t, mouse_butt, s->obutt) < 0)

Question :
1. sorry, i don't know how to run diff command to do that patch in VT shell. please guide me . thanks.
2. now the driver can drive touchpad . but , how to use touchpad copy and past in the VT shell ? please help. thanks.
 
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.
 
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 :
thanks for your help . in the VT shell , we can use tap-and-drag gesture, but i don't know how to active triple-finger-tap one. and it't not work. but i find a way to let touchpad left click to select content, the right click to paste it. below was my configure in /etc/rc.conf . maybe help me some one thanks.

#enable mouse in vt shell .with new mouse driver.
evdev_moused_enable="yes"
moused_flags="-m 2=3"
 
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.
 
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.
DEar vladimir kondratyev :
thanks. looks like my touchpad don't support triple-finger-tap. when i use 3 fingers do a top at once , nothing happened. thanks.
 
Back
Top