Re: [expert] numlock

2003-10-08 Thread Eric Huff
On Tue, 7 Oct 2003 19:13:47 +0200
Wolfgang Bornath [EMAIL PROTECTED] wrote:

 1. /etc/rc.d/init.d/numlock has to be run on boot. If you boot
 into runlevel 5 (multiuser graphical environment) then you have in
 /etc/rc.d/rc5.d a link like @S85numlock which points to
 /etc/init.d/numlock
 
 2. You have a file /etc/profile.d which shows:
 
 MY_TTY=tty
 case $MY_TTY in
/dev/tty[0-9]*)  setleds -D +num  $MY_TTY;;
 esac
 unset MY_TTY
 

Mine looks like this:

MY_TTY=`tty`
case $MY_TTY in
/dev/tty[0-9]*) [ -f /etc/sysconfig/numlock ]  setleds -D +num  $MY_TTY;;
esac
unset MY_TTY


If i understand it right, since i don't have /etc/sysconfig/numlock,
that would be why i don't get numlock.  

I'll add it and see if i get it next time i boot.

eric

-- 
Mandrake HowTo's  More:  http://twiki.mdklinuxfaq.org

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-08 Thread Wolfgang Bornath
Eric Huff schrieb am Tue, 7 Oct 2003 23:10:59 -0700:

 Mine looks like this:
 
 MY_TTY=`tty`
 case $MY_TTY in
 /dev/tty[0-9]*)   [ -f /etc/sysconfig/numlock ]  setleds -D +num  $MY_TTY;;
 esac
 unset MY_TTY
 
 
 If i understand it right, since i don't have /etc/sysconfig/numlock,
 that would be why i don't get numlock.  
 
 I'll add it and see if i get it next time i boot.

No, makes no difference because I don't have /etc/sysconfig/numlock and
it works for me here.

But I found something else:

/etc/X11/xdm/Xsetup_0 shows:
if [ -x /etc/X11/xinit.d/numlock ]; then
 /etc/X11/xinit.d/numlock 

And /etc/X11/xinit.d/numlock shows:
if [-f /var/lock/subsys/numlock -a -x   \
/usr/X11R6/bin/enable_X11_numlock]; then
   /usr/X11R6/bin/enable_X11_numlock
fi

Bah, another place to search for the solution

To me this is of rather academical interest. I boot my desktop maybe
once a month and all I have to do to set numlock is to push a single key
button. What do you think, how much fat will I burn, pushing this button
12 times a year?

On laptops which are normally booted much more often numlock doesn't
matter because it's off all the time.

wobo

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-08 Thread michael
James Sparenberg mused:

 I don't have/use fluxbox so I'm not sure there.  Would seem that
 the
 config file for that also has an overide that needs to be changed.
  Is
 there a .fluxbox file in your home dir?

 James

There´s a startup file under .fluxbox where you can start other
programs from; they have some samples for xset, etc, but I had no
luck with anything there.  I guess I will go bug the fluxbox guys
for a bit and see if they can shed any light on the issue.

Thanks, Mike

p.s. if anyone has a brain storm, I´d love to hear it!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-08 Thread michael
Wolfgang Bornath mused:

 Bah, another place to search for the solution

 To me this is of rather academical interest. I boot my desktop
 maybe
 once a month and all I have to do to set numlock is to push a
 single key
 button. What do you think, how much fat will I burn, pushing this
 button
 12 times a year?

 On laptops which are normally booted much more often numlock
 doesn't
 matter because it's off all the time.

 wobo

I understand, it´s really just a minor annoyance.  But to someone
like me, who´s probably a little compulsive, it just starts to
gnaw at me - WHY WON´T THIS WORK CORRECTLY???!!!  Aarrgh -- RagE
TaKi nG OvEr -- ok, I´m better now :)

Anyway, thanks
Mike

