Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34073 - default devfsd.conf file in /etc is incorrect re the mouse on sparc
Summary: default devfsd.conf file in /etc is incorrect re the mouse on sparc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 17:20 UTC by Dave Andruczyk
Modified: 2006-02-04 06:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Andruczyk 2003-11-21 17:20:36 UTC
The stock devfsd.conf file installed during a stage1-3 build on a Ultrasparc30 (sparc64) sets up 
devfsd.conf for a ps2 mouse (/dev/psaux).  AFAIK most sparcs don't have PS2 ports.  Due to this setup 
X will NOT work without manually editing hte devfsd.conf file and restarting devfsd, and deleting the 
symlink in /dev (/dev/mouse)  upon deletion the devfsd daemon will recreate the proper link. 
 
The proper lines for devfsd.conf are: 
 
# Create /dev/mouse 
LOOKUP          ^mouse$          CFUNCTION GLOBAL mksymlink misc/sunmouse mouse 
REGISTER        ^misc/sunmouse$     CFUNCTION GLOBAL mksymlink $devname mouse 
UNREGISTER      ^misc/sunmouse$     CFUNCTION GLOBAL unlink mouse 
 
 

Reproducible: Always
Steps to Reproduce:
1.install gentoo on a sparc64 (ultra 30/60/80 tested) 
2.Attempt to run X 
3. 
Actual Results:  
X dies complaing that the mouse is not accessible.   
Cimpley deleting /dev/mouse and relinking it to the proper place WILL NOT WORK due to devfsd 
recreating the link inappropriately as described above.   

Expected Results:  
installation of baselayout should have setup /etc/devfsd.conf properly for the hardware.  Perhaps a 
simple shell script to query entries in /proc or dmesg to determine if hte machien has pcmcia ports 
would be enough to allow the installation of baselayout on sparc to determine which devfsd.conf entries 
should be used.  (AFAIK newer sparc hardware may have PS2 ports whereas older ones did not) 

System is an UltraSparc30 running gentoo-1.4RC4 (the perpetual RC canidate) 
KB/Mouse is a standard sun keyboard with the mouse chained off of it. (non optical mouse)
Comment 1 Jason Wever (RETIRED) gentoo-dev 2003-11-23 05:36:29 UTC
An additional note about this.

On some sparc64 models (namely the Blade series), they use USB mice rather than the traditional Sun busmouse.  This ends up showing up as /dev/usbmouse.  So I'm guessing some sed-fu is in order for sparc64 to check for the existance of either /dev/sunmouse or /dev/usbmouse and set /dev/mouse accordingly.

Also users can add an USB card to PCI based sparc64s, which can add to the confusion and cause both to be present, but for now I'd just go with the above until somebody brings up the issue.

Also this can be applied to sparc as well, though the USB related issues don't exist there (as there are no sbus USB controllers that I'm aware of, nor did Sun ship a sparc with USB).
Comment 2 Sven Blumenstein (RETIRED) gentoo-dev 2003-11-24 02:00:25 UTC
Compiling the Kernel with 'sunmouse' support (CONFIG_SUN_MOUSE) provides /dev/sunmouse. I never had to change devfsd.conf on my sparc64 boxes (U5, U1) so I cant reproduce this error.
Comment 3 Sven Blumenstein (RETIRED) gentoo-dev 2003-12-01 04:20:30 UTC
Dave, does this problem still exist for you?
Comment 4 Josh Grebe (RETIRED) gentoo-dev 2003-12-31 13:17:21 UTC
This guy's issue is that devfsd.conf isn't setting /dev/mouse to point to whatever device his sun mouse happens to be. It could be /dev/sunmouse, /dev/misc/sunmouse, /dev/usbmouse, etc. I'm not sure that this is really a bug, so much as something a user should be configuring on thier system (all my X configs point to /dev/misc/sunmouse)... So the question is, is this a bug, if so then lets make a patch and get it resolved, if not lets resolve it otherwise...
Comment 5 Dave Andruczyk 2004-04-08 18:11:43 UTC
resolved.  (user error)