LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-23-2004, 11:12 AM   #1
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
/dev/mouse when upgrading to 2.6.4


Hi all,

I upgraded to Linux Kernel 2.6.4 and found a '.config' file on the internet for my make of computer (a Toshiba SP6100). I built a new kernel using this config file and a lot of things are a lot better than they were but some things also broke.

One thing that surprises me is that now I do not have a /dev/mouse. There is a /dev/input/mouse0 however. Before the upgrade, there was a /dev/mouse. If I type:

ln -s /dev/input/mouse0 /dev/mouse

things works as they used to but I don't want to have to type this in every time I start the computer. Can anyone explain what has happened? I will provide more info if requested, not sure what info would be useful.

Muzzy.
 
Old 03-23-2004, 12:19 PM   #2
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
When you make a softlink like that it should stay. You should only have to do it once and not every time you turn on your computer. Unless your deleting the link for some reason.

Adam
 
Old 03-23-2004, 01:37 PM   #3
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Original Poster
Rep: Reputation: 30
Thanks for the reply Adam.

Yes I thought that the link should stay too, but it doesn't and I don't know why. Could it be something in my shutdown or startup scripts that is somehow resetting the /dev directory or deleting the link? How can I find out when it is removed and what program removed it?

Muzzy.
 
Old 03-23-2004, 01:57 PM   #4
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Thats strange I have never had that problem. Sorry I canīt really help with tracking down scripts that could be removing it.

When you boot up go to the /dev/ directory and type as root:

rm mouse
ln -s /dev/input/mouse0 /dev/mouse

then type:

ls -l mouse

and note down what it tells you. Try starting x and using your mouse. If it works. Shutdown and restart the computer. Then go to the /dev/ and type:

ls-l mouse

Tell me how you get on.

Adam

Last edited by jimdaworm; 03-23-2004 at 01:59 PM.
 
Old 03-23-2004, 02:47 PM   #5
wintermute222
LQ Newbie
 
Registered: Aug 2003
Location: NYC
Posts: 23

Rep: Reputation: 15
The old /dev/mouse and /dev/psaux devices are deprecated and turned off in the 2.6.x kernels. You'll have to specifically enable them and rebuild your kernel if you want them.

You SHOULD be using: /dev/input/mice

That one driver aggregates all mouse input...useful if you have several input devices. Touchpad, trackball, and mouse can all be used at the same time.

For me, that parameter is set in the /etc/X11/XF86Config-4 file.
 
Old 03-23-2004, 02:48 PM   #6
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Original Poster
Rep: Reputation: 30
Here is a (hand-copied) list of everything I did, and the output received:

~$ su
#cd /dev
/dev# rm mouse
/dev# ln -s /dev/input/mouse0 /dev/mouse
/dev# ls -l mouse
lr-xr-xr-x 1 root root 17 Mar 23 21:22 mouse -> /dev/input/mouse0
/dev# exit
~$ startx
[Mouse works]
[Quit X Windows]
[Ctrl-Alt-Del]
[logon as user]
~$ cd /dev
/dev$ ls -l mouse
/bin/ls: mouse: No such file or directory
/dev$ startx
[Won't start unless I recreate the link]

Interestingly, I still have a 2.6.0 kernel on my system which I installed ages ago, and it still works. When I choose 2.6.0 from the boot menu, the mouse softlink magically reappears again even though I haven't typed the link command.

Something odd is going on that I don't understand!

I guess this must be something wrong with the kernel configuration, since everything else is the same. Perhaps I should try deleting the config I found on the internet and selecting all the settings by hand. So many settings....

Thanks for the help,
Muzzy.
 
Old 03-23-2004, 02:52 PM   #7
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Original Poster
Rep: Reputation: 30
Thanks wintermute, I will try to change my settings to use /dev/input/mice and see if that works.
 
Old 03-23-2004, 03:11 PM   #8
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Original Poster
Rep: Reputation: 30
Yes thanks - it works! I updated Xconfig and gpm to use the /dev/input/mice. I also tried plugging in my USB mouse and too my surprise it worked straight away without any reconfiguration! That never happened before... and the tracker thing still works at the same time. Amazing

I also get an message (unrelated to the mouse problem) when I start Gnome, that /dev/sound/mixer is missing. I wonder if the solution could be similar - that mixer is obsolete and I should be using something else? But maybe it's something else, I will have to look into it.

Thanks for the help,
Muzzy.
 
Old 03-24-2004, 01:12 AM   #9
wintermute222
LQ Newbie
 
Registered: Aug 2003
Location: NYC
Posts: 23

Rep: Reputation: 15
Great! Glad it worked!

I too had issues with sound at first. I had to make sure my modprobe.conf contained ONLY references to the ALSA stuff...somehow and old OSS driver kept preempting the asla stuff.

Best way to configure ALSA:
/usr/sbin/alsaconf (tho I think you need to run it as root, not sure...)
alsamixer (be sure to raise up and unmute both PCM and Master Volume)
alsactl store

(then, had check the modprobe.conf file for any old OSS drivers and remove them.
 
  


Reply



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
xwindows trouble -no /dev/mouse /dev/input/mice fatblueduck Linux - General 2 06-05-2005 11:03 PM
Kernel Upgrading, dev, udev, etc... Makaelin Slackware 2 02-11-2005 05:58 PM
no /dev/mouse Jimshade Slackware 6 06-28-2004 07:26 PM
Deleted /dev/mouse & /dev/psaux Inspection Linux - General 1 12-11-2002 08:11 PM
/dev/mouse??? hijacker Slackware 1 06-23-2002 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration