Bug 2194 - Xfce: the numlock is not active
Summary: Xfce: the numlock is not active
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords: Junior_job, PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2011-07-18 16:56 CEST by Georges Eckenschwiller
Modified: 2012-05-12 13:22 CEST (History)
4 users (show)

See Also:
Source RPM: xfce4-settings
CVE:
Status comment:


Attachments
numlock activation for Xfce (197 bytes, application/octet-stream)
2011-09-06 20:50 CEST, Georges Eckenschwiller
Details
patch to /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml (378 bytes, patch)
2011-09-15 19:54 CEST, Georges Eckenschwiller
Details | Diff

Description Georges Eckenschwiller 2011-07-18 16:56:55 CEST
When you start the computer, the light is on, then off (this is normal).

When logging it is turned on again.

But when the Xfce desktop is displayed, the light is off and numlock is not active.
(This is not a laptop)
Comment 1 Luc Menut 2011-07-18 22:14:45 CEST
It could be a bug of enable_X11_numlock (a duplicate of bug 1136).

Please, could you try if the following package (unofficial custom package with a possible fix) fixes your bug:
for i586
http://web.supagro.inra.fr/partage/menut/numlock-2.1.2-5.0.1.mga1.i586.rpm

for x86_64
http://web.supagro.inra.fr/partage/menut/numlock-2.1.2-5.0.1.mga1.x86_64.rpm

Keywords: (none) => NEEDINFO
CC: (none) => lmenut

Comment 2 Georges Eckenschwiller 2011-07-19 17:40:05 CEST
(In reply to comment #1)
> It could be a bug of enable_X11_numlock (a duplicate of bug 1136).
> 
> Please, could you try if the following package (unofficial custom package with
> a possible fix) fixes your bug:
> for i586
> http://web.supagro.inra.fr/partage/menut/numlock-2.1.2-5.0.1.mga1.i586.rpm
> 
> for x86_64
> http://web.supagro.inra.fr/partage/menut/numlock-2.1.2-5.0.1.mga1.x86_64.rpm

I tested the package indicates. 
It does not solve my problem. 

For cons, I added a command "enable_X11_numlock" in "Session et démarrage" 
"Démarrage automatique". 

I do not know if this is the right solution, but help me in the meantime.
Comment 3 Luc Menut 2011-07-19 22:55:11 CEST
I just look at more carefully how numlock works in xfce (usually I use kde).

In fact, xfce saves the state of numlock in 
$HOME/.gconf/desktop/gnome/peripherals/keyboard/host-'hostname'/0/%gconf.xml

and restores the previous state at start.

You should press numlock one time, and xfce should enable numlock automatically at next login.

regards,
Luc

Keywords: NEEDINFO => (none)

Comment 4 Georges Eckenschwiller 2011-07-20 08:47:39 CEST
I just checked. In the directory $ HOME/.gconf, I have no desktop subdirectory. 
I have only apps. 

I miss it a package?
Comment 5 Georges Eckenschwiller 2011-07-23 11:00:04 CEST
I research how other distributions resolve the issue of numlock.
I noticed that PCLinuxOS is very similar to Mageia.

They modify the file /etc/X11/xdm/GiveConsole, by adding:

if [ -x /etc/X11/xinit.d/numlock ]; then
    /etc/X11/xinit.d/numlock &
fi

Can you do the same with Mageia, if that is appropriate?
Manuel Hiebel 2011-09-03 21:22:47 CEST

Keywords: (none) => Junior_job, PATCH
Source RPM: (none) => xinitrc

Comment 6 Georges Eckenschwiller 2011-09-06 20:50:59 CEST
Created attachment 764 [details]
numlock activation for Xfce

A more universal solution is to add a file in the directory numlock.desktop 
/etc/xdg/autostart/
Comment 7 Georges Eckenschwiller 2011-09-15 19:54:39 CEST
Created attachment 793 [details]
patch to /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml

Hello, 
Consider my comments 5 and 6 as being exceeded. 
With Xfce 4.8 it is the file /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml  that needs to be changed.

The appendix patch provides changes to the file.
Comment 8 Arnaud Vacquier 2011-10-15 04:37:54 CEST
Hello,

sorry i am newb, i have laptop and numpad is not detect ( talk already : https://bugs.mageia.org/show_bug.cgi?id=1099 )

Now i have switch to XFCE, and with numlock ( Version : 2.1.2-5.mga1 ) installed is still offline :(, i must push on "Verr Num" for active pad.

thank you for help.

@Georges Eckenschwiller I must download your file is comment 7 for working? sorry my english is poor

CC: (none) => inster.css

Comment 9 Georges Eckenschwiller 2011-10-15 09:35:15 CEST
Bonjour Arnaud

Je suis également plus à l'aise avec le français.

En fait, l'attachement 793 permet de patcher le fichier de configuration de Xfce.
Il sera utile aux développeurs.

Pour vous, dans la pratique, il suffira de modifier (en root) le fichier
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml
et d'y ajouter la ligne :
   <property name="Numlock" type="bool" value="true"/>
après la ligne :
 <property name="Default" type="empty">
Comment 10 Arnaud Vacquier 2011-10-15 14:58:03 CEST
Salut,

okay merci :)
on verra au prochain démarrage, mais faudrait t'il pas ouvrir un bug chez XFCE ?

--
For english :

Hello,
okay thank you,
I see in next boot, but we must open bug in XFCE ?

(okay the translate is not great xD )


reported : https://bugzilla.xfce.org/show_bug.cgi?id=8037
Arnaud Vacquier 2011-10-15 14:58:11 CEST

See Also: (none) => https://bugzilla.xfce.org/show_bug.cgi?id=8037

Comment 11 Marja Van Waes 2011-12-11 11:14:07 CET
@ Thierry

There seem to be two possibilities here: patch initrc or wait for an upstream xfce4-settings fix.

Is it good to leave both possibilities open?

Keywords: (none) => UPSTREAM
CC: (none) => marja11, thierry.vignaud
Source RPM: xinitrc => xinitrc, xfce4-settings

Comment 12 Marja Van Waes 2012-01-29 19:54:45 CET
fixed upstream

https://bugzilla.xfce.org/show_bug.cgi?id=8037#c2

Source RPM: xinitrc, xfce4-settings => xfce4-settings

Luc Menut 2012-03-10 15:29:41 CET

CC: lmenut => (none)

Damien Lallement 2012-04-18 16:54:57 CEST

CC: (none) => mageia
Assignee: bugsquad => jani.valimaa

Comment 13 Georges Eckenschwiller 2012-05-12 13:22:37 CEST
The problem is actually solved.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.