LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2003, 08:31 PM   #1
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Rep: Reputation: 30
symlink question


This is confusing for me. I read man symlink but it doesn't help. this is what I want to do:

Quote:
5.1. Using an external USB pointer device in X
Most people want both the stick/touchpad working full-time,
and to be able to plug in an external USB mouse whenever they
want and have it work without having to retool XF86Config each
time. I have successfully done this with the following
sections in my XF86Config-4:
Section "InputDevice"
# This section controls the stick/touchpad
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "on"
EndSection

Section "InputDevice"
# This section controls an optional USB mouse
Identifier "USBMouse"
Driver "mouse"
Option "Device" "/dev/pointer"
Option "Name" "AutoDetected"
Option "Protocol" "IMPS/2"
Option "Vendor" "AutoDetected"
Option "ZAxisMapping" "4 5"
EndSection

Next, modify the "ServerLayout" section to look something like:
Section "ServerLayout"
Identifier "MyXLayout"
Screen "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "USBMouse" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
This tells the Xserver to always look for Mouse0, and barf if
it's not there (which hopefully will never happen), and if the
USBMouse is detected on /dev/pointer, then have it send core
signals to the Xserver, but don't barf if it can't find it.

Last note, make sure you make a symbolic link from
/dev/input/mice (this is on the 2.4.x kernel) to /dev/pointer

when I tried
Code:
symlink /dev/input/mice /dev/pointer
it returned an error like this:
bash: symlink: command not found

help!
 
Old 03-31-2003, 08:34 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You're almost there mate ...

man (2) symlink is what you read, it's
programming information. Look at the bottom
of that manpage, find the man page entry
with (1), namely ln, and enjoy :)

ln -s /dev/input/mice /dev/pointer
is what you want to do ;)

Cheers,
Tink
 
Old 03-31-2003, 08:39 PM   #3
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
thanks
 
Old 03-31-2003, 10:17 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Pleasure mate...
Keep up the good work!

Cheers,
Tink
 
Old 03-31-2003, 10:25 PM   #5
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
btw, this little mouse trick works very well.
 
  


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
Symlink Fredde87 Linux - General 14 09-30-2005 08:06 PM
Symlink/Linking Question crazy4bass Linux - General 1 04-22-2005 06:37 PM
symlink mikedelo Linux - Software 2 03-28-2004 12:32 PM
symlink evannextel Linux - Newbie 1 09-17-2003 03:54 PM
Basic symlink question Zychior Linux - General 1 09-17-2002 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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