Giter Club home page Giter Club logo

Comments (10)

Nospamty avatar Nospamty commented on September 18, 2024

It looks the same as the numpad on the GX551, which I tried to install, both unicode and non unicode, but that didn't work.

from asus-numberpad-driver.

ldrahnik avatar ldrahnik commented on September 18, 2024

@Nospamty Hello, thank you for creating an issue. What does mean did not work? Please post here drivers error log and output of install script.

from asus-numberpad-driver.

Nospamty avatar Nospamty commented on September 18, 2024

Sorry I had not realized it produced an error log. Here are the contents:

2023-11-28 22:46:42,191 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2023-11-28 22:46:42,246 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2023-11-28 22:46:42,246 INFO Set keyboard 16 from H: Handlers=sysrq kbd event16 leds
2023-11-28 22:46:42,306 INFO Detecting touchpad from string: "N: Name="ASUE140F:00 04F3:32A2 Touchpad""
2023-11-28 22:46:42,307 INFO Set touchpad device id 0 from S: Sysfs=/devices/platform/AMDI0010:00/i2c-0/i2c-ASUE140F:00/0018:04F3:32A2.0001/input/input35
2023-11-28 22:46:42,307 INFO Set touchpad id 23 from H: Handlers=mouse1 event23
2023-11-28 22:46:42,307 INFO Touchpad min-max: x 0-1710, y 0-2925
2023-11-28 22:46:42,307 INFO Numpad min-max: x 0-1710, y 80-2925
2023-11-28 22:46:43,319 INFO Setting up for config file key: "top_left_icon_brightness_func_disabled" with value: "True"
2023-11-28 22:48:48,602 INFO check_config_values_changes: detected external change of config file -> loading changes
2024-03-26 16:36:08,565 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 16:36:08,603 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 16:36:08,603 INFO Set keyboard 16 from H: Handlers=sysrq kbd event16 leds
2024-03-26 16:36:08,635 INFO Detecting touchpad from string: "N: Name="ASUE140F:00 04F3:32A2 Touchpad""
2024-03-26 16:36:08,635 INFO Set touchpad device id 0 from S: Sysfs=/devices/platform/AMDI0010:00/i2c-0/i2c-ASUE140F:00/0018:04F3:32A2.0001/input/input28
2024-03-26 16:36:08,635 INFO Set touchpad id 7 from H: Handlers=mouse1 event7
2024-03-26 16:36:08,635 INFO Touchpad min-max: x 0-1710, y 0-2925
2024-03-26 16:36:08,635 INFO Numpad min-max: x 20-1690, y 0-2925
2024-03-26 16:36:09,647 INFO Setting up for config file key: "top_left_icon_brightness_func_disabled" with value: "True"
2024-03-26 16:36:51,686 INFO check_config_values_changes: detected external change of config file -> loading changes

2024-03-26 16:36:51,787 INFO check_config_values_changes: detected external change of config file -> loading changes



