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

rightalt-as-rightctrl option not working #95

Open
fvsnippets opened this issue Oct 8, 2023 · 2 comments
Open

rightalt-as-rightctrl option not working #95

fvsnippets opened this issue Oct 8, 2023 · 2 comments

Comments

@fvsnippets
Copy link

fvsnippets commented Oct 8, 2023

Hi!
I am pretty sure that rightalt-as-rightctrl option used to work with my old installation (was debian 11 "bullseye"/kernel 5.10 but I don't know the hid-apple-patched commit I was using then).

Now is broken with debian 12 "buster"/kernel 6.1 and latest hid-apple-patched commit on master 46f3457

root@hostname# evtest

...snipped out...
Event: time 1696729013.627356, -------------- SYN_REPORT ------------
Event: time 1696729014.499395, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e6
Event: time 1696729014.499395, type 1 (EV_KEY), code 126 (KEY_RIGHTMETA), value 1
...snipped out...

// Notice RIGHTMETA is also know as Super_R in some other programs such as xev.

My hardware: macbook air 2017 - spanish keyboard.

bustype: 0003
product: 0291
vendor: 05ac
version: 0110

Changing other options (following #19 issue) doesn't seems to work.
Other options (those I choose to use: fnmode, swap_fn_leftctrl, swap_opt_cmd) are working fine.

Thank you!

@fvsnippets
Copy link
Author

Notice: as a temporal workaround I am using udev.

root@hostname:~# vi /etc/udev/hwdb.d/99-macbook-keyboard.hwdb

# Reassign RIGHT-ALT physical key as a temporal workaround to https:/free5lot/hid-apple-patched/issues/95
evdev:input:b0003v05ACp0291e0110*
 KEYBOARD_KEY_700e6=rightctrl

root@hostname:~# udevadm --debug hwdb --update
root@hostname:~# udevadm --debug trigger

For those interested in this solution, you can read this related article (but there's a lot information on google :P )

@abdoulayeYATERA
Copy link

Notice: as a temporal workaround I am using udev.

root@hostname:~# vi /etc/udev/hwdb.d/99-macbook-keyboard.hwdb

# Reassign RIGHT-ALT physical key as a temporal workaround to https:/free5lot/hid-apple-patched/issues/95
evdev:input:b0003v05ACp0291e0110*
 KEYBOARD_KEY_700e6=rightctrl

root@hostname:# udevadm --debug hwdb --update
root@hostname:
# udevadm --debug trigger

For those interested in this solution, you can read this related article (but there's a lot information on google :P )

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants