Mouse setup to run 2.4 kernel alongside 2.6?

Andrew Konosky TerranAce007 at comcast.net
Sat Sep 11 19:48:49 UTC 2004


Alexander Dalloz wrote:

>Am Sa, den 11.09.2004 schrieb Andrew Konosky um 4:48:
>
>  
>
>>I would like to install a 2.4 kernel and add it to my grub.conf so that 
>>I can either use 2.4 or 2.6, depeding on what programs I need to run. 
>>Since they use different mouse settings, how would I go about setting 
>>something up so that I don't have to edit the xorg config every time I 
>>switch?
>>    
>>
>
>Which applications do require a 2.4 kernel?
>
>  
>
>>I have a regular PS/2 mouse, so could I just create some symlinks to the 
>>mouse device? If so, link what to what?
>>    
>>
>
>You could test following:
>
>Edit /etc/rc.sysinit and add at it's end, right before the last lines
>for exit signals to rhgb, code like this:
>
>rm -f /dev/mouse
>if [ $(uname -r | cut -b -3) == "2.4" ]; then
>    ln -sf /dev/psaux /dev/mouse
>else
>    ln -sf /dev/input/mice /dev/mouse
>fi
>
>Use in /etc/X11/xorg.conf as mouse device location /dev/mouse.
>If you run service gpm you'll have to care for that too. Copy
>/etc/sysconfig/gpm (with current settings for kernel 2.6) to
>/etc/sysconfig/gpm-2.6. Copy it to to /etc/sysconfig/gpm-2.4 and change
>the DEVICE line to DEVICE="/dev/mouse". At top of /etc/init.d/gpm you'll
>have to change the sourcing of the gpm sysconfig file.
>
>[ -e /etc/sysconfig/gpm ] && . /etc/sysconfig/gpm
>
>becomes
>
>rm -f /etc/sysconfig/gpm
>if [ $(uname -r | cut -b -3) == "2.4" ]; then
>    [ -e /etc/sysconfig/gpm-2.4 ] && cp -a /etc/sysconfig/gpm-2.4
>/etc/sysconfig/gpm
>else [ -e /etc/sysconfig/gpm-2.6 ] && cp -a /etc/sysconfig/gpm-2.6
>/etc/sysconfig/gpm
>fi
>[ -e /etc/sysconfig/gpm ] && . /etc/sysconfig/gpm
>
>Do the same with the /etc/sysconfig/mouse config file according line
>DEVICE=... This sysconfig file is source right below the gpm sysconfig
>file in the gpm init script.
>
>This all is untested and *might* work! I give not any warranty! Keep
>care for mistypings.
>
>Alexander
>
>
>  
>
Well, I have a program called TiLP that connects through a USB cable to 
a Ti83+ calculator, which I use in calculus class. I have a linking 
program to use under windows, but I have been unable to get the linux 
link program to work. I was told it is because the 2.6 kernel detects 
USB devices differently, so I thought I would try the 2.4.

That seems like a lot of work, so I will just install the 2.4 kernel and 
edit the xorg.conf. Then if the program doesn't work in 2.4 either, I 
can quickly switch back to 2.6 settings.





More information about the users mailing list