2024-03-26 23:38:42,855 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 23:38:42,908 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 23:38:42,908 INFO Set keyboard 15 from H: Handlers=sysrq kbd event15 leds
2024-03-26 23:38:42,940 INFO Detecting touchpad from string: "N: Name="ASUE140F:00 04F3:32A2 Touchpad""
2024-03-26 23:38:42,941 INFO Set touchpad device id 0 from S: Sysfs=/devices/platform/AMDI0010:00/i2c-0/i2c-ASUE140F:00/0018:04F3:32A2.0001/input/input31
2024-03-26 23:38:42,941 INFO Set touchpad id 19 from H: Handlers=mouse1 event19
2024-03-26 23:38:42,941 INFO Touchpad min-max: x 0-1710, y 0-2925
2024-03-26 23:38:42,941 INFO Numpad min-max: x 20-1690, y 0-2925
2024-03-26 23:38:56,688 INFO Touched numlock key (not top_right_icon) in time: 1711521536.6887052
2024-03-26 23:38:56,749 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521536.7490256
2024-03-26 23:38:57,193 INFO Touched numlock key (not top_right_icon) in time: 1711521537.193872
2024-03-26 23:38:57,269 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521537.2690678
2024-03-26 23:38:57,823 INFO Touched numlock key (not top_right_icon) in time: 1711521537.8235195
2024-03-26 23:38:57,905 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521537.905524
2024-03-26 23:38:57,980 INFO Touched numlock key (not top_right_icon) in time: 1711521537.9808292
2024-03-26 23:38:58,056 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521538.0560682
2024-03-26 23:38:59,130 INFO Touched numlock key (not top_right_icon) in time: 1711521539.130487
2024-03-26 23:38:59,219 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521539.2194107
2024-03-26 23:38:59,349 INFO Touched numlock key (not top_right_icon) in time: 1711521539.3494718
2024-03-26 23:38:59,452 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521539.4520707
2024-03-26 23:38:59,465 INFO Touched numlock key (not top_right_icon) in time: 1711521539.4658027
2024-03-26 23:38:59,575 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521539.5752182
2024-03-26 16:39:41,060 INFO Touched numlock key (not top_right_icon) in time: 1711496381.06014
2024-03-26 16:39:41,162 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496381.1626165
2024-03-26 16:39:41,217 INFO Touched numlock key (not top_right_icon) in time: 1711496381.2174592
2024-03-26 16:39:41,532 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496381.5320947
2024-03-26 16:39:41,573 INFO Touched numlock key (not top_right_icon) in time: 1711496381.5731769
2024-03-26 16:39:41,675 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496381.6757429
2024-03-26 16:39:41,744 INFO Touched numlock key (not top_right_icon) in time: 1711496381.7442296
2024-03-26 16:39:41,846 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496381.8468375
2024-03-26 16:39:41,915 INFO Touched numlock key (not top_right_icon) in time: 1711496381.9152906
2024-03-26 16:39:42,017 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496382.0178201
2024-03-26 16:39:42,072 INFO Touched numlock key (not top_right_icon) in time: 1711496382.072695
2024-03-26 16:39:42,182 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496382.1820776
2024-03-26 16:39:42,236 INFO Touched numlock key (not top_right_icon) in time: 1711496382.236928
2024-03-26 16:39:42,325 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496382.3257651
2024-03-26 16:42:31,255 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 16:42:31,309 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 16:42:31,309 INFO Set keyboard 15 from H: Handlers=sysrq kbd event15 leds
2024-03-26 16:42:31,337 INFO Detecting touchpad from string: "N: Name="ASUE140F:00 04F3:32A2 Touchpad""
2024-03-26 16:42:31,337 INFO Set touchpad device id 0 from S: Sysfs=/devices/platform/AMDI0010:00/i2c-0/i2c-ASUE140F:00/0018:04F3:32A2.0001/input/input27
2024-03-26 16:42:31,337 INFO Set touchpad id 7 from H: Handlers=mouse1 event7
2024-03-26 16:42:31,337 INFO Touchpad min-max: x 0-1710, y 0-2925
2024-03-26 16:42:31,337 INFO Numpad min-max: x 20-1690, y 0-2925
2024-03-26 16:42:32,346 INFO Setting up for config file key: "top_left_icon_brightness_func_disabled" with value: "True"
2024-03-26 16:42:33,300 INFO Touched numlock key (not top_right_icon) in time: 1711496553.3006952
2024-03-26 16:42:33,539 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711496553.5391061
2024-03-26 16:42:44,071 INFO check_config_values_changes: detected external change of config file -> loading changes

2024-03-26 16:42:44,172 INFO check_config_values_changes: detected external change of config file -> loading changes



