Jamie Lentin

Results 369 comments of Jamie Lentin

> > hid-lenovo isn't really handling middle-button behaviour either, > > hmm, then what does this code do? https://github.com/torvalds/linux/blob/master/drivers/hid/hid-lenovo.c#L371 Suppress middle-click events if you middle-click-and-scroll. Otherwise you'll trigger paste (or...

> > Suppress middle-click events if you middle-click-and-scroll. Otherwise you'll trigger paste (or whatever middle click does) every time you scroll. > > btw, libinput also has this logic. I...

> > Implementing a sysfs configuration to disable it would be easy enough > > Could you give some hints over this route? ( if it's really easy enough...) I'd...

Weird, I always thought you get a middle button press with a "normal" trackpoint if you held it down too long. You're right, after 200ms of middle-button-press no button events...

On button down (http://lxr.free-electrons.com/source/drivers/hid/hid-lenovo.c#L346) we need to note the time in ms that button-down happened. Then on button up (http://lxr.free-electrons.com/source/drivers/hid/hid-lenovo.c#L348) we need to only send button events if ``cptkbd_data->middlebutton_state ==...

> I am a bit confused wrt to the patches in this git and whether they have been integrated into the kernel. I add the patches to this repo as...

Arguably the kernel shouldn't know about Fn State, just like it doesn't know about Caps state, etc. But yes, it would be practically neater. The Bluetooth keyboard is quite happy...

That seems plausible, I don't think this is something I've tested. The Bluetooth keyboard reconnects completely afresh after suspend/resume, and this is what I use ~99% of the time. What...

@rcj4747 sorry, that was stupid of me. The USB keyboard needs the commands sent via. an ioctl, so that bash script can't do it. I do have a hacked-up C...

Try https://github.com/lentinj/tp-compact-keyboard/tree/master/tp-compact-usb-keyboard --- it should help you work around this for now. But the kernel patch to fix this properly should be easy, would you be willing to test patches?