[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] X et numlock / XSendEvent



Oui, merci.. mais je ne le fais plus car j'en avais assez de modifier tous les kernels que je compilais. C'est juste bete qu'ils suppriment toutes les options et je voulais dire par la que ca a l'air d'etre ce qu'ils souhaitent (et pas un hasard).

(il est vrai que sur la plupart des claviers non-francophones, les chiffres ne doivent pas etre shiftes => ils voient moins l'interet du num lock).

	fred.

Alexandre Dulaunoy wrote:
> 
> from ::/usr/src/linux/drivers/char/keyboard.c
> 
> #ifndef KBD_DEFLEDS
> /*
>  * Some laptops take the 789uiojklm,. keys as number pad when NumLock
>  * is on. This seems a good reason to start with NumLock off.
>  */
> #define KBD_DEFLEDS 0
> #endif
> 
> sinon, rien n'empeche de le modifier... si vrai qu'un petit
> /proc/sys/kdb-num serait plus propre... (non pas un sysctl... linus ne
> veut plus...)
> 
> On Thu, 27 Jan 2000, Pascal Bleser wrote:
> 
> > Et encore une cochonnerie... ;))
> >
> > Nondidjos, faut croire qu'il n'y a vraiment pas moyen d'avoir
> > le NumLock activé quand on lance X.
> > Bon, c'est pas un problème en soi (chuis pas paresseux à ce
> > point-là ;)), mais ça me fait tjs ch**r quand je tombe sur
> > un truc qu'on ne sait pas faire sous Linux ;))
> > C'est un peu une question de principe, quoi ;)
> >
> > Alors, un moyen de le faire (pas idéal, mais ça ferait
> > l'affaire), serait d'écrire un ch'tit tool qui utilise
> > la Xlib pour envoyer un keycode à X.
> > Comme malheureusement il n'existe (du moins j'en ai pas
> > trouvé) pas encore de tool qui envoit un keycode à X,
> > faudrait que je l'écrive moi-même (c'est bête: il y a
> > xev qui affiche les events X qu'il reçoit, mais pas le
> > contraire).
> >
> > Y aurait-il qqn qui a un peu d'expérience avec la Xlib ?
> > J'ai déjà trouvé XSendEvent et XKeyEvent.
> > J'ai rempli les champs adéquats mais ça marche pas
> > (je reçois un BadRequest) :\
> >
> > Ou bien y a p'têt moyen de faire ça en Tcl/Tk ou autre ?
> >
> > --
> >   -o) / Pascal Bleser          ATOS Payment Systems|
> >   /\\ \ C++/UNIX Development        Aachen, Germany|
> >  _\_v  \<guru@linuxbe.org> <pbleser@atos-group.com>|
> > ---------------------------------------------------|
> > Man usually avoids attributing cleverness to       :
> > somebody else -- unless it is an enemy.            :
> >                                 -- Albert Einstein :
> > ---------------------------------------------------'
> >
> > ---------
> > Visit the Linux Supertore Online: http://www.redcorp.com !
> > If you want to be deleted from the list, send a mail to
> > majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> > Archive of the list: http://tania.be.linux.org/
> >
> 
>  [META]       [   Alexandre Dulaunoy   ] USER, n. The word computer
>  [T]echnology [   [AD4384-DARPA]       ] professionals use when they
>  [I]nterface  [   [AD993-RIPE]         ] mean "idiot".
>  [X]change    [   adulau@metatix.com   ] http://unix.be.EU.org/
> 
> ---------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> Archive of the list: http://tania.be.linux.org/

-- 
------------------------- * oOo * -------------------------
                        CiscoSystems

                   Frederic Detienne, CDE
                 Security & Network Services

                     Tel 32 2 705 55 55
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/