Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind). |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-04-2003, 03:56 AM
|
#1
|
LQ Newbie
Registered: Jun 2003
Distribution: RedHat 9, Slackware Live, Slackware 9
Posts: 16
Rep:
|
switching between laptop touch pad and USB mouse
hi!
The situtation is: when at home I use a USB mouse, and when out and about I use my laptop's touch pad. But the problem is whenever i want to switch between the two, I need to restart the computer  , to get the different settings to work.
is there anyway to make both devices work simultaniously; so that I dont have to keep restarting linux!?!
Details:
Red Hat 9.0
Toshiba Satellite 3000 PIII 1ghz
thanks in advance!!
-kris
|
|
|
06-04-2003, 10:31 AM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Define both mice in your XF86Config in a manner similar to this:
Code:
Section "InputDevice"
Identifier "Touchpad"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen1"
InputDevice "Generic Keyboard"
InputDevice "Touchpad"
InputDevice "USB Mouse"
EndSection
This will send/receive events to/from both devices.
Last edited by moses; 06-04-2003 at 10:34 AM.
|
|
|
06-04-2003, 08:24 PM
|
#3
|
LQ Newbie
Registered: Jun 2003
Distribution: RedHat 9, Slackware Live, Slackware 9
Posts: 16
Original Poster
Rep:
|
thanks that was really helpful. Now Linux wont start up
-Kris
PS: is there any way I can edit XF86Config in the terminal (since the GUI won't load)
Last edited by unitcoed; 06-04-2003 at 08:28 PM.
|
|
|
06-05-2003, 12:57 AM
|
#4
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Linux not starting and the X server or window manager not starting are two very different things, which is your problem? I can't imagine that your editing of XF86Config would have anything to do with Linux not starting.
I'm assuming you mean X won't start. You can edit XF86Config with many editors. I prefer vi, but some other options are emacs and pico.
You can also find out what the problem is by looking at the file:
/var/log/XFree86.0.log, the error will usually be at the end of the file, which you can see with the command:
Code:
tail -40 /var/log/XFree86.0.log
I'm sure the problem has to do with X not finding one or both of the pointing devices, but it's best to worry about that after we see the error message. If you post the error message, we can get both devices working. . .
|
|
|
06-05-2003, 06:33 AM
|
#5
|
Member
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160
Rep:
|
If you are in runlevel 4 (the one where the X server starts automatically) an you XF86Config file is buggy, you might find yourself in that situation where you reboot and the x server starts with an error and that freezes the computer.
To repair your system, boot ut from the slack cd up to the prompt. At the prompt, you need to mount the partition hosting your slack distro.
To do that type:
# mkdir /homepart
# mount /dev/hdax /homepart
(/dev/hdax needs to be replaced by your partition device)
From there, all the files are accessible from /homepart.
Therefore, if you have a back up of your XF86Config file prior to the change that broke it, restore it:
# cd /homepart/etc/X11/
# cp XF86Config-backup XF86Config
(assuming XF86Config-backup is yout backup file)
Ar a rule of thumb, before modifying your XFree86config file, always make sure to change the runlevel to 3 (x not automatically started) in case something goes wrong. You can do that quickly by typing:
# telinit 3
Obviously, you can still start the Xserver by doing:
# startx
But if the xserver fails starting, it will shutdown and you will have the command line to keep on debugging.
THe other thing that might be helpful is to remember that doing a telinit won't change the default runlevel at next reboot. If you want to change that, you need to change the inittab in /etc.
Hope it helps..
|
|
|
06-05-2003, 06:59 AM
|
#6
|
LQ Newbie
Registered: Jun 2003
Distribution: RedHat 9, Slackware Live, Slackware 9
Posts: 16
Original Poster
Rep:
|
sorry for the sarcasm on my last post, I was just a bit irritated.
the problem was that X window didn't load; I got a blank window (not the X window interface) that had two buttons "Yes" and "Cancel" that was followed by another blank window that had two buttons "Yes" and "cancel" and finaly an OK button.
The first time i got this screen, I canceled the first two screens and hit OK. This didn't work, Bringing me to the Terminal. I then typed # startx but that didn't work.
So i restarted my computer, and it did the same thing. (the blank windows) This time I changed the order, hitting the Yes button followed by yes, and this loaded up X window.
(confusing? yes!  )
But the great thing is, now both touch-pad and the usb mouse work!!
thank you laurentbon and Moses for your replies!! 
Last edited by unitcoed; 06-05-2003 at 07:01 AM.
|
|
|
06-05-2003, 09:39 AM
|
#7
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Quote:
Originally posted by laurentbon
If you are in runlevel 4 (the one where the X server starts automatically) an you XF86Config file is buggy, you might find yourself in that situation where you reboot and the x server starts with an error and that freezes the computer.
|
If the system is set up correctly (like Slackware), one doesn't need to go through all of that to fix X, simply hit Ctrl-Alt-F6 and you can get to a command line. Having a bad XF86Config should not freeze your computer, even if it starts in runlevel 4, since X is generally smart enough to recognize that its config file is bad and doesn't lock up the system.
|
|
|
06-05-2003, 09:42 AM
|
#8
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Quote:
Originally posted by unitcoed
the problem was that X window didn't load; I got a blank window (not the X window interface) that had two buttons "Yes" and "Cancel" that was followed by another blank window that had two buttons "Yes" and "cancel" and finaly an OK button.
But the great thing is, now both touch-pad and the usb mouse work!!
|
I have never seen this behavior before (no one should ever see that behavior, as it's stupid). What window manager are you using?
I'm glad it's working for you. =-}
|
|
|
06-05-2003, 11:16 PM
|
#9
|
LQ Guru
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109
Rep:
|
greetings, I have this same situation on my thinkpad. I have a ms wireless wheel mouse and the pointing stick working at the same time in X, if you post your X config file (should be the one ending in "-4") maybe we can fix it up for you.
One thing you've probably already thought of, but I'll verbalize anyway: Never edit your X config without backing it up first, it's so much easier to restore it and begin anew as opposed to trying to remember how it was.
One last thing about my setup: it does not yet survive a suspend/resume, at that point I have to exit X, and restart it, other than that it works nicely 
|
|
|
06-11-2003, 12:37 PM
|
#10
|
Member
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665
Rep:
|
Don't forget at the bottom of the XF86COnfig file to put the devices like this...
InputDevice "touchpad" "CorePointer"
InputDevice "usbmouse" "SendCoreEvents"
InputDevice "Keyboard1" "CoreKeyboard"
THis is my config for slackware, cause if I boot up without a USB mouse plugged in and I had the CorePointer the USB thing it gave an error and I couldn't use the mouse/touchpad at all.
|
|
|
All times are GMT -5. The time now is 04:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|