LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-29-2003, 05:14 PM   #1
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Rep: Reputation: 15
Arrow Slackware:/dev/mouse: No such device


I recenly went to the trouble of recompiling my kernel but i have run into some problems. Most of them i have gotten ironed out but i am still having problems with my USB mouse. when i boot i get the message :

/dev/mouse: No such device

when i try to cat /dev/mouse and /dev/input/mice I get a message:

root@hotbox [/]# cat /dev/mouse
cat: /dev/mouse: No such device
root@hotbox [/]# cat /dev/input/mice
cat: /dev/input/mice: No such device

My boot messages regarding usb are similar to the following:

root@hotbox [/]# dmesg | grep USB
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB UHCI at I/O 0xd800, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
uhci.c: USB UHCI at I/O 0xd400, IRQ 5
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
uhci.c: USB UHCI at I/O 0xd000, IRQ 10
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hid-core.c: USB HID support drivers
Initializing USB Mass Storage driver...
USB Mass Storage support registered.
hub.c: new USB device 00:1d.1-1, assigned address 2
: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb2:2.0

apparently it finds the mouse but isn't mapping it to /dev/mouse correctly, any ideas? I made sure i compiled usb hid into the kernel, perhaps there was something else i neglected to comile in?

I tried to reinstall the kernel from the cd, but to no avail.

alas, i am out of ideas.

Thanks for hte help,
 
Old 07-29-2003, 05:27 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
/dev/mouse is a symlink to another device usually, you probably either compiled in support for usb devfs or compiled it out, I can't remember Slack's default, I've got too much PS/2 kit. What's the symlink on /dev/mouse point to:

ls -l /dev/mouse

Cheers,

Finegan
 
Old 07-29-2003, 07:51 PM   #3
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
/dev/mouse points to /dev/input/mice but that device doen't exist either, as i pointed out in my first post.

Thanks.
 
Old 07-29-2003, 08:13 PM   #4
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
Where is the flag to compile in usb devfs support?

Thanks
 
Old 07-29-2003, 09:29 PM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Its under the usb subsection in a make menuconfig, you might want to just try:

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

That might be it...

Cheers,

Finegan
 
Old 07-29-2003, 10:32 PM   #6
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
nah, /dev/usb/mouse0 does not exist either.

i've recompiled a couple of things in again, and i modprobe mousedev in at boot. Now /dev/input/mice and /dev/mouse exist but produce no output. 'cat'ting them produces no output.

i presume the usb devfs flag i'm looking for is the 'preliminary usb device fs' under usb support-----> (kernel 2.4.20)

Thanks,
 
Old 07-30-2003, 01:50 PM   #7
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
OK, i'm one step closer to getting this thing solved. I browsed throught he kernel config help file a little and found that for usb mice to work, i had to compile in 'usb hid support' and 'usb hid input layer support.'

so i select them from the make menudonfig list. and compile

make dep
make clean
make bzImage

and i get these errors when it gets to the usb section:

dirvers/usb/esbdrv.o(,text+0x153cd): In fucntion 'hidinput_hid_event':
: undefined reference to 'input_event'
[...]
make: *** [vmlinux] Error 1

this has me thouroghly stumped... any ideas?

Thanks,
 
Old 07-30-2003, 02:31 PM   #8
Harpune
Member
 
Registered: Sep 2002
Location: Seattle, WA
Distribution: Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 15
Alriight! i finally got it working, Thanks for all the help...

It turns out that 'usb hid support' requires the 'input core support' to be compiled the same way as it is. I had usb support compiled into the kernel and input core compiled as a module, that was producing the comile-time errors. when i changed them both to compile into the kernel it worked like a dream.

Thanks for the help, finegan.
 
  


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
/dev/mouse: no such device crontab Linux - Software 12 07-13-2005 10:56 PM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM
slackware mount: /dev/hdb1 is not a valid block device piva.francesco Linux - Hardware 7 03-25-2005 11:08 AM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 09:24 PM
/dev/js0 as second mouse ty pe input device in Xfree86 frieza Linux - Software 0 05-24-2004 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:34 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