Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Numlock and X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cubancigar11
Guru
Guru


Joined: 10 Jan 2005
Posts: 340

PostPosted: Sat Feb 26, 2005 5:48 am    Post subject: Numlock and X Reply with quote

I have added numlock to startup by rc-update add numlock default. So, my numlock is on in ttys.

The problem is, it is off by default in X! If I press ctrl+alt+f1, it is on; If I press ctrl+alt+f7, it is off.

How to get numlock on in X by default?
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Feb 26, 2005 5:57 am    Post subject: Reply with quote

emerge numlockx

If you use gdm or kdm they should use it automatically(you may need to change a settiing). Otherwise read the README for setup instructions.
Back to top
View user's profile Send private message
cubancigar11
Guru
Guru


Joined: 10 Jan 2005
Posts: 340

PostPosted: Sat Feb 26, 2005 9:24 am    Post subject: Reply with quote

I emerged numlockx, and added numlockx to both /etc/X11/xdm/Xsetup_0 and /etc/X11/xinit/xinitrc

Now, if I use startx, the numlock gets on. But if I use rc-update add xdm default, the numlock blinks once and goes down.

What could be the problem?
Back to top
View user's profile Send private message
cubancigar11
Guru
Guru


Joined: 10 Jan 2005
Posts: 340

PostPosted: Sat Feb 26, 2005 9:58 am    Post subject: Reply with quote

Got it working, kind of. Added numlock on in /usr/kde/3.3/share/config/kdm/Xstarup and /usr/kde/3.3/share/config/kdm/Xsession

Now numlock gets on after I login.
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Feb 26, 2005 2:19 pm    Post subject: Reply with quote

For your kde session there's a setting under Peripherals->Keyboard in control center that allows you to select numlock status on startup. I was thinking there was something similar for kdm but I can't find it now.
Back to top
View user's profile Send private message
Victorious
n00b
n00b


Joined: 25 Feb 2005
Posts: 6
Location: Philadelphia, Pennsylvania, USA

PostPosted: Sat Feb 26, 2005 5:46 pm    Post subject: Reply with quote

Can you give a more detailed explaination of setting this up, and for window managers other than KDE?
Back to top
View user's profile Send private message
cubancigar11
Guru
Guru


Joined: 10 Jan 2005
Posts: 340

PostPosted: Sat Feb 26, 2005 6:01 pm    Post subject: Reply with quote

According to readme, you have to edit /etc/X11/xdm/Xsetup_0 and /etc/X11/xinit/xinitrc. But then, it only works if you are using startx (that is, no display manager - xdm, kdm, gdm)

Now I use kdm, so I edited /usr/kde/3.3/share/config/kdm/Xstarup and /usr/kde/3.3/share/config/kdm/Xsession . This now works for kdm. I later found what PowerFactor said (Peripherals>keyboard in kde control center etc.)

So, I dont know other display managers. But for kdm+(kde,wmaker,icebox); it is working.
Back to top
View user's profile Send private message
clairvoyant
n00b
n00b


Joined: 08 Mar 2005
Posts: 7

PostPosted: Thu Jun 02, 2005 6:08 pm    Post subject: Reply with quote

i've managed to get this working with gdm by doing the following.
Code:
emerge numlockx


and added "/usr/X11R6/bin/numlockx" to the line before the last line in "/etx/X11/gdm/Init/Default"
Back to top
View user's profile Send private message
tosho
n00b
n00b


Joined: 28 Sep 2004
Posts: 45

PostPosted: Thu Jun 09, 2005 11:39 am    Post subject: Reply with quote

for kdm
echo '/usr/bin/numlockx on' >> /usr/kde/3.4/share/config/kdm/Xsetup
_________________
bash-2.05b# emerge -s microsoft
Searching...
[ Results for search key : microsoft ]
[ Applications found : 0 ]
bash-2.05b#
Back to top
View user's profile Send private message
brazzmonkey
Guru
Guru


Joined: 16 Jan 2005
Posts: 372
Location: between keyboard and chair

PostPosted: Wed Jun 07, 2006 10:24 pm    Post subject: Reply with quote

finally i get it ! thanks !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum