numtide / nixos-facter-modules

A series of NixOS modules to be used in conjunction with https://github.com/numtide/nixos-facter [maintainer=@numtide]
https://numtide.github.io/nixos-facter-modules/
MIT License
36 stars 4 forks source link

[Feature Request] Support setup Touch Pad #47

Open brsvh opened 1 week ago

brsvh commented 1 week ago

Is your feature request related to a problem? Please describe.

Maybe not

Describe the solution you'd like

I would like to request support for the automatic recognition of Touch Pad devices and to enable the related options.

My facter.json reported the Touch Pad device.

{
  ...
    "pointing_device": [
      {
        "handle": 44,
        "mouse_type": {
          "name": "Track Point",
          "value": 5
        },
        "interface": {
          "name": "PS/2",
          "value": 4
        },
        "buttons": 3
      },
      {
        "handle": 45,
        "mouse_type": {
          "name": "Touch Pad",
          "value": 7
        },
        "interface": {
          "name": "Other",
          "value": 1
        },
        "buttons": 2
      }
    ],
  ...
}

I tried to write a new module to enable services.libinput through mouse_type, but I couldn't find any mouse devices in config.facter.report.hardware.

Then I didn't know how to continue.

Describe alternatives you've considered

None

Additional context

None

brianmcgee commented 1 week ago

We have an open issue on nixos-facter related to correctly capturing touchpad information.

I should have some time before NixCon to look at this.