You don't have to rip anything. xserver-xorg-input-joystick package is standalone. Just install it, and drop .fdi mapping for accelerometer-joystick device in