View previous topic :: View next topic |
Author |
Message |
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Tue Oct 09, 2018 8:53 pm Post subject: Asus UX331UAL - Fn+F{1..12} keys |
|
|
Hi *.
I cannot make five Fn+F{1..12} keys to work in my new Asus UX331UAL. Seven works fine. They are detected by xbindkeys (XF86…) and some of them by acpid (acpi_listen).
- Fn+F1 (sleep)
- Fn+F3/F4 (keyboard backlit)
- Fn+F9 (touchpad toggle)
- Fn+F10/11/12 (volume/mute)
Keys that do not work:
- Fn+F2 (flight mode)
- Fn+F5/6 (screen brightness)
- Fn+F7 (turn off display)
- Fn+F8 (presentation mode)
They do not generate events for xev, xbindkeys -k or acpi_listen. None of the /dev/input/event* devices prints anything. Any ideas?
Kernel config: https://pastebin.com/0iMiX2t6
Kernel params: video=inteldrmfb:mode=1920x1080 vt.default_utf8=1 acpi_osi= acpi=on elevator=noop rootflags=discard intel_iommu=on kvm-intel.nested=1 quiet |
|
Back to top |
|
|
mbar Veteran
Joined: 19 Jan 2005 Posts: 1990 Location: Poland
|
Posted: Thu Oct 11, 2018 10:13 am Post subject: |
|
|
Post lsusb output. |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Fri Oct 12, 2018 11:04 am Post subject: |
|
|
Very likely, the kernel doesn't support this laptop's kernel yet. I had a similar issue on an ASUS ROG VM703 and had to hack the kernel to add my laptop to it.
See https://lkml.org/lkml/2018/6/14/831
My patch enables some but not all keys (I was mostly interested in getting media and brightness keys working), and addresses this specific laptop, so it will definitely not work for you. Just showing that the cause is very likely that the kernel does not support it.
The keyboard does show up as a USB device, so follow mbar's advice, find it with lsusb, and then check the kernel source to see if it is supported. |
|
Back to top |
|
|
mbar Veteran
Joined: 19 Jan 2005 Posts: 1990 Location: Poland
|
Posted: Sat Oct 13, 2018 4:41 am Post subject: |
|
|
Yes, I had to use that patch for GL503. |
|
Back to top |
|
|
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Sat Oct 13, 2018 6:19 pm Post subject: |
|
|
Nope, keyboard doesn't show up as the USB device.
Code: | # lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0a2b Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
Two hubs and bluetooth. Full lsusb -v: https://pastebin.com/CY8Gzm7U
Code: |
# xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ELAN1200:00 04F3:309C Touchpad id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Asus WMI hotkeys id=12 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
|
Code: | # ls -l /dev/input/by-path
lrwxrwxrwx 1 root root 9 10-13 20:12 pci-0000:00:15.1-platform-i2c_designware.1-event-mouse -> ../event6
lrwxrwxrwx 1 root root 9 10-13 20:12 pci-0000:00:15.1-platform-i2c_designware.1-mouse -> ../mouse0
lrwxrwxrwx 1 root root 9 10-13 20:12 platform-asus-nb-wmi-event -> ../event7
lrwxrwxrwx 1 root root 9 10-13 20:12 platform-i8042-serio-0-event-kbd -> ../event5
|
This laptop is definitely not like my previous ones. Instead of USB it fancies I2C or PCI-E. Even such simple thing as microSD card reader uses PCI-E line (rtsx_pci driver). |
|
Back to top |
|
|
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Tue Oct 16, 2018 4:02 pm Post subject: |
|
|
Hmm, Ubuntu Live supports those keys (brightness for example). So it's definitely up there somewhere. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Tue Oct 16, 2018 4:10 pm Post subject: |
|
|
manwe_ wrote: | Hmm, Ubuntu Live supports those keys (brightness for example). So it's definitely up there somewhere. |
Then look at the difference between ubuntu and gentoo .config as well as the modules loaded, and acpi scripts. It's in one of those, or maybe a combination. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Wed Oct 17, 2018 1:37 pm Post subject: |
|
|
Difference between .configs will be huge. No way to find that one tiny line that makes a difference if I cannot find it already in menuconf.
ACPI scripts have nothing to do with this because acpi_listen (that prints pure events) shows keypresses on Ubuntu but not on Gentoo. So it's related to the driver. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Wed Oct 17, 2018 2:00 pm Post subject: |
|
|
manwe_ wrote: | Difference between .configs will be huge. No way to find that one tiny line that makes a difference if I cannot find it already in menuconf.
ACPI scripts have nothing to do with this because acpi_listen (that prints pure events) shows keypresses on Ubuntu but not on Gentoo. So it's related to the driver. |
I would look at the difference between ACPI setting in the config files, that's more than likely where you'll find the "key" _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|