LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-05-2002, 04:31 AM   #1
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
Unwanted Console-mouse


I have a weird problem I have never seen before:
I finally have been able to set up X and it's working - great. However, if I shut it down, the mouse is still visible, like a console mouse. I can move it, but it only does weird stuff like marking lines, and from time to time bash gives me an error, but always a different one ... one I remember was that I should turn off X security features
Now, I got the following output from bash when moving the mouse:
(++) from command line, (!!) notice, (II) informational, (++) from command line, (startx) notice, (II) informational,
bash: syntax error near unexpected token 'from'
Any idea how much alcohol my PC has gotten
Thanks for your help
 
Old 07-05-2002, 08:22 AM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
I would suggest you look to see if a program called gpm is running. It provides mouse support in the console mode. I never use it.

If you have a /etc/rc.d/rc.gpm file then you can set it not to execute by

chmod 000 /etc/rc.d/rc.gpm

If that is not there, then it may be started through the sysvinit system. But I wouldn't know what to look for. But you could also

chmod 666 /usr/sbin/gpm

When an attempt to run it is made it will produce an error message, but it should work to disable it.
 
Old 07-05-2002, 11:42 AM   #3
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Original Poster
Rep: Reputation: 30
Thank you a lot
I'll try it out as soon as possibel and let you know whether it worked or not
 
Old 07-05-2002, 11:51 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i wouldn't advise changing those permissions, jsut seems like pulling the carpet out from underneath it, not nice i don't think. you should instead remove the command to start the service in the first palce from your /etc/rc.d/rc3.d directory instead, that way the gpm script will never be called in the first place, rather than just forcing it to fail. this is what teh sysvinit system would do anyway, so you could just save confusin and remove it by hand.
 
Old 07-05-2002, 12:30 PM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
The rc.gpm script is called from the rc.M script. The rc.M script checks for the execute bit to be set before attempting to run it. Clearing the exec bit allows the script to be cancelled without any modifications to the scripts. ( if [ -x /etc/rc.d/rc.gpm ]; then) Most all of the startup scripts are written in this manner to support this operation.

The chmod on the gpm program itself was more of a last resort. I do not suspect it to be required. Only used if the original start code can not be easily determined, like in the stupid sysvinit system. I only added as a "just in case."
 
Old 07-05-2002, 12:36 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if there actually is specific checking then i suppose thats a bit better, but having a directory full of scripts where half will and half won't run seems a bit confusing
 
Old 07-05-2002, 03:02 PM   #7
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Original Poster
Rep: Reputation: 30
Well, it worked - I just commented everything in rc.gpm - the file isn't too large so it's not a problem.
In the script was also written, that gpm could cause problems if used together with X - that's what happened.
 
Old 07-05-2002, 03:20 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, i didn't like the first idea about changing the permissions... but you commented the ENTIRE file?? fine... i give up!
 
Old 07-05-2002, 03:53 PM   #9
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
I useallly just comment out the section in rc.M.
But that's just me
 
Old 07-05-2002, 07:43 PM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
I usually just don't install gpm.
 
Old 07-05-2002, 07:49 PM   #11
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
Yes, but the poster did

Aussie, that's a good (but more advanced )point since
X doesn't actaully require it to be installed, and I think
you wourld agree that is the main use for most people.
 
Old 07-06-2002, 05:19 AM   #12
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Aussie
I usually just don't install gpm.
I didnt't think of not installing it - it just sounds like a good thing if you can copy text from the console.

Acid: It was just about 8 lines to comment - it isn't sooo much work
 
Old 07-06-2002, 05:37 AM   #13
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
If you want the ability to copy text in a console without using a mouse, try running the screen command. You can copy text in the window or you can copy to other windows.

With the screen command, you can open other windows. I think up to ten windows. It's like logging in to the other consoles, but in this case you only use one console screen. Read the man page for screen.
 
  


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
Suse 9.2 -> 10.0-- Now have unwanted Mouse Gestures. apony4me SUSE / openSUSE 4 12-03-2005 05:12 PM
console mouse noir911 *BSD 2 11-01-2005 04:36 PM
How can i use mouse under console??? harlemno1 Linux - Software 1 11-04-2004 08:35 PM
mouse unwanted double-click Darshbot Debian 1 10-10-2004 09:02 PM
USB mouse, keyboard, hid, console mouse problems jqcaducifer Linux - General 1 08-05-2003 09:43 AM

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

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