Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Sep 2018, 15:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Autodetect joypad at bootup in Precise Puppy (and other pupp
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
jlst

Joined: 23 Nov 2012
Posts: 571

PostPosted: Mon 07 Dec 2015, 16:32    Post subject:  Autodetect joypad at bootup in Precise Puppy (and other pupp  

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:
#!/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'
joypad-detect-service-0.1-all.pet
Description 
pet

 Download 
Filename  joypad-detect-service-0.1-all.pet 
Filesize  588 Bytes 
Downloaded  112 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0736s ][ Queries: 12 (0.0131s) ][ GZIP on ]