2024-03-26 23:43:32,027 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 23:43:32,072 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-26 23:43:32,072 INFO Set keyboard 15 from H: Handlers=sysrq kbd event15 leds
2024-03-26 23:43:32,116 INFO Detecting touchpad from string: "N: Name="ASUE140F:00 04F3:32A2 Touchpad""
2024-03-26 23:43:32,116 INFO Set touchpad device id 0 from S: Sysfs=/devices/platform/AMDI0010:00/i2c-0/i2c-ASUE140F:00/0018:04F3:32A2.0001/input/input27
2024-03-26 23:43:32,116 INFO Set touchpad id 7 from H: Handlers=mouse1 event7
2024-03-26 23:43:32,116 INFO Touchpad min-max: x 0-1710, y 0-2925
2024-03-26 23:43:32,116 INFO Numpad min-max: x 20-1690, y 0-2925
2024-03-26 23:43:36,272 INFO Touched numlock key (not top_right_icon) in time: 1711521816.272139
2024-03-26 23:43:36,339 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521816.339699
2024-03-26 23:43:36,586 INFO Touched numlock key (not top_right_icon) in time: 1711521816.5863178
2024-03-26 23:43:36,681 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521816.6818275
2024-03-26 23:43:39,871 INFO Touched numlock key (not top_right_icon) in time: 1711521819.8710907
2024-03-26 23:43:39,939 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521819.939223
2024-03-26 23:43:40,049 INFO Touched numlock key (not top_right_icon) in time: 1711521820.0491803
2024-03-26 23:43:40,110 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521820.1102898
2024-03-26 23:43:40,206 INFO Touched numlock key (not top_right_icon) in time: 1711521820.2063665
2024-03-26 23:43:40,288 INFO Un-touched without NumberPad activation numlock key (not top_right_icon) in time: 1711521820.2882192
2024-03-27 22:10:55,186 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-27 22:10:55,251 INFO Detecting keyboard from string: "N: Name="Asus Keyboard""
2024-03-27 22:10:55,251 INFO Set keyboard 15 from H: Handlers=sysrq kbd event15 leds
2024-03-27 22:10:55,275 INFO Detecting touchpad from string: "N: Name="ASUE140F:00 04F3:32A2 Touchpad""
2024-03-27 22:10:55,276 INFO Set touchpad device id 0 from S: Sysfs=/devices/platform/AMDI0010:00/i2c-0/i2c-ASUE140F:00/0018:04F3:32A2.0001/input/input31
2024-03-27 22:10:55,276 INFO Set touchpad id 19 from H: Handlers=mouse1 event19
2024-03-27 22:10:55,276 INFO Touchpad min-max: x 0-1710, y 0-2925
2024-03-27 22:10:55,276 INFO Numpad min-max: x 20-1690, y 0-2925
2024-03-27 22:10:56,284 INFO Setting up for config file key: "top_left_icon_brightness_func_disabled" with value: "True"
2024-03-27 22:11:07,370 INFO check_config_values_changes: detected external change of config file -> loading changes

2024-03-27 22:11:07,471 INFO check_config_values_changes: detected external change of config file -> loading changes


from asus-numberpad-driver.

Nospamty avatar Nospamty commented on September 18, 2024

bash install.sh
[sudo] password for user1:
groupadd: group 'numberpad' already exists
Added group numberpad to current user

