[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] X et numlock / XSendEvent
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/