xboxdrv / xboxdrv

xboxdrv is discontinued, use the kernel driver
GNU General Public License v3.0
414 stars 138 forks source link

[0.8.8] Different flags processing on daemon and non-daemon modes #195

Open Ghost99 opened 8 years ago

Ghost99 commented 8 years ago

For some reason one of this commands works wrong. Only difference is in --daemon flag.

This is not work (new event device is created, but key presses and everything else not handled at all): xboxdrv --dbus disabled --daemon --evdev /dev/input/dualshock3 --evdev-keymap KEY_#300=y,KEY_#302=a,KEY_#301=b,BTN_DEAD=x,BTN_TOP=start,BTN_TRIGGER=back,KEY_#704=guide,BTN_BASE6=rb,BTN_BASE5=lb,BTN_TOP2=du,BTN_BASE2=dl,BTN_BASE=dd,BTN_PINKIE=dr,BTN_THUMB=tl,BTN_THUMB2=tr --evdev-absmap ABS_#49=rt,ABS_#48=lt,ABS_X=x1,ABS_Y=y1,ABS_Z=x2,ABS_RZ=y2 --axismap -Y1=Y1,-Y2=Y2 --calibration RT=0:127:255,LT=0:127:255 --mimic-xpad

But this is work: xboxdrv --dbus disabled --evdev /dev/input/dualshock3 --evdev-keymap KEY_#300=y,KEY_#302=a,KEY_#301=b,BTN_DEAD=x,BTN_TOP=start,BTN_TRIGGER=back,KEY_#704=guide,BTN_BASE6=rb,BTN_BASE5=lb,BTN_TOP2=du,BTN_BASE2=dl,BTN_BASE=dd,BTN_PINKIE=dr,BTN_THUMB=tl,BTN_THUMB2=tr --evdev-absmap ABS_#49=rt,ABS_#48=lt,ABS_X=x1,ABS_Y=y1,ABS_Z=x2,ABS_RZ=y2 --axismap -Y1=Y1,-Y2=Y2 --calibration RT=0:127:255,LT=0:127:255 --mimic-xpad

So in daemon mode event devices not handled properly. Looks like in daemon mode flags like --evdev-keymap, --evdev-absmap, --axismap are just ignored or not handled properly.

P.S. /dev/input/dualshock3 is my symlink to bluetooth connected controller. According to messages in bug #54, additional mappings is the only way to make it work. But daemon does not handle that flags and device is not working.

PunisherHD92 commented 8 years ago

Hello, I too have issue with '--mimic-xpad' option. It looks like some command-line options are ignored when running in daemon mode, as Ghost99 said above.

This works as expected: /usr/bin/xboxdrv -c /etc/default/xboxdrv --detach-kernel-driver --mimic-xpad

This does not work as expected (mimic-xpad option ignored): /usr/bin/xboxdrv -c /etc/default/xboxdrv --detach-kernel-driver --mimic-xpad --daemon