asus-linux-drivers / asus-numberpad-driver

Maintained feature-rich linux driver for NumberPad(2.0) on Asus laptops. NumberPad(2.0) is illuminated numeric keypad integrated to touchpad which appears when is done tap on top right corner of touchpad for atleast 1s by default (configurable) or slide gesture from top right/left corner to the center, the left shows calc app aswell (configurable).
GNU General Public License v2.0
257 stars 19 forks source link

[Bug]: ERROR Numpad layout *.py from dir layouts is required as first argument #176

Closed locrianz closed 5 months ago

locrianz commented 5 months ago

Describe the bug

I installed the script, chose not to use a systemctl service, and restarted my computer. Then I ran

/usr/share/asus-numberpad-driver/.env/bin/python3 /usr/share/asus-numberpad-driver/numberpad.py

as instructed, and got this error:

ERROR    Numpad layout *.py from dir layouts is required as first argument. Re-run install script or add missing first argument (valid value is b7402, e210ma, g533, gx551, gx701, up5401ea, ..).

Expected behavior

I expected this argument to be automatically included in the script I run, since the setup already detected my default numpad layout and asked if I wanted to use it. (And I said yes.)

How do I format the argument to include the layout?

Relevant log output

No response

Desktop

ldrahnik commented 5 months ago

For example numberpad.py up5401ea. Valid layout names are written in error message, more in README.MD or inside directory layouts without file extension .py. What was confusing? Can be changed description of error message.

locrianz commented 5 months ago

I just wasn't sure how to format it, whether I needed to put, say, "layout=ux581l" or something. I haven't used many Python scripts before. But this worked:

/usr/share/asus-numberpad-driver/.env/bin/python3 /usr/share/asus-numberpad-driver/numberpad.py ux581l
ldrahnik commented 5 months ago

@locrianz I have changed Readme a little bit.