asus-touchpad-numpad-driver icon indicating copy to clipboard operation
asus-touchpad-numpad-driver copied to clipboard

Working but no light up solution (maybe)

Open Tambup opened this issue 2 years ago • 24 comments

Hi,

first thing is that the driver is working on my laptop, that is a "X430FA", with the "ux433fa" layout. The only problem is that i can't see symbols on the touchpad. I solved changing the activation function in this way:

def activate_numlock(brightness):
    numpad_cmd = "i2ctransfer -f -y " + device_id + " w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 " + BRIGHT_VAL[brightness] + " 0xad"
    events = [
        InputEvent(EV_KEY.KEY_NUMLOCK, 1),
        InputEvent(EV_SYN.SYN_REPORT, 0)
    ]
    udev.send_events(events)
    d_t.grab()
    subprocess.call(numpad_cmd, shell=True)
    change_brightness(1)  # !!! THIS ONE IS THE NEW LINE !!!

This way it is fully working. My question is: why doesn't it already work this way? Incompatibility with other devices? However, if this fix can be accepted, I can fork and add this fix and the update to the README with the new device.

As this is very useful, if you agree, I'd like to add this to the AUR (I will always use the last commit until you make a release) to make it immediate to install on arch. In this case, in my opinion, can be recommended to add a license.

Tambup avatar Oct 01 '21 13:10 Tambup

I had the same problem and it worked for me as well. Please remind the method name is change_bright (not change_brightness though).

wkynrocks avatar Oct 07 '21 12:10 wkynrocks

@wkynrocks are you sure about the function name? I see brightness here.

Tambup avatar Oct 07 '21 12:10 Tambup

I guess this is other file version... It might be another issue but does it work when you reboot because the service failed every time I restart the laptop. I need to enable it again after logging in.

wkynrocks avatar Oct 07 '21 15:10 wkynrocks

Hi, Keep in mind that is very difficult to help because i dont own all the asus models and I do not have tested on each linux distribution. I just know that this issue was never reported before. So is it a real issue, an issue for a particular model or specific linux OS.. hard to say ☹️

mohamed-badaoui avatar Nov 17 '21 19:11 mohamed-badaoui

@mohamed-badaoui makes sense. Let's wait if someone else has this problem to check.

Tambup avatar Nov 17 '21 19:11 Tambup

This didn't solve it for me. But my backlight started working with this driver after a reboot from windows (keys were working).

ASUS Zenbook 14X UX5401EA using m433ia qwerty layout, arch linux

glebtv avatar Feb 27 '22 22:02 glebtv

Didn't solve to me :disappointed:

TheMY3 avatar Apr 08 '22 05:04 TheMY3

@mohamed-badaoui makes sense. Let's wait if someone else has this problem to check.

I had this problem on an Asus Vivobook M3401QC with Ubuntu 22 LTS. This code fixes my problem

Hilicot avatar Jun 02 '22 20:06 Hilicot

didn't solve to me. um425ua :(

StrangL avatar Nov 21 '22 21:11 StrangL

It worked perfectly for me it should be merged with this line added!

charlesleaub avatar Mar 02 '23 18:03 charlesleaub

Thank you! Worked well for me on the UX3402VA model.

natoch avatar Sep 05 '23 11:09 natoch

Hi,

first thing is that the driver is working on my laptop, that is a "X430FA", with the "ux433fa" layout. The only problem is that i can't see symbols on the touchpad. I solved changing the activation function in this way:

def activate_numlock(brightness):
    numpad_cmd = "i2ctransfer -f -y " + device_id + " w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 " + BRIGHT_VAL[brightness] + " 0xad"
    events = [
        InputEvent(EV_KEY.KEY_NUMLOCK, 1),
        InputEvent(EV_SYN.SYN_REPORT, 0)
    ]
    udev.send_events(events)
    d_t.grab()
    subprocess.call(numpad_cmd, shell=True)
    change_brightness(1)  # !!! THIS ONE IS THE NEW LINE !!!

This way it is fully working. My question is: why doesn't it already work this way? Incompatibility with other devices? However, if this fix can be accepted, I can fork and add this fix and the update to the README with the new device.

As this is very useful, if you agree, I'd like to add this to the AUR (I will always use the last commit until you make a release) to make it immediate to install on arch. In this case, in my opinion, can be recommended to add a license.

Hi,

Is this solution easy to apply for regular users ? I have no particular knowledge nor skills but I am facing this particularly annoying issue and it seems, you are the only solution on the internet !

iuyfu avatar Dec 10 '23 17:12 iuyfu

Hi, first thing is that the driver is working on my laptop, that is a "X430FA", with the "ux433fa" layout. The only problem is that i can't see symbols on the touchpad. I solved changing the activation function in this way:

