Autodetect joypad at bootup in Precise Puppy (and other pupp

Play with your Puppy.
Post Reply
Message
Author
jlst

Autodetect joypad at bootup in Precise Puppy (and other pupp

#1 Post by jlst »

If your joypad is plugged in before turning the pc on, some Puppies like Precise Puppy won't detect the joypad unless you unplug and plug it in again (after bootup).

This is something I discovered in 2013, but it's never too late..

If your puppy behaves like Precise Puppy, then you might find this useful

-> /etc/init.d/joypad

Code: Select all

#!/bin/sh

case "$1" in
 start|restart)
	modprobe joydev
	#-- based on /usr/bin/pupdial_init_hotpluggable (line 216)
	ls /sys/bus/hid/devices/*/uevent 2>/dev/null | \
	while read ONEUEVENT ; do  
		echo add > $ONEUEVENT
		sleep 0.3
	done
	udevadm trigger --action=add --subsystem-match=usb
esac
This is a 'service'
Attachments
joypad-detect-service-0.1-all.pet
(588 Bytes) Downloaded 183 times

Post Reply