Coder Social home page Coder Social logo

icc color profile reset about brightness HOT 12 CLOSED

lordamit avatar lordamit commented on July 19, 2024
icc color profile reset

from brightness.

Comments (12)

LordAmit avatar LordAmit commented on July 19, 2024

Hi Kermit,
I do not know much about ICC color profile, so I am not sure if I am the right person to help you about xrandr and icc conflict.

What I can suggest are these:

  1. After your ICC profile is setup, check the output of

xgamma

By default the output is

-> Red 1.000, Green 1.000, Blue 1.000

If the output is changed, you can then setup a bash script that you will run right after you set brightness value using Brightness Controller.
2. Otherwise, you probably need to use the package which is specially used for setting ICC profile in Linux via CLI.

xcalib

Please check man page for further documentation.

I am sorry that I could not help you much about it. Brightness Controller simply provides an UI to xrandr brightness settings and xrandr itself resets the color configuration once it is used. I don't think there are any switches to prevent it from doing it. :(

I hope that other people who are better than me regarding the display settings in Linux will come forward and will contribute in this simple project.

from brightness.

metakermit avatar metakermit commented on July 19, 2024

Hi Amit,

thanks for the response! I'll try out the commands you mentioned, see if I
can get it to work. If I find something useful, I'll get back to you!

Cheers,
DraΕΎen

On Fri, Jun 21, 2013 at 5:41 AM, Amit Seal Ami [email protected]:

Hi Kermit,
I do not know much about ICC color profile, so I am not sure if I am the
right person to help you about xrandr and icc conflict.

What I can suggest are these:

  1. After your ICC profile is setup, check the output of

xgamma

By default the output is

-> Red 1.000, Green 1.000, Blue 1.000

If the output is changed, you can then setup a bash script that you will
run right after you set brightness value using Brightness Controller.
2. Otherwise, you probably need to use the package which is specially used
for setting ICC profile in Linux via CLI.

xcalib

Please check man page for further documentation.

I am sorry that I could not help you much about it. Brightness Controller
simply provides an UI to xrandr brightness settings and xrandr itself
resets the color configuration once it is used. I don't think there are any
switches to prevent it from doing it. :(

I hope that other people who are better than me regarding the display
settings in Linux will come forward and will contribute in this simple
project.

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-19796813
.

from brightness.

zlatanvasovic avatar zlatanvasovic commented on July 19, 2024

@Kermit666 You stay here? πŸš€ ➑️ 🌻

from brightness.

metakermit avatar metakermit commented on July 19, 2024

@zdroid yup. I tried it - my gamma settings are (1, 1, 1) even with my color profile, but running Brightness Controller to change the brightness still resets my color profile and makes the color all too cold. I could probably tweak this using xcalib to activate my original color profile, but it would require too much hard-coding (I see that the command requires the display ID, color profile ID etc.) so it wouldn't be useful as a general solution.

from brightness.

zlatanvasovic avatar zlatanvasovic commented on July 19, 2024

I think that it can be fixed adding your xcalib in brightness.py (but just for you, not for everyone πŸ“¦).

from brightness.

LordAmit avatar LordAmit commented on July 19, 2024

@Kermit666 - probably it will be possible to automate the activation of original color profile in Brightness Controller, but to implement that I need your help.

If you tried it already (you said, requires too much hard-coding) please share the exact procedure to restore color profile through xcalib. If not, please try it and let us know then.

from brightness.

metakermit avatar metakermit commented on July 19, 2024

I think that in Ubuntu it is better to change profiles on a higher level - through colord. I just checked and there is a terminal client for it called colormgr. You can e.g. list the profiles applied to various devices:

colormgr get-devices

Where for example the screen I'm having problems with after using Brightness Controller lists (I shortened the output):

Object Path: /org/freedesktop/ColorManager/devices/xrandr_Goldstar_Company_Ltd_W2343_8491_kermit_1000
Profile 1:     icc-0a01147a5d884d56a1e71683d0ac347b
               /home/kermit/.local/share/icc/W2343 kermit-calibrated.icc
Profile 2:     icc-cda7bc8c90f493893f6fb7eb3d39e2d7
               /home/kermit/.local/share/icc/edid-df293042c98351588e9b610689a081b8.icc
Profile 3:     icc-417c01ad09f980645eb4d8682ea39b5e
               /home/kermit/.local/share/icc/W2343 DVI kermit-calibrated.icc

The default profile is listed through:

$ colormgr device-get-default-profile /org/freedesktop/ColorManager/devices/xrandr_Goldstar_Company_Ltd_W2343_8491_kermit_100
Profile ID:    icc-0a01147a5d884d56a1e71683d0ac347b

And I guess it could be set back to this value using the device-make-profile-default subcommand. There are many other subcommands (see the manpage) that might be of importance. There is also a DBUS API to do all this properly. More here.

You can play with all this by adding a profile for one of your screens in Gnome control center - Color - select device - add profile - choose non-default one - add - activate it. Now try using your application and try to accomplish that the profile stays selected even after changing the brightness settings.

from brightness.

LordAmit avatar LordAmit commented on July 19, 2024

Thanks @Kermit666 . I never used color profile before - and was not able to use when I tried before.
Looks like there were several dependencies I had to take care of before installing. Am experimenting with things and hope to come up with a solution soon. πŸ˜„

I was wondering - if you can use Brightness Controller to control the color profile along with brightness - will it be helpful for you? πŸ˜‰

from brightness.

metakermit avatar metakermit commented on July 19, 2024

OK, glad to hear it @LordAmit!

Well, I currently primarily need Brightness Controller to easily dim my
display in the evening (without messing with my monitor's hardware
buttons). I created my color profiles in OS X using their profiler, because I didn't find an
equivalent app in Ubuntu (except for using hardware calibration devices
which I don't have such as hughski or
dispcalgui ) - there is maybe potential to
allow this in Ubuntu, but it might be quite a challenge. Also, there is
room to improve on the color adaptation based on time and geography, which
is done in RedShift, but not as good as the
older (but unfortunately quite buggy) f.lux app,
whose authors did some extensive research.

Ideally, all these apps would be combined into one big killer monitor
configuration app :)

On Sun, Aug 25, 2013 at 6:50 PM, Amit Seal Ami [email protected]:

Thanks @Kermit666 https://github.com/kermit666 . I never used color
profile before - and was not able to use when I tried before.
Looks like there were several dependencies I had to take care of before
installing. Am experimenting with things and hope to come up with a
solution soon. [image: πŸ˜„]

I was wondering - if you can use Brightness Controller to control the
color profile along with brightness - will it be helpful for you? [image:
πŸ˜‰]

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-23231050
.

from brightness.

zlatanvasovic avatar zlatanvasovic commented on July 19, 2024

Color profile function is added to Brightness.

from brightness.

LordAmit avatar LordAmit commented on July 19, 2024

Not sure if that is the color profile function @Kermit666 is looking for. I asked for his opinion via email thousands of years ago I think. πŸ‘…

from brightness.

zlatanvasovic avatar zlatanvasovic commented on July 19, 2024

Lol.

2013/9/10 Amit Seal Ami [email protected]

Not sure if that is the color profile function @Kermit666https://github.com/kermit666is looking for. I asked for his opinion via email thousands of years ago I
think. [image: πŸ‘…]

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-24181077
.

Zlatan Vasović - ZDroid

from brightness.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.