Modify

Opened 7 years ago

Last modified 4 years ago

#8669 new defect

cmdpad --device parameter problem

Reported by: vmark Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Backfire 10.03.1 RC4
Keywords: cmdpad Cc:

Description

Dear all,

I use OpenWRT Backfire (10.03.1-rc4, r24045) with "ar71xx"
for my TP-Link WR1043ND (Atheros AR9132) router.

I have an USB numeric keypad with "normal" keys and a "calculator" key. It is connected via USB 1.1 hub.

When I test with cmdpad:
root@OpenWrt:~# cmdpad --debug --device /dev/input/event1
cmdpad - version 0.0.3 - Copyright (C) 2002-2003 Alessandro Fausto
Build with code optimization at Oct 28 2010 14:40:31
This is free software, comes with ABSOLUTELY NO WARRANTY, and
and you are welcome to redistribute it under certain conditions.
To view the licence use cmdpad --copying|more
PARSE: command line command device=%s found
PARSE: Command device▒▒` found
PARSE: Command string is 'device' Value is ▒▒`'
Option 'device' expects a /dev/input/eventX argument
PARSE: ERROR

It seems there is an operator / link to operator problem in cmdpad's --device data string.

Background info:

I use "standard" cmdpad package: cmdpad_0.0.3-1_ar71xx.ipk

Everything is working as expected
root@OpenWrt:~# ls /dev/input -la
drwxr-xr-x 2 root root 100 Nov 19 20:28 .
drwxr-xr-x 5 root root 1100 Jan 10 02:58 ..
crw-r--r-- 1 root root 13, 64 Nov 19 20:28 event0
crw-r--r-- 1 root root 13, 65 Nov 19 20:28 event1
crw-r--r-- 1 root root 13, 66 Nov 19 20:28 event2

cmdpad itself nicely gets event0 data.
If I rename event1 to event0, cmdpad gets old event1 data as well.

Thanks,
vmark

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by anonymous

I also had a problem specifying --device.
I am new to openwrt so I am not sure what info is needed.
uname -a is: Linux TP-LINK 2.6.39.4 #1 Fri Aug 19 23:10:14 MST 2011 mips GNU/Linux
I am using: ATTITUDE ADJUSTMENT (bleeding edge, r28054)
cmdpad - version 0.0.3 - Copyright (C) 2002-2003 Alessandro Fausto
Build with code optimization at Sep 6 2011 01:24:08

The workaround I found was to edit /etc/cmdpad.conf with the device= line that I wanted (I wanted /event1 instead of event0).

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.