LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   libdrm: drmSetMaster yields Invalid argument (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/libdrm-drmsetmaster-yields-invalid-argument-4175596740/)

vaselinessa 01-03-2017 07:29 PM

libdrm: drmSetMaster yields Invalid argument
 
I'm using libdrm in effort to change gamma on my Chromebook. I find that when I call drmModeCrtcSetGamma, I get a "Permission denied" error, regardless of whether I run my program with sudo. (See line 91 of my source code.)

So I insert a call to drmSetMaster(dat->fd) above drmModeCrtcSetGamma, and that results in an "Invalid argument" error. What is the correct approach, please? Documentation seems rather sparse, with the best I've seen being this.


All times are GMT -5. The time now is 05:52 PM.