-- 
Michael Holt
Snohomish, WA  (o_
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com

¨There are 10 kinds of people in the world -
those that understand binary, and those that don´t¨

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread Fajar Priyanto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 07 October 2003 06:36 am, [EMAIL PROTECTED] wrote:
 I have the numlock rpm installed and numlock is enabled during
 boot.  When I startx though, I lose numlock.  I think it used to
 work, to tell the truth though, I´ve been too busy to really think
 about it.  Where can I go to make it stick on?
 Mandrake 9.1  Fluxbox

err...
chkconfig --level 345 numlock on?
- ---
Fajar http://linux.arinet.org
Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux
13:27:51 up 5:50, 10 users, load average: 1.58, 1.54, 1.53
Quote of the day:
Windows 99 has been released! (PC Magazine, April 2013)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/gl0UMai9kCFqACoRAhC/AKCRjXxl9Uf/4SjquFfVSRlqi9shjQCgkuCN
WmvU586sE288NeLU7R4thlM=
=HzEm
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread Felix Miata
Eric Huff wrote:
 
  I have the numlock rpm installed and numlock is enabled during
  boot.  When I startx though, I lose numlock.  I think it used to
  work, to tell the truth though, I´ve been too busy to really think
  about it.
 
 I have the same problem. I think it *might* have started with a
 recent X update?
 
 I use pekwm  9.1.

Just two weeks ago I installed 9.1, and did updates at the end. NUM is
off during login manager, but comes back on in KDE, and is on in
vc[1-6].
-- 
The fear of the Lord is the beginning of wisdom
Proverbs 9:10 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread James Sparenberg
On Mon, 2003-10-06 at 22:14, Felix Miata wrote:
 Eric Huff wrote:
  
   I have the numlock rpm installed and numlock is enabled during
   boot.  When I startx though, I lose numlock.  I think it used to
   work, to tell the truth though, I´ve been too busy to really think
   about it.
  
  I have the same problem. I think it *might* have started with a
  recent X update?
  
  I use pekwm  9.1.
 
 Just two weeks ago I installed 9.1, and did updates at the end. NUM is
 off during login manager, but comes back on in KDE, and is on in
 vc[1-6].

If you want to lose numlock altogether the try rpm -e numlock.  Worked
wonders for me.

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread Felix Miata
James Sparenberg wrote:
 
 If you want to lose numlock altogether the try rpm -e numlock.  Worked
 wonders for me.

I want Mandrake to obey my BIOS numlock setting, just like DOS and
windoze and SuSE do. I want NUM on always, including for GUI login. How
do I do that?
-- 
The fear of the Lord is the beginning of wisdom
Proverbs 9:10 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread michael
Fajar Priyanto mused:

 err...
 chkconfig --level 345 numlock on?

eh?  Wouldn´t it be easier to just hit the ´numlock´ key?  I would
like to have it automated - is their something I´m missing to
accomplish that?

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread michael
James Sparenberg mused:

 If you want to lose numlock altogether the try rpm -e numlock.
 Worked
 wonders for me.

 James

I want to go the other direction - I just want it to work!


-- 
Michael Holt
Snohomish, WA  (o_
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread michael
Felix Miata mused:

 I want Mandrake to obey my BIOS numlock setting, just like DOS and
 windoze and SuSE do. I want NUM on always, including for GUI
 login. How
 do I do that?
 --
 The fear of the Lord is the beginning of wisdom
 Proverbs 9:10 NIV

Exactly, I want my numlock on always -- too -- not in the ¨Off¨
state -- except for the few moments between shutdown and boot --
and maybe during the time ¨startx¨ is doing it´s thing -- I know
this is possible -- it used to do this behavior -- now it doesn´t.


-- 
Michael Holt
Snohomish, WA  (o_
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread James Sparenberg
On Tue, 2003-10-07 at 09:18, [EMAIL PROTECTED] wrote:
 James Sparenberg mused:
 
  If you want to lose numlock altogether the try rpm -e numlock.
  Worked
  wonders for me.
 
  James
 
 I want to go the other direction - I just want it to work!

urpmi numlock (if it isn't installed)

chkconfig numlock on

it's perm at that point.
 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread Wolfgang Bornath
[EMAIL PROTECTED] [EMAIL PROTECTED] schrieb am Tue, 7 Oct 2003
09:41:07 -0700 (PDT):

 Exactly, I want my numlock on always -- too -- not in the ¨Off¨
 state -- except for the few moments between shutdown and boot --
 and maybe during the time ¨startx¨ is doing it´s thing -- I know
 this is possible -- it used to do this behavior -- now it doesn´t.

1. /etc/rc.d/init.d/numlock has to be run on boot. If you boot into
runlevel 5 (multiuser graphical environment) then you have in
/etc/rc.d/rc5.d a link like @S85numlock which points to
/etc/init.d/numlock

2. You have a file /etc/profile.d which shows:

#Linux Mandrake configuration
#  This is needed as login resets the tty

MY_TTY=tty
case $MY_TTY in
   /dev/tty[0-9]*)  setleds -D +num  $MY_TTY;;
esac
unset MY_TTY

This was set up during installation and works in console as well as in X
because X runs on tty7 (and tty8 for a second X) which is included in
the script. 

That's how it works for me in 9.2RC2.  I haven't yet found a means to
set this in a GUI.

wobo

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread James Sparenberg
On Tue, 2003-10-07 at 09:14, [EMAIL PROTECTED] wrote:
 Fajar Priyanto mused:
 
  err...
  chkconfig --level 345 numlock on?
 
 eh?  Wouldn´t it be easier to just hit the ´numlock´ key?  I would
 like to have it automated - is their something I´m missing to
 accomplish that?

That's what the above command does.  Makes it automatic.  and
permanent.  

James

 
 
 __
 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread Felix Miata
James Sparenberg wrote:
 
 On Tue, 2003-10-07 at 09:18, [EMAIL PROTECTED] wrote:

  I want to go the other direction - I just want it to work!
 
 urpmi numlock (if it isn't installed)
 
 chkconfig numlock on
 
 it's perm at that point.

#chkconfig numlock on
#
#chkconfig --levels numlock
numlock 0:off   1:off   2:on3:on4:on5:on6:off
#

NUM is still off in login manager, and as you can see above, off also in
single.
-- 
The fear of the Lord is the beginning of wisdom
Proverbs 9:10 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread Wolfgang Bornath
Felix Miata schrieb am Tue, 07 Oct 2003 13:43:26 -0400:

 #chkconfig --levels numlock
 numlock   0:off   1:off   2:on3:on4:on5:on6:off
 #
 
 NUM is still off in login manager, and as you can see above, off also
 in single.

Because it's usually not set for tty7 which is the tty your login
manager runs in. See my other posting concerning the standard scripts
Mandrake sets at installation time.

wobo

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread Felix Miata
Wolfgang Bornath wrote:
 
 1. /etc/rc.d/init.d/numlock has to be run on boot. If you boot into
 runlevel 5 (multiuser graphical environment) then you have in
 /etc/rc.d/rc5.d a link like @S85numlock which points to
 /etc/init.d/numlock
 
 2. You have a file /etc/profile.d which shows:
 
 #Linux Mandrake configuration
 #  This is needed as login resets the tty
 
 MY_TTY=tty
 case $MY_TTY in
/dev/tty[0-9]*)  setleds -D +num  $MY_TTY;;
 esac
 unset MY_TTY
 
 This was set up during installation and works in console as well as in X
 because X runs on tty7 (and tty8 for a second X) which is included in
 the script.
 
 That's how it works for me in 9.2RC2.  I haven't yet found a means to
 set this in a GUI.

Wolfgang Bornath wrote:

 Felix Miata schrieb am Tue, 07 Oct 2003 13:43:26 -0400:
 
  #chkconfig --levels numlock
  numlock   0:off   1:off   2:on3:on4:on5:on6:off
  #

  NUM is still off in login manager, and as you can see above, off also
  in single.
 
 Because it's usually not set for tty7 which is the tty your login
 manager runs in. See my other posting concerning the standard scripts
 Mandrake sets at installation time.
 
My /etc/profile.d/numlock.sh file is exactly like yours (/dev/tty[0-9]*)
...). NUM is still off in tty7 (login manager).
-- 
The fear of the Lord is the beginning of wisdom
Proverbs 9:10 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread michael
James Sparenberg mused:
 On Tue, 2003-10-07 at 09:14, [EMAIL PROTECTED] wrote:
 Fajar Priyanto mused:

  err...
  chkconfig --level 345 numlock on?

 eh?  Wouldn´t it be easier to just hit the ´numlock´ key?  I
 would
 like to have it automated - is their something I´m missing to
 accomplish that?

 That's what the above command does.  Makes it automatic.  and
 permanent.

 James

Ok, ic now.  When I run chkconfig --list numlock, I´m getting the
desired ´3 4 5´ levels switched to ´on´; still no numlock in x
though.   I´m checking wobo´s email about mandrake startup scripts
- and I still don´t get it - it used to work???  I´m still on
mdk9.1 - and probably won´t be switching for awhile - was it 9.0
that it worked on?  I don´t remember.

-- 
Michael Holt
Snohomish, WA  (o_
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread James Sparenberg
On Tue, 2003-10-07 at 11:24, [EMAIL PROTECTED] wrote:
 James Sparenberg mused:
  On Tue, 2003-10-07 at 09:14, [EMAIL PROTECTED] wrote:
  Fajar Priyanto mused:
 
   err...
   chkconfig --level 345 numlock on?
 
  eh?  Wouldn´t it be easier to just hit the ´numlock´ key?  I
  would
  like to have it automated - is their something I´m missing to
  accomplish that?
 
  That's what the above command does.  Makes it automatic.  and
  permanent.
 
  James
 
 Ok, ic now.  When I run chkconfig --list numlock, I´m getting the
 desired ´3 4 5´ levels switched to ´on´; still no numlock in x
 though.   I´m checking wobo´s email about mandrake startup scripts
 - and I still don´t get it - it used to work???  I´m still on
 mdk9.1 - and probably won´t be switching for awhile - was it 9.0
 that it worked on?  I don´t remember.

kcontrol--Peripherals--keyboard there is the ability to override the
default setting.  turn on, off or leave unchanged.

James





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread michael
James Sparenberg mused:

 kcontrol--Peripherals--keyboard there is the ability to override
 the
 default setting.  turn on, off or leave unchanged.

 James

Ok, that seems to make it stick for kde; no go for fluxbox though.

-- 
Michael Holt
Snohomish, WA  (o_
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com

¨There are 10 kinds of people in the world -
those that understand binary, and those that don´t¨

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-07 Thread James Sparenberg
On Tue, 2003-10-07 at 19:49, [EMAIL PROTECTED] wrote:
 James Sparenberg mused:
 
  kcontrol--Peripherals--keyboard there is the ability to override
  the
  default setting.  turn on, off or leave unchanged.
 
  James
 
 Ok, that seems to make it stick for kde; no go for fluxbox though.

I don't have/use fluxbox so I'm not sure there.  Would seem that the
config file for that also has an overide that needs to be changed.  Is
there a .fluxbox file in your home dir?

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2003-10-06 Thread Eric Huff
 I have the numlock rpm installed and numlock is enabled during
 boot.  When I startx though, I lose numlock.  I think it used to
 work, to tell the truth though, I´ve been too busy to really think
 about it.

I have the same problem. I think it *might* have started with a
recent X update?

I use pekwm  9.1.

-- 
Mandrake HowTo's  More:  http://twiki.mdklinuxfaq.org

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] numlock

2000-11-24 Thread skidley

On Thu, 23 Nov 2000, Jeff Malka wrote:

 In my /etc/sysconfig/ there is no "numlock" file at all.
 
 The problem in 7.2's numlock is that unlike 7.1 where the command "numlock"
 activated numlock, in 7.2 the command is "/usr/X11R6/bin/enable_X11_numlock"
 (without the quotes).
 
 That is what solved it for me.  Try it and let me know.
 
 Jeff
 
 Jeff Malka [EMAIL PROTECTED]
 Registered Linux user  183185
 
 - Original Message -
 From: skidley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, November 23, 2000 4:05 PM
 Subject: [expert] numlock
 
Yes that command does enable it you must has missed an earlier post, what
the problem I am trying to figuefigure out is to do it automatically, I am using
a rather rudimentary way where the numlock behavior in
/usr/X11R6/lib/X11/xkb/types/basic is changed so that while numlock light
is off but numlock is really one. This is not what I want, it would be
nice to get the damn numlock program actually working the way it used to
in 7.1, I even got the cooker numlock pkg numlock-1.0-11mdk and that
didn't fix it. Why did they fix what wasn't broken in earlier
distros? Could you just take a look at your /etc/sysconfig/NumLock and see
what it says? Mine is empty I don't know if its supposed to be or what I
ma trying to fix what they screwed up here but I am at a lost as to what
to try next??

 
 
 
 
  Keep in touch with http://mandrakeforum.com:
  Subscribe the "[EMAIL PROTECTED]" mailing list.
 
 
 
 

-- 
Chad Y.
Registered Linux User #195191




Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.



Re: [expert] numlock

2000-11-23 Thread Jeff Malka

In my /etc/sysconfig/ there is no "numlock" file at all.

The problem in 7.2's numlock is that unlike 7.1 where the command "numlock"
activated numlock, in 7.2 the command is "/usr/X11R6/bin/enable_X11_numlock"
(without the quotes).

That is what solved it for me.  Try it and let me know.

Jeff

Jeff Malka [EMAIL PROTECTED]
Registered Linux user  183185

- Original Message -
From: skidley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 4:05 PM
Subject: [expert] numlock


 Just wondering if anybody knows what the file /etc/sysconfig/NumLock
 should be as mine is empty. Could this be the bug in the 7.2 not working
 in LM 7.2 ? just curious if anyone knows before I give up on it.

 --
 Chad Y.
 Registered Linux User #195191









 Keep in touch with http://mandrakeforum.com:
 Subscribe the "[EMAIL PROTECTED]" mailing list.





Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.