Reading package lists...
Building dependency tree...
Reading state information...
ibus is already the newest version (1.5.26-4).
libevdev2 is already the newest version (1.12.1+dfsg-1).
xinput is already the newest version (1.6.3-1build2).
i2c-tools is already the newest version (4.3-2build1).
python3-virtualenv is already the newest version (20.13.0+ds-2).
curl is already the newest version (7.81.0-1ubuntu1.16).
libxml2-utils is already the newest version (2.9.13+dfsg-1ubuntu0.4).
python3-dev is already the newest version (3.10.6-1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
From https://github.com/asus-linux-drivers/asus-numberpad-driver
9e5091f..384bf48 master -> origin/master

groupadd: group 'input' already exists
groupadd: group 'i2c' already exists
groupadd: group 'uinput' already exists
Added groups input, i2c, uinput, numberpad to current user
uinput module loaded
i2c-dev module loaded
uinput module added to auto loaded modules
Udev rules reloaded and triggered

Testing interface i2c-0: success (adr 0x15)
The detection was successful. Touchpad with numberpad found: i2c-0

Default config will be autocreated during the first run and available for futher modifications here:
/usr/share/asus-numberpad-driver/numberpad_dev

created virtual environment CPython3.10.12.final.0-64 in 220ms
creator CPython3Posix(dest=/usr/share/asus-numberpad-driver/.env, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/user1/.local/share/virtualenv)
added seed packages: pip==24.0, setuptools==69.1.1, wheel==0.42.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Requirement already satisfied: pip in /usr/share/asus-numberpad-driver/.env/lib/python3.10/site-packages (24.0)
Requirement already satisfied: setuptools in /usr/share/asus-numberpad-driver/.env/lib/python3.10/site-packages (69.1.1)
Collecting setuptools
Using cached setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB)
Using cached setuptools-69.2.0-py3-none-any.whl (821 kB)
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 69.1.1
Uninstalling setuptools-69.1.1:
Successfully uninstalled setuptools-69.1.1
Successfully installed setuptools-69.2.0
Collecting libevdev (from -r requirements.txt (line 1))
Using cached libevdev-0.11-py3-none-any.whl
Collecting numpy (from -r requirements.txt (line 2))
Using cached numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Collecting pyinotify (from -r requirements.txt (line 3))
Using cached pyinotify-0.9.6-py3-none-any.whl
Collecting python-xlib (from -r requirements.txt (line 4))
Using cached python_xlib-0.33-py2.py3-none-any.whl.metadata (6.2 kB)
Collecting smbus2 (from -r requirements.txt (line 5))
Using cached smbus2-0.4.3-py2.py3-none-any.whl.metadata (7.1 kB)
Collecting pyasyncore (from -r requirements.txt (line 6))
Using cached pyasyncore-1.0.4-py3-none-any.whl.metadata (3.7 kB)
Collecting six>=1.10.0 (from python-xlib->-r requirements.txt (line 4))
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
Using cached python_xlib-0.33-py2.py3-none-any.whl (182 kB)
Using cached smbus2-0.4.3-py2.py3-none-any.whl (11 kB)
Using cached pyasyncore-1.0.4-py3-none-any.whl (10 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: smbus2, pyinotify, pyasyncore, six, numpy, libevdev, python-xlib
Successfully installed libevdev-0.11 numpy-1.26.4 pyasyncore-1.0.4 pyinotify-0.9.6 python-xlib-0.33 six-1.16.0 smbus2-0.4.3

NumberPad layout

3 variants of NumberPad layouts are predefined for each laptop:

  • The non-unicode variant does not send any character via the unicode Ctrl+Shift+U shortcut. It uses the direct numeric keys, and key combinations (Shift + number) for the percent and hash characters. Because of this, this option is not resistant to custom overbindings nor to some keyboard language layouts (e.g. Czech)
  • Standard. All keys are sent directly except the percent and hash characters (these use the unicode Ctrl+Shift+U shortcut) so that this layout should work for any keyboard language layout but still is not resistant to custom overbinding of keys, which is why the last variant exists
  • The unicode variant sends all keys as unicode characters except for BACKSPACE and ENTER. This layout is the most resistant to overbinding of keys but sends multiple keys instead of just one, unnecessarily heavy if you do not need it.

Select layout:

  1. b7402-non-unicode.py 17) up5401ea-3145.py
  2. b7402.py 18) up5401ea-31B9.py
  3. b7402-unicode.py 19) up5401ea-non-unicode-3145.py
  4. e210ma-non-unicode.py 20) up5401ea-non-unicode-31B9.py
  5. e210ma.py 21) up5401ea-non-unicode.py
  6. e210ma-unicode.py 22) up5401ea.py
  7. g513-non-unicode.py 23) up5401ea-unicode-3145.py
  8. g513-unicode.py 24) up5401ea-unicode-31B9.py
  9. g533-non-unicode.py 25) up5401ea-unicode.py
  10. g533.py 26) ux433fa-non-unicode.py
  11. g533-unicode.py 27) ux433fa-unicode.py
  12. gx551-non-unicode.py 28) ux581l-non-unicode.py
  13. gx551-unicode.py 29) ux581l.py
  14. gx701-non-unicode.py 30) ux581l-unicode.py
  15. gx701.py 31) Quit
  16. gx701-unicode.py
    Please enter your choice 13

