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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > Everything BSD
Reload this Page KDE/FreeBSD numlock key problem
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

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

Reply
 
Thread Tools Display Modes
Old 01-05-2008   #1 (permalink)
technossomy
Linux User
 
Join Date: Dec 2004
Posts: 275
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)
anomie
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
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)
technossomy
Linux User
 
Join Date: Dec 2004
Posts: 275
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-08-2008   #4 (permalink)
anomie
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
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)
technossomy
Linux User
 
Join Date: Dec 2004
Posts: 275
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)
anomie
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
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)
technossomy
Linux User
 
Join Date: Dec 2004
Posts: 275
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)
MikeTbob
Linux Guru
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Cowtown, Texas
Posts: 2,222
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
__________________
Linux user #286065
Distro:Gentoo + KDE-3.5.9
MikeTbob is offline   Reply With Quote
Old 01-22-2008   #9 (permalink)
anomie
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
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)
technossomy
Linux User
 
Join Date: Dec 2004
Posts: 275
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Really strange problem with NAT router gepas Linux Networking 2 05-05-2006 05:45 PM
Turkish installation problem in FC5 Daley Redhat / Fedora Linux Help 1 03-24-2006 02:07 PM
Windows XP/SuSe Linux 10.0 RC1 dual boot problem pushpop SuSE Linux Help 1 12-26-2005 01:11 PM
FC-Linux Installation problem AlexPal Redhat / Fedora Linux Help 0 11-25-2004 06:00 AM
NUMLOCK problem mfaisalkh Misc 2 04-04-2004 11:13 PM


All times are GMT. The time now is 05:13 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0