LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-12-2004, 06:25 AM   #1
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
Kernel 2.6.8.1: psmouse


I compiled a 2.6.8.1 kernel this evening, and the mouse was not working after a reboot. I found 'modprobe psmouse' (as root, and only as root) from the console got it working.

Why is this module not getting loaded during boot, whereas mousedev is being loaded in my 2.4 kernel? I don't see anywhere in /etc/rc.d where mousedev is being loaded.

Also, why can I only modprobe psmouse as root?

Thanks
 
Old 09-12-2004, 07:07 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
try enable hotplug with 2.6.8.1 kernel.

If it fails again, try :

# where is mousedev in rc.d ?
grep mousedev /etc/rc.d/*

# ok found it
uncomment /sbin/modprobe mousedev in rc.modules

As far I know, only root can modprobe modules, for security reason (did you know that a bad module can tweak your system or worst it can be a trojan)
 
Old 09-12-2004, 11:44 AM   #3
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Cedrik
try enable hotplug with 2.6.8.1 kernel.

If it fails again, try :

# where is mousedev in rc.d ?
grep mousedev /etc/rc.d/*

# ok found it
uncomment /sbin/modprobe mousedev in rc.modules

As far I know, only root can modprobe modules, for security reason (did you know that a bad module can tweak your system or worst it can be a trojan)
I do have hotplug enabled. Also, I did grep for mousedev in rc.d and found it in rc.modules, like you said. However, the line is commented. I'm thinking mousedev was being autoloaded during boot, maybe when gpm executes? But, psmouse does not seem to be autoloaded.

I can add a modprobe psmouse to rc.modules, I suppose, but I'd like to know how mousedev was being autoloaded before, and why psmouse is not.
 
Old 09-12-2004, 11:51 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Begin investigations with your kernel configs. Try to see where feature are enabled as built-in (y) or as module (m)
 
Old 09-12-2004, 11:57 AM   #5
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Original Poster
Rep: Reputation: 15
So, in my 2.6.8.1 kernel, I have ps2 mouse enabled as a module, and a psmouse.ko module was built, which I can load with modprobe as root, and the mouse works.

In parallel, my 2.4 kernel had a module mousedev.

However, mousedev seemed to be loaded automatically during boot; it's only reference in rc.d was commented out.

I'm trying to figure out the difference.
 
Old 09-12-2004, 12:06 PM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Did you enabled hotplug when you was in 2.4, if yes try :

grep mousedev /etc/hotplug/*
 
Old 09-12-2004, 01:04 PM   #7
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Original Poster
Rep: Reputation: 15
I did find a reference to mousdev in /etc/hotplug/usb.rc. However, it never gets called because "X11_USBMICE_HACK=false". So, I don't think that's where mousedev was being loaded.

I guess I'll try to find some info on how modules are autoloaded ...

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in psmouse module? - need some help.. Yalla-One Slackware 4 10-03-2005 06:01 AM
PS/2 mouse error in psmouse.c kushalkoolwal Debian 10 08-19-2005 02:04 PM
modprobe: can't locate module psmouse linuxhippy Slackware 3 06-03-2005 09:00 AM
Autostart in debian & psmouse VertX Debian 2 02-08-2005 03:24 AM
psmouse and wacom pen in kernel 2.6.6 on /dev/input/mice Moloko Linux - Hardware 0 07-18-2004 12:33 PM


All times are GMT -5. The time now is 05:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration