Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > The Community > Everything BSD > KDE/FreeBSD numlock key problem

Forgot Password?
 Everything BSD   For all discussions regarding Free/NetBSD and OpenBSD.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-05-2008   #1 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
KDE/FreeBSD numlock key problem

This problem is specific to FreeBSD as I understand it. I have done the following to activate the numlock key at startup:
cd /usr/ports/x11/numlockx/
make install clean

However the boot/loader.conf file makes no mention of a numlock key.

When the computer starts up, the numlock key is activated, but as soon as X starts, numlock is being deactivated. How can this be solved: I want the numlock key on when KDE has loaded.

Thanks in advance
technossomy is offline  


Reply With Quote
Old 01-06-2008   #2 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
You'll need to invoke numlockx when X starts. For example, I use fluxbox - here's my ~/.xinitrc:
Code:
numlockx on &
exec fluxbox
__________________
FreeBSD Handbook & FAQ // CentOS wiki
anomie is offline   Reply With Quote
Old 01-08-2008   #3 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
Thanks for the response. Unfortunately that did not work and I still have to manually activate the numlock key. Currently I have this in ~/.xinitrc:
Code:
xsetroot -solid "#4a6a8a"

# Force 96 DPI
xrdb -quiet -merge -nocpp <<EOF
Xft.dpi: 96
EOF

numlockx on &
kwin &
dbsd-initialconf && /usr/local/share/desktopbsd/initialconf/finish-cfg.sh
If there is anything you see that is incorrect, please let me know.
technossomy is offline   Reply With Quote
Old 01-09-2008   #4 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
For KDE try adding it to ~/.xession. (That's appropriate for xdm; I'm not sure about kdm.)

If no luck, then see this gentoo tip under the "for KDM users" section. The FBSD path may differ slightly.

If still no good, does the numlockx command work when run within a terminal (with X running)?
__________________
FreeBSD Handbook & FAQ // CentOS wiki
anomie is offline   Reply With Quote
Old 01-20-2008   #5 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
Thank you for your response. First of all, there is no file .xsession. I do have .xsession-errors however, which appears to contain some logging data.
If I type numlockx in bash, the following is shown:
Code:
# numlockx
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error opening display!
What approach to take now?
technossomy is offline   Reply With Quote
Old 01-20-2008   #6 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Maybe I wasn't clear enough -- start X, and then run numlockx (not as root) from a terminal. Does that enable your NumLock?
__________________
FreeBSD Handbook & FAQ // CentOS wiki
anomie is offline   Reply With Quote
Old 01-22-2008   #7 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
Yes, that works. Now I suppose I need to enable this in a start up script somewhere? And will this work for the user that is logged in only or for all users who happen to login?
technossomy is offline   Reply With Quote
Old 01-22-2008   #8 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,110
I'm not sure if this applies to BSD or not, but in KDE 3.5 you can go to Control Center>Peripherals>Keyboard>NumLock on KDE start up
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 01-22-2008   #9 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Again, I run fluxbox (not KDE), so I can't speak to this definitively, but I would try the suggestions at the gentoo tips page I cited and MikeTbob's suggestion above.
__________________
FreeBSD Handbook & FAQ // CentOS wiki
anomie is offline   Reply With Quote
Old 01-22-2008   #10 (permalink)
Linux User
 
Join Date: Dec 2004
Posts: 324
Thanks, that worked. I will find out someday what script was written to to enable this.
technossomy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:05 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2