def activate_numlock(brightness):
    numpad_cmd = "i2ctransfer -f -y " + device_id + " w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 " + BRIGHT_VAL[brightness] + " 0xad"
    events = [
        InputEvent(EV_KEY.KEY_NUMLOCK, 1),
        InputEvent(EV_SYN.SYN_REPORT, 0)
    ]
    udev.send_events(events)
    d_t.grab()
    subprocess.call(numpad_cmd, shell=True)
    change_brightness(1)  # !!! THIS ONE IS THE NEW LINE !!!

This way it is fully working. My question is: why doesn't it already work this way? Incompatibility with other devices? However, if this fix can be accepted, I can fork and add this fix and the update to the README with the new device. As this is very useful, if you agree, I'd like to add this to the AUR (I will always use the last commit until you make a release) to make it immediate to install on arch. In this case, in my opinion, can be recommended to add a license.

Hi,

Is this solution easy to apply for regular users ? I have no particular knowledge nor skills but I am facing this particularly annoying issue and it seems, you are the only solution on the internet !

@iuyfu yes, it is. Just go to this function (on your local laptop) and add the following line at the end of the function:

change_brightness(1)

Tambup avatar Dec 11 '23 19:12 Tambup

@iuyfu yes, it is. Just go to this function (on your local laptop) and add the following line at the end of the function:

change_brightness(1)

Hey, thanks for answering. I was not clear enough haha, I have no clue how to even access this function, could you tell me ?

iuyfu avatar Dec 12 '23 08:12 iuyfu

Hi! What do you mean by "access"?

Tambup avatar Dec 12 '23 09:12 Tambup

Hi,

I think I cannot express myself clearly because I do not really know what I am talking about, let me try to be understood.

You published a few lines of code that will fix this issue. For that to work, I need to copy/paste this command somewhere, don’t I? This is the part where I’m stuck. I do not know where I am supposed to copy/paste this command. Do I have to use the command prompt?

De : Alberto Tamburini @.> Envoyé : mardi 12 décembre 2023 10:05 À : mohamed-badaoui/asus-touchpad-numpad-driver @.> Cc : iuyfu @.>; Mention @.> Objet : Re: [mohamed-badaoui/asus-touchpad-numpad-driver] Working but no light up solution (maybe) (#71)

Hi! What do you mean by "access"?

— Reply to this email directly, view it on GitHubhttps://github.com/mohamed-badaoui/asus-touchpad-numpad-driver/issues/71#issuecomment-1851575602, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWLUEUD24H3P4K5DM5GYFODYJAM2PAVCNFSM5FEVM7G2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBVGE2TONJWGAZA. You are receiving this because you were mentioned.Message ID: @.@.>>

iuyfu avatar Dec 13 '23 08:12 iuyfu

Hi @iuyfu, maybe now I got your question, let's see: No, you don't have to type in the command prompt, but to change the code of that function in the source code. All you need to do, once the package is installed, is to change the file asus_touchpad.py in your laptop, by adding that specific line in the file itself. Rephrased, you need to edit that file in the same way you change a text document.

Tambup avatar Dec 13 '23 09:12 Tambup

Hi. Foremost, thank you for the driver script! I've installed it on model UM3402ya with m433ia layout and the numpad activates but the brightness function does not work -- numpad backlight is not visible despite making the edit to asus_touchpad.py ...

Is there an additional edit that needs to be made?

EDIT I tried another driver script that did not work (https://github.com/asus-linux-drivers/asus-numberpad-driver). After uninstalling that one and reinstalling the one from this repo, the touchpad now lights up! Unfortunately now the calculator launch is not working ... !

ransur0t avatar Dec 15 '23 18:12 ransur0t

Hi @ransur0t. It's difficult to backtrack, but my first idea for your original problem is that probably you have to restart the service after changing it.

About the calculator launch, unfortunately I can't guess anything.

Tambup avatar Dec 16 '23 13:12 Tambup

@Tambup thanks -- yet, I was sure to reboot, multiple times! When I used the debug command it suddenly worked ... which is essentially manually triggering the driver script.

Regarding the calculator launch, I think that the other repo installation script made a change to the launcher association between the calc and the touchpad ... I'll have to dig into that.

Unfortunately I have a larger issue -- the MediaTek 7922 802.11ax WiFi adapter has pronounced issues with reliable speeds, sometimes slowing to a trickle, and other times not activating after wake.

It is a known issue, so either I keep the laptop and replace it with an Intel AX210 or do a return and continue my search for a replacement for my aging XPS 13 (9360)!

EDIT I restored the calc toggle by running an isolated install script from https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver.git. The WiFi card mt7922 is a big problem though. CLI speedtest results show tremendous latency and packet loss, on top of recurrent crippled speeds ...

ransur0t avatar Dec 16 '23 16:12 ransur0t

Hi! What do you mean by "access"?

Hi, took me a long time to answer haha.

I am not familiar at all with github and I couldn't understand how to "use" this solution. I clicked on your link and downloaded the .py file but I have no clue what to do with it.

I might have missed an explanation page or something?

iuyfu avatar Apr 11 '24 16:04 iuyfu