Page 1 of 1

Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 25 Aug 2015, 15:51
by ryanknut
Linux démarre bien, mais lorsque je tente d'utiliser le clavier de la calculatrice, il ne fonctionne pas. Toute façon, comment je peux activer cette / le faire fonctionner?

Aussi, comment puis-je activer USB OTG? Je ne suis pas très bon à noyau choses. Je ai un CX (non CAS). Et désolé pour la mauvaise traduction, je parle anglais.

How can I use the built in keyboard with Linux?

Unread postPosted: 25 Aug 2015, 15:53
by ryanknut
Linux boots fine, but when I try to use the keyboard on the calculator, it doesn't work. Any way how I can enable this/get it to work?

Also, how can I enable USB-OTG? I'm not very good at kernel stuff. I have a CX (not CAS). (This is the post in English for all you English speakers!)

Re: Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 25 Aug 2015, 19:14
by Lionel Debroux
The last time I tried it was admittedly a while ago, but it used to work for me on the CX CAS, which has no difference with CX from nearly every angle.

Re: Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 25 Aug 2015, 19:18
by Vogtinator
Which version from which source are you using? DTB?
There is a bug in the nspire-keypad driver that causes it to miss an IRQ on boot which in turn breaks the functionality.
I'm not sure how to trigger it, but a reboot should fix it.
Regarding OTG, there are some tips on the wiki page: http://hackspire.unsads.com/wiki/index.php/Linux

Re: Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 26 Aug 2015, 09:20
by Ti64CLi++
Bonjour, alors voilà, je ne comprends pas très bien l'anglais (eh oui, je suis une noob, qui ne le savais pas encore :D) alors est ce que quelqu'un pourrais me traduire les réponse de Lionel Debroux et de Vogtinator?
Merci d'avance

Re: Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 26 Aug 2015, 15:43
by ryanknut
Well I tried to reboot, but it wasn't working (Ctrl+Var+Scratchpad). I'm on Ndless 3.9 if that helps.

I did some looking around and found this by Daniel Tang. - http://lxr.free-electrons.com/source/dr ... e-keypad.c

Problem is, I don't know how to use it.

Re: Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 26 Aug 2015, 15:52
by Lionel Debroux
Yes, this is the mainline Linux code for the Nspire's keypad. It is supposed to be integrated in your kernel's binary, if you use a recent build from https://tiplanet.org/nspire-linux-builds :)

Re: Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 26 Aug 2015, 15:58
by Adriweb
neuronix wrote:Bonjour, alors voilà, je ne comprends pas très bien l'anglais (eh oui, je suis une noob, qui ne le savais pas encore :D) alors est ce que quelqu'un pourrais me traduire les réponse de Lionel Debroux et de Vogtinator?
Merci d'avance

- Pour Lionel (NDT: et pour moi), le clavier fonctionne sur Linux.

- Vogtinator demandait quelle version de quel source il utilisait, celle du device tree ou non ? Il y a un bug dans le driver de clavier qui fait qu'une interruption pendant le boot est manquée, ce qui a pour conséquence par la suite de ne pas faire fonctionner la fonctionnalité. Un reboot règle peut-être le problème. Et pour l'USB OTG, cf son lien.

Re: Comment puis-je utiliser le clavier intégré avec Linux?

Unread postPosted: 26 Aug 2015, 16:01
by ryanknut
I will try updating everything to the latest version. (Pretty sure I have builds from 2014)