Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
|
 |
08-11-2002, 03:45 AM
|
#1
|
Member
Registered: May 2002
Posts: 113
Rep:
|
Running commands on bootup
I have some problems with repeating keys on my Toshiba 1405 laptop with Mandrake 8.2 installed. To fix this problem I downloaded ActiveX and ran the following from the command line...
http://rooster.stanford.edu/~ben/toshiba/keyboard.php
/usr/local/bin/ax +bouncekeys
/usr/local/bin/ax -timeout
/usr/local/bin/ax bonucedelay 10
However, I cannot get ActiveX to save and load these settings on bootup. I've tried putting these in /etc/rc.d/rc.local and in /etc/X11/xdm/XSession.
Is there anywhere else I can try and save these settings to so that they will run during bootup?
- Thanks, robeb
|
|
|
08-11-2002, 05:31 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
please search the forum before posting questions in future, it will often save you a lot of time. add your command to the end of /etc/rc.local
|
|
|
08-11-2002, 05:34 AM
|
#3
|
Member
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388
Rep:
|
I'm sure you meant AccessX-not ActiveX
Did you try the other suggestions at that link,like installing the latest updates?
lynch
|
|
|
08-11-2002, 02:08 PM
|
#4
|
Member
Registered: May 2002
Posts: 113
Original Poster
Rep:
|
Oops, looks like I did mean AccessX. Let me typing hands get away from me.
Anyways, if I have the commands in /etc/rc.d/rc.local then putting them in /etc/rc.local won't help. They are linked files.
I've downloaded the lateset AccessX tarball and have tried editing the AccessX config file. I don't know why the commands aren't being run during bootup. I can run them fine from the command line. I've also tried setting the repeat and delay time with "kbdrate".
Maybe there's an issue with the installation of Mandrake 8.2 on my laptop. I've used rc.local on my Red Hat 7.2 w/out any problems.
- robeb
|
|
|
08-11-2002, 02:32 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
hmm, helps if i finish reading the question... well rc.local must be executed, otherwise your system is shafted... that's technical jargon... sorry 
|
|
|
08-11-2002, 02:58 PM
|
#6
|
Member
Registered: May 2002
Posts: 113
Original Poster
Rep:
|
I prefer "hosed" myself
So I add a line to rc.local to shutdown httpd and it worked so it must be a bug with AccessX. Maybe in conjuntion with Mandrake? Anyways, I think I'm going to reinstall Red Hat 7.2 on my laptop since I'm also having problems with the APM during reboot. I've been working on these problems for too long now. Too bad, I was beginning to like Mandrake. Maybe I'll install it on my next box. Well, thanks for the help!
- robeb
|
|
|
08-11-2002, 04:42 PM
|
#7
|
LQ Newbie
Registered: Dec 2000
Location: Ridgecrest, California
Posts: 25
Rep:
|
I've also had a lot of trouble getting commands in rc.local to execute under Mandrake 8.2. It doesn't seem to make any difference what I put in rc.local, much of the time they don't execute. It happens that kbdrate is one of the commands that I can't get to work in rc.local
I've never had this problem with any other Linux package.
Tom
|
|
|
08-11-2002, 08:02 PM
|
#8
|
Member
Registered: May 2002
Posts: 113
Original Poster
Rep:
|
Well, I figured out how to fix the problem with loading the AccessX commands, and it has nothing to do with rc.local.
For future reference, place the commands
/usr/local/bin/ax +bouncekeys
/usr/local/bin/ax -timeout
/usr/local/bin/ax bouncedelay 10
in the /etc/X11/xinit/xinitrc file, BEFORE the exec command to load the X11 session
exec /etc/X11/X11session $*
The commands will not load into the current session if you place them after. Again, this is for Mandrake 8.2. I don't know if this will work on any other distro.
- robeb
|
|
|
All times are GMT -5. The time now is 10:56 AM.
|
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
|
|