numpad on touchpad doesn't work in ASUS Zenbook 14

Bug #1810183 reported by Steve Bicko
320
This bug affects 60 people
Affects Status Importance Assigned to Milestone
Linux
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10 alongside windows 10.
The numeric keypads are within the touchpad and are supposed to be turned on by a button on the touchpad. This works well in Windows but doesn't work in Ubuntu.
I have tried to search for any related problems/solutions online but I haven't been able to.
I will appreciate any suggestion or help.
Thanks,
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.10
InstallationDate: Installed on 2018-12-30 (4 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
Package: linux (not installed)
Tags: cosmic
Uname: Linux 4.19.11-041911-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.10
InstallationDate: Installed on 2018-12-30 (4 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
Package: linux (not installed)
Tags: cosmic
Uname: Linux 4.18.10-041810-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

information type: Private Security → Public
affects: alsa-driver (Ubuntu) → ubuntu
Paul White (paulw2u)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1810183

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Steve Bicko (cygubicko) wrote : ProcCpuinfoMinimal.txt

apport information

tags: added: apport-collected cosmic
description: updated
Revision history for this message
Steve Bicko (cygubicko) wrote : ProcEnviron.txt

apport information

Revision history for this message
Steve Bicko (cygubicko) wrote : ProcCpuinfoMinimal.txt

apport information

description: updated
Revision history for this message
Steve Bicko (cygubicko) wrote : ProcEnviron.txt

apport information

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.20 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".

Thanks in advance.

[0] https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20/

Revision history for this message
Warren Baird (wjbaird) wrote :

I just got the same laptop today, and am having the same problem (although I'm running Linux Mint 19.1 instead of Ubuntu directly). I'm still getting things set up, but will get the 4.20 kernel installed as soon as I can and try this...

Revision history for this message
Steve Bicko (cygubicko) wrote :

"kernel-bug-exists-upstream"

Tested the latest kernel (v4.20) as suggested by Kai-Heng but still it doesn't work!

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Seems like there's no driver support yet for this new feature.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please attach dmesg after the hotkey gets pressed.

Revision history for this message
BRUNET Delphine (af1ne) wrote :

Hello, I buy almost same asus Zenbook UX433FN and I have the same problem : numpad doesn't work.
I didn't find any driver running on ubuntu...
My config is ubuntu 18.04.2 LTS

Linux version 4.19.11-041911-generic (kernel@kathleen) (gcc version 8.2.0 (Ubuntu 8.2.0-12ubuntu1)) #201812191931 SMP Wed Dec 19 19:33:33 UTC 2018.

Thank for you're help :)

Revision history for this message
Fran Diéguez (frandieguez) wrote :
Download full text (8.8 KiB)

dmesg reports nothing when pushing the button to activate the button.

checking the evtest output for the touchpad I cant see anything interesting
$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Sleep Button
/dev/input/event2: Power Button
/dev/input/event3: Power Button
/dev/input/event4: AT Translated Set 2 keyboard
/dev/input/event5: PC Speaker
/dev/input/event6: Asus WMI hotkeys
/dev/input/event7: ELAN1402:00 04F3:30BF Touchpad
/dev/input/event8: ELAN1402:00 04F3:30BF Keyboard
/dev/input/event9: Video Bus
/dev/input/event10: Video Bus
/dev/input/event11: Logitech USB Receiver
/dev/input/event12: Logitech USB Receiver Mouse
/dev/input/event13: Logitech USB Receiver Consumer Control
/dev/input/event14: USB2.0 HD IR UVC WebCam: USB2.0
/dev/input/event15: Logitech USB Receiver System Control
/dev/input/event16: USB2.0 HD IR UVC WebCam: USB2.0
/dev/input/event17: HDA Intel PCH Headset Mic
/dev/input/event18: HDA Intel PCH Headphone
/dev/input/event19: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event20: HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event21: HDA Intel PCH HDMI/DP,pcm=8
/dev/input/event22: HDA Intel PCH HDMI/DP,pcm=9
/dev/input/event23: HDA Intel PCH HDMI/DP,pcm=10
/dev/input/event24: 00:16:94:31:EF:23
Select the device event number [0-24]: 7
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x4f3 product 0x30bf version 0x100
Input device name: "ELAN1402:00 04F3:30BF Touchpad"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 272 (BTN_LEFT)
    Event code 325 (BTN_TOOL_FINGER)
    Event code 328 (BTN_TOOL_QUINTTAP)
    Event code 330 (BTN_TOUCH)
    Event code 333 (BTN_TOOL_DOUBLETAP)
    Event code 334 (BTN_TOOL_TRIPLETAP)
    Event code 335 (BTN_TOOL_QUADTAP)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value 1307
      Min 0
      Max 2992
      Resolution 31
    Event code 1 (ABS_Y)
      Value 808
      Min 0
      Max 1496
      Resolution 31
    Event code 47 (ABS_MT_SLOT)
      Value 0
      Min 0
      Max 4
    Event code 53 (ABS_MT_POSITION_X)
      Value 0
      Min 0
      Max 2992
      Resolution 31
    Event code 54 (ABS_MT_POSITION_Y)
      Value 0
      Min 0
      Max 1496
      Resolution 31
    Event code 55 (ABS_MT_TOOL_TYPE)
      Value 0
      Min 0
      Max 2
    Event code 57 (ABS_MT_TRACKING_ID)
      Value 0
      Min 0
      Max 65535
  Event type 4 (EV_MSC)
    Event code 5 (MSC_TIMESTAMP)
Properties:
  Property type 0 (INPUT_PROP_POINTER)
  Property type 2 (INPUT_PROP_BUTTONPAD)
Testing ... (interrupt to exit)
Event: time 1556406853.164537, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 1779
Event: time 1556406853.164537, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 2941
Event: time 1556406853.164537, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 0
Event: time 1556406853.164537, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1556406853.164537, type 1 (EV_KEY), code 325 (BTN_TOOL_FINGER), value 1
Event:...

Read more...

Revision history for this message
Dustin Holloway (tehnatural) wrote :

+1 also, affected by this issue

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does acpi_listen show anything?

Revision history for this message
Dustin Holloway (tehnatural) wrote :

Not explicity for the numpad. It does, however, show entries when changing the keyboard backlight as well as the monitor backlight.

Revision history for this message
Nikita Rushmanov (nikita240) wrote :

+1 also affected by this. I have an ASUS ROG Zephyrus S which also had a touchpad/numpad.

I'm on Kubuntu 19.04. Kernel 5.0.0-16-generic.

Revision history for this message
egcmi (egcmi) wrote :

+1 also affected by this. Kubuntu 18.04 kernel 5.0.0-050000-generic on Asus ZenBook UX433FN

Revision history for this message
Carlos Higa (carloshiga) wrote :

+1
Using Zenbook UX433FN, Ubuntu 18.04, kernel 4.20.6-042006-generic.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Oh please run evtest on "AT Translated Set 2 keyboard", "Asus WMI hotkeys" or "00:16:94:31:EF:23".

Revision history for this message
Luis Felipe Quiñones Nieto (lfelipeqn) wrote :

+1

Same issue with my ASUS ZenBook UX433FN - Ubuntu 19.04 - Kernel 5.0.0-20-generic - numpad not working. This is one of the coolest features of this laptop and is not woking in Ubuntu. With Windows it works properly.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

+1

Same issue with my ASUS ZenBook UX433F - Debian 10 - Kernel 5.2.0 - numpad not working.

$ uname -a
Linux laptop 5.2.0

Brad Figg (brad-figg)
tags: added: cscc
Revision history for this message
Rokas (urbonasr) wrote :

Same with UX433FA and Ubuntu 18.04

Revision history for this message
Federico Aloi (federico-aloi) wrote :

Same here, UX433FN.

Linux asus-ux433fn 5.0.0-27-generic #28~18.04.1-Ubuntu SMP Thu Aug 22 03:00:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
ANDREA MATTANA (amattana) wrote :

Same here, UX433FN

$uname -a
Linux lambda 5.1.15-050115-generic #201906250430 SMP Tue Jun 25 04:33:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Szabó László (karlitosz) wrote :

Same here,

Linux szabolaszlo-ZenBook-UX433FN-UX433FN 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Robbie (lehthanis) wrote :

Wanted to drop in that I have an asus ROG zephyrus and no touchpad functionality for me either. Anything I can do to help?

Revision history for this message
costing (costing) wrote :

Same here, on Ubuntu 19.10 with kernel 5.3.0

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
$ uname -a
Linux zen 5.3.0-18-generic #19-Ubuntu SMP Tue Oct 8 20:14:06 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

acpi_listen doesn't see any event when the touchpad virtual button is pressed. Nor xev.

Revision history for this message
Pedro Diez (pedro-diez) wrote :

Same here, How can we help to solve it?

Revision history for this message
Adam Niedling (krychek) wrote :

Same with the ASUS Zenbook UX333FA on Ubuntu 19.10.

Revision history for this message
Di@bl@l (132ch204) wrote :

Hi everyone, same here with ubuntu 19.10 and with asus vivobook S14 X420F.

Revision history for this message
Agustina Osimani (aosimani) wrote :

+1 also affected by this.

Revision history for this message
hvico (horacio-vico) wrote :

I have an ASUS Zephyrus-GX501GI and I am affected by this issue (inability turn on the numeric pad).

Revision history for this message
WOZNIAK (pwozniak) wrote :

+1 (with kernel 5.3.0-24)
No message with "dmesg"
No input with "xinput test"

Really waiting for solution as this is a really useful feature from ASUS notebook

Revision history for this message
Ákos Blázsik (akosblazsik) wrote :

Similar defiled experience on ASUS Zenbook 14 UM431D with Ubuntu 19.10.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

+1 (with kernel 5.4.0-2-amd64)
No message with "dmesg"

:'(

Revision history for this message
Ktux (ti-orion) wrote :

+1 on ASUS Vivobook 14 R424D with kubuntu 18.04 or 19.04.
This feature is usefull for 14 inch notebook.

Revision history for this message
Robbie (lehthanis) wrote :

I've never written drivers before but if someone wants to work on this with me, I'd love to help out.

Revision history for this message
Piotr Arłukowicz (piotao) wrote :

Same problem here!!!

inxi -M -S
System: Host: haran Kernel: 5.3.0-40-generic x86_64 bits: 64 Desktop: KDE Plasma 5.16.5 Distro: Ubuntu 19.10 (Eoan Ermine)
Machine: Type: Laptop System: ASUSTeK product: ZenBook Pro Duo UX581GV_UX581GV v: 1.0 serial: <root required>
Mobo: ASUSTeK model: UX581GV v: 1.0 serial: <root required> UEFI: American Megatrends v: UX581GV.300
date: 08/29/2019

Revision history for this message
Misa (misamisa) wrote :

+1 affected by this.

Kernel: 5.5.9-050509-generic x86_64 bits: 64
  Desktop: Cinnamon 4.4.5 Distro: Linux Mint 19.3 Tricia
  Type: Laptop System: ASUSTeK product: ZenBook UX434FAC_UX433FAC v: 1.0
  serial: <root required>
  Mobo: ASUSTeK model: UX434FAC v: 1.0 serial: <root required>
  UEFI: American Megatrends v: UX434FAC.300 date: 09/20/2019

Revision history for this message
Robbie (lehthanis) wrote :

While not an actual driver...I found this utility on reddit...It's a python script that checks for the mode, and if you're in the num pad mode, it evaluates position of tap and sends numpad presses. Works for me!

https://gitlab.com/Thraen/gx735_touchpad_numpad/

Revision history for this message
Robbie (lehthanis) wrote :

My reply seems to have been removed, but this worked for me.
https://gitlab.com/Thraen/gx735_touchpad_numpad

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

With some code modification, this last solution just above works on a UX433 BUT this does not allow to switch the numpad light ON :'(
So very hard to use.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Even flashing Asus UX433 BIOS with last version had not effect on the numpad :-/

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

sudo dmidecode -t bios -t system

System Information
 Manufacturer: ASUSTeK COMPUTER INC.
 Product Name: ZenBook UX433FN_UX433FN
 Version: 1.0
 SKU Number:
 Family: ZenBook

BIOS Information
 Vendor: American Megatrends Inc.
 Version: UX433FN.309
 Release Date: 10/14/2019
 Address: 0xF0000
 Runtime Size: 64 kB
 ROM Size: 16 MB
 BIOS Revision: 5.13

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

:~$ uname -a
Linux laptop 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) x86_64 GNU/Linux

:~$ cat /proc/version
Linux version 5.4.0-4-amd64 (<email address hidden>) (gcc version 9.2.1 20200203 (Debian 9.2.1-28)) #1 SMP Debian 5.4.19-1 (2020-02-13)

Adam Niedling (krychek)
tags: added: fecal
Revision history for this message
Czumpf Zoltán (cuf87) wrote :
Download full text (4.0 KiB)

Same here!

czumpf@czumpf-laptop:~$ inxi -Fxzd
System: Kernel: 5.6.7-050607-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Gnome 3.36.1
           Distro: Ubuntu 20.04 LTS (Focal Fossa)
Machine: Type: Laptop System: ASUSTeK product: ZenBook UX431DA_UM431DA v: 1.0 serial: <filter>
           Mobo: ASUSTeK model: UX431DA v: 1.0 serial: <filter> UEFI: American Megatrends v: UX431DA.301 date: 09/11/2019
Battery: ID-1: BATT charge: 41.6 Wh condition: 45.6/46.8 Wh (97%) model: ASUSTeK UX431 status: Discharging
CPU: Topology: Quad Core model: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen+ rev: 1
           L2 cache: 2048 KiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 36732
           Speed: 1322 MHz min/max: 1400/2300 MHz Core speeds (MHz): 1: 1257 2: 1348 3: 1252 4: 1249 5: 1222 6: 1222 7: 1353
           8: 1272
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Picasso vendor: ASUSTeK driver: amdgpu v: kernel bus ID: 03:00.0
           Display: x11 server: X.Org 1.20.8 driver: amdgpu resolution: 1920x1080~60Hz
           OpenGL: renderer: AMD RAVEN (DRM 3.36.0 5.6.7-050607-generic LLVM 9.0.1)
           v: 4.6 Mesa 20.2.0-devel (git-65b05eb 2020-05-01 focal-oibaf-ppa) direct render: Yes
Audio: Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel v: kernel
           bus ID: 03:00.1
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A bus ID: 03:00.5
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
           bus ID: 03:00.6
           Sound Server: ALSA v: k5.6.7-050607-generic
Network: Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel bus ID: 01:00.0
           IF: wlp1s0 state: up mac: <filter>
Drives: Local Storage: total: 476.94 GiB used: 38.40 GiB (8.1%)
           ID-1: /dev/nvme0n1 vendor: KingMAX model: PCIe SSD 512GB size: 476.94 GiB
           Message: No Optical or Floppy data was found.
Partition: ID-1: / size: 58.81 GiB used: 22.73 GiB (38.7%) fs: ext4 dev: /dev/dm-1
           ID-2: /boot size: 945.6 MiB used: 306.4 MiB (32.4%) fs: ext4 dev: /dev/nvme0n1p5
           ID-3: /home size: 244.42 GiB used: 15.32 GiB (6.3%) fs: ext4 dev: /dev/dm-3
           ID-4: swap-1 size: 16.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2
Sensors: System Temperatures: cpu: 40.4 C mobo: N/A gpu: amdgpu temp: 40 C
           Fan Speeds (RPM): cpu: 0
Info: Processes: 384 Uptime: 38m Memory: 13.66 GiB used: 4.41 GiB (32.3%) Init: systemd runlevel: 5 Compilers: gcc: 9.3.0
           Shell: bash v: 5.0.16 inxi: 3.0.38

czumpf@czumpf-laptop:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ELAN1401:00 04F3:30F4 Mouse id=14 [slave pointer (2)]
⎜ ↳ ELAN1401:00 04F3:30F4 Touchpad id=15 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Vi...

Read more...

Revision history for this message
florian (florian-bouvet14) wrote :

Same here +1

Changed in linux (Ubuntu):
status: Confirmed → In Progress
status: In Progress → Confirmed
Revision history for this message
Jordi Puigdellívol (jordipuigdellivol) wrote :

Same here w/
- UX431FA
- Ubuntu 20.04

Thanks!

Revision history for this message
marqus (elgolembeppo) wrote :

Same here:

Linux VivoBook-ASUSLaptop-X421JQ-K433JQ 5.4.0-39-generic #43-Ubuntu SMP Fri Jun 19 10:28:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Linux version 5.4.0-39-generic (buildd@lcy01-amd64-016) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #43-Ubuntu SMP Fri Jun 19 10:28:31 UTC 2020

Thanks!

Revision history for this message
magellan (magellan-2000) wrote :

Same problem for me :
Asus Vivobook M433I Model S433IA-EB372T with AMD Ryzen 7 47000 processor
OS : Linux Mint 20 based on Ubuntu 20.04 with Kernel 5.8 RC6

How long will we have to wait for a solution ?
Is anybody still working on the driver ?
How can we help to solve this issue ?

I've bought this computer for 2 reasons : Octocore for virtualization and compact size with numpad to avoid using shift and letters combinations to type numbers.

So please, fix it because all 14" computers with numpad have to run Windows to use this useful device.

David.

Revision history for this message
Francisco Soares (fbsoares) wrote :

+1 same problem with me, asus UX425JA

5.4.0-45-generic #49-Ubuntu SMP Wed Aug 26 13:38:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Pilot6 (hanipouspilot) wrote :

On my x412da the touchpad is detected as 3 input devices:

ELAN1401:00 04F3:30F2 Touchpad
ELAN1401:00 04F3:30F2 Mouse
ELAN1401:00 04F3:30F2 Keyboard

The first one works as a touchpad. The other two don't.

The keyboard is the device we need to enable the numpad. It has the LED detected even with the correct trigger: NumLock.

The problem is we don't know what the Windows driver sends to the touchpad through i2c to enable this mode. We need either to hack the i2c bus on Windows, or get the information fro Elan people. I am afraid that they won't provide anything.

If anyone has enough knowledge of Windows to catch the command, I could start working on support in Linux.

Revision history for this message
magellan (magellan-2000) wrote :

Hello,

This is the first encouraging message I read on the subject! Unfortunately, I don't have the skills to help you but I hope with all my heart that someone will be able to help you so that we can finally enjoy our touchpad with the numberpad function.

Revision history for this message
ANDREA MATTANA (amattana) wrote : Re: [Bug 1810183] Re: numpad on touchpad doesn't work in ASUS Zenbook 14

I had the same thought reading the last message,
best wishes to everyone that will try to solve the problem that is sadly
ignored by the official developers.
Many thanks, If you need any kind of support providing logs of any other
things please let me know, I will be happy to help.
Cheers,
Andrea

Il giorno ven 18 set 2020 alle ore 10:30 magellan <
<email address hidden>> ha scritto:

> Hello,
>
> This is the first encouraging message I read on the subject!
> Unfortunately, I don't have the skills to help you but I hope with all
> my heart that someone will be able to help you so that we can finally
> enjoy our touchpad with the numberpad function.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

--

--

Andrea Mattana

Istituto Nazionale di Astrofisica
Istituto di RadioAstronomia

Stazione di Medicina
Via Fiorentina 3513
I-40059 Medicina (BO)
Tel +39-051-6965834
Fax +39-051-6965810

Revision history for this message
Pilot6 (hanipouspilot) wrote :

I got a link from kernel maintainers to a tool that can help to hack Windows i2c bus.

https://github.com/bentiss/SimplePeripheralBusProbe

If anyone wants to try to get the command, it will be very helpful.

Revision history for this message
magellan (magellan-2000) wrote :

I would be happy to help with this tool but it is too complicated for me... We have to compile the software. If an executable would exist, it will be more simple and I will try to help.

Revision history for this message
max (max-nikitin) wrote :

+1

Revision history for this message
Alexis Clairet (turboconnard) wrote :

Hi, I've got a vivobook X412D and I found this on stackoverflow:
https://gitlab.com/Thraen/gx735_touchpad_numpad/ .
It's not a driver but with a little tweaks in a minute, I managed to get numpad inputs (without leds on and by plugin a usb keyboard).
When "Num lock" on the usb keyboard is enabled I get correct values.

So my plan is to trigger "num lock" with a keyboard shortcut or special hot key (i don't know how) and find a way to enable the backlight leds... (I don't know how)

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@turboconnard That repo is not useful. It is a python prog that has nothing to do with the touchpad features. It emulates the touchpad capabilities. It can be done on any touchpad.

The only way to get the backlight on and us the fetaure properly is to find out how to enable it.

Revision history for this message
Alexis Clairet (turboconnard) wrote :

Yep, I know that... the fact is the "bug" is here for a long time and apparently it's not going to be resolved soon without the help of Asus. This thread is linked every time someone on the internet ask for help with there laptop so my idea was to investigate the hack/software solution instead of waiting for a proper hardware one.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@turboconnard Asus won't help. Their policy is not to support Linux. It can be resolved only by someone who can hack the Windows driver.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

It's a shame that Asus doesn't support Linux. They make great laptops that a lot of developers use because of it.
  If they continue not to support Linux, personally I will probably start to see what its competitors offer like Huawei for example.

Revision history for this message
hvico (horacio-vico) wrote :
Download full text (6.4 KiB)

Hello,

I tried to apply the I2C probe from Pilot6 link above
(https://github.com/bentiss/SimplePeripheralBusProbe).

Unfortunatelly I couldn't make it work. I was able to overload my DSDT table and compile it (using Intel iasl.exe as Microsoft's asl.exe generated a file which produced lots of errors at compile time). And then I even got the I2C Probe device in my Device Manager (installed the binary inf/sys driver that you can download from the releases page, no compilation needed). But I couldn't manage to modify the DSDT table file for this particular device, in order to bypass the ELAN touchpad/numpad through the I2C probe.

Maybe someone with some experience in this I2C stuff can help me to modify that DSDT table file properly. This is the section I suppose refers to the ELAN touchpad (the complete file has nearly 70.000 lines):

 Scope (_SB.PCI0.I2C1)
    {
        Device (ETPD)
        {
            Name (SBFB, ResourceTemplate ()
            {
                I2cSerialBusV2 (0x004C, ControllerInitiated, 0x00061A80,
                    AddressingMode7Bit, "\\_SB.PCI0.I2C1",
                    0x00, ResourceConsumer, _Y34, Exclusive,
                    )
            })
            Name (SBFI, ResourceTemplate ()
            {
                Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
                {
                    0x0000005F,
                }
            })
            CreateWordField (SBFB, \_SB.PCI0.I2C1.ETPD._Y34._ADR, BADR) // _ADR: Address
            Name (_ADR, One) // _ADR: Address
            Name (ETPH, Package (0x01)
            {
                "ELAN1404"
            })
            Name (FTPH, Package (0x05)
            {
                "FTE1001",
                "FTE1200",
                "FTE1200",
                "FTE1300",
                "FTE1300"
            })
            Method (_HID, 0, NotSerialized) // _HID: Hardware ID
            {
                If ((TPDI & 0x04))
                {
                    BADR = 0x15
                    Return (DerefOf (ETPH [TPHI]))
                }

                If ((TPDI & 0x10))
                {
                    BADR = 0x15
                    Return (DerefOf (FTPH [TPHI]))
                }

                Return ("ELAN1000")
            }

            Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */) // _CID: Compatible ID
            Name (_UID, One) // _UID: Unique ID
            Name (_S0W, 0x03) // _S0W: S0 Device Wake State
            Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
            {
                If ((Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */))
                {
                    If ((Arg2 == Zero))
                    {
                        If ((Arg1 == One))
                        {
                            Return (Buffer (One)
                            {
                                 0x03 // .
                            })
                        }
                        Else
                        {
                            Return (Buffer (One)
                            {...

Read more...

Adam Niedling (krychek)
tags: added: groovy
Revision history for this message
praveenpathak (praveen2600) wrote :

Same issue with me.

Asus Zenbook 14 UX425E, i7 11th gen

5.8.0-36-generic #40~20.04.1-Ubuntu SMP Wed Jan 6 10:15:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
hydrogencl (hydrogencl) wrote :

I have reported this issue to ASUS support. If they don't reply, we have to demand them solve it by the support website:

https://www.asus.com/support/product/contactus/services/questionform/?lang=us-en

This issue belongs to ASUS.

Revision history for this message
Evgeny Brazgin (xapienz) wrote :

@hydrogencl
> I have reported this issue to ASUS support

Thank you! I also requested tech support for the drivers for ExpertBook B9.

Today I got the reply:

> In regards to drivers for Ubuntu Linux 20.10, you will be required to contact Linux directly for drivers and tools for the fingerprint sensor and Numpad as we do not support Linux.

So they are hoping that Linux developers will write drivers themselves :D
I asked them to request the drivers or specs from Elantech, let's see what they say next.

Revision history for this message
VanVan (w-o) wrote :

Maybe it is possible to ask them directly :
http://www.emc.com.tw/emc/en/Product/Solution/TouchpadSolutions

Revision history for this message
santicas20 (santiagocasas) wrote :

Hello,
having the same problem here with my Asus Zenbook 14. It would be great to have such a nice feature in Linux. Let me know if I can be of any help to provide logs or test some patches.

Revision history for this message
Karl Edwards (kre843) wrote :

+1 same for me

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

2 year old thread. I don't think Asus or some other hardware manufacturer wants to fix it anymore. Once again Asus has shown that the linux community is the least of its concerns. Too bad :/

Revision history for this message
ANDREA MATTANA (amattana) wrote :

It should advertise the fact that the Asus notebooks do not support linux
and features do not work. Maybe it would push Asus to change strategy.

Il giorno dom 21 feb 2021 alle ore 10:05 Badaoui Mohamed <
<email address hidden>> ha scritto:

> 2 year old thread. I don't think Asus or some other hardware
> manufacturer wants to fix it anymore. Once again Asus has shown that the
> linux community is the least of its concerns. Too bad :/
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

--

--

Andrea Mattana

Revision history for this message
Lucas Santana Carlota (lucassnta90) wrote :

So sad, Asus doesn't care about linux users, that's the reality ... Our only hope is a community developed driver for this feature.

Revision history for this message
Julian Oertel (clunphumb) wrote :

Hello,

I've had success in probing the device with the aforementioned tool (https://github.com/bentiss/SimplePeripheralBusProbe). Sadly I'm not sure how to analyze the data. Hopefully someone else is able to make something out of it.
I recorded the command which enables the numpad and the command to disable it. However, there are some more interactions which seem to happen regularly.
If anything else is needed I will be happy to try to provide the data.

Revision history for this message
Julian Oertel (clunphumb) wrote :

Hello,

I was able to take a more in-depth look at the log and ran some additional tests. I was able to determine the command which is used for turning on the lights of the numberpad:

i2ctransfer -f -y 0 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad

To turn them off, one can use:
i2ctransfer -f -y 0 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x00 0xad

Still, the numberpad isn't working properly but I hope someone is now able to make it work. I will keep trying to figure this out, but I'm not an expert in this at all.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@clunphumb This is a progress. The numpad is detected as a keyboard. If you enable NumLick there it may start working. In this case it won't be too hard to do a kernel patch. But now I am too busy these days to dig into it. Probably next month I will be able to look into it.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

I confirm that the command works for me too. But the numberpad doesn't seem to send input events.
In this state a python script should work, but it is not a way of doing it properly. The numberpad should work as a keyboard. It is detected already as one. Maybe another command is needed to enable input.

Revision history for this message
ANDREA MATTANA (amattana) wrote :

UX433F Ubuntu 18.04 doesn't work

sudo i2ctransfer -f -y 0 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00
0x0d 0x14 0x03 0x00 0xad
Error: Sending messages failed: Remote I/O error

Cheers,
Andrea

Il giorno lun 15 mar 2021 alle ore 11:01 Pilot6 <email address hidden>
ha scritto:

> I confirm that the command works for me too. But the numberpad doesn't
> seem to send input events.
> In this state a python script should work, but it is not a way of doing it
> properly. The numberpad should work as a keyboard. It is detected already
> as one. Maybe another command is needed to enable input.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

--

--

Andrea Mattana

Revision history for this message
coper (copernic75) wrote :

same bug in ubuntu 20.10...
last post seems to be a progress..
Thanks

Revision history for this message
VanVan (w-o) wrote :

I can confirm that it's working for me by changing the bus number from 0 to 2.

i2ctransfer -f -y 2 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad

Revision history for this message
ANDREA MATTANA (amattana) wrote :

worked changing address to 1:

light on:
sudo i2ctransfer -f -y 1 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00
0x0d 0x14 0x03 0x01 0xad

light off:
sudo i2ctransfer -f -y 1 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00
0x0d 0x14 0x03 0x00 0xad

nothing else but big progress! :)

Thanks

Il giorno lun 15 mar 2021 alle ore 18:56 VanVan <email address hidden>
ha scritto:

> I can confirm that it's working for me by changing the bus number from 0
> to 2.
>
> i2ctransfer -f -y 2 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00
> 0x0d 0x14 0x03 0x01 0xad
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

--

--

Andrea Mattana

Revision history for this message
VanVan (w-o) wrote :

For those who want to test if it works, just enter the following command:

sudo apt-get install -y i2c-tools;for f in /dev/i2c-*; do sudo i2ctransfer -f -y ${f:9} w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad; done

Revision history for this message
magellan (magellan-2000) wrote :

Waouh ! It works ! I never thought it will be possible on Linux since there is no Asus support. I don't think there is special command to display the numbers. I think that when the command is sent to illuminate the pad, a program detect where the user tap on the numpad to display the number. The solution is near. Congratulation to you ! I'm very happy !

Revision history for this message
magellan (magellan-2000) wrote :

I used this command :
for f in /dev/i2c-*; do sudo i2ctransfer -f -y ${f:9} w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad; done

And I get theses errors :

Error: Adapter does not have I2C transfers capability
Error: Adapter does not have I2C transfers capability
Error: Adapter does not have I2C transfers capability
Error: Sending messages failed: Input/output error
Error: Sending messages failed: Input/output error
Error: Sending messages failed: Remote I/O error

I've tried to replace f by 1 to 6 to find what is the unique command that is working for me... it seems I don't understand how to do that.

Can somebody explain me ? I just want to find the right command for my computer to help all the people who have the same computer to illuminate it. Just for the eyes actually but so nice !

Revision history for this message
VanVan (w-o) wrote :

It is normal to see these errors, this command sends the instruction to turn on the digital pad to all bus number.
However, if this command did not turn on the numpad, it means that none of the bus number are compatible, you should have the same problem manually.

Revision history for this message
Julian Oertel (clunphumb) wrote :

At this point I would like to point out that i2ctransfer can, as stated in the manpages, cause serious damage to your i2c devices. Again, I'm not an expert at this and please correct me, if I'm wrong, but trying all bus addresses seems kind of risky to me. Instead, you can try to use the following:

sudo i2cdetect -l

This will print out a list of all available i2c bus addresses.
In my case one of the lines is:

i2c-0 i2c Synopsys DesignWare I2C adapter

This is the touchpad and you should see something similar. After that you can try the original command with the correct address.

With this knowledge one should be able to use the python script, which was linked earlier in this bug report and use a python library to incorporate the command. However, I won't follow that approach and instead, I will try to keep on working on a driver. If anyone has experience in this, I would greatly appreciate any help or advice.

Revision history for this message
VanVan (w-o) wrote :

It is extremely unlikely that this would cause problems, it would have to match exactly another bus command interpreted differently by another device, and we all have almost the same laptop.
However, here is the same command improved to take into account your remarks, and thus send the commands only to the numpad:

sudo apt-get install -y i2c-tools;for f in `sudo i2cdetect -l | grep DesignWare | cut -f 1`; do sudo i2ctransfer -f -y ${f:4} w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad; done

Revision history for this message
Petr Nosek (petr-nosek) wrote :

Hi,

  I can confirm, this works for me:

  light on:

  i2ctransfer -f -y 2 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad

  light off:
  i2ctransfer -f -y 2 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x00 0xad

  My numpad is on on bus number 2.

  my laptop model is: Asus ZenBook Flip 13 UX362FA

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@clunphumb

My guess is that some command is send through i2c during Windows boot process when the driver detects the device. This command enables the keyboard. Then the button at the upper right corner starts working as a NumLock button. You are catching another command that lights up the numbers. It is sent when that virtual key is pressed.

But things may be worse, and the firmware can't work by itself. There may be an analog of the python script in the driver.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

If the touchpad firmware can't do it by itself, or we can't find a way to enable it, it is not too difficult to write a kernel driver that will use touchpad events and convert them into keyboard events.

Another option is to create a user space driver, like xderver-xorg-input-libinput, xserver-xorg-input-evdev, etc that will catch touchpad events and work similarly to the python script.

Revision history for this message
magellan (magellan-2000) wrote :

Ok, I think this issue will be solved in a few days !

Thanks to you, I finally found the magic lines.

My laptop is : Asus-VivoBook-ASUSLaptop-X421IA-M433IA

The command "sudo i2cdetect -l" return theses lines :

i2c-3 smbus SMBus PIIX4 adapter port 1 at 0b20 SMBus adapter
i2c-1 smbus SMBus PIIX4 adapter port 0 at 0b00 SMBus adapter
i2c-6 i2c AMDGPU DM aux hw bus 0 I2C adapter
i2c-4 i2c AMDGPU DM i2c hw bus 0 I2C adapter
i2c-2 smbus SMBus PIIX4 adapter port 2 at 0b00 SMBus adapter
i2c-0 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-5 i2c AMDGPU DM i2c hw bus 1 I2C adapter

And now, to turn on the numpad I use this command :

sudo i2ctransfer -f -y 0 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad

And to turn the numpad off this one :

sudo i2ctransfer -f -y 0 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x00 0xad

As I told before, I succeed to turn it on with the "all ports test" command but wanted to know the good one and I started to test 1 to 6 but could not guess it was 0 !

I really think that there is no hardware to handle the numpad since without the correct driver installed, there is no way use the lightpad. So, i'm sure there is a little program running in background to detect the zone pressed in the numpad and display the corresponding number.

Someone already wrote such a program and if I could get it work, I would have printed numbers on a transparent sticky paper and place it on the numpad. But people who succeed in turning on the numpad will probably make us a kind of .deb to install and get this thing work ! I trust you !

Whatever, many thanks for this hack ! Even if I can't use it for now, I can give the illusion that Linux do the job too ! :-)

Revision history for this message
coper (copernic75) wrote :

light on:

  i2ctransfer -f -y 2 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad

  light off:
  i2ctransfer -f -y 2 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x00 0xad

worked for me on asus UX333F wwith ubuntu 20.10

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

Also affected by this issue. Asus Zenbook Flip 13 UX363EA. Ubuntu 20.04.

I can turn on/off the numberpad lights with the commands:

i2ctransfer -f -y 14 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad
i2ctransfer -f -y 14 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x00 0xad

But the numberpad don't works as expected (as a numeric pad).

I have this

# i2cdetect -l
i2c-3 i2c i915 gmbus dpb I2C adapter
i2c-10 i2c i915 gmbus tc6 I2C adapter
i2c-1 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-8 i2c i915 gmbus tc4 I2C adapter
i2c-6 i2c i915 gmbus tc2 I2C adapter
i2c-13 i2c AUX E/port E I2C adapter
i2c-4 i2c i915 gmbus dpc I2C adapter
i2c-11 i2c AUX A/port A I2C adapter
i2c-2 i2c i915 gmbus dpa I2C adapter
i2c-0 smbus SMBus I801 adapter at efa0 SMBus adapter
i2c-9 i2c i915 gmbus tc5 I2C adapter
i2c-7 i2c i915 gmbus tc3 I2C adapter
i2c-14 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-5 i2c i915 gmbus tc1 I2C adapter
i2c-12 i2c AUX D/port D I2C adapter

I have no experience with the i2c tools, and I don't know if here is the right place to ask, but how can I found this part of the command, to apply to my hardware: "w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad"? The first half of the command I undestood, but no how to found the rest.

Revision history for this message
Kris (amishspacenavy) wrote :

The original driver must carry out this behavior:
When the touchpad is tapped,
Check if the Touchpad Numlock is engaged.
If engaged, use tap position to decide on psuedo-number pad input.
If not engaged, click mouse.

NumLk on/off: yes; a program with an appropriate hotkey csn send the i2c commands.

Touchpad position to numpad function: we have this in Python, and could be refactored

"On touchpad tap, check if Touchpad Numlock is engaged, and do stuff." -Not yet

We have all these things, except for the ugly work of "run program whenever touchpad is tapped."

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :
Revision history for this message
ANDREA MATTANA (amattana) wrote :

I have the same laptop, I have changed the i2c address in the python code
according to my i2c address where the on/off command works but the service
installed after the reboot doesn't work.
What's wrong?
When my laptop (Ubuntu 18.04) starts has the function key enabled (the blue
led is on), I also tried to turn off (fnct+esc) and pressed F8 but nothing
changed.
Same result disconnecting the second HDMI monitor.
Cheers,
Andrea

Il giorno ven 2 apr 2021 alle ore 15:40 Badaoui Mohamed <
<email address hidden>> ha scritto:

> I just adapted the solution offered on Reddit
> (
> https://www.reddit.com/r/linuxhardware/comments/f2vdad/a_service_handling_touchpad_numpad_switching_for/
> )
>
> for my Asus UX433 laptop and it works fine.
>
> Source code:
> https://github.com/mohamed-badaoui/ux433-touchpad-numpad
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

--

--

Andrea Mattana

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Do you have module i2c_dev enabled ?
lsmod | grep i2c_dev

You should try to launch the command manually and see if you have any debug logs
/usr/bin/python3 /usr/bin/ux433_touchpad_numpad.py

Hope this helps.

Revision history for this message
magellan (magellan-2000) wrote :

Same thing for me :

Can't find touchpad, code 0

I have an Asus M433IA and I have change the I2C address according to mine :

ON:i2ctransfer -f -y 0 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad

OFF:i2ctransfer -f -y 0 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x00 0xad

But nothing is working. F8 don't illuminate the numpad.

Hope someone will help.

Many thanks to Mohamed for sharing is work.

Revision history for this message
magellan (magellan-2000) wrote :

After looking to the program, it search "ELAN", "Mouse" or "AT Translated Set 2 keyboard" to set the detected numpad value to 1 But mine is like this :

Synopsys DesignWare I2C adapter I2C adapter

I'm going to update the program so that it detect mine. But I think the best solution is to bypass the detection of the numpad since people using the program should have on on their computer.

Revision history for this message
ANDREA MATTANA (amattana) wrote :
Download full text (4.5 KiB)

Synopsys DesignWare I2C adapter I2C adapter is the mine as well,

lsmod | grep i2c_dev
do not report anything...

I have libevdev (0.9) on my python3.6 installation

$ python3 ux433_touchpad_numpad.py
Traceback (most recent call last):
  File "ux433_touchpad_numpad.py", line 1, in <module>
    from libevdev import Device, InputEvent, EV_ABS, EV_KEY, EV_LED, EV_SYN
  File "/usr/local/lib/python3.6/dist-packages/libevdev/__init__.py", line
23, in <module>
    from .device import Device, InputAbsInfo
  File "/usr/local/lib/python3.6/dist-packages/libevdev/device.py", line
29, in <module>
    from .event import InputEvent
  File "/usr/local/lib/python3.6/dist-packages/libevdev/event.py", line 23,
in <module>
    from .const import EventType, EventCode
  File "/usr/local/lib/python3.6/dist-packages/libevdev/const.py", line
413, in <module>
    _load_consts()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/const.py", line
338, in _load_consts
    Libevdev() # classmethods, need to make sure it's loaded at once
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line
395, in __init__
    super(Libevdev, self).__init__()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line 76,
in __init__
    self._load()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line 85,
in _load
    func = getattr(cls._lib, name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libevdev.so.2: undefined symbol:
libevdev_event_value_get_name

This is telling that libevdev_event_value_get_name method is available
only on version 1.6.0:
https://github.com/Evidlo/remarkable_mouse/issues/38

but my pip3 cannot find that version.

Thanks,
cheers,
Andrea

Il giorno ven 2 apr 2021 alle ore 18:05 magellan <email address hidden>
ha scritto:

> After looking to the program, it search "ELAN", "Mouse" or "AT
> Translated Set 2 keyboard" to set the detected numpad value to 1 But
> mine is like this :
>
> Synopsys DesignWare I2C adapter I2C adapter
>
> I'm going to update the program so that it detect mine. But I think the
> best solution is to bypass the detection of the numpad since people
> using the program should have on on their computer.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> Proble...

Read more...

Revision history for this message
magellan (magellan-2000) wrote :

OK ! Here we are !
I found how to adapt the program for my laptop ! But now I have to deal with some keys that don't display the right character.... I'm working on it and when it will be done I will share the adapted program !

Many thanks to all this community, you are the best !

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan Good news ^^
Depending on the laptop model, the touchpad keys area are a little different.
For example on UX433 we have not (%) key and the comma (.) key is not exactly at the same place.

Probably we would have to make different programs for each kind of models

Revision history for this message
magellan (magellan-2000) wrote :

YES ! And I didn't succeed in finding the EV_KEY.KEY_ value for "%" and "=".
Can you help me please ?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

for equal, test with EV_KEY.KEY_EQUAL

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

or with KEY_KPEQUAL

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

and for percentage (%) try with EV_KEY.KEY_APOSTROPHE

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :
Revision history for this message
magellan (magellan-2000) wrote :

Many thanks for the list, but I think the game is not over yet !
EQUAL does not work and I get a "+" instead.
Anyway, I'm going to try to replace "," by dot since your list help me.
Many thanks Mohamed, but I still need to find the right codes for "%" and "=".

Revision history for this message
magellan (magellan-2000) wrote :

Well... KPDOT instead of KPCOMMA does the same thing, it display "," instead of "."
I would like to replace the coma by the dot to avoid having to use shift + "," on my french keyboard to display a dot.

Revision history for this message
magellan (magellan-2000) wrote :

where can i find the full official list of the key codes ?

Revision history for this message
magellan (magellan-2000) wrote :

Well I made a mistake. Equal is now working.
I just need to find the "%" symbol and it will be done !

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

the key code you search for % is EV_KEY.KEY_APOSTROPHE

probably you forgot to enable it on the device, add the line
dev.enable(EV_KEY.KEY_APOSTROPHE)

hope this helps

Mohamed

Revision history for this message
magellan (magellan-2000) wrote :

Well here is the last KEY_CODE list :

https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/input-event-codes.h

But I didn't find the code to display the "%" symbol.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan-2000 If you share your code, it would be easier to help you.
I tried with EV_KEY.KEY_APOSTROPHE and it prints the expected "%" symbol

Weird that it s not working for you.

Revision history for this message
magellan (magellan-2000) wrote :

Oh Yeah! It worked like a charm !

Now the ASUS M433IA has a working numpad on Linux !

You're amazing Mohamed ! Many many thanks !

Now I wonder how to share my program with other people...

Revision history for this message
magellan (magellan-2000) wrote :

Just another problem I just find : in Excel, when I press enter, instead of going to the next cell at the bottom, it goes up. Any idea ?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Cool ^^ It s working also for UX433 users.

Yes it s the normal behavior of Left Shift+Enter. (it goes up)
I will update the program to not use LeftShift for enter key.
Meanwhile, you can cancel this effect hitting leftshift again.

Revision history for this message
magellan (magellan-2000) wrote :

I'm waiting for your update ! That's pretty cool !

Revision history for this message
magellan (magellan-2000) wrote :

I've tried this :

                if value != EV_KEY.KEY_ENTER
                    events.append(InputEvent(EV_KEY.KEY_LEFTSHIFT, 1))
                events.append(InputEvent(value, 1))
                events.append(InputEvent(EV_SYN.SYN_REPORT, 0))
                udev.send_events(events)

But I get a syntax error. I'm trying to fix this as soon as possible because as a teacher, I have hundred notes to enter...

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan-2000

I didn't found how to avoid this behavioour of this enter hit which goes up on a spreadsheet.
Instead of that, I just hit keyboard enter key to go normally down.

I update the repo to enable the top right touchpad area in order too activate numpad (instead F8)

https://github.com/mohamed-badaoui/ux433-touchpad-numpad

Revision history for this message
magellan (magellan-2000) wrote :

Ok Mohamed... it's really bad luck for me :-(

I'm still happy with it but I would like to understand why there is the need of left-shift enter and I'm sure there is a way to avoid it.

Anyway, Now I have a tool to enter number easily thanks to you and all the previous workers who permit the numpad to work on Linux.

Like you achieved to make this work you will succeed in finding a way to make the enter key work as usual.

But I have a new problem : sometimes, the numpad act as I'm pressing and holding backspace ! All the text I was writing is erased...

Does anyone else have this problem ?

Revision history for this message
magellan (magellan-2000) wrote :

Another idea : we could add the down key after enter to do the same thing.

Revision history for this message
magellan (magellan-2000) wrote :

It is a goog idea to keep the F8 key because the top right area is a little capricious in my case... not working everytime.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan-2000 I replaced the leftshift by numlock key.
It works the same way but this time enter hit do not goes up on a spreadsheet.

Also I comment the code part which enable numpad through the touchpad right top corner, F8 seems an handier solution.

Mohamed.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan-2000 fixed the press and holding backspace behaviour.

I restored the use off the corner top right area to light on the touchpad because in some application, F8 can be already use for another use case.

Mohamed.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

We now have a working solution for some models written in Python, but this is only a workaround.
It would be nice if someone experienced with Linux drivers could work on a cleaner solution.

If I could help in any way, please don't hesitate to contact me.

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

Hello Mohamed,
Many thanks for your work but bad news for me : I have a french keyboard and the enter key does not work anymore and the "%" symbol is replaced by "ù".

I still need your help, sorry.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Oh I haven't tested the% symbol because it doesn't exist on the ux433 model.
But I think you will need to add the Left Shift key to the event array, specifically for this symbol.

For the Enter key, it's really weird. Also try with the Shift key but it should have worked without it otherwise

Can you share your code on a github repository?

Mohamed

Revision history for this message
magellan (magellan-2000) wrote :

Ok Mohamed. I send you the code for the M433IA in attachment.

Revision history for this message
magellan (magellan-2000) wrote :

When it will be finished, you deserve to share it on your github. It is your work, I only have adapted the code to match my computer.

Revision history for this message
magellan (magellan-2000) wrote :

I will send you a complete ZIP archive like yours with the right picture of the computer etc.

Revision history for this message
magellan (magellan-2000) wrote :

OK, I've found the mistake for the enter key : I was trying to use KEY_ENTER instead of KEY_KPENTER to solve the go up issue and made a mistake with copy/paste operations.

Now I just need to fix the % key with left shift. If you can help me to make a new version of the program for both qwerty and azerty keyboard it would be nice for users.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

: D Your work is the adaptation of another adaptation ^^. It's not really my job.
I'm not even a python developer.
I can add your work to the repository if you want and specify your credit if someone wants to contact you.

Especially since it's just a workaround. It does not take into account the type of keyboard (Azerty or Qwerty)

This program is above all a proof of concept which will motivate (I hope) an experienced developer on linux drivers to make a cleaner solution.

Revision history for this message
magellan (magellan-2000) wrote :

Ok Mohamed,

I still need your help. I have tried this :

 if value == EV_KEY.KEY_APOSTROPHE
                    events = [
                         InputEvent(EV_KEY.KEY_LEFTSHIFT, 1),
                         InputEvent(value, 1),
                         InputEvent(EV_SYN.SYN_REPORT, 0)
                    ]
                else:
                    events = [
                        InputEvent(EV_KEY.KEY_NUMLOCK, 1),
                        InputEvent(value, 1),
                        InputEvent(EV_SYN.SYN_REPORT, 0)
                    ]

But I get this error :

SyntaxError: invalid syntax

What is wrong in my code ?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

you miss colons (:) at the end of your if condition

Revision history for this message
magellan (magellan-2000) wrote :

Well, I'm still in trouble : With my solution above, after typing the "%" when I press another key, the keyboard become crazy like shift is always pressed.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@mohamed-badaoui

A real solution will be to get keyboard events directly from the touchpad. Your script interprets clicks as keyboard events depending on an area. These touchpads declare themselves as keyboards to i2c, that means that most likely they can send the events.

This would be a perfect solution, because each device should know its areas, available keys, etc.

The only thing to develop will be to a add detection to the kernel code, and sending commands to enable it.

If this is not possible, then I can't see an easy clean solution. We will need to have a user space driver, that will do the same as the python script, but it will depend on each piece of hardware. And also there should be different drivers for xorg and wyland. That looks too complex to me and will never get into the distro.

Revision history for this message
magellan (magellan-2000) wrote :

It seems I need to add an event key to release the left shift after typing the % symbol. How can I do that ? Any idea of this new issue ?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@ magellan-2000 Don't forget to add your condition on the release event code part (arount line 160 in your code)

@hanipouspilot Thank you for your clarifications. This python script is really not ideal because it does not take into account the type of keyboard for example and all the different types of key layouts

Revision history for this message
magellan (magellan-2000) wrote :

Well done Mohamed !

Just another (and I hope the last) problem : when I use the corner top right area to switch off the numpad I get backspace instead and sometimes, this act like I don't release the key and continue to delete characters.

Can you have a look at my code Mohamed ?

Revision history for this message
magellan (magellan-2000) wrote :

After investigations, the corner top right area used to toggle the numpad work with a very tiny area at the extreme top right corner. How is it working on your side ?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

It works the same way. That's why I generally do not use it. I prefer the F8 key to avoid conflict between backspace and numpad switch.

This is not an ideal solution. I think that we could turn on the numpad through ic2 command as it was done to turn on the numled. But I do not neither have a windows machine and neither know how ec2 works :/

Revision history for this message
Petr Nosek (petr-nosek) wrote :

Hi,

  thank you for you work. I have this model: ASUS ZenBook UX362FA

  I found that touchpad device in /proc/bus/input/devices has different name. So touchpad detection does not work as I expect.

  I'm attaching devices.txt.

  My touchpad device is:
`
I: Bus=0018 Vendor=04f3 Product=30dc Version=0100
N: Name="ELAN1401:00 04F3:30DC Touchpad"
P: Phys=i2c-ELAN1401:00
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-ELAN1401:00/0018:04F3:30DC.0002/input/input21
U: Uniq=
H: Handlers=mouse3 event10
B: PROP=5
B: EV=1b
B: KEY=e520 10000 0 0 0 0
B: ABS=2e0800000000003
B: MSC=20

`

but your script detects this:

`
I: Bus=0018 Vendor=04f3 Product=284e Version=0100
N: Name="ELAN9008:00 04F3:284E"
P: Phys=i2c-ELAN9008:00
S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN9008:00/0018:04F3:284E.0001/input/input15
U: Uniq=
H: Handlers=mouse0 event6
B: PROP=2
B: EV=1b
B: KEY=400 0 0 0 0 0
B: ABS=3273800000000003
B: MSC=20

`

after small updating on line in your code, it works for my model.

line 24:

`if touchpad_detected == 0 and "Name=\"ELAN" in line and "Touchpad" in line:`

Revision history for this message
magellan (magellan-2000) wrote :

I've tried to optimise the code so I removed the release test and send both release codes for Left Shift and numlock. But sometimes, I still have the issue with backspace that don't release the key and continue to delete characters. And the corner top right area used to toggle the numpad still detect touch in a very tiny area at the extreme top right corner like a 5 pixels square.

Revision history for this message
magellan (magellan-2000) wrote :

@Mohamed :

There is something I forgot to say : When I put my finger above the first line, for example above the 7 number it still display 7 and it is the same for the backspace. On my numpad, there is an area af about 8mm which should not react to anything. So How can I resize the entire area ? With this modification, when I will press the toggle area to switch On/Off the numpad, it will never interact with backspace.

Thanks for your help Mohamed. I'm trying to do my best but as a simple user and not programmer, I don't understand all the code of this program.

Revision history for this message
magellan (magellan-2000) wrote :

Last update :

I made this change in the program :

# Ignore numpad touch
            if (x > 0.95 * maxx) and (y < 0.05 * maxy):

Replaced by :

# Ignore numpad touch
            if (x > 0.95 * maxx) or (y < 0.09 * maxy):

Now when I touch the numbad above the numbers, it is not detected and since the toggle button on the corner is on this area, things seems to work better.

Revision history for this message
magellan (magellan-2000) wrote :

Well, it's not perfect but it's better than nothing.

For all people searching the numpad driver for Asus M433IA laptop with French AZERTY Keyboard on Linux, here it is !

Enjoy !

Thanks to Pilot6 (hanipouspilot), Julian Oertel (clunphumb), Badaoui Mohamed (mohamed-badaoui) and all other contributors we did it ! Some did a nice retro engineering and others programmed a working solution for us.

My little contribution is to adapt all this work to my laptop. I hope it will help some owners like me.

Anyway, Shame on Asus !

Revision history for this message
magellan (magellan-2000) wrote :

Please Mohamed, share my work on your Github. I wish you a nice Easter egg weekend ! Thanks to all for the gift (a kinder surprise egg with the numpad driver inside). ;-)

Revision history for this message
cedrichappy (galletcedric) wrote :

Hello Magellan,

I have an asus zenbook ux434fa linux mint(kernel 5.10) and I have the same num pad as you but when I install the driver sh install.sh the num pad light is on but not working.
Is there a command to enter before installing the .py like
i2ctransfer -f -y 2 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xad?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :
Revision history for this message
magellan (magellan-2000) wrote :

@cedrichappy (galletcedric) : Because I forgot to modify the readme file, you thought my laptop was the same than yours but it isn't tha case. Mine is M433IA.

@Badaoui Mohamed (mohamed-badaoui)

Please update the github. I have made a request to modify the readme file on your Github that you have to agree.

Revision history for this message
magellan (magellan-2000) wrote :

One last thing Mohamed, in the title, add in brackets that it is for AZERTY keyboard.

Revision history for this message
cedrichappy (galletcedric) wrote :

Asus zenbook UX434FA kernel 5.10

No works for me the num pad light on with f8 but no display anythings

Revision history for this message
magellan (magellan-2000) wrote :

@cedrichappy

Did you install the required packages and run the required commands ?

sudo aptitude install i2c-tools
sudo modprobe i2c-dev
sudo i2cdetect -l

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan changes done.
Cedric has not the same model, but he has the same keyboard layout as yours (with '%' and '=' symbols and with the comma on a different place)

Enjoy your weekend.

Revision history for this message
magellan (magellan-2000) wrote :

@cedrichappy

And before running the installation script, you have to install libevdev :

sudo pip3 install libevdev

Good Luck !

Revision history for this message
ANDREA MATTANA (amattana) wrote :
Download full text (5.1 KiB)

Any hints for me?

amattana@lambda:~$ sudo aptitude install i2c-tools
[sudo] password for amattana:
i2c-tools is already installed at the requested version (4.0-2)
i2c-tools is already installed at the requested version (4.0-2)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

amattana@lambda:~$ sudo modprobe i2c-dev
amattana@lambda:~$ sudo i2cdetect -l
i2c-3 i2c i915 gmbus dpc I2C adapter
i2c-1 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-6 i2c DPDDC-A I2C adapter
i2c-4 i2c i915 gmbus misc I2C adapter
i2c-2 i2c i915 gmbus dpb I2C adapter
i2c-0 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-5 i2c i915 gmbus dpd I2C adapter
amattana@lambda:~$ lsmod | grep i2c_dev
amattana@lambda:~$ modprobe i2c-dev
amattana@lambda:~$ sudo modprobe i2c-dev
amattana@lambda:~$ cd work/ux433-touchpad-numpad/
amattana@lambda:~/work/ux433-touchpad-numpad$ ls
Asus-ZenBook-UX433FA.jpg ux433_touchpad_numpad.py
install.sh ux433_touchpad_numpad.service
README.md
amattana@lambda:~/work/ux433-touchpad-numpad$ python3
ux433_touchpad_numpad.py
Traceback (most recent call last):
  File "ux433_touchpad_numpad.py", line 1, in <module>
    from libevdev import Device, InputEvent, EV_ABS, EV_KEY, EV_LED, EV_SYN
  File "/usr/local/lib/python3.6/dist-packages/libevdev/__init__.py", line
23, in <module>
    from .device import Device, InputAbsInfo
  File "/usr/local/lib/python3.6/dist-packages/libevdev/device.py", line
29, in <module>
    from .event import InputEvent
  File "/usr/local/lib/python3.6/dist-packages/libevdev/event.py", line 23,
in <module>
    from .const import EventType, EventCode
  File "/usr/local/lib/python3.6/dist-packages/libevdev/const.py", line
413, in <module>
    _load_consts()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/const.py", line
338, in _load_consts
    Libevdev() # classmethods, need to make sure it's loaded at once
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line
395, in __init__
    super(Libevdev, self).__init__()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line 76,
in __init__
    self._load()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line 85,
in _load
    func = getattr(cls._lib, name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libevdev.so.2: undefined symbol:
libevdev_event_value_get_name

Il giorno sab 3 apr 2021 alle ore 16:25 Badaoui Mohamed <
<email address hidden>> ha scritto:

> @magellan changes done.
> Cedric has not the same model, but he has the same keyboard layout as
> yours (with '%' and '=' symbols and with the comma on a different place)
>
> Enjoy your weekend.
>
> --
> You received this bug notification because you are...

Read more...

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@amattana your package is possiblbly too old. If so upgrade your version.
Mine is:
sudo dpkg -l| grep libevdev
ii libevdev2:amd64 1.9.0+dfsg-1 amd64 wrapper library for evdev devices

On debian buster, it is installed by
aptitude install libevdev2

Revision history for this message
cedrichappy (galletcedric) wrote :

@magellan yes I have installed what is needed because I tried Mohamed's driver before yours but without success so he advised me to ask you the question since we have the same pad number

Revision history for this message
magellan (magellan-2000) wrote :

@cedrichappy : Ok Cedric, I'm sure we'll find a solution for you.

But for me, if you succeed in lighting on the numpad, you should at least display the numbers. If it was not the case I could help you but in your case, I am not qualified enough to help you. Sorry.

Revision history for this message
magellan (magellan-2000) wrote :

@mohamed : Please could you help me to remove the toggle ON/OFF from the numpad ? I prefer activate it only with F8 because sometimes it switch on despite I don't want. Thanks.

Revision history for this message
magellan (magellan-2000) wrote :

And yes, it is not the perfect solution. For all readers, before installation you must know that sometimes, backspace key is holding even if you release the key and it erase all you are typing... That's why it is better to activate it only if it is needed. We made a huge progress last days and I'm sure we'll find a way to make thinks more reliable. So if you want a perfect working solution you have to wait. Anyway, like I told before, it is better than nothing.

Revision history for this message
Jul (j-vienne) wrote :

I confirm your workaround is working fine with the Asus UX431F model, Linux
5.4.0-70-generic
I used the default script ux433_touchpad_numpad.py.
Thank you for your hard work!

Le sam. 3 avr. 2021 à 17:20, Badaoui Mohamed <email address hidden> a
écrit :

> @amattana your package is possiblbly too old. If so upgrade your version.
> Mine is:
> sudo dpkg -l| grep libevdev
> ii libevdev2:amd64 1.9.0+dfsg-1 amd64 wrapper library for evdev devices
>
> On debian buster, it is installed by
> aptitude install libevdev2
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi Magellan,

I fixed the backspace repetition error.
I also added in the installer the auto-detection of ic2 adapter. So no need to manually modify anymore the number inside the python script.

@Cedric Your issue is due to a bad detection of your touchpad device.
Can you give us the results of that command?
grep -B1 -A5 -i -E "(ELAN|asus)" /proc/bus/input/devices

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

Ok Mohamed you're the best. But about the top right corner, is it still activated ? Because on my computer, sometimes, if I just pass my hand over to type text, it light up. You add auto-detection, this is magic but how about my azerty keyboard ? Do I need to make changes ?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

If someone has already installed the previous version, before re-running .install.sh, you have to clean old installation with following commands:

sudo systemctl stop ux433_touchpad_numpad
sudo systemctl disable ux433_touchpad_numpad
sudo rm -rf /lib/systemd/system/ux433_touchpad_numpad.service
sudo rm -rf /usr/bin/ux433_touchpad_numpad.py

Mohamed

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Magella just clean your previous installation with the right command.
For you, I think it is something like:
sudo systemctl stop M433IA_touchpad_numpad
sudo systemctl disable M433IA_touchpad_numpad
sudo rm -rf /lib/systemd/system/M433IA_touchpad_numpad.service
sudo rm -rf /usr/bin/M433IA_touchpad_numpad.py

And just run sudo ./install.sh

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Magellan I forgot to precise you that I removed the sub folder for your version. All scripts are in the root directory:

https://github.com/mohamed-badaoui/ux433-touchpad-numpad

So run sudo ./install.sh from this directory (not the old sub directory).

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

Sorry but it's completely buggy for me. The numpad type numbers alone and erase them alone after. Looks like some key is still pressed... In my version I resize the ignore area to fit my numpad so when I put my fingers above the number on the first line it is not detected. Now it is no more the case. I return to the old version to have something working.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan

You need to ensure that you have uninstalled previous version, else if you have the 2 scripts running at the same time, one would conflict with another

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

There's no other script, all was removed (files et services). My last version was the most stable. I just need to remove the toggle area on the numpad but don't understand how.

Revision history for this message
magellan (magellan-2000) wrote :

@Mohamed : Could you just tell me how to remove the toggle area on the numpad in your code ?

Revision history for this message
cedrichappy (galletcedric) wrote :

asus zenbook UX434FA

Hello everyone I have my fully functional digital keyboard thanks to mohamed.

https://github.com/mohamed-badaoui/ux433-touchpad-numpad

Many thanks Mohamed!!!

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

So for the moment that workaround has been tested and works fine for these asus versions:

- UX433 (without extra symbols)
- UX431F (without extra symbols)
- UX434FA (with % and = symbols)

https://github.com/mohamed-badaoui/ux433-touchpad-numpad

Mohamed

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Magellan

the code part you would like to disable, is around line 130, that one :

       if e.matches(EV_KEY.BTN_TOOL_FINGER) and e.value == 0:
            # Check if numlock was hit #
            if (x > 0.95 * maxx) and (y < 0.05 * maxy):
                finger=0
                if not numlock:
                    numlock = True
                    d_t.grab()
                    subprocess.call(onCmd, shell=True)
                else:
                    numlock = False
                    d_t.ungrab()
                    subprocess.call(offCmd, shell=True)
                continue

Revision history for this message
magellan (magellan-2000) wrote :

Yes Thanks Mohamed... I've just find it by myself 2 minutes ago !

Revision history for this message
magellan (magellan-2000) wrote :

Because your last update does not work on my computer, I still have one last problem with mine and the backspace. I don't know how you managed to solve the problem in your last update because as it is not usable for me, I didn't investigate... but for me, we must avoid key repetition for all area. To make this thing work, when we press an area, as long as the finger is not removed from the numpad, no other character should be taken into account.

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

Just testing the script for ZenBook UX363EA_UX363EA, with ubuntu 20.04. The available script named touchpad_numpad_m433ia.py works for me with a minor fix, as I can describe:

1) install.sh script detects the correct interface of the numeric pad:
# bash install.sh
Testing interface i2c-1 : failed
Testing interface i2c-14 : sucess ...

Then I could test edit boot python scripts I found inside the folder and test it.

2) For touchpad_numpad_m433ia.py I have edited the lines 9 and 10, fixing the interface to turn ON/OFF.

I edited the line 25 to:
if touchpad_detected == 0 and "Name=\"ASUE" in line and "Touchpad" in line:

Known issues:

My numeric pad has % key, but don't works. On the code as mapped to "APOSTROPHE".

I checked here, https://elixir.bootlin.com/linux/v5.11.11/source/include/uapi/linux/input-event-codes.h , to try to fix it, but I have not found the corresponding entry.

Please if you known how to fix it, let me know.

https://www.asus.com/Laptops/For-Home/ZenBook/Zenbook-Flip-13-UX363-11th-gen-Intel/

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi Santiago,

You ve got an Qwerty keyboard.
You have to replace APOSTROPHE by KEY_5 (APOSTROPHE works for azerty keyboard)

Mohamed.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@magellan

The current version is not really different than the older.
I let you compare the 2 versions. You ll see that it is barely a reorder of code part to manage correctly the events.

Mohamed.

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

Thanks Mohamed.

I have tested your suggestion, but don't worked for me. Maybe I'm not doing it right. I have a qwerty keyboard, Spanish distribution.

I have replaced line 99:
dev.enable(EV_KEY.KEY_APOSTROPHE)

by:
dev.enable(EV_KEY.KEY_5)

And line 234
value = EV_KEY.KEY_APOSTROPHE
by:
value = EV_KEY.KEY_5

I also noticed this piece of code, that I'm not sure if I need to change too (line 249):
 # Send press key event #
                if value == EV_KEY.KEY_KEY_APOSTROPHE :
                    events = [
                         InputEvent(EV_KEY.KEY_LEFTSHIFT, 1),
                         InputEvent(value, 1),
                         InputEvent(EV_SYN.SYN_REPORT, 0)
                    ]
                else:
                    events = [
                        InputEvent(value, 1),
                        InputEvent(EV_SYN.SYN_REPORT, 0)
                    ]

I'm doing it right?

Very thanks for your help here :D

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

I've just update install.sh to take into account qwerty keyboard.

You can re run sudo ./install.sh and it should be fine.
else you have to find and replace all KEY_KEY_APOSTROPHE by KEY_5

Normally the % symbol is on the 5 key ?

Mohamed

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

Ohhh!!

Understood now :D

Around line 249 I introduced a typo :(

Now it is fixed and working.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Ok cool ^^
workaround tested and works fine for these asus versions:

- UX433 (without extra symbols)
- UX431F (without extra symbols)
- UX434FA (with % and = symbols)
- UX363EA (with % and = symbols)

https://github.com/mohamed-badaoui/ux433-touchpad-numpad

Mohamed

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

Great. You can introduce in the install.sh a option for ZenBook UX363EA_UX363EA. And a new .py file to this notebook.

If you do this I test it to check that it's ok.

For touchpad_numpad_m433ia.py I have edited the lines 9 and 10, fixing the interface to turn ON/OFF. Because my touchpar interface is the 14, as we can check here:

# i2cdetect -l
i2c-3 i2c i915 gmbus dpb I2C adapter
i2c-10 i2c i915 gmbus tc6 I2C adapter
i2c-1 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-8 i2c i915 gmbus tc4 I2C adapter
i2c-6 i2c i915 gmbus tc2 I2C adapter
i2c-13 i2c AUX E/port E I2C adapter
i2c-4 i2c i915 gmbus dpc I2C adapter
i2c-11 i2c AUX A/port A I2C adapter
i2c-2 i2c i915 gmbus dpa I2C adapter
i2c-0 smbus SMBus I801 adapter at efa0 SMBus adapter
i2c-9 i2c i915 gmbus tc5 I2C adapter
i2c-7 i2c i915 gmbus tc3 I2C adapter
i2c-14 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-5 i2c i915 gmbus tc1 I2C adapter
i2c-12 i2c AUX D/port D I2C adapter

And I edited the line 25 to:
if touchpad_detected == 0 and "Name=\"ASUE" in line and "Touchpad" in line:

I have replaced line 99:
dev.enable(EV_KEY.KEY_APOSTROPHE)

by:
dev.enable(EV_KEY.KEY_5)

Line 234
value = EV_KEY.KEY_APOSTROPHE
by:
value = EV_KEY.KEY_5

And line 249:
  if value == EV_KEY.KEY_APOSTROPHE :
by:
  if value == EV_KEY.KEY_5 :

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Thanks for the feedback.
Normally it s already working.
The install.sh does all what you mentioned and copy the python modified script in folder /usr/bin

Check the result inside /usr/bin/asus_touchpad_numpad.py

Thanks,

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

Ok... I'm the "Calimero" Boy. On M433IA, even if I don't press anything,when I'm using Firefox, it comes back to previous pages like I press backspace. There is a problem with this key ! If only I known how to eliminate key repetition, I think lot of problems will disappear.

Revision history for this message
magellan (magellan-2000) wrote :

Nobody else have problem with their numpad ? All is working like a charm without any bug ?

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

Cool. I can't believe that my notebook is working so fine now...

In line 73 of install.sh we can list the model UX363EA as a option, after M433IA.

Thanks for your time and patience.

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

@magellan

I can confirm that for me is working like a charm without any bug by now.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@mohamed-badaoui

I confirm the script works for X412DA laptop.

I have a small suggestion. Change touchpad actions from taps to clicks. That will solve the problem with accidentally turning it on, etc. At least the toggle button.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Santiago
I just remove the mention of models because I think there is no need to precise a list of working models, as it depends mainly on the numpad layout and not really on the asus model.

@Pilot6
Currently there is 2 ways to light up the numpad (F8 and top right corner).
Using the touchpad click is a good idea but i don't know if all models has click touchpad feature.

Personaly I've tested it on UX433, on spreadsheet and text during today and on this laptop, it works without any bug.

@Magellan Sorry but I can't help, I don't see why it's buggy on your model M433IA.

So finally, workaround tested and works fine for these asus versions:
- X412DA (without extra symbols)
- UX433 (without extra symbols)
- UX431F (without extra symbols)
- UX434FA (with % and = symbols)
- UX363EA (with % and = symbols)

https://github.com/mohamed-badaoui/ux433-touchpad-numpad

Mohamed

Revision history for this message
magellan (magellan-2000) wrote :

I'm going to make a second try with the last Mohamed version :-(

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@mohamed-badaoui

I think they have the click feature. The event is BTN_LEFT. I tested it and it works. I think it is a good idea to use it for turning it on. I don't know how it works in Windows.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Pilot

If we use the click to enable the numpad, that means that a user who want to do a simple click with his touchpad would in fact turn on his numpad?

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

For thus interrested, here is a mod version with only F8 to activate the numpad and no detection above the first line. The mohamed version capture 7,8,9 and / even if we click above the numbers. On this numpad there is a blank area above with 2 icons on the up corners. On the left for adjusting the light (let's give up on Linux) and one on the right to toggle the numpad on and off.

The workaround way seems to be more sensitive than on windows OS. That's why I disable the toggle area on the numpad.

Things seems to work better... but Firefox always go to previous pages sometimes even if I didn't press anything.

This is definitively a workaround or perhaps mine has a problem I didn't known since I never use it before !

Once again, Mohamed has taken on this project with brio and it is a real success.

Many thanks.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@mohamed-badaoui

It works with clicks. The event is BTN_LEFT.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

No, it doesn't mean that simple clicking will disable the touchpad. We match the area and the click. If you replace BTN_TOOL_FINGER with BTN_LEFT, you'll see it. Some small changes will be needed to polish.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Pilot6
Oh ok my bad.

On Asus Ux433 the click is possible only on the bottom part of the touchpad.
So it could not work for the first keys row.

Mohamed

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@mohamed

Did you try it? It shouldn't matter where you click.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Ok I tried it, it seems workable solution.

If I correctly understood, you suggest to listen on the click event (instead of the tap event) of the top right corner to turn on and enable the numpad?

Personally I m not a huge fan, certainly because on UX433 model, the click is a little hard, above all on the top area. (I never use click on touchpad, I use double tap)

What the others think about this feature?

If it is something that interest you, I could add it.

Mohamed.

Revision history for this message
Santiago A Mendez de PAula (dharmamaster) wrote :

@mohamed

Tested for ZenBook UX363EA. I can confirm that is working very fine.

Just executed the script and voilá!!

1234567590.+-*/=%

Perfect.

Thanks very much.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@mohamed

Yes, it is a little "hard" to click, I also never use it while normally using the touchpad. But in this case it seems perfect. it prevents accidentally enabling the numpad, etc. I completely switched to clicking and it seems good. You can post this solution for testing by other people.

I am using clicking for other buttons too, but this doesn't matter much. But the top right corner seems to be the correct solution. How does it work on Windows?

Revision history for this message
Pilot6 (hanipouspilot) wrote :

Also this can be quite easily be added to Linux kernel. But it needs some testing for different models.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Pilot6

As far as I know, on Windows it works the same way just by touching the top right corner.
And I agree it s not the best user experience solution.

That's why at the beginning I searched a keyboard combination with no conflict to enable it and I went for F8.

But F8 is sometimes used by some application. I believe on spreadsheets, F8 allows to make a cells selections.

Persoally I m going to test this solution some days to see if I accidentally enable the touchpad.
For the moment it occurred once by accident.

For sure, using click for all buttons on asus UX433 is very hard, we type faster by touching than by clicking.

Mohamed.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

otherwise what we could try is activation by a longer tap of the upper right corner.
For example for 2 seconds. I think It might be possible but I don't know if that would be a good solution.

Mohamed.

Revision history for this message
ANDREA MATTANA (amattana) wrote :
Download full text (4.6 KiB)

with ubuntu 18.04 doesn't work.

unable to find newest version of libevdev2

amattana@lambda:~$ sudo dpkg -l| grep libevdev
ii libevdev2:amd64 1.5.8+dfsg-1
                    amd64 wrapper library for evdev devices
amattana@lambda:~$ sudo aptitude install libevdev2
libevdev2 is already installed at the requested version (1.5.8+dfsg-1)
libevdev2 is already installed at the requested version (1.5.8+dfsg-1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

amattana@lambda:~/work/ux433-touchpad-numpad$ python3
ux433_touchpad_numpad.py
Traceback (most recent call last):
  File "ux433_touchpad_numpad.py", line 1, in <module>
    from libevdev import Device, InputEvent, EV_ABS, EV_KEY, EV_LED, EV_SYN
  File "/usr/local/lib/python3.6/dist-packages/libevdev/__init__.py", line
23, in <module>
    from .device import Device, InputAbsInfo
  File "/usr/local/lib/python3.6/dist-packages/libevdev/device.py", line
29, in <module>
    from .event import InputEvent
  File "/usr/local/lib/python3.6/dist-packages/libevdev/event.py", line 23,
in <module>
    from .const import EventType, EventCode
  File "/usr/local/lib/python3.6/dist-packages/libevdev/const.py", line
413, in <module>
    _load_consts()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/const.py", line
338, in _load_consts
    Libevdev() # classmethods, need to make sure it's loaded at once
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line
395, in __init__
    super(Libevdev, self).__init__()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line 76,
in __init__
    self._load()
  File "/usr/local/lib/python3.6/dist-packages/libevdev/_clib.py", line 85,
in _load
    func = getattr(cls._lib, name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libevdev.so.2: undefined symbol:
libevdev_event_value_get_name

Il giorno sab 3 apr 2021 alle ore 17:20 Badaoui Mohamed <
<email address hidden>> ha scritto:

> @amattana your package is possiblbly too old. If so upgrade your version.
> Mine is:
> sudo dpkg -l| grep libevdev
> ii libevdev2:amd64 1.9.0+dfsg-1 amd64 wrapper library for evdev devices
>
> On debian buster, it is installed by
> aptitude install libevdev2
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search fo...

Read more...

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@andrea

In the last Ubuntu LTS, there is the required version.
Have a look for example at https://ubuntu.pkgs.org/20.04/ubuntu-main-arm64/libevdev-dev_1.9.0+dfsg-1_arm64.deb.html

Mohamed.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :
Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@andrea
Unfortunately in your case the minimal required version is 1.6+ of libevdev

Mohamed

Revision history for this message
Stephan Wesuls (stephan81) wrote :

Great work. i try it on my asus vivobook tm420. it have a numberpad. i try this workaround but it dont work. can you help me?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi @Stephan,

It hasn't been tested yet on this model but it should worked.
You have the keyboard layout with % and = symbols ?

If you ve done all the pre requisites,
sudo aptitude install libevdev2
sudo aptitude install i2c-tools
sudo modprobe i2c-dev
sudo i2cdetect -l
sudo pip3 install libevdev

can you print the result of that command:
grep -B1 -A5 -i -E "(elan|asu)" /proc/bus/input/devices

Can you succeed to turn on your numpad with F8 or top right corner?

Mohamed.

Revision history for this message
ANDREA MATTANA (amattana) wrote :

Thanks a lot, for the moment I'm happy to understand things and know that
the issue is overcome (not thanks to ASUS...) but I cannot upgrade to the
new Ubuntu for now (too many python 2 scripts to convert to py3 yet)

Cheers,
Andrea

Il giorno lun 5 apr 2021 alle ore 12:30 Badaoui Mohamed <
<email address hidden>> ha scritto:

> @andrea
> Unfortunately in your case the minimal required version is 1.6+ of libevdev
>
> Mohamed
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

--

--

Andrea Mattana

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@Andrea,

If you cannot upgrade right now, did you try pinning solution?

https://<email address hidden>/how-to-install-packages-from-a-newer-distribution-without-installing-unwanted-6584fa93208f

Mohamed

Revision history for this message
ANDREA MATTANA (amattana) wrote :

not yet...let's try...I'll keep you updated! ;)

Il giorno lun 5 apr 2021 alle ore 15:31 Badaoui Mohamed <
<email address hidden>> ha scritto:

> @Andrea,
>
> If you cannot upgrade right now, did you try pinning solution?
>
> https://<email address hidden>/how-to-install-packages-from-a-newer-
> distribution-without-installing-unwanted-6584fa93208f
> <https://<email address hidden>/how-to-install-packages-from-a-newer-distribution-without-installing-unwanted-6584fa93208f>
>
> Mohamed
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

--

--

Andrea Mattana

Revision history for this message
Stephan Wesuls (stephan81) wrote :

Hi @Mohamed

i have the keyboard layout with % and = symbols. here is my grep output

stephan@stephan-vivobook:~$ grep -B1 -A5 -i -E "(elan|asu)" /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Asus WMI hotkeys"
P: Phys=asus-nb-wmi/input0
S: Sysfs=/devices/platform/asus-nb-wmi/input/input12
U: Uniq=
H: Handlers=rfkill kbd event4
B: PROP=0
B: EV=100013
B: KEY=1000000080000 0 0 0 0 181606f00900000 8280027801701000 e000000000000 0
--
I: Bus=0018 Vendor=04f3 Product=3145 Version=0100
N: Name="ASUE140C:00 04F3:3145 Mouse"
P: Phys=i2c-ASUE140C:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-1/i2c-ASUE140C:00/0018:04F3:3145.0002/input/input22
U: Uniq=
H: Handlers=mouse2 event8
B: PROP=0
B: EV=17
B: KEY=30000 0 0 0 0
--
I: Bus=0018 Vendor=04f3 Product=3145 Version=0100
N: Name="ASUE140C:00 04F3:3145 Touchpad"
P: Phys=i2c-ASUE140C:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-1/i2c-ASUE140C:00/0018:04F3:3145.0002/input/input23
U: Uniq=
H: Handlers=mouse3 event9
B: PROP=5
B: EV=1b
B: KEY=e520 10000 0 0 0 0
--
I: Bus=0018 Vendor=04f3 Product=3145 Version=0100
N: Name="ASUE140C:00 04F3:3145 Keyboard"
P: Phys=i2c-ASUE140C:00
S: Sysfs=/devices/platform/AMDI0010:03/i2c-1/i2c-ASUE140C:00/0018:04F3:3145.0002/input/input24
U: Uniq=
H: Handlers=sysrq kbd event10 leds
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff800000000007ff febeffdfffefffff fffffffffffffffe
--
I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="Asus Touchpad/Numpad"
P: Phys=
S: Sysfs=/devices/virtual/input/input28
U: Uniq=
H: Handlers=kbd event18
B: PROP=0

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Ok you ve got the right device

What do the install.sh return ?

sudo ./install.sh

Revision history for this message
Stephan Wesuls (stephan81) wrote :

Hello Mohamed,

it returns:

Testing interface i2c-1 : sucess
What is your keyboard layout?
1) Qwerty
2) Azerty
3) Quit
Please enter your choice: 1

What is your Numpad layout model like?
1) Numpad without % and = symbols 3) Quit
2) Numpad with % and = symbols
Please enter your choice: 2
Copy asus python driver to /usr/bin/asus_touchpad_numpad.py
Add asus touchpad service in /lib/systemd/system/
i2c-dev
Asus touchpad service enabled
Asus touchpad service started

Revision history for this message
Stephan Wesuls (stephan81) wrote :

Dear Mohamed,

now it works. On the upper right corner a short press and it works. k you very much. How can i donate to you?

Greeting Stephan

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

My contribution to solving this problem is the best compensation I can get.
I often say: give with one hand and you will receive generously with the other.
I believe that we are all part of a whole, and sometimes when we can, it should not be forgotten.
Very happy that it worked for you @Stephan

Mohamed.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@all

I just added an upgrade of python driver to recognize the right i2c number interface by the python script itself (instead of being searched by the install.sh)

The reason of this modification, is because sometimes the i2c number interface change.
at beginning, mine was 2 and become 1.
In such case, the previous python driver had stopped working.

In current version, i2c number interface is detected by the python script when it searchs for the touchpad device number. This way is more reliable.

If you experience this case, I recommend you to download the current version and execute again
sudo ./install.sh

(no need for uninstall, the script will just be replaced)

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

Ok Mohamed, You're making the best all in one workaround. I suggest you to improve it according to this : You should add an option in the installer so we can choose to activate or not the toggle on/off on the numpad.

And in my case, for the M433IA,add the line " if (x > 0.95 * maxx) or (y < 0.09 * maxy):" in your code like this :

# During tap #
        if finger == 1:
        # Ignore numpad touch
            if (x > 0.95 * maxx) or (y < 0.09 * maxy):
                continue
            finger = 2
            try:

This allow the tiny blank area above the first top line to be consider as it is and not as an extension of the line below. This avoid typing an 8 when we put our finger above it. Let's be pro till the end.

And about my case, one more time, all works great instead the backspace key. When I'm browsing pages with firefox, sometimes the program act like I was pressing this key and firefox consider it as a previous page command. Sometimes I'm only reading pages and the numpad in idle mode, light on without I make anything and some seconds after start to display previous pages until it reach the first one.

Could you try to make a bugfix ? perhaps my numpad is too sensitive... not perhaps, certainly... and I'm sure that if the numpad only display on character at time, this mean that if we press the 6 area, it displays just a 6 and to display another, we should have to remove the finger and press the area again to display another. Actually, if we press an area for more than one second, it display a lot of numbers or symbols.

I think the solution is here.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi David,

To summarize, you suggest 2 features;

1/ add an option to disable the up right corner switch,
2/ disable press and hold feature of keystrokes,

However I have the impression that you leave your numpad always on, so that s why when you type on your main keyboard sometimes you hit some numpad keys accidentally.
But even on Windows, such numpad are often off because of its particular location, its could not be used while you type on the main keyboard.

Considering the features above, I agree that press and hold keys stroke is useless. I don't see usecase when we would like to type several times a same number for example (multiple 9 at a time) BUT it is interesting to keep it for the backspace and the enter to make multiple supression and enters at a time.

Don't know what the community thinks about this.

Mohamed.

Revision history for this message
magellan (magellan-2000) wrote :

I don't leave the numpad always on. And while I'm typing it is always off. But when I need it, I dont switch it off after typing a few numbers and that's the problem. Ok I agree with you, it should be on only when we have a lot of numbers to type or when we use the calculator.

About keys stroke, We must keep it for the natural keyboard but it should not used with the numpad. I don't want to impact all the system and keyboard, just suppress the repetition with the numpad if it is possible.

Revision history for this message
magellan (magellan-2000) wrote :

A little surprise for me today : My laptop started with the numpad light turned on but key were not available. When I pressed F8, the numpad light switched Off but the touchpad was activated. I have to restart the computer in order all goes well again.

Revision history for this message
Leesa (lkr) wrote :

Numpad works on Asus UX325EA after changing touchpad detection from ELAN to ASUE (Maybe this should be installer option?)
Be careful when testing - each service restart creates new keyboard (not so important in real life use)
Numpad activation by simple touch is not so comfortable, it will be better to use long tap (1 sec or more) to avoid accidental touch (especially using old-style side scrolling)

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi Leeda,

Indeed, the detection of the touchpad must correspond to ASUE and not to ELAN (for a touchpad without additional symbols).
This has been fixed.

Regarding the numeric keypad switch, I also think that a long press (>500 ms) could be interesting and quite easy to implement. As soon as I have a little bit of time, I will upgrade it.

Personally, it's been almost 1 week since I tested it and it works very well for the UX433 model.

Mohamed.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

This python driver has been tested and works fine for these asus versions at the moment:
- X412DA (without extra symbols)
- UX433 (without extra symbols)
- UX431F (without extra symbols)
- UX333FA (without extra symbols)
- UX434FA (with % and = symbols)
- UX325EA (with % and = symbols)
- UX363EA (with % and = symbols)
- UX393 (with % and = symbols)
- M433IA (with % and = symbols)
- TM420 (with % and = symbols)

With that list, we could auto-detect the keyboard layout.

Another suggestion is too disable F8, because it is potentially conflictual
(see https://github.com/mohamed-badaoui/ux433-touchpad-numpad/issues/7)
Once long tap feature on numpad switch is implemented, F8 could be removed ? What do you think ?

Mohamed.

Revision history for this message
Leesa (lkr) wrote :

F8 was the first thing I commented out, I vote for removal or maybe installation option for those who really need it?

I hope someday we will find a way to turn on and off real numpad keyboard device.

Great job, Mohamed!

Revision history for this message
Luis Felipe Quiñones Nieto (lfelipeqn) wrote :

I can confirm UX433F without extra symbols working properly turning On/Off
option from the numpad button is also working without issues.

Thanks, Mohamed!

El mié, 7 abr 2021 a las 16:00, Leesa (<email address hidden>)
escribió:

> F8 was the first thing I commented out, I vote for removal or maybe
> installation option for those who really need it?
>
> I hope someday we will find a way to turn on and off real numpad
> keyboard device.
>
> Great job, Mohamed!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

Revision history for this message
Dennis (bitparade) wrote :

Works properly on my new VivoBook_ASUSLaptop X435EA_S435EA (with % and = symbols).
Maybe instead of "QWERTY" you could write "QWERTY / QWERTZ", because it makes no difference for the % and works on my German keyboard as well without any issues.
I was a bit surprised for a short time because it was not clear to me at first what effects the query for the keyboard layout would have.

Revision history for this message
magellan (magellan-2000) wrote :

Hello everybody.

Today I've decided to completely remove the workaround driver from my machine because every time I open firefox and navigate, after one or two minutes, the numpad switch on itself without me pressing any key and immediately, the computer act like I'm pressing and holding backspace. For firefox it is considered as a previous page command. Even if I try to switch it off with F8, it switch on again itself.

Please, all of you, try to navigate with Firefox and comme back here to write some feedback. For me, the game is over until this issue can be solved.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi David,

Personnaly it's been more than a week that I use it with Firefox as my main browser, and I never experienced what you describe.
Even, I don't see how it could be possible.

I think that your issue, is related to another reason (firefox config or plugins, F8 keystroke malfunction, touchpad default ...)

Mohamed.

Revision history for this message
milaad (the1milad) wrote :

hi is it work on ASUS Zenbook ux433FQ?

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

@milaad

Works fine on UX433's models.
Mine is UX433FN.

Mohamed

Revision history for this message
coper (copernic75) wrote :

Works like a charm on ASUS UX333F..

Thanks a lot...

Revision history for this message
magellan (magellan-2000) wrote :

I've tried to install the last Github version but it is not working for me. No way to light up the numpad. I'm desperate :-(

Revision history for this message
milaad (the1milad) wrote :

i cant find libevdev2 package for manjaro , any help?

Revision history for this message
ANDREA MATTANA (amattana) wrote :

It is not available on Ubuntu 18.04,need to upgrade distro to 20.04 or try
to upgrade just the lib from the 20.04 repos.

Il sab 10 apr 2021, 16:50 milaad <email address hidden> ha scritto:

> i cant find libevdev2 package for manjaro , any help?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>

Revision history for this message
Karl Edwards (kre843) wrote :

The fix from mohamed-badaoui is working as expected for me & I have no problems with Firefox @magellan-2000

The only incapability I noticed (I haven't read through all of these comments so I apologize if this is a repeat) is that once the numpad is enabled the regular track-pad function is disabled until the numpad is once again disabled. Not a big deal at all, just something I noticed.. On Windows the trackpad distinguishes between regular mouse/pointer use and numpad clicking when the numpad is active so you don't have to turn it on & off multiple times. Excellent work to the main contributors!!!

ZenBook Flip S
UX371E
Ubuntu 20.10

Revision history for this message
Lux Libertas (luxlibertas) wrote :

Installed it from here..
https://github.com/mohamed-badaoui/ux433-touchpad-numpad

Works perfectly well on UX425EA!

Thanks!!!

Revision history for this message
CAPDEVILLE Franck (capdefraubuntu) wrote :

I have tried five days ago to install the function of the Numpad on an ASUS Zenbook 14 UX425J and I haven't succeeded. When I launch the script "install.sh" the script doesn't find the device (the Numpad I suppose?). But I haven't well understood if it's necessary to modify the script for my model of laptop or, if the script is good for any supported models?
And, endeed, I don't know if I have take the last script.
Could you give me again the good links for the script if it's good for an UX4525J?
Thank you in advance,
Ragards,

Franck

Revision history for this message
Erik (onryo1) wrote :

Really would like to see support for the ASUS Zenbook 14 UX425J. We have 14 of them in the office. Have tied with and without symbols. Same thing in both Ubuntu and Fedora.

sudo ./install.sh
Testing interface i2c-1 : sucess
Does your numpad has % and = symbols [N/y]n
Your numpad has no extra symbols.

Copy asus python driver to /usr/bin/asus_touchpad_numpad.py
cp: cannot stat 'touchpad_numpad_nosymbols.py': No such file or directory
Add asus touchpad service in /lib/systemd/system/
cp: cannot stat './asus_touchpad_numpad.service': No such file or directory
Failed to enable unit: Unit file asus_touchpad_numpad.service does not exist.
Asus touchpad service enabled
Failed to restart asus_touchpad_numpad.service: Unit asus_touchpad_numpad.service not found.
Asus touchpad service started

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi @Erik,

Please before running install.sh, could you check that you have in this install directory a file named touchpad_numpad_nosymbols.py as we have in github repository https://github.com/mohamed-badaoui/ux433-touchpad-numpad ?

Mohamed

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi @Franck,

In order try to understand what happens for you, what is the output of install.sh?

Mohamed

Revision history for this message
Erik (onryo1) wrote :

Hi @Badaoui
Can confirm the driver is working on:
Asus 14 Zenbook UX425J with symbols.

Tested on Fedora 33

The only "issue" I have noticed is the triangle with the 3 dots (brightness?) on the upper left of the touchpad does not seem to do anything. Is that normal? Never tried this laptop with Windows.

● asus_touchpad_numpad.service - Asus Touchpad to Numpad Handler
     Loaded: loaded (/usr/lib/systemd/system/asus_touchpad_numpad.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2021-04-17 12:44:08 CEST; 5min ago
   Main PID: 2000 (python3)
      Tasks: 1 (limit: 9096)
     Memory: 8.4M
        CPU: 1.772s
     CGroup: /system.slice/asus_touchpad_numpad.service
             └─2000 /usr/bin/python3 /usr/bin/asus_touchpad_numpad.py

Revision history for this message
CAPDEVILLE Franck (capdefraubuntu) wrote :

I will try as soon as possible but it's not my laptop andvI must wait a little to have it.

Revision history for this message
CAPDEVILLE Franck (capdefraubuntu) wrote :

@ Erik: which file " install.sh" have you exactly used on an ASUS UX425J? Have you modified something in the file to adapt it at the UX425J ?
It seems to me that I missed something before I launched " install.sh" a few days ago.

Revision history for this message
Erik (onryo1) wrote :

@CAPDEVILLE

I just cloned the repo
git clone https://github.com/mohamed-badaoui/ux433-touchpad-numpad.git
cd ux433-touchpad-numpad

sudo apt install libevdev2 i2c-tools (Ubuntu/Debian)
sudo dnf install libevdev i2c-tools (Fedora)

sudo modprobe i2c-dev
sudo i2cdetect -l (see whats there)

sudo pip3 install libevdev (can't be installed as pip install --user gotta use sudo)
sudo chmod +x ./install.sh
sudo ./install.sh

Install with symbols on my UX425J

Look if the "driver" is loaded correctly
systemctl status asus_touchpad_numpad.service

Revision history for this message
CAPDEVILLE Franck (capdefraubuntu) wrote :

It's what I have already done but I Wonder how I must download the file " install.sh". It's the point which causes trouble to me, I think.

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi @Franck,

You do not have to download only the install.sh script, but the whole package.
the link is:
https://github.com/mohamed-badaoui/ux433-touchpad-numpad/archive/refs/heads/main.zip

You unzip this, and run all the command givent above by @Erik.

Mohamed

Revision history for this message
Erik (onryo1) wrote :

@CAPDEVILLE
Just download it with git.

sudo apt install git

cd ~/ (home dir)

git clone https://github.com/mohamed-badaoui/ux433-touchpad-numpad.git

#now you have the directory with the the install.sh etc
#cd into the new directory

cd ux433-touchpad-numpad

#install.sh is just a simple bash script that uses the other stuff
#in the git folder. You need the entire folder not just install.sh

Revision history for this message
CAPDEVILLE Franck (capdefraubuntu) wrote :

Thank you very much! I haven't understood the goog way to have all the files and to execute the script.I am not familiar with GIT's procedure.

Revision history for this message
Erik (onryo1) wrote :

@CAPDEVILLE
No problem. Let me know if you get it working! If you need any help just ask! Kinda nice to have the numberpad working!

Revision history for this message
blu_sr (blu-sr) wrote :

It works on my UX425J notebook, yay! The touch button on the top-right is not exactly on the icon but it's fine. F8 suppose to function in Fn+Esc disabled mode only, can I bring back the regular F8?

Also, if possible, consider the dimming option on the top-left.

Revision history for this message
Luca (spixed) wrote :

Hi Sirs,
I have a ux433fn not work for me can you help me?
there is an error in service, i have a fresh install of Archlinux.
[spix@spix ux433-touchpad-numpad]$ systemctl status asus_touchpad_numpad.service
× asus_touchpad_numpad.service - Asus Touchpad to Numpad Handler
     Loaded: loaded (/usr/lib/systemd/system/asus_touchpad_numpad.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-04-22 23:39:44 CEST; 9min ago
    Process: 2505 ExecStart=/usr/bin/python3 /usr/bin/asus_touchpad_numpad.py (code=exited, status=1/FAILURE)
   Main PID: 2505 (code=exited, status=1/FAILURE)
        CPU: 24ms

apr 22 23:39:44 spix systemd[1]: Started Asus Touchpad to Numpad Handler.
apr 22 23:39:44 spix systemd[1]: asus_touchpad_numpad.service: Main process exited, code=exited, status=1/FAILURE
apr 22 23:39:44 spix systemd[1]: asus_touchpad_numpad.service: Failed with result 'exit-code'.

Installation of the script work perfectly, with no error

Revision history for this message
Luca (spixed) wrote :

sudo ./install.sh
Testing interface i2c-1 : sucess
Does your numpad has % and = symbols [N/y]

Your numpad has no extra symbols.

Copy asus python driver to /usr/bin/asus_touchpad_numpad.py
Add asus touchpad service in /lib/systemd/system/
Asus touchpad service enabled
Asus touchpad service started

Revision history for this message
Luca (spixed) wrote :

and this is grep command :
[spix@spix ux433-touchpad-numpad]$ grep -B1 -A5 -i -E "(elan|asu)" /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Asus WMI hotkeys"
P: Phys=asus-nb-wmi/input0
S: Sysfs=/devices/platform/asus-nb-wmi/input/input10
U: Uniq=
H: Handlers=kbd event10 rfkill
B: PROP=0
B: EV=100013
B: KEY=1000000080000 0 0 0 0 181606f00900000 8280027801701000 e000000000000 0
--
I: Bus=0018 Vendor=04f3 Product=30dc Version=0100
N: Name="ELAN1401:00 04F3:30DC Mouse"
P: Phys=i2c-ELAN1401:00
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-ELAN1401:00/0018:04F3:30DC.0001/input/input13
U: Uniq=
H: Handlers=event7 mouse0
B: PROP=0
B: EV=17
B: KEY=30000 0 0 0 0
--
I: Bus=0018 Vendor=04f3 Product=30dc Version=0100
N: Name="ELAN1401:00 04F3:30DC Touchpad"
P: Phys=i2c-ELAN1401:00
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-ELAN1401:00/0018:04F3:30DC.0001/input/input14
U: Uniq=
H: Handlers=event11 mouse1
B: PROP=5
B: EV=1b
B: KEY=e520 10000 0 0 0 0
--
I: Bus=0018 Vendor=04f3 Product=30dc Version=0100
N: Name="ELAN1401:00 04F3:30DC Keyboard"
P: Phys=i2c-ELAN1401:00
S: Sysfs=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-1/i2c-ELAN1401:00/0018:04F3:30DC.0001/input/input15
U: Uniq=
H: Handlers=sysrq kbd leds event12
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff800000000007ff febeffdfffefffff fffffffffffffffe

Revision history for this message
Luca (spixed) wrote :

Solved i installed python-pip too.
after relaunch install.sh and now work very good.
Thank you to all

Revision history for this message
Luca (spixed) wrote :

i forget after install python pip i send command:
sudo pip3 install libevdev
after i reinstalled install.sh and now work very good.

Revision history for this message
Luca (spixed) wrote :

Sorry but every times that i restart pc numpad not work, there are any error in startup phase:

File "/usr/bin/asus_touchpad_numpad.py", line147, in <module> for e in d_t.events():

File "usr/lib/python3.9/site-packages/libevdev/device.py", line 536, in events

ev=self._libevdev.next_event(flags)

File "usr/lib/python3.9/site-packages/libevdev/_clib.py", line 893, in next_event

raise OSError(-rc, os.strerror(-rc))
OSError:[Errno19] No such device

Can you help me?

Revision history for this message
Lucas Santana Carlota (lucassnta90) wrote :

Works perfectly in Fedora 34! Thank you so much!

Revision history for this message
Iñigo (iec989) wrote :

It is indeed working - but when will this be included in Ubuntu by default? Is there any ETA?

Revision history for this message
CAPDEVILLE Franck (capdefraubuntu) wrote :

Some news:I have at least tried to reinstall Linuxmint 20.1 on an ASUS Zenbook 14 UX425J and this time, I succeeded with the problem of the Numpad in the touchpad : it works very well with the F8 touch ( not with the specific zone in the upper right corner or the touchpad, but no matter).
Thanks to everyone who helped me, you are great ! I am very happy and the owner or the PC too. One more convinced user of Linux but she needed absolutely this Numpad for his job.

Franck

Revision history for this message
Nils Domin (nilsdomin) wrote :

@Mohamed: Thanks for your great work! It's running now on my ASUS Zenbook UX433FAC 14 with Fedora 34 installed.

Revision history for this message
Luca (spixed) wrote :

No anyone can help me.

Revision history for this message
Håkon Vågsether (haakov) wrote :

@Luca: Check out this pull request, maybe it helps: https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver/pull/21

Revision history for this message
Frederic Pageot (frpageot) wrote :

Hello,
Running fine on my asus UX363EA. Numpad working great, but I did not find a way to activate the backlight of the numpad. Did I miss something ? Anyway thanks for this great job.
Fred

Revision history for this message
Frederic Pageot (frpageot) wrote :

Well, I found, for my computer, the bus nuber is different :
numpad light on :
sudo i2ctransfer -f -y 14 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x01 0xa

Numpad light off
sudo i2ctransfer -f -y 14 w13@0x15 0x05 0x00 0x3d 0x03 0x06 0x00 0x07 0x00 0x0d 0x14 0x03 0x00 0xad

But, is there a way to integrate this in the script to enable backlight when activating the numpad and switch it off when deactivating ? I can understand that this is difficult to do it universally because it seems that we have different bus numbers for the light, but can I integrate this in the script, and if yes, where in the script ?

Anyway, many thanks for this super job.

Fred

Revision history for this message
Frederic Pageot (frpageot) wrote :

Well actually numpad backlight is really strange, it is working times to times, no logic. Most f the time I am not able to have the backlight but once in a while, I can enable it, but I really don't know how... If someone has an idea... For the moment, I use the sticker which is sypplied when you buy the computer, but it would be better to have the light on and off.

Revision history for this message
Logix (logix2) wrote :

I had success getting the touchpad numpad to work on My ASUS UX433FAC with https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver

It's supposed to work with many ASUS models, and might also work with others not listed on its page, but they weren't tested.

The instructions for installing asus-touchpad-numpad-driver say to install a package with PIP using sudo. That's a bad idea for both security and possible system breakage. This has instructions that avoid this: https://www.linuxuprising.com/2021/05/how-to-get-numpad-embedded-into.html

Revision history for this message
Badaoui Mohamed (mohamed-badaoui) wrote :

Hi @Logix,

Thanks you very much for this contribution! :)

I updated the README with your recommendations:
https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver

Thanks.

Revision history for this message
Andrey (andrey-ah) wrote :

Unfortunately it's not showing me the grid - back-light is not turning on. My laptop is UX393UA. Can it be fixed somehow?

Revision history for this message
Luca (spixed) wrote :

Thank you to all, with this instructions here https://www.linuxuprising.com/2021/05/how-to-get-numpad-embedded-into.html work perfectly on fresh arch.
one little bug, tray icon numpad (plasma) will be removed only after a double on-off

Thank you

Revision history for this message
Luca (spixed) wrote :

if anyone have a problem with oserror, as advice by Håkon Vågsether (haakov) check 1 sec wait solution, another way that worked for me, i have edit .service before start the install and changed the line 7 from Type=simple to Type=idle, in fact man define:

Behavior of idle is very similar to simple; however, actual execution of the service program is delayed until all active jobs are dispatched. This may be used to avoid interleaving of output of shell services with the status output on the console. Note that this type is useful only to improve console output, it is not useful as a general unit ordering tool, and the effect of this service type is subject to a 5s timeout, after which the service program is invoked anyway.

Thank you Badaoui Mohamed (mohamed-badaoui),Logix (logix2) and Håkon Vågsether (haakov)

Revision history for this message
WOZNIAK (pwozniak) wrote :

THANK YOU @Logix !
It works great with my UX433FAC with % symbols

Revision history for this message
dark0ghost (dark0ghost) wrote (last edit ):

asus M433IA doesn`t work backlight
 OS: Parrot OS 4.11 x86_64
 Host: VivoBook_ASUSLaptop X421IA_M433IA 1.0
Kernel: 5.10.0-6parrot1-amd64
sudo i2cdetect -l:
```
i2c-3 smbus SMBus PIIX4 adapter port 1 at 0b20 SMBus adapter
i2c-1 smbus SMBus PIIX4 adapter port 0 at 0b00 SMBus adapter
i2c-6 i2c AMDGPU DM aux hw bus 0 I2C adapter
i2c-4 i2c AMDGPU DM i2c hw bus 0 I2C adapter
i2c-2 smbus SMBus PIIX4 adapter port 2 at 0b00 SMBus adapter
i2c-0 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-5 i2c AMDGPU DM i2c hw bus 1 I2C adapter
```

Revision history for this message
KodduX (tvdkodde) wrote :

Tested on Asus Expertbook B9 (model B9400CEA) with Ubuntu 21.04

0.123456789/*-+%=

Many thanks Mohamed!

Revision history for this message
Robbie (lehthanis) wrote :

Just tested on Arch Linux and GX701GX-XB78 and tried all combinations of model/layout...no dice.

This version DOES work for me https://gitlab.com/Thraen/gx735_touchpad_numpad but I have to stop and restart it every time I reboot. Perhaps you could merge some of his methods into yours Mohamed? Yours seems to be a bit more robust.

Revision history for this message
Uncle Slacky (uncleslacky) wrote :

Is there a way to get this working with sysvinit (I'm not using systemd)?

Adam Niedling (krychek)
tags: added: impish
Revision history for this message
Zdeno Forgac (zdenof) wrote :

Hi guys,

I'm pretty new to linux (finally decided to get rid of windows after many years). I'm runnig on Ubuntu 21.10 now...

I have Asus Zenbook 14 UX431DA which originally came with standard touchpad with fingerprint
sensor. So I decided to buy numpad mod hardware piece for my notebook. Succesfully installed yesterday, also did install driver package. Everything is working correctly but without backlight.
When I press the numlock button on it, I can type the numbers and symbols, but I'm not able to toggle the brightness (backlight), so I don't see anything on the touchpad.
As I am working a lot in excel I really need to get a numpad working properly. So I hope that somebody could help me with this.
Thanks, Zee

Revision history for this message
Marcel Brouillet (mbrouillet) wrote :

Hello !
- Not working on UX582lr (although very similar to UX581l.
- Install seems going well.
- « LOG=DEBUG sudo -E ./asus_touchpad.py » keeps hanging with blinking cursor and no output.
Very willing to help, if instructed to do any test. Thank you for writing the package.
Marcel.

Ubuntu Studio 21.04 up to date (Linux ux582lr 5.11.0-41-lowlatency #45-Ubuntu SMP PREEMPT Fri Nov 5 13:55:43 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux)

sudo i2cdetect -l
i2c-3 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-10 i2c AUX B/DDI B/PHY B I2C adapter
i2c-1 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-8 i2c i915 gmbus dpd I2C adapter
i2c-6 i2c i915 gmbus dpc I2C adapter
i2c-4 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-11 i2c AUX C/DDI C/PHY C I2C adapter
i2c-2 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-0 smbus SMBus I801 adapter at efa0 SMBus adapter
i2c-9 i2c AUX A/DDI A/PHY A I2C adapter
i2c-7 i2c i915 gmbus misc I2C adapter
i2c-5 i2c i915 gmbus dpb I2C adapter
i2c-12 i2c AUX D/DDI D/PHY D I2C adapter

~/asus-touchpad-numpad-driver$ sudo ./install.sh
apt is here
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1ubuntu1).
libevdev2 is already the newest version (1.11.0+dfsg-1build1).
i2c-tools is already the newest version (4.2-1build1).
python3-libevdev is already the newest version (0.5-3).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
Testing interface i2c-3 : failed
Testing interface i2c-1 : failed
Testing interface i2c-4 : failed
Testing interface i2c-2 : sucess

Select models keypad layout:
1) gx701.py
2) m433ia.py
3) ux433fa.py
4) ux581l.py
5) Quit
Please enter your choice 4

What is your keyboard layout?
1) Qwerty
2) Azerty
3) Quit
Please enter your choice [1-3]: 1
Add asus touchpad service in /etc/systemd/system/
Asus touchpad service enabled
Asus touchpad service started

Revision history for this message
Siddhy (antoine-nematis) wrote :

Hello,

Exactly the same as Marcel for me:
- Asus ZenBook Duo Pro (UX582lr)
- Install seems going well too.
- keyboard azerty for me

$ LOG=DEBUG sudo -E ./asus_touchpad.py
DEBUG:Pad:Detect keyboard from N: Name="AT Translated Set 2 keyboard"
DEBUG:Pad:Set keyboard 3 from H: Handlers=sysrq kbd event3 leds
DEBUG:Pad:Detect touchpad from N: Name="ELAN9009:00 04F3:2C23 Touchpad"
DEBUG:Pad:Set touchpad device id 4 from S: Sysfs=/devices/pci0000:00/0000:00:15.3/i2c_designware.3/i2c-4/i2c-ELAN9009:00/0018:04F3:2C23.0003/input/input46
DEBUG:Pad:Set touchpad id 15 from H: Handlers=mouse4 event15
DEBUG:Pad:Touchpad min-max: x 0-3984, y 0-1152
$ sudo ./install.sh
apt is here
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
git est déjà la version la plus récente (1:2.32.0-1ubuntu1).
libevdev2 est déjà la version la plus récente (1.11.0+dfsg-1build1).
i2c-tools est déjà la version la plus récente (4.2-2).
python3-libevdev est déjà la version la plus récente (0.5-3).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Testing interface i2c-3 : failed
Testing interface i2c-1 : failed
Testing interface i2c-4 : failed
Testing interface i2c-2 : sucess

Select models keypad layout:
1) gx701.py
2) m433ia.py
3) ux433fa.py
4) ux581l.py
5) Quit
Please enter your choice 4

What is your keyboard layout?
1) Qwerty
2) Azerty
3) Quit
Please enter your choice [1-3]: 2
Add asus touchpad service in /etc/systemd/system/
Asus touchpad service enabled
Asus touchpad service started

Thank you for writing the package.
Siddhy.

Revision history for this message
Lukáš Drahník (ldrahnik) wrote :

Hello,
i implemented multitouch up to 5 fingers in fork of already mentioned python driver repository. You can test it here: https://github.com/ldrahnik/asus-touchpad-numpad-driver. I am testing that on Elementary OS Loki 6.1 with type of numpad 433ia without levels of backlight (ntb type UP5401EA). Support of this kind of backlight (no levels) support i implemented as well. Levels of backlight are configurable in templates.

I use ZenBook on daily basics so i will keep this version of driver updated and working.

Best

Lukas

Revision history for this message
N Sucho (trafficpanda) wrote :

Hey,

so first of all thanks for all the work you put in!!

I am working with the ZenBook UX425UAZ and the driver is working perfectly fine, but only when I start the "LOG=DEBUG sudo -E ./asus_touchpad.py", without it the numpad doesn't function at all.
Did I miss sth. while or after the installation?

cheers
Niko

Changed in linux (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
ANDREA MATTANA (amattana) wrote :

Tested on Ubuntu 18.04 and UX433F Zenbook 14, worked only the backlight but
not the digits. Then the system crashed when rebooted and stuck without the
chance to repair even in recovery mode.
I haven't tried to find a solution starting with a live OS in ramdisk since
I wanted to try the newest Ubuntu 22.04, and haven't tested yet here (a
little bit scared, evaluating pro and cons...)

Cheers,
Andrea

Il giorno lun 16 mag 2022 alle ore 07:01 Adolfo Jayme <
<email address hidden>> ha scritto:

> ** Changed in: linux (Ubuntu)
> Importance: Undecided => Wishlist
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1823320).
> https://bugs.launchpad.net/bugs/1810183
>
> Title:
> numpad on touchpad doesn't work in ASUS Zenbook 14
>
> Status in Linux:
> New
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I have Asus Zenbook 14 UX433FA which I have installed Ubuntu 18.10
> alongside windows 10.
> The numeric keypads are within the touchpad and are supposed to be
> turned on by a button on the touchpad. This works well in Windows but
> doesn't work in Ubuntu.
> I have tried to search for any related problems/solutions online but I
> haven't been able to.
> I will appreciate any suggestion or help.
> Thanks,
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.19.11-041911-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
> ---
> ProblemType: Bug
> ApportVersion: 2.20.10-0ubuntu13.1
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> DistroRelease: Ubuntu 18.10
> InstallationDate: Installed on 2018-12-30 (4 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64
> (20181017.3)
> Package: linux (not installed)
> Tags: cosmic
> Uname: Linux 4.18.10-041810-generic x86_64
> UnreportableReason: The running kernel is not an Ubuntu kernel
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
> _MarkForUpload: True
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linux/+bug/1810183/+subscriptions
>
>

--

--

Andrea Mattana

Revision history for this message
Lukáš Drahník (ldrahnik) wrote (last edit ):

I add an attachment that contains all models which should include NumberPad (at this moment, maybe new models will be coming), sent by Asus support!. Anyway I found mistakes without NumberPad but like 5 times only. Each row also includes which layout each model uses, it was done manually googling each laptop by me. More information about each assigned keyboard NumberPad layout you can get from my driver repository here: https://github.com/asus-linux-drivers/asus-touchpad-numpad-driver/tree/master/numpad_layouts

Revision history for this message
Lukáš Drahník (ldrahnik) wrote :
Revision history for this message
RUMORE (rumorevictor-1) wrote :

I have a ASUS E410MA with UBUNTU 20.04 and the numpap work but sometimes after switching from NUMPAD TO TOUCHPAD, the cursor become freezing.
Why can i do to make the cursor working ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.