Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcalib -invert -alter doesn't work, but increases gamma #9

Open
juergendrachta opened this issue Oct 5, 2019 · 2 comments
Open

xcalib -invert -alter doesn't work, but increases gamma #9

juergendrachta opened this issue Oct 5, 2019 · 2 comments

Comments

@juergendrachta
Copy link

juergendrachta commented Oct 5, 2019

On Arch-Linux with AMD APU (amd-xorg drivers), xcalib v. 0.10, the inversion via "xcalib -i -a" but only increases the gamma heavily.

This bug was also reported by others:
https://bugzilla.redhat.com/show_bug.cgi?id=1662620
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913849
zoltanp/xrandr-invert-colors#20

Driver-Info:

lspci -k | grep -EA3 'VGA|3D|Display'
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c1)
	Subsystem: Lenovo Picasso
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
@beku
Copy link
Member

beku commented Nov 29, 2019

Thanks for reporting. This issue appears to be a special case. Unfortunately I have no means to test on such a card.
Can you verify the ramps are correctly written?

@juergendrachta
Copy link
Author

Thanks for the comment!
Hmm... do you want to see the full output of running xcalib with the "-p" flag (it gives quite a bunch of numbers i cannot say if it's worth copying it :-) )

But I found some interesting thing, when i ran xcalib with "-v":

(base) [...@... ~]$ xcalib -i -a -v
XRandR output:      	eDP
Red Brightness: 0.000000   Contrast: 99.903870  Max: 0.999039  Min: 0.000000
Green Brightness: 0.000000   Contrast: 99.903870  Max: 0.999039  Min: 0.000000
Blue Brightness: 0.000000   Contrast: 99.903870  Max: 0.999039  Min: 0.000000
X-LUT size:      	1024
(base) [...@... ~]$ xcalib -i -a -v
XRandR output:      	eDP
Red Brightness: 99.903870   Contrast: -103925.398438  Max: 0.000000  Min: 0.999039
Green Brightness: 99.903870   Contrast: -103925.398438  Max: 0.000000  Min: 0.999039
Blue Brightness: 99.903870   Contrast: -103925.398438  Max: 0.000000  Min: 0.999039
X-LUT size:      	1024

It seems that the number of the contrast aren't ok (at least I think so by comparing them to the xcalib output of a machine, where the color inversion works properly)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants