LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   App to control screen brightness and temperature (https://www.linuxquestions.org/questions/linux-software-2/app-to-control-screen-brightness-and-temperature-4175681670/)

Ghost-Order 09-06-2020 10:55 PM

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.

TenTenths 09-07-2020 05:29 AM

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.

pan64 09-07-2020 07:32 AM

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.

fatmac 09-07-2020 08:08 AM

Maybe this will help.

http://sandipbgt.com/2015/10/01/cont...ine-in-ubuntu/

Ghost-Order 09-07-2020 10:28 AM

Quote:

Originally Posted by TenTenths (Post 6163375)
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 (Post 6163388)
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 (Post 6163396)

Thank you! it certainly serves for my purpose which is reading.

pan64 09-07-2020 10:36 AM

I used this page: https://askubuntu.com/questions/8607...isplay-monitor

Ghost-Order 09-07-2020 11:01 AM

Quote:

Originally Posted by pan64 (Post 6163440)

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)


pan64 09-07-2020 11:03 AM

did you check those kernel modules? What kind of monitor is it? How is it connected?

Ghost-Order 09-07-2020 12:09 PM

Quote:

Originally Posted by pan64 (Post 6163451)
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.

pan64 09-07-2020 12:13 PM

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.

Ghost-Order 09-07-2020 07:25 PM

Quote:

Originally Posted by pan64 (Post 6163484)
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.

pan64 09-08-2020 02:01 AM

do you have /dev/i2c* devices?

Ghost-Order 09-08-2020 03:52 PM

Quote:

Originally Posted by pan64 (Post 6163689)
do you have /dev/i2c* devices?

No, I don't have that file or directory.

pan64 09-09-2020 01:19 AM

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?

Ghost-Order 09-09-2020 10:49 AM

Quote:

Originally Posted by pan64 (Post 6164000)
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?


All times are GMT -5. The time now is 02:56 AM.