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 07-04-2009, 03:53 PM   #1
rwcooper
Member
 
Registered: Mar 2006
Posts: 123

Rep: Reputation: 20
link to /dev/mouse changed on reboot


Hi,

I am running Slackware 12.2 on an old computer with a serial mouse. After each reboot /dev/mouse is a link to input/mice even though I change it to being a link to /dev/ttyS0. Can anyone tell me what I need to do to ensure that /dev/mouse remains a link to /dev/ttyS0 across reboots?

Thanks,
Randy
 
Old 07-04-2009, 06:30 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I think the problem is caused by two udev rules:

/lib/udev/rules.d/40-slackware.rules:
Code:
KERNEL=="mice",   SYMLINK+="mouse"
/lib/udev/rules.d/50-udev-default.rules:
Code:
KERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
I won't pretend to understand writing new udev rules and I've hacked only a few on my own. Do know that you want to add your own udev rule in /etc/udev/rules.d and not in /lib/udev/rules.d.

Perhaps that is sufficient information to help you get started, but I'm sure somebody here will help you write a new rule.
 
Old 07-04-2009, 06:58 PM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
I /think/ the rule you mentined should be changed to
Code:
KERNEL="tts/%n" SYMLINK="mouse"
But I'm not sure. I don't even have such a rule in my system.
Here's the general tutorial
http://www.reactivated.net/writing_udev_rules.html
 
  


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
rights /dev/st0 is changed at reboot Wimpie22 Linux - General 1 12-18-2007 09:47 AM
pc name changed after regular reboot Lord of the Board Linux - Newbie 2 10-01-2006 03:24 PM
reboot deletes /dev/modem link cch2cch Linux - Networking 2 08-23-2005 03:05 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 02:09 PM
symbolic link: /dev/sound to /proc/asound/dev otterit Linux - General 3 08-08-2002 05:33 PM

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

All times are GMT -5. The time now is 12:57 PM.

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