Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Hardware

Hardware Problems with hardware not being detected or supported.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-01-31, 10:44 AM CST
vorte[x] Offline
Registered User
 
Join Date: Mar 2004
Posts: 155
FAQ: Enabling 'NumLock' upon Boot/Entering X

Throw into rc.sysinit
[code:1]
for tty in /dev/tty[1-9]*; do
setleds -D +num < $tty
done
[/code:1]

Then for X, try putting this in .xinitrc
[code:1]
xset led 1
[/code:1]
Reply With Quote
  #2  
Old 2004-02-01, 11:56 PM CST
redhat71 Offline
Registered User
 
Join Date: Feb 2004
Location: China
Posts: 123
only "xset led 3" works for me, but it's not numlock, any idea?
Reply With Quote
  #3  
Old 2004-02-02, 12:00 PM CST
vorte[x] Offline
Registered User
 
Join Date: Mar 2004
Posts: 155
Quote:
Originally Posted by Redhat71
only "xset led 3" works for me, but it's not numlock, any idea?
I ran into that as well on my laptop, hence the reason I said 'try' I'm not sure if xset is working properly on ANY hardware configuration! I'll let you know if I find something better.
Reply With Quote
  #4  
Old 2004-02-07, 10:08 AM CST
Linz Offline
Registered User
 
Join Date: Feb 2004
Posts: 13
Found this on http://phuzz.org/archive.php?name=linux:
Quote:
To enable NumLock in the console paste this code into rc.local or make a script for to put into /etc/init.d/:
[code:1]echo "Enabling NumLock..."
for tty in /dev/tty{1,2,3,4,5,6,7,8,9,10,11,12}; do
setleds -D +num < $tty
done[/code:1]

X windows is nice enough to turn this off again... so paste the following code into a file named xsetnumlock.c:
[code:1]#include <X11/extensions/XTest.h>
#include <X11/keysym.h>

int main(void)
{
Display* disp = XOpenDisplay(NULL);
if (disp == NULL) return 1;
XTestFakeKeyEvent(disp, XKeysymToKeycode(disp, XK_Num_Lock), True, CurrentTime);
XTestFakeKeyEvent(disp, XKeysymToKeycode(disp, XK_Num_Lock), False, CurrentTime);
XCloseDisplay(disp);
return 0;
}[/code:1]

Run this command to compile it:
[code:1]$ gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o xsetnumlock xsetnumlock.c -lX11 -lXtst[/code:1]

Run xsetnumlock from ~/.Xclients (or any of its alternatives: .xsession, .xinitrc or whatever...)
Haven't restarted yet, but running the compiled xsetnumlock turns numlock on/off.
Reply With Quote
  #5  
Old 2004-02-07, 01:53 PM CST
vorte[x] Offline
Registered User
 
Join Date: Mar 2004
Posts: 155
Excellent tip, I'll be sure to try it.
Reply With Quote
  #6  
Old 2004-06-18, 01:29 AM CDT
amazoneveryday Offline
Registered User
 
Join Date: Jun 2004
Location: USA
Age: 27
Posts: 31
great

it works pefectly, thank you. I put the executable in my ~/.kde/Autostart folder since I'm the only user on my box.
__________________
It's not a stream of consciousness if you think about it!
Reply With Quote
  #7  
Old 2004-06-18, 01:33 AM CDT
mpsii Offline
Registered User
 
Join Date: Feb 2004
Location: Winter Garden, FL USA
Age: 34
Posts: 14
Is there not a numlock rpm? Or can someone make one for Fedora?

mandrake rpm
__________________
----Michael
Reply With Quote
  #8  
Old 2004-06-18, 11:36 AM CDT
ewdi's Avatar
ewdi Offline
Retired Admin
 
Join Date: Jan 2004
Location: Penguin Land
Age: 59
Posts: 1,939
i think there is under contrib, let me search around for it
__________________
+ Visit My new blog
- [b]SlashGear US, SlashGear Japan, and
+Founder & Admin of www.fedoraforum.org

Follow me at http://twitter.com/ewdi

Laptop : MacBook Pro 2.4Ghz 4GB DDR, 20-inch iMac Aluminium/4GB RAM
Reply With Quote
  #9  
Old 2004-06-22, 03:06 AM CDT
RuiP's Avatar
RuiP Offline
Registered User
 
Join Date: Apr 2004
Location: Lisboa-Portugal
Posts: 19
I never find a numlockx for fedora and mandrakes version fails (of course) due to dependencies not satisfied... (maybe this one?... in case of despair )
but thereis a good how-to here and a link to tar.gz here.

I solved the beginnig-at-X problem with a muuuch easier way... I just run gnome-session-properties and at 'Startup Programs' Add a new entry, a simple 'numlockx' (I have to do it for all users... only two) works great!
Reply With Quote
Reply

Tags
boot or entering, enabling, faq, numlock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling keyboard during F11 live USB boot? cheerio158 General Support 2 2009-09-06 07:04 AM CDT
quota enabling on boot failure jimmyp2 General Support 1 2009-04-17 08:47 AM CDT
Boot stops after enabling swap hvniekerk General Support 3 2008-01-22 10:49 AM CST
Boot without entering Password homeworx General Support 5 2005-10-12 09:27 PM CDT
Enabling NumLock? apox General Support 3 2003-12-29 06:43 AM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 03:58 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Automatic translations (vBET) delivered by NLP-er