Author Topic: (solved) Numlock on boot  (Read 4318 times)

Offline Ɗα√ϵς§

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5524
  • PCLinuxOS: A revolution in personal computing
Re: (solved) Numlock on boot
« Reply #15 on: August 17, 2011, 03:53:49 PM »
The solution by Zerocool in the first post is the one that works. If you set NumLock on in PCC, it comes on at the log-in screen, but goes off when you log into your own desktop.

PCLinuxOS has no wealthy sponsors and can only survive with your donations! Don't wait it might be too late.

Running PCLOS on Athlon II/250 with 2Gb Ram using ASUS M2N68-AM Plus Mobo with Nvidia GF7600GT graphics, and Samsung NC10 Netbook

Offline longtom

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3342
  • Satellite Station Africa
Re: (solved) Numlock on boot
« Reply #16 on: August 18, 2011, 03:23:45 AM »
The solution by Zerocool in the first post is the one that works. If you set NumLock on in PCC, it comes on at the log-in screen, but goes off when you log into your own desktop.



Yep - noted that as well.  Used Zerocools solution and all is well!  Thanks again!
Regards longtom

PCLinuxOS KDE 32bit
Intel Core 2 Duo E2200 / 2.2 GHz
2GB Ram
Nvidia GT610

Online sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: (solved) Numlock on boot
« Reply #17 on: August 18, 2011, 08:59:21 AM »
On my KDE desktop it works as advertised in my post above. Since you say it comes on at login screen and goes off at desktop, might it be due to some settings in LXDE that turns off Num Lock again?
-SS.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline longtom

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3342
  • Satellite Station Africa
Re: (solved) Numlock on boot
« Reply #18 on: August 18, 2011, 09:08:19 AM »
On my KDE desktop it works as advertised in my post above. Since you say it comes on at login screen and goes off at desktop, might it be due to some settings in LXDE that turns off Num Lock again?
-SS.


Possible - so we used a setting to switch it back on again .... we always have the last word ...  ;D
Regards longtom

PCLinuxOS KDE 32bit
Intel Core 2 Duo E2200 / 2.2 GHz
2GB Ram
Nvidia GT610

Offline mikeinpcb

  • Jr. Member
  • **
  • Posts: 13
Re: (solved) Numlock on boot
« Reply #19 on: February 04, 2012, 09:42:36 AM »
Several months ago I used the original solution in the first post by ZeroCool to keep the number lock turned on in LXDE when I logged in.  It worked for a while, but recently it just stopped working.

I tried reinstalling numlock and lxautostart through Synaptic, then retyped ZeroCool's solution from the first post, but nothing would keep the number lock turned on.

After hours of trying different things, here's what I finally came up with to keep the number lock turned on when I log in:

Open PCManFM.  Go to:  /home/username/.config/autostart and right click on the LXAutostart icon.  Open it with Leafpad or another a text editor.

Scroll down to the line that says: "Exec=/home/username/.config/lxautostart/lxautostart.sh" and add the following line right below it:

   Exec=/usr/bin/enable_X11_numlock

Click save.  It may not be necessary, but I rebooted.  When I logged back in, the number lock stayed on.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: (solved) Numlock on boot
« Reply #20 on: February 04, 2012, 09:50:39 AM »
What is messages from

Code: [Select]
cat ~/.config/lxautostart/lxautostart.sh
?

Offline mikeinpcb

  • Jr. Member
  • **
  • Posts: 13
Re: (solved) Numlock on boot
« Reply #21 on: February 04, 2012, 10:02:18 AM »
What is messages from

Code: [Select]
cat ~/.config/lxautostart/lxautostart.sh
?


[mike@localhost ~]$ cat ~/.config/lxautostart/lxautostart.sh
#!/bin/bash
#
Encoding=UTF-8
#======================================
#LX-Autostart based on a idea by Paul Arnote [parnote]
#created by Daniel Meiß-Wilhelm [leiche]
#License GPL
#Website http://www.pclinuxos.com
#LX-Autostart is a simple way to start your favorite
#applications automaticly, when LXDE starts up.
#======================================
# actually it will wait 10 seconds before it starts the
# programs.
#
sleep 10
#
# add entries here to set up applications to automatically
# start whenever you start the desktop.
#======================================
# Add your program in a new line. For sample:
###################################
# wbar -pos top --above-desk &           
###################################
# Don't forget the ampersand (&) sign.
# You can activate or stop an application with a "#".
#======================================
#wbar -pos top --above-desk &
#parcellite &
#gkrellm &
#xbindkeys &



[mike@localhost ~]$

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: (solved) Numlock on boot
« Reply #22 on: February 04, 2012, 11:04:25 AM »
okay, there you nothing have enabled, so can you try your trick, but lxautostart don't more work correctly...

Offline mikeinpcb

  • Jr. Member
  • **
  • Posts: 13
Re: (solved) Numlock on boot
« Reply #23 on: February 04, 2012, 11:44:19 AM »
No, I do not have it enabled.  I removed the line suggested by zerocool in the very first post because it didn't work anymore, and I did not want to have a possible conflict with my new "trick" solution.  Thanks for looking into it for me.

I love PCLOS, especially the LXDE version.  I have it running on two computers, and I have LXDE-mini running on a USB flash drive.

Danke und Tchus!

Offline Fornhamfred

  • Full Member
  • ***
  • Posts: 103
Re: (solved) Numlock on boot
« Reply #24 on: February 04, 2012, 11:56:53 AM »
I am not running LXDE but have the same problem with Gnome. Could someone please suggest where to find the files to resolve this problem.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: (solved) Numlock on boot
« Reply #25 on: February 04, 2012, 05:52:18 PM »
You can create a desktop file ala

Code: [Select]
[Desktop Entry]
Icon=/usr/share/icons/nuoveXT2/128x128/devices/gnome-dev-keyboard.png
Exec=/usr/bin/enable_X11_numlock
Name=Numlock
Terminal=false
Encoding=UTF-8
X-Desktop-File-Install-Version=0.11

save it in your hidden autostart folder.
To find any folders use

Code: [Select]
locate autostart
If you find this one /home/leiche/.config/autostart store it there. Logout/in and it should work.

Good luck


Offline Fornhamfred

  • Full Member
  • ***
  • Posts: 103
Re: (solved) Numlock on boot
« Reply #26 on: February 05, 2012, 09:23:32 AM »
Thanks.

I have done as you suggest and saved the file in my autostart folder. Unfortunately it still does not enable the numlock.

This is my file:

[Desktop Entry]
Icon=/usr/share/icons/nuoveXT2/128x128/devices/gnome-dev-keyboard.png
Exec=/usr/bin/enable_X11_numlock
Name=Numlock
Terminal=false
Encoding=UTF-8
X-Desktop-File-Install-Version=0.11
Name[en_IE]=numlock.desktop

I am not sure whether this is due to permissions but if I open the file as administrator, the file runs and the numlock is enabled.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: (solved) Numlock on boot
« Reply #27 on: February 05, 2012, 10:25:43 AM »
I don't use Gnome, maybe you ask here again about it...

Offline Fornhamfred

  • Full Member
  • ***
  • Posts: 103
Re: (solved) Numlock on boot
« Reply #28 on: February 05, 2012, 11:45:42 AM »
Thanks for your help.

I have reposted in the Gnome forum.