Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #58

Merged
merged 3 commits into from
Aug 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update README.md
Update README to include udev rule to support both Thinkpad Tracpoint I & II support.
  • Loading branch information
jeroney authored Aug 2, 2022
commit a78d79ec0e9fa1ccb6441a54651a707ea64a7937
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,24 @@ Disable FnLk by default
-----------------------

Linux assumes you want Fn keys to act as Fn keys and Enables Fn-Lock, however
uyou may want the opposite. If so create a udev rule with the following command:
you may want the opposite.

Thinkpad TrackPoint Keyboard II is in Linux kernel 5.19 and greater.

If so create a udev rule with the following command:

cat <<'EOF' > /etc/udev/rules.d/99-thinkpad-compact-keyboard.rules
SUBSYSTEM=="hid", ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="604*", \
TEST == "/sys/$devpath/fn_lock", \
RUN += "/bin/sh -c 'echo 0 > \"/sys/$devpath/fn_lock\"'"
#ThinkPad TrackPoint Keyboard I & II USB
SUBSYSTEM=="hid", \
DRIVER=="lenovo", \
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6047|60ee", \
ATTR{fn_lock}="0"

#ThinkPad TrackPoint Keyboard I & II Bluetooth
SUBSYSTEM=="input", \
ATTRS{id/vendor}=="17ef", ATTRS{id/product}=="6048|60e1", \
TEST=="/sys/$devpath/device/fn_lock", \
RUN+="/bin/sh -c 'echo 0 > \"/sys/$devpath/device/fn_lock\"'"
EOF

How I Did It
Expand Down