LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2005, 05:58 AM   #1
MatthiasOtto
LQ Newbie
 
Registered: Jan 2005
Distribution: Suse 9.2
Posts: 7

Rep: Reputation: 0
command xmodmap not found during boot


Hi!

There are some special keys on my laptop that I want to be activated during boot procedures. If I try the command >xmodmap -e 'keycode 178=F21'< from a KDE shell it works. So I added that line (and some other similar ones) to the file /etc/init.d/boot.local. But during bott it doesn't work. I receive error messages like

System Boot Control: Running /etc/init.d/boot.local
/etc/init.d/boot.local: line 16: xmodmap: command not found
/etc/init.d/boot.local: line 17: xmodmap: command not found
/etc/init.d/boot.local: line 18: xmodmap: command not found
/etc/init.d/boot.local: line 19: xmodmap: command not found
/etc/init.d/boot.local: line 20: xmodmap: command not found
/etc/init.d/boot.local: line 21: xmodmap: command not found
failed<notice>killproc: kill(1605,3)

How does it then work?

Matthias
 
Old 02-16-2005, 06:19 AM   #2
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Try the xmodmap command with a full path prefixed..

/usr/X11R6/bin/xmodmap -e 'keycode 178=F21'

Mad.
 
Old 02-16-2005, 07:43 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Does xmodmap work outside of an X environment? If not, I imagine it won't work as part of the boot process, and has to go in one of the X startup files
 
Old 02-17-2005, 05:06 AM   #4
MatthiasOtto
LQ Newbie
 
Registered: Jan 2005
Distribution: Suse 9.2
Posts: 7

Original Poster
Rep: Reputation: 0
Well, I am one step further now. xmodmap seams to work now but there is a new error message:
/usr/X11R6/bin/xmodmap: unable to open display ''
 
Old 02-17-2005, 06:09 AM   #5
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Oneandoneis2 is correct, xmodmap needs to be run from within the X environment, this is why you are getting the 'unable to open display message'
 
  


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
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
command not found ginda Linux - General 3 07-16-2005 04:15 PM
command not found bin_shell Linux - General 3 02-15-2004 10:50 PM
bash: xmodmap: command not found Jalalabee Linux - Newbie 4 08-16-2003 09:41 PM
command not found jkp Linux - Newbie 3 01-21-2003 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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