LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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



Reply
 
Search this Thread
Old 08-11-2002, 04:45 AM   #1
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
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
 
Old 08-11-2002, 06:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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
 
Old 08-11-2002, 06:34 AM   #3
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
I'm sure you meant AccessX-not ActiveX
Did you try the other suggestions at that link,like installing the latest updates?
lynch
 
Old 08-11-2002, 03:08 PM   #4
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
Old 08-11-2002, 03:32 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
hmm, helps if i finish reading the question... well rc.local must be executed, otherwise your system is shafted... that's technical jargon... sorry
 
Old 08-11-2002, 03:58 PM   #6
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
Old 08-11-2002, 05:42 PM   #7
Tom Bozack
LQ Newbie
 
Registered: Dec 2000
Location: Ridgecrest, California
Posts: 25

Rep: Reputation: 15
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
 
Old 08-11-2002, 09:02 PM   #8
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Internet at bootup in failsafe or TERMINAL-mode only lennysokol Linux - Networking 1 05-16-2005 04:48 PM
running sfxload <soundfont> at bootup farpoint Debian 2 05-09-2005 07:03 AM
Problems trying to get Network running on bootup jimmilly Linux - Networking 1 08-02-2003 02:42 PM
loginscript running at bootup saavik Linux - Networking 2 11-12-2002 08:15 AM
Running Java Socket Program in a shell during bootup TomCruise2002 Linux - Newbie 1 10-15-2002 11:28 PM


All times are GMT -5. The time now is 04:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration