LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-03-2017, 07:29 PM   #1
vaselinessa
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid argument azza Programming 1 07-01-2009 09:45 PM
invalid argument azza Programming 1 06-29-2009 08:25 AM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM
iptables: Invalid argument pk_kala Linux - Server 4 06-23-2007 02:21 AM
accept() : invalid argument KKKKKKKK Programming 4 01-29-2007 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration