Page 1 of 1

invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-01 19:26
by ealfonsoy
I attached a GIF below demonstrating the problem: the inversion appears to do something but the result is an extremely bright, mostly white display.

Image


The inversion is done via `xcalib: `

Code: Select all

█[phantom][~][0]$ xcalib -i -a -v
Red Brightness: 0.000000   Contrast: 100.000000  Max: 1.000000  Min: 0.000000
Green Brightness: 0.000000   Contrast: 100.000000  Max: 1.000000  Min: 0.000000
Blue Brightness: 0.000000   Contrast: 100.000000  Max: 1.000000  Min: 0.000000
X-LUT size:             1024
█[phantom][~][0]$ xcalib -i -a -v
Red Brightness: 100.000000   Contrast: -inf  Max: 0.000000  Min: 1.000000
Green Brightness: 100.000000   Contrast: -inf  Max: 0.000000  Min: 1.000000
Blue Brightness: 100.000000   Contrast: -inf  Max: 0.000000  Min: 1.000000
X-LUT size:             1024
█[phantom][~][0]$ 
graphics card:

Code: Select all

█[phantom][~][130]$ inxi -G
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    driver: amdgpu v: kernel
  Display: server: X.Org v: 1.21.1.7 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    resolution: 3840x2160~30Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon RX 580 Series
    (polaris10 LLVM 15.0.6 DRM 3.49 6.1.0-16-amd64)
This is on debian bookworm and xcalib 0.8

Code: Select all

█[phantom][~][0]$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
█[phantom][~][0]$ xcalib -version
xcalib 0.8
█[phantom][~][0]$ 
Color inversion works normally from a different machine using the same monitor, same OS, same xcalib version but different graphics card:

Code: Select all

+ inxi -G
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] driver: i915 v: kernel
  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: iris gpu: i915 resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 620 (WHL
    GT2)
+ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
+ xcalib -version
xcalib 0.8
█[debian-x1-7th][~][0]$

Re: invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-02 05:35
by mrmazda
Your AMD GPU may be switched to using the same X display driver "modesetting" as is used with your Intel. If you make that adjustment, does the problem persist?

To make the switch, a simple way is to uninstall xserver-xorg-video-amdgpu, then restart either X or the whole computer. To switch back, install xserver-xorg-video-amdgpu and restart again. Which display driver to use is configurable via use of the optional directory /etc/X11/xorg.conf.d/.

Re: invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-04 01:39
by ealfonsoy
Thanks for the suggestion, I tried removing the package and restarting X, but there was no change. I also tried rebooting the system, no change.

Code: Select all

$ sudo apt-get remove xserver-xorg-video-amdgpu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'xserver-xorg-video-amdgpu' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 132 not upgraded.
█[phantom][~][0]$ 
Any other ideas or pointers for debugging this would be appreciated.

Re: invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-04 03:18
by mrmazda
Extra information may allow someone to offer additional troubleshooting steps. All I see is your GPU, Debian 12 and X11 - nothing about the WM or DE:

Code: Select all

inxi -SGaz --vs --zl --hostname
If you switch from any to another, does the problem continue? What if you try Wayland instead of X11?

Re: invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-06 18:42
by ealfonsoy

Code: Select all

inxi 3.3.26-00 (2023-03-28)
System:
  Host: phantom Kernel: 6.1.0-16-amd64 arch: x86_64 bits: 64 compiler: gcc
    v: 12.2.0 parameters: BOOT_IMAGE=/vmlinuz-6.1.0-16-amd64
    root=/dev/mapper/phantom--vg-root ro quiet
  Desktop: N/A vt: 1 dm: xinit Distro: Debian GNU/Linux 12 (bookworm)
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    vendor: XFX Pine driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands
    process: GF 14nm built: 2016-20 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s ports: active: HDMI-A-1 empty: DP-1, DP-2,
    DP-3, DVI-D-1 bus-ID: 01:00.0 chip-ID: 1002:67df class-ID: 0300
    temp: 53.0 C
  Display: server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting
    unloaded: fbdev,vesa alternate: amdgpu dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.00x22.48")
    s-diag: 1165mm (45.88")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: V505-G9 built: 2018
    res: 3840x2160 hz: 30 dpi: 89 gamma: 1.2 size: 1096x616mm (43.15x24.25")
    diag: 1257mm (49.5") ratio: 16:9 modes: max: 3840x2160 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon RX 580 Series
    (polaris10 LLVM 15.0.6 DRM 3.49 6.1.0-16-amd64) direct-render: Yes
I happen to be using stumpwm, but I suspect it is not the culprit since I'm able to invert colors fine on other machines with different hardware/drivers.

I will try another WM on the same machine and report any results.

Re: invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-13 19:05
by ealfonsoy
I tried running no display manager at all, I ran a GUI terminal directly on xinit. Then I tried xcalib -i -a. The result was the same, so I don't think it's related to the window manager.

I also notice that the display is generally very bright and some of the lighter colors are difficult to tell apart from white even in non-inverted screen mode.

Are there amdcpu drivers I could try?
I also noticed after using apt-get a lot of warnings related to possibly missing firmware:

Code: Select all

$ sudo apt-get install -y firmware-realtek
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-15-amd64
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  firmware-realtek
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,491 kB of archives.
After this operation, 7,046 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bookworm/non-free-firmware amd64 firmware-realtek all 20230210-5 [1,491 kB]
Fetched 1,491 kB in 0s (4,891 kB/s)
Selecting previously unselected package firmware-realtek.
(Reading database ... 301176 files and directories currently installed.)
Preparing to unpack .../firmware-realtek_20230210-5_all.deb ...
Unpacking firmware-realtek (20230210-5) ...
Setting up firmware-realtek (20230210-5) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_11_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_11_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_10_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_10_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_imu.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sdma_6_0_3.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_10.bin for module amdgpu
█
Do I need to build and install proprietary graphics drivers?

Re: invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-14 10:16
by NorthEast
Alternative to inversion is creating any number of colour calibrations, or a number of them that are preferred, and using them at will.
Here's one used here:

Code: Select all

xcalib -red 0.5  0 100 -green 0.5  0 100 -blue 1.0  0   1 -a
Adjust to preference. To revert to default: xcalib -c

Re: invert colors results in extremely bright, white unreadable screen #20

Posted: 2024-05-20 23:24
by ealfonsoy
Thanks, it is somewhat helpful. Although I still think I have a graphics driver issue, since even without color inversion my screen is often too bright to read most non-black text on white background in websites.