Selected key layout: gx551-unicode

Systemctl service

Do you want install systemctl service? [y/N]y

LAYOUT_NAME: gx551-unicode
CONFIG_FILE_DIR_PATH: /usr/share/asus-numberpad-driver

env var DISPLAY: :0
env var AUTHORITY: /home/user1/.Xauthority
env var XDG_RUNTIME_DIR: /run/user/1000
env var DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
env var XDG_SESSION_TYPE: x11

ERROR LOG FILE: /var/log/asus-numberpad-driver/error.log

Asus numberpad driver service placed
Systemctl daemon reloaded
Created symlink /home/user1/.config/systemd/user/default.target.wants/[email protected] → /usr/lib/systemd/user/[email protected].
Asus numberpad driver service enabled
Asus numberpad driver service started

External keyboard

This is a predefined rule for changing the configuration when an external keyboard is connected/disconnected.

The application of this rule results in the following changes if an external keyboard is connected:

  • Numlock key does not activate NumberPad (config value is set to sys_numlock_enables_numpad=0)
  • Numberpad disactivation does not disable Numlock (config value is set to numpad_disables_sys_numlock=0)

In summary when an external keyboard is connected then NumberPad activation is not linked to Numlock state and vice versa.

Do you want install the rule for external keyboard? [y/N]y

Rule 90-numberpad-external-keyboard.rules applied
Udev rules reloaded and triggered

Calculator app

Do you want try to install toggling script for XF86Calculator key? [y/N]y

Detected gnome-calculator
Setting up for gnome-calculator
Toggling script for calculator app gnome-calculator has been installed.

Power supply saver

By default is idle functionality disabled and may be manually enabled in config file later. Or by installing this rule can be enabled by every detected change of power supply mode to battery mode.

Idle mode is configured to be enabled after 10s of inactivity and to decrease 30% of brightness.

Do you want install the rule for idle functionality? [y/N]y

Rule 80-numberpad-power-supply applied
Udev rules reloaded and triggered

Installation finished succesfully

Reboot is required. Do you want reboot now? [y/N]y

from asus-numberpad-driver.

ldrahnik avatar ldrahnik commented on September 18, 2024

@Nospamty You have to hold the key for atleast 1s. In case you do please run simultanously with driver $ sudo libinput debug-events and $ libinput record and try to activate as previously

from asus-numberpad-driver.

Nospamty avatar Nospamty commented on September 18, 2024

Sorry, at what point am I supposed to hold a key?

from asus-numberpad-driver.

ldrahnik avatar ldrahnik commented on September 18, 2024

@Nospamty NumLock key with icon on Touchpad for NumberPad activation / deactivation, in log Is written you did only touch / untouch. If you hold longger than 1s so log lies then please try to capture activation attempt using mentioned tools

from asus-numberpad-driver.

Nospamty avatar Nospamty commented on September 18, 2024

Yes it is incorrect because I never touched the numlock key, it never prompted me to do so. All I input is bash install.sh then y or n to answer prompts.

from asus-numberpad-driver.

ldrahnik avatar ldrahnik commented on September 18, 2024

@Nospamty I mean NumLock icon on touchpad - in the attached screen in first post in this thread it is on the top left spot - Numpad Layout (photo/picture or code). In error log are displayed touches. Not in install log.

from asus-numberpad-driver.

ldrahnik avatar ldrahnik commented on September 18, 2024

Can be reopened.

from asus-numberpad-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.