SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Hi: After 'gpm -k' the mouse is disabled. Now, if I need it again, I do gpm restart, acording to /etc/rc.d/rc.gpm. But it isn't enabled again! Possible cause? Perhaps disabling it with 'gpm stop'?
I made 'gpm -m /dev/mouse -t imps2 and it restarted! Why 'gpm restart' has no effect?
It could be an issue in what happens when gpm -k is run when the program is already killed. It doesn't make much sense to me, but in the future, you could try running /etc/rc.d/rc.gpm start directly if restart doesn't work to see if that allows it to function again.
If you look at the rc script, restart contains the same command as the stop and start commands. In theory, running restart should work to start the command, but apparently it didn't work. That's why I asked to see if running start made a difference, because the start and the restart command both run gpm -m /dev/mouse -t imps2 which did work to start the server up again.
But, the script commands are stop to stop it, start to start it, and restart to stop and then to start it. "Restart" is designed to be used when it is running to restart the program (you can't restart a computer if it is shut down).
As I said above, restartshould work, but since it didn't, I'm wondering if start works instead.
That's not a valid argument for the command. Now, if you run /etc/rc.d/rc.gpm stop and that doesn't stop the mouse, it might be worth looking into. But that command should run:
Code:
/usr/sbin/gpm -k
...which is a valid option for the command and should stop the server.
As I said above, running /etc/rc.d/rc.gpm restart should "stop" and then "start" the gpm server, but if restart doesn't work, I was curious if "stop" works...
The machine is still at the repair man house, sorry. Anyway, as there is the -k option for gpm there should also be an option to restart it. But there is not. To have to run /etc/rc.d/rc.gpm restart is awkward. The slackware machine will be in my power in a few days.
The machine is still at the repair man house, sorry. Anyway, as there is the -k option for gpm there should also be an option to restart it. But there is not. To have to run /etc/rc.d/rc.gpm restart is awkward. The slackware machine will be in my power in a few days.
gpm is the binary provided by the program. Slackware has no control over that and what flags/options it supports. /etc/rc.d/rc.gpm is provided by Slackware to control gpm (mostly) on startup). This file should support start, stop, and restart. If you look at the script, you can see what it does:
So, if it's passed "stop", it will run /usr/sbin/gpm -k, if it's passed "start", it will run /usr/sbin/gpm -m /dev/mouse -t imps2, and if it's passed restart, it will run /usr/sbin/gpm -k, followed by a 1 second pause, and then /usr/sbin/gpm -m /dev/mouse -t imps2 to start it back up. If this script is not working, that's the only thing Pat can tweak. That's what we need to test.
If you think gpm should support a stop flag, you'd need to get with the developers of gpm and see if they're willing to add support for that.
I did test running /etc/rc.d/rc.gpm stop and it successfully stopped the process (although, my mouse still worked, but I'm too lazy to research why, although, it's probably a simple reason). Then I ran /etc/rc.d/rc.gpm restart (which should try and kill the gpm process and then start it again). I got an error that it couldn't kill the program (since it was already killed) and then it successfully started gpm again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.