Capslock LED does not turn on

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












I have a raspberry with raspbian-lite and the problem is that the capslock led does not work when the keyboard is connected to it. The problem is not with the keyboard, as it works on other computers.



I tried doing



ioctl(STDOUT_FILENO, KDSETLED, 7);


which supposedly turns on every led, but the capslock didn't (the others yes).



But if I write 1 instead of 0 directly to the file that contains the brightness info of the capslock led (located somewhere at /sys) then it turns on.



Why does not the led work without writing directly to the file?



I also noticed that the event file of the usb interface which contains the leds (in /dev) does not work as expected. I tried in other computers to read the equivalent file, and when I press capslock or numlock some data appears. In the file in the raspberry when I do the same thing data does not appear.







share|improve this question



























    up vote
    1
    down vote

    favorite












    I have a raspberry with raspbian-lite and the problem is that the capslock led does not work when the keyboard is connected to it. The problem is not with the keyboard, as it works on other computers.



    I tried doing



    ioctl(STDOUT_FILENO, KDSETLED, 7);


    which supposedly turns on every led, but the capslock didn't (the others yes).



    But if I write 1 instead of 0 directly to the file that contains the brightness info of the capslock led (located somewhere at /sys) then it turns on.



    Why does not the led work without writing directly to the file?



    I also noticed that the event file of the usb interface which contains the leds (in /dev) does not work as expected. I tried in other computers to read the equivalent file, and when I press capslock or numlock some data appears. In the file in the raspberry when I do the same thing data does not appear.







    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have a raspberry with raspbian-lite and the problem is that the capslock led does not work when the keyboard is connected to it. The problem is not with the keyboard, as it works on other computers.



      I tried doing



      ioctl(STDOUT_FILENO, KDSETLED, 7);


      which supposedly turns on every led, but the capslock didn't (the others yes).



      But if I write 1 instead of 0 directly to the file that contains the brightness info of the capslock led (located somewhere at /sys) then it turns on.



      Why does not the led work without writing directly to the file?



      I also noticed that the event file of the usb interface which contains the leds (in /dev) does not work as expected. I tried in other computers to read the equivalent file, and when I press capslock or numlock some data appears. In the file in the raspberry when I do the same thing data does not appear.







      share|improve this question













      I have a raspberry with raspbian-lite and the problem is that the capslock led does not work when the keyboard is connected to it. The problem is not with the keyboard, as it works on other computers.



      I tried doing



      ioctl(STDOUT_FILENO, KDSETLED, 7);


      which supposedly turns on every led, but the capslock didn't (the others yes).



      But if I write 1 instead of 0 directly to the file that contains the brightness info of the capslock led (located somewhere at /sys) then it turns on.



      Why does not the led work without writing directly to the file?



      I also noticed that the event file of the usb interface which contains the leds (in /dev) does not work as expected. I tried in other computers to read the equivalent file, and when I press capslock or numlock some data appears. In the file in the raspberry when I do the same thing data does not appear.









      share|improve this question












      share|improve this question




      share|improve this question








      edited Aug 3 at 22:20
























      asked Aug 3 at 17:00









      Garmekain

      1715




      1715

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460380%2fcapslock-led-does-not-turn-on%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460380%2fcapslock-led-does-not-turn-on%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?