Project

General

Profile

Actions

Bug #1879

closed

psm(4) sync with FreeBSD

Added by ahuete.devel over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I've done a full sync of the psm(4) driver with FreeBSD, you can check
the changes here:

http://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/shortlog/refs/heads/psm

Any review, comments, opinions are welcome.

The reason for doing this is that my mouse was not working in one of
the two machines I got connected to a KVM switch (mouse/keyboard/vga).
FreeBSD already solved this issue so I thought it was worth bringing
it. The port also includes a number of changes; you can check a small
list of them below:

- Support for A4 Tech RFSW-35 mouse wheel.
- Ignore strange return values in test_aux_port() from some laptops
(Compaq, Toshiba, Acer).
- Support synaptics touchpad w/ many features such as supporting
integrated wheel, up/down buttons or tapping.
- Synaptic tunables hw.psm.tap_enabled and hw.psm.synaptics_support to
control activation and/or features like gestures.
- Fix many issues with buggy KVM switches which got the mouse confused
on sync packets.
- ALPS glide point ID.
- Let some PS/2 mice to get directly to Explorer mode (i.e. A4Tech X-7xx)

Additionally I've built an USB Image for easier testing.

http://island.quantumachine.net/pub/temp/dfly_testpsm.bz2

  • Testing instructions:
    1. Write the .img file to a USB stick, if you are in Windows you can
    use flashnul (http://shounen.ru/soft/flashnul/)
    2. Boot your PC/Laptop with the USB stick
    3. Login as root and execute 'rcenable moused'. You should be able to
    use the mouse normally.
    4. If you have a synaptics touchpad, put in
    'hw.psm.synaptics_support=1' and ' hw.psm.tap_enabled=1", reboot and
    check whether tapping works on the console.

-------------
I've done some testing by myself with satisfactory results:

- VMWare VM DFBSD i386 - OK
- VMWare VM DFBSD x86_64 - Ok
- Acer Aspire One - DFBSD i386 (Synaptics touchpad detected, tapping
works on console)
- Dell Latitude D620 - DFBSD i386 - Ok (tapping doesn't work on
console, not synaptics)
- AMD Athlon X2 - DFBSD i386 connected to a buggy KVM switch - Ok

Cheers,
Antonio Huete

Actions #1

Updated by c.turner over 13 years ago

Antonio Huete Jimenez wrote:

I've done a full sync of the psm(4) driver with FreeBSD, you can check
the changes here:

nice!

do you know the status of using moused with X ?

IIRC this has been broken for a while - but that was
before I was offline for a perod - so I could be way off here

Actions #2

Updated by ahuete.devel over 13 years ago

Chris,

I do use moused and Xorg actually.

Cheers,
Antonio Huete

Antonio Huete Jimenez wrote:

I've done a full sync of the psm(4) driver with FreeBSD, you can check
the changes here:

nice!

do you know the status of using moused with X ?

IIRC this has been broken for a while - but that was
before I was offline for a perod - so I could be way off here

Actions #3

Updated by ahuete.devel over 13 years ago

Hi,

I'll push this stuff during this week, if no one have any concerns about it.

Cheers,
Antonio Huete

Actions #4

Updated by tuxillo over 13 years ago

This was pushed in 91be4d718298a092b2279227bb6ce190622b3fc9

Also, another commit changed the location of machine/mouse.h to sys/mouse.h as
there was no architecture dependent code. This has caused
x11/modular-xorg-server build to fail.

There's already a PR for this:
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44015

Actions #5

Updated by tuxillo about 13 years ago

xorg issue already solved, closing this one.

Actions

Also available in: Atom PDF