Cayprol Posted March 2, 2017 Report Share Posted March 2, 2017 My mac mini is using the wake/suspend button under Computer Media Keys in the GUI to put to sleep,which works kinda odd, there's 3 outcomes randomly happening once the button recorded on remote is pressed.No responseimmediate sleep (the one i want)jumps out the window asking either sleep, shutdown, cancel, restart.Therefore I was trying to get it record it by using flirc_util, but I can't find the USB HID code for the eject button.option+command+eject is what always work to put my computer to sleep.Does anyone know how to find this particular value? I tried a two values of eject from here.But they all recorded as !.( I checked what's recorded with flirc_util keys. Quote Link to comment Share on other sites More sharing options...
yawor Posted March 2, 2017 Report Share Posted March 2, 2017 Eject HID code is not from a standard keyboard HID table, but from a Consumer table.Which Flirc do you have? Quote Link to comment Share on other sites More sharing options...
Cayprol Posted March 2, 2017 Author Report Share Posted March 2, 2017 I actually own two of them, the SE edition and the flirc 2 USB.I am trying to get the mini work first and then my hackintosh build.I am running my apple keyboard over bluetooth. Quote Link to comment Share on other sites More sharing options...
yawor Posted March 3, 2017 Report Share Posted March 3, 2017 You can record Eject button withflirc_util record_api 184 102But you won't be able to add modifier keys to it because this is not a key from HID Keyboard usage table (only keys from that table support modifier keys). Because of that this key will act ONLY as an Eject for your DVD drive.I think that Mac keyboard's controller (inside the keyboard) doesn't send an Eject code when you press option+command+eject, but it sends something else. Maybe it's just a standard Sleep code. Try recording a Sleep button using that commandflirc_util record_api 50 102 Quote Link to comment Share on other sites More sharing options...
Cayprol Posted March 24, 2017 Author Report Share Posted March 24, 2017 (edited) Hey sorry for the long reply, just came back from a tripI did more testing,I don't have a dvd drive on hand that I can test with recording eject button. Will try once I have access to it.But for flirc_util record_api 50 102It works just like using the GUI to set a sleep.If I clear the flirc mapping and record a button with sleep, the first time I press the button will put the machine to sleep like what it is intended.But after waking it up, by pressing it once no longer works, need to keep pressing it for a few seconds and the prompt window like scenario 3 I mentioned in post 1 will jump out.I can record enter(return) and tab(shift tab) to navigate the prompt for now, however it isn't very elegant way in my opinion.I will keep trying other workarounds and report back. thank you for the help. Edited March 24, 2017 by Cayprol Quote Link to comment Share on other sites More sharing options...
yawor Posted March 25, 2017 Report Share Posted March 25, 2017 @Cayprol in my opinion it's more an issue with OS than with Flirc itself. Flirc just sends a key press according to a HID standard. It's up to the system to interpret it and act on it. Maybe there's some setting in the Mac OS itself you need to change.I don't know Mac OS. Maybe @jason will know something, but he's currently heavily preoccupied with his family matters (mostly by new baby). Quote Link to comment Share on other sites More sharing options...
Cayprol Posted March 26, 2017 Author Report Share Posted March 26, 2017 Again really appreciate your help, I think the same, that it has mostly do to the OS.However, I use some work around by using the built-in program automator in macOS.Steps as following1. Open Automator in the Application/Utility2. Select Service at the template menu(open up the app will prompt)3. On the side menu, select Utilities -> Run Shell Script 4. type in "pmset sleepnow" no quotes. set Service receives as no input and in any application.5. save and give it a name.6. go to service app and keyboard find it under shortcut tab and under service, should be able to find the name in the last step, assign it a shortcut7. Record assigned shortcut by Flirc, I use command+shift+option+S. It works perfectly, upon press, it sleeps right away. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.