I just cut out the bad if fi block as I didn't found an error to fix.
Code:
Checking for kernel 2.6 or greater... [Yes]
Is evdev running as a module... [not loaded]
Can evdev be loaded as a module... [not loaded]
Checking for /proc/config.gz... [Found]
Checking if evdev is enabled... [Yes]
* No event node found in /dev/input/. Aborting.
Code:
ls -lah /dev/input/
insgesamt 0
drwxr-xr-x 2 root root 180 27. Apr 10:20 .
drwxr-xr-x 20 root root 14K 27. Apr 10:20 ..
crw------- 1 root root 13, 65 27. Apr 10:10 event1
crw------- 1 root root 13, 66 27. Apr 09:54 event2
crw------- 1 root root 13, 67 27. Apr 10:10 event3
crw-r--r-- 1 root root 13, 63 27. Apr 10:10 mice
crw-r--r-- 1 root root 13, 32 27. Apr 10:10 mouse0
lrwxrwxrwx 1 root root 6 27. Apr 10:20 mx510 -> event2
crw-r--r-- 1 root root 13, 64 27. Apr 10:10 ultrafla
Is the version 31 broken or what is going on?
Code: Select all
ln -s /dev/input/event1 /dev/input/event0Code: Select all
./config.sh -n -H mx510
I used winrar before my switchvorgas wrote:Ok, I was able to get something to extract a bz2 file.
All checked and OK.I'm not sure what caused the error during the install procedure. First let's cover that. All the if/then statements were checking was to see if there had been a symbolic link in place. You just want to make sure that /bin/mmm3k and /sbin/mmm3k are both linked to /opt/mmm3k/mmm3k.
Then, you'll want to make sure that there is an /etc/mmm3k/config.sample.
That handles install.sh.
I rewrote my udev rules to make links to the eventN as the keyboard is now a link to event0 it now longer substitute it and your config.sh works.Now, on to configure.sh which caused the error. The problem is I look for /dev/input/event0 to determine if evdev is active. You don't have /dev/input/event0, so the script kicks out.
The best thing to do is to create a symbolic link to event1Everything should work after that. You do NOT want to link the node to your mouse event because then it will create more than one positive match, and begin asking you all sorts of questions.Code: Select all
ln -s /dev/input/event1 /dev/input/event0
Once you get a successful install, you should delete the /event0 link.
Now then, it appears that you have a udev link from mx510 to the mouse event. If this is correct, then you can aid the configure script by running it as:If that doesn't work just run ./config.sh normally.Code: Select all
./config.sh -n -H mx510
Finally, if you're still having troubles, please run it with the -v switch (./config.sh -v) and post that output here.

Code: Select all
cat /etc/udev/rules.d/10-local.rules
# Logitech Optical Mouse MX510
KERNEL=="event*", SYSFS{manufacturer}=="Logitech", SYSFS{product}=="USB-PS/2 Optical Mouse", SYSFS{idProduct}=="c01d", SYMLINK="input/mx510", MODE="0644", RUN="/usr/sbin/logitech_applet -e -s 800"
#KERNEL=="event*", SYSFS{manufacturer}=="B16_b_02", SYMLINK+="input/mx510", NAME="%k"
# Logitech Ultraflat Keyboard Y-SX49
KERNEL=="event*", BUS="serio", ID="serio1", SYMLINK="input/ultraflat", MODE="0644"
BUS=="usb", SYSFS{idProduct}=="c01d", SYSFS{idVendor}=="046d", KERNEL=="event*", SYMLINK="input/mmm3k" Code: Select all
ls -lah /dev/input/
insgesamt 0
drwxr-xr-x 2 root root 220 2. Mai 10:12 .
drwxr-xr-x 20 root root 14K 2. Mai 10:12 ..
crw------- 1 root root 13, 64 2. Mai 09:47 event0
crw------- 1 root root 13, 65 2. Mai 09:47 event1
crw------- 1 root root 13, 66 2. Mai 09:47 event2
crw------- 1 root root 13, 67 2. Mai 09:47 event3
crw-r--r-- 1 root root 13, 63 2. Mai 09:47 mice
lrwxrwxrwx 1 root root 6 2. Mai 10:12 mmm3k -> event2
crw-r--r-- 1 root root 13, 32 2. Mai 09:47 mouse0
lrwxrwxrwx 1 root root 6 2. Mai 07:49 mx510 -> event2
lrwxrwxrwx 1 root root 6 2. Mai 10:12 ultraflat -> event0
Code: Select all
mmm3k makeconfig /dev/input/mmm3k
Password:
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x46d product 0xc01d version 0x2100
Input device name: "Logitech USB-PS/2 Optical Mouse"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 272 (LeftBtn)
Event code 273 (RightBtn)
Event code 274 (MiddleBtn)
Event code 275 (SideBtn)
Event code 276 (ExtraBtn)
Event code 277 (ForwardBtn)
Event code 278 (BackBtn)
Event code 279 (TaskBtn)
Event type 2 (Axis)
Event code 0 (X)
Event code 1 (Y)
Event code 8 (Wheel)
Testing ... (interrupt to exit)Code: Select all
/opt/mmm3k/evtest /dev/input/mmm3k
or
/opt/mmm3k/evtest /dev/input/mx510
or
/opt/mmm3k/evtest /dev/input/event2

Code: Select all
mmm3k /dev/input/mx510
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x46d product 0xc01d version 0x2100
Input device name: "Logitech USB-PS/2 Optical Mouse"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 272 (LeftBtn)
Event code 273 (RightBtn)
Event code 274 (MiddleBtn)
Event code 275 (SideBtn)
Event code 276 (ExtraBtn)
Event code 277 (ForwardBtn)
Event code 278 (BackBtn)
Event code 279 (TaskBtn)
Event type 2 (Axis)
Event code 0 (X)
Event code 1 (Y)
Event code 8 (Wheel)
Testing ... (interrupt to exit)
Aufruf: grep [OPTION]... MUSTER [DATEI]...
»grep --help« gibt Ihnen mehr Informationen.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not found
Aufruf: grep [OPTION]... MUSTER [DATEI]...
»grep --help« gibt Ihnen mehr Informationen.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not found
3Aufruf: grep [OPTION]... MUSTER [DATEI]...
»grep --help« gibt Ihnen mehr Informationen.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not found
...



Code: Select all
Are you running mmm3k as root or as a normal user? mmm3k is designed to be run as root.
Does evtest work as a normal user or as root only?Code: Select all
sudo /opt/mmm3k/mmm3k /dev/input/mx510
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x46d product 0xc01d version 0x2100
Input device name: "Logitech USB-PS/2 Optical Mouse"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 272 (LeftBtn)
Event code 273 (RightBtn)
Event code 274 (MiddleBtn)
Event code 275 (SideBtn)
Event code 276 (ExtraBtn)
Event code 277 (ForwardBtn)
Event code 278 (BackBtn)
Event code 279 (TaskBtn)
Event type 2 (Axis)
Event code 0 (X)
Event code 1 (Y)
Event code 8 (Wheel)
Testing ... (interrupt to exit)
PRODUCT=46dc01d CATEGORY=mx510 ACTION=1|Key CODE=272|LeftBtn VALUE=1 WINDOW=
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not found
PRODUCT=46dc01d CATEGORY=mx510 ACTION=1|Key CODE=272|LeftBtn VALUE=0 WINDOW=
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not found
PRODUCT=46dc01d CATEGORY=mx510 ACTION=1|Key CODE=273|RightBtn VALUE=1 WINDOW=
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not found
PRODUCT=46dc01d CATEGORY=mx510 ACTION=1|Key CODE=273|RightBtn VALUE=0 WINDOW=
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not found
PRODUCT=46dc01d CATEGORY=mx510 ACTION=1|Key CODE=272|LeftBtn VALUE=1 WINDOW=
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
xdpyinfo: unable to open display "".
/opt/mmm3k/wininfo.sh: line 7: xprop: command not foundCode: Select all
/usr/local/mmm3k/scripts/maputility.py
File "/usr/local/mmm3k/scripts/maputility.py", line 202
else
^
SyntaxError: invalid syntax
Code: Select all
ioctl(fd, EVIOCGRAB, 1)
Code: Select all
...
if (ioctl(fd, EVIOCGVERSION, &version)) {
perror("mmm3k: can't get version");
return 1;
}
+ if (ioctl(fd, EVIOCGRAB, 1) == 0) {
+ printf("exclusive access granted\n");
+ }
+
printf("Input driver version is %d.%d.%d\n",
version >> 16, (version >> 8) & 0xfff, version & 0xff);
ioctl(fd, EVIOCGID, id);
...