Plippo / asus-wmi-screenpad

Variation of the asus-wmi kernel module with screenpad brightness support
Other
159 stars 20 forks source link

Doesn't seem to work on Arch #9

Open lunaneff opened 4 years ago

lunaneff commented 4 years ago

I'm on Linux 5.7.6-arch1-1. I've done almost nothing after installing (just installed GNOME and asus-wmi-screenpad). My laptop's model number is UX481FLY (reported by MyASUS on Windows, the package says UX481FL-HJ086R. If you need more info, just ask

CampGareth commented 4 years ago

Same boat here on Manjaro (Arch based) so I installed acpi_call for my kernel version and then used the raw ACPI calls from this comment which asus-wmi-screenpad is based on: https://github.com/s-light/ASUS-ZenBook-Pro-Duo-UX581GV/issues/1#issuecomment-632839056

Now there's a couple of bash scripts on my machine like this:

#!/bin/bash

echo '\_SB.ATKD.WMNB 0x0 0x53564544 b32000500FF000000' | sudo tee /proc/acpi/call

Not quite as convenient but it'll do for now.

Plippo commented 4 years ago

@laurinneff I'm really sorry I didn't answer earlier, I didn't log into Github for some weeks and somehow missed the email notification about the creation of this bug... Did you (or @CampGareth) get any error messages while trying to install the module or did it just silently fail?

CampGareth commented 4 years ago

No obvious errors on build, I'll include my logs here: debugging-asus-wmi-screenpad.txt Running lsmod | grep "asus" pre and post install and reboot gives exactly the same results:

$ lsmod | grep "asus"
asus_nb_wmi            28672  0
asus_wmi               40960  1 asus_nb_wmi
sparse_keymap          16384  1 asus_wmi
rfkill                 28672  10 asus_wmi,bluetooth,cfg80211
battery                20480  1 asus_wmi
wmi                    36864  3 asus_wmi,wmi_bmof,mxm_wmi
i8042                  32768  1 asus_nb_wmi

I'm guessing it's a naming clash? Two asus_wmi modules?

modinfo on asus_wmi and asus_nb_wmi suggests they're official modules made by Corentin Chary and Yong Wang.

Plippo commented 4 years ago

I don't see anything suspicious in the logs either. Maybe the original asus_* modules are already compiled into your kernel and thus can't be replaced by the modified versions? It's normal that both asus_wmi and asus_nb_wmi are active, those control different parts of the device. Are you able to map the keys above the touchpad, to the left of the on/off key? Those are also provided by the modified modules.

TRPB commented 3 years ago

I can report the same thing, it appears in /sys/class/leds but the brightness is reported as 0 even though the screen is on (50% I'd guess from looking at it) and changing the brightness has no effect.

Thank you for your work anyway, it led me here and the acpi_call method above which works fine. I wish I'd discovered it before I spent an hour looking through xrandr, ddcutil and perusing /sys/class/backlight.