[K12OSN] Another small K12LTSP 4.1.0 beta bug

Eric Harrison eharrison at mail.mesd.k12.or.us
Sun Jul 18 07:13:20 UTC 2004


On Sun, 18 Jul 2004 jam at mcquil.com wrote:

>Eric,
>
>Ok, I can take a hint :)
>
>I've incorporated the updated build_x4_cfg script.

Thanks Jim ;-)

>But, isn't there supposed to be a script that loads the usb modules too?

The one I use is attached (/opt/ltsp/i386/etc/rc.d/usb). This is of
lesser-importance to me than the build_x4_cfg patch. There are a couple
of ways to load the mousedev USB module, any way that it is done will
work with the build_x4_cfg patch (which simply listens to both /dev/psaux
and /dev/input/mice). The old build_x4_cfg does not listen to/dev/input/mice
by default, so if the mousedev USB module happens to be loaded, USB mice
stop working. By having X listen to /dev/psaux and /dev/input/mice, USB
mice will work whether or not the mousedev USB module is loaded.

If the USB modules are not loaded, most bios will make a USB mouse
appear to be a standard PS/2 device on /dev/psaux. But if the USB
modules are loaded, that same mouse will be moved from /dev/psaux to
/dev/input/mice.

Basically the patch makes mice "just work", whether they are PS/2 or USB ;-)

-Eric
-------------- next part --------------
#!/bin/sh

for module in usb-uhci usb-ohci 
do
	modprobe $module &>/dev/null
done

if [ "`lsmod | grep usbcore`" ]
then
	echo "USB subsystem found, loading keyboard and mouse drivers"
	for module in keybdev mousedev input usbmouse usbkbd
	do
		modprobe $module > /dev/null
	done
	# quick bug-fix hack
	insmod usbmouse
else
	echo "WARNING: USB subsystem not found, skipping"
fi


More information about the K12OSN mailing list