{"action":"created","issue":{"url":"https://api.github.com/repos/midwan/uae4arm-rpi/issues/3","repository_url":"https://api.github.com/repos/midwan/uae4arm-rpi","labels_url":"https://api.github.com/repos/midwan/uae4arm-rpi/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/midwan/uae4arm-rpi/issues/3/comments","events_url":"https://api.github.com/repos/midwan/uae4arm-rpi/issues/3/events","html_url":"https://github.com/midwan/uae4arm-rpi/issues/3","id":175353427,"number":3,"title":"Keyboard LEDs assigned to drives don't work in DietPi (work in Raspbian)","user":{"login":"midwan","id":3877365,"avatar_url":"https://avatars.githubusercontent.com/u/3877365?v=3","gravatar_id":"","url":"https://api.github.com/users/midwan","html_url":"https://github.com/midwan","followers_url":"https://api.github.com/users/midwan/followers","following_url":"https://api.github.com/users/midwan/following{/other_user}","gists_url":"https://api.github.com/users/midwan/gists{/gist_id}","starred_url":"https://api.github.com/users/midwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwan/subscriptions","organizations_url":"https://api.github.com/users/midwan/orgs","repos_url":"https://api.github.com/users/midwan/repos","events_url":"https://api.github.com/users/midwan/events{/privacy}","received_events_url":"https://api.github.com/users/midwan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/midwan/uae4arm-rpi/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/midwan/uae4arm-rpi/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":{"login":"midwan","id":3877365,"avatar_url":"https://avatars.githubusercontent.com/u/3877365?v=3","gravatar_id":"","url":"https://api.github.com/users/midwan","html_url":"https://github.com/midwan","followers_url":"https://api.github.com/users/midwan/followers","following_url":"https://api.github.com/users/midwan/following{/other_user}","gists_url":"https://api.github.com/users/midwan/gists{/gist_id}","starred_url":"https://api.github.com/users/midwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwan/subscriptions","organizations_url":"https://api.github.com/users/midwan/orgs","repos_url":"https://api.github.com/users/midwan/repos","events_url":"https://api.github.com/users/midwan/events{/privacy}","received_events_url":"https://api.github.com/users/midwan/received_events","type":"User","site_admin":false},"assignees":[{"login":"midwan","id":3877365,"avatar_url":"https://avatars.githubusercontent.com/u/3877365?v=3","gravatar_id":"","url":"https://api.github.com/users/midwan","html_url":"https://github.com/midwan","followers_url":"https://api.github.com/users/midwan/followers","following_url":"https://api.github.com/users/midwan/following{/other_user}","gists_url":"https://api.github.com/users/midwan/gists{/gist_id}","starred_url":"https://api.github.com/users/midwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwan/subscriptions","organizations_url":"https://api.github.com/users/midwan/orgs","repos_url":"https://api.github.com/users/midwan/repos","events_url":"https://api.github.com/users/midwan/events{/privacy}","received_events_url":"https://api.github.com/users/midwan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":49,"created_at":"2016-09-06T21:12:56Z","updated_at":"2016-09-23T17:19:09Z","closed_at":null,"body":"The keyboard LEDs (Scroll Lock, Num Lock) do not work as expected when they are assigned functions like drive activity, from within the emulator.\r\n\r\nThis works if the emulator is running under Raspbian, but not in DietPi. However, the following scenario applies:\r\n\r\n- Setting the Caps Lock when the key is pressed seems to work when running under `xinit`, but not when running in the console framebuffer. However, the functions assigned to the LEDs do not work when running under `xinit`.\r\n\r\n- On the contrary, the functions assigned to them (e.g. HD/DF* activity) seem to work only when running from the console framebuffer and not under `xinit`.\r\n\r\nNote: The code uses calls to `ioctl()` (#include <sys/ioctl.h>) to get and set the keyboard LED status. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/midwan/uae4arm-rpi/issues/comments/249251104","html_url":"https://github.com/midwan/uae4arm-rpi/issues/3#issuecomment-249251104","issue_url":"https://api.github.com/repos/midwan/uae4arm-rpi/issues/3","id":249251104,"user":{"login":"midwan","id":3877365,"avatar_url":"https://avatars.githubusercontent.com/u/3877365?v=3","gravatar_id":"","url":"https://api.github.com/users/midwan","html_url":"https://github.com/midwan","followers_url":"https://api.github.com/users/midwan/followers","following_url":"https://api.github.com/users/midwan/following{/other_user}","gists_url":"https://api.github.com/users/midwan/gists{/gist_id}","starred_url":"https://api.github.com/users/midwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midwan/subscriptions","organizations_url":"https://api.github.com/users/midwan/orgs","repos_url":"https://api.github.com/users/midwan/repos","events_url":"https://api.github.com/users/midwan/events{/privacy}","received_events_url":"https://api.github.com/users/midwan/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T17:19:09Z","updated_at":"2016-09-23T17:19:09Z","body":"@Fourdee \r\nSure, that was the first binary I had made actually. I don't think it's SDL related, as the call to change the LED status on/off is a system call (ioctl()) and not part of SDL.\r\n\r\nThe \"setled\" binary will start from main, go in a loop and flash the LEDs until you cancel it with Ctrl-C.\r\nThe \"testleds\" binary will open up an SDL screen first, but otherwise do the same loop with the same calls to flash the LEDs.\r\n\r\nBoth of these worked in Raspbian Lite (and full), but of course I only tested them under the \"pi\" default account."}}
{"actor":{"display_login":"midwan"}}