LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2020, 10:55 PM   #1
Ghost-Order
Member
 
Registered: Jan 2020
Distribution: Arch Linux
Posts: 52

Rep: Reputation: Disabled
App to control screen brightness and temperature


I'm looking for an app to control my screen brightness, and if it is possible the color temperature also (mostly for hot(sepia) and cold(blue) tones), I want it for reading on the pc.

I found this wingpanel-indicator-nightlight but it doesn't work, probably because I'm not using a desktop environment but a window manager (Awesome).

Monitor is AOC M2470SW which have a HDMI connector.

Last edited by Ghost-Order; 09-07-2020 at 10:52 PM. Reason: more information
 
Old 09-07-2020, 05:29 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Not sure what you're hoping to get here if you provide zero useful information such as make / model of graphics card and monitor.

Also, unless you're doing hardware calibration of your monitor with something like an X-Rite i1 setting a colour temperature is meaningless.
 
Old 09-07-2020, 07:32 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
there is an app called ddccontrol which can send some commands to the monitor. Also there is a gui frontend available. Need to play a bit to find out how, but probably works.
 
Old 09-07-2020, 08:08 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
Maybe this will help.

http://sandipbgt.com/2015/10/01/cont...ine-in-ubuntu/
 
Old 09-07-2020, 10:28 AM   #5
Ghost-Order
Member
 
Registered: Jan 2020
Distribution: Arch Linux
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
Not sure what you're hoping to get here if you provide zero useful information such as make / model of graphics card and monitor.

Also, unless you're doing hardware calibration of your monitor with something like an X-Rite i1 setting a colour temperature is meaningless.
My bad, my monitor is an AOC M2470SW which have a HDMI connector. Maybe I didn't explain myself well enough, with color temperature I mostly was referring to make it more sepia or more cold(blue), I'm not doing calibration I just want it to read books in my pc, with xrandr I can control the brightness and that's nice but it would be better if I could add some tones of sepia to relax even more my eyes when reading.

Quote:
Originally Posted by pan64 View Post
there is an app called ddccontrol which can send some commands to the monitor. Also there is a gui frontend available. Need to play a bit to find out how, but probably works.
It seems that is exactly what I was looking for, since it is like a software equivalent to your monitor physical controllers, so I even can manipulate de RGB values, that is pretty nice.

But to make it work I need the exact path of my device in the form of path/to/my/device, at least that is what I understand reading from the --help command.

I was searching on the web for how to get that information but I couldn't found anything useful, I tried with lspci, lshw, lsdev, but non of them gets me the path/to/my/device, the ddccontrol man page doesn't have so much information tho, there it says that "the programm is fully documented" at /usr/share/doc/ddccontrol/html/index.html but I don't have that file.

Quote:
Originally Posted by fatmac View Post
Thank you! it certainly serves for my purpose which is reading.
 
Old 09-07-2020, 10:36 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I used this page: https://askubuntu.com/questions/8607...isplay-monitor
 
Old 09-07-2020, 11:01 AM   #7
Ghost-Order
Member
 
Registered: Jan 2020
Distribution: Arch Linux
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Yep I tried the -p flag before and it seems my monitor doesn't support DDC/CI.

Code:
No monitor supporting DDC/CI available.
If your graphics card need it, please check all the required kernel modules are loaded (i2c-dev, and your framebuffer driver)
 
Old 09-07-2020, 11:03 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
did you check those kernel modules? What kind of monitor is it? How is it connected?
 
Old 09-07-2020, 12:09 PM   #9
Ghost-Order
Member
 
Registered: Jan 2020
Distribution: Arch Linux
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
did you check those kernel modules? What kind of monitor is it? How is it connected?
Excuse for my ignorance but, how can I check if I have those kernel modules? all that I know is that I have installed the i2c-tools package.

My monitor is AOC M2470SW which have a HDMI connector.
 
Old 09-07-2020, 12:13 PM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
lsmod will tell you the loaded modules. For me it looks like:
Code:
lsmod | grep i2c
i2c_algo_bit           16384  1 i915
i2c_hid                28672  0
hid                   126976  5 i2c_hid,hidp,usbhid,hid_multitouch,hid_generic
for you it can be different, but if this command returns nothing - then you need to load these modules.
 
Old 09-07-2020, 07:25 PM   #11
Ghost-Order
Member
 
Registered: Jan 2020
Distribution: Arch Linux
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
lsmod will tell you the loaded modules. For me it looks like:
Code:
lsmod | grep i2c
i2c_algo_bit           16384  1 i915
i2c_hid                28672  0
hid                   126976  5 i2c_hid,hidp,usbhid,hid_multitouch,hid_generic
for you it can be different, but if this command returns nothing - then you need to load these modules.
Thank you for trying to guide me on this.

Mine displays this:

Code:
lsmod | grep i2c
i2c_i801               36864  0
i2c_smbus              20480  1 i2c_i801
So it seems I'm lacking i2c-dev, I was searching for how to install that driver in arch linux (cause it is not in the official nor AUR repositories) but found nothing.
 
Old 09-08-2020, 02:01 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
do you have /dev/i2c* devices?
 
Old 09-08-2020, 03:52 PM   #13
Ghost-Order
Member
 
Registered: Jan 2020
Distribution: Arch Linux
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
do you have /dev/i2c* devices?
No, I don't have that file or directory.
 
Old 09-09-2020, 01:19 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
so if you have no /dev/i2c-0 /dev/i2c-1 .... (or similar) devices you need to find the kernel module and "install" it.
which kernel is it?
 
Old 09-09-2020, 10:49 AM   #15
Ghost-Order
Member
 
Registered: Jan 2020
Distribution: Arch Linux
Posts: 52

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
so if you have no /dev/i2c-0 /dev/i2c-1 .... (or similar) devices you need to find the kernel module and "install" it.
which kernel is it?
My kernel is Linux 5.8.7-arch1-1 x86_64, I was looking for how to install modules but I just found how to load them, and trying

Code:
modprobe i2c
I get this error message: modprobe: FATAL: Module i2c not found in directory /lib/modules/5.8.7-arch1-1

It seems I need to download the module then, but it is not in the arch official repositories neither the AUR either it seems.

How can I know if a package have the drivers I'm looking for? When I query a specific package with the pacman helper 'yay', I can get all this information (this is just an example):

Code:
Repository      : ...
Name            : ...
Keywords        : ...
Version         : ...
Description     : ...
URL             : ...
AUR URL         : ...
Groups          : ...
Licenses        : ...
Provides        : ...
Depends On      : ...
Make Deps       : ...
Check Deps      : ...
Optional Deps   : ...
Conflicts With  : ...
Maintainer      : ...
Votes           : ...
Popularity      : ...
First Submitted : ...
Last Modified   : ...
Out-of-date     : ...
I guess I should look into the package that have i2c-0 or i2c-1 in the field named 'Provides' right?
 
  


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
Change brightness percentage that screen brightness keys increase/decrease MozillaUser3172 Slackware 5 03-24-2020 06:07 PM
C++ Tinyb ble temperature reader application gives constant readings which doesn't reflect the actual temperature variation ba_kirang Programming 1 05-27-2019 03:33 PM
Mint 15 = black screen (brightness = 0) on start up - have to manually set brightness Netnovice Linux Mint 4 01-16-2014 08:46 PM
Temperature inside computer box and CPU temperature Lola Kews Linux - Hardware 14 11-29-2013 06:22 PM
In search of a cost-control app for 3g/GPRS - bandwidth control and limiting per app motin Linux - Software 0 09-07-2006 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 AM.

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