Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ ---- Help with NumLock ----

Posted by: Musab Mar 14 2008, 01:00 AM

Hello All,

My question is not simple as you think, I have used some commands but they don't work the reason is: I'm using an embedded system with Linux.

I used the command "uname -a" and got 'GumStix' .. I need to modify inittab to turn the NumLock on the startup, or if you know some other way?

thanks,

Posted by: Hemant Mar 14 2008, 02:41 AM

A quick google search reveals that you can add following to rc.local :

<pre>
# Turn numlock on:
for tty in /dev/tty[1-6]; do
/usr/bin/setleds -D +num < $tty
done
</pre>

Posted by: Musab Mar 14 2008, 07:43 AM

Hemant, thats what I mean, the linux does not have this command "setleds", its kind of missing alot of things. E.g. `make` does not work cause missing gcc!

the thing is that I can turn on the numlock key on the keyboard and it works, but I need this to be done automatically. So is there a way to find out what happens when I turn the key on on the keyboard, can I know what gets executed when this key is pressed?

thanks,

Posted by: michaelk Mar 14 2008, 04:12 PM

Gumstix looks like it has some interesting products. So which one do you have? Typically embedded systems use a scaled down shell called busybox
and have limited resources so that one must compile applications on a development system and then transfer to the host. Which is why there isn't gcc.
I am not familiar with these products so my help is limited. In addition depending on the system you have typical x86 applications might not run the same.

Posted by: Musab Mar 18 2008, 02:24 PM

QUOTE (michaelk @ Mar 14 2008, 03:12 PM) *
Gumstix looks like it has some interesting products. So which one do you have? Typically embedded systems use a scaled down shell called busybox
and have limited resources so that one must compile applications on a development system and then transfer to the host. Which is why there isn't gcc.
I am not familiar with these products so my help is limited. In addition depending on the system you have typical x86 applications might not run the same.



Thanks Michaelk,

I see what you mean..so I have to compile it in different machine and run it in the gumstix system.

Here is the full uname -a result: Linux gumstix-custom-verdex 2.6.21 #1 Sun Feb 3 03:38:52 PST 2008 armv5tel unknown

Posted by: michaelk Mar 18 2008, 02:52 PM

I was looking for the product model number which has nothing to do with the output of uname.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)