You are not logged in.

#1 2023-03-08 18:29:21

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

xrandr: Gamma size is 0.

I'm having monitor troubles, currently booted into a running Arch Linux environment with Xorg fully functioning.

GPU: AMD ATI Radeon R2/R3/R4/R5 Graphics

The problem is that I am unable to change the brightness.
My attempt at changing my brightness as follows:

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080     77.00*

Now that I have the monitor identifier:

$ xrandr --output default --brightness .75
xrandr: Gamma size is 0.

lspci:

$ lspci -nnk | grep VGA -A3
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] [1002:98e4] (rev da)
        Subsystem: ASUSTeK Computer Inc. Device [1043:1fe0]
        Kernel modules: amdgpu
00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:15b3]]

(I also tried using brightnessctl):

$ brightnessctl s 50%
Updated device 'input10::capslock':
Device 'input10::capslock' of class 'leds':
        Current brightness: 1 (100%)
        Max brightness: 1

I'm unsure what I'm doing wrong.
Thanks

Offline

#2 2023-03-08 21:27:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,113

Re: xrandr: Gamma size is 0.

Why is the outputs name "default"?
Is this a virtual machine?
Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Offline

#3 2023-03-08 21:48:22

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

Re: xrandr: Gamma size is 0.

Hey seth,

This is a geniune ASUS laptop, and I'm not sure why it displays as "default"

And heres my Xorg.log:

https://pastebin.com/K3ar9jWt

Last edited by 91aaebb1dd (2023-03-08 21:48:56)

Offline

#4 2023-03-08 21:58:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,113

Re: xrandr: Gamma size is 0.

You're running on xf86-video-fbdev because

[ 13683.557] (EE) open /dev/dri/card0: No such file or directory
[ 13683.557] (WW) Falling back to old probe method for modesetting
[ 13683.557] (EE) open /dev/dri/card0: No such file or directory

You should remove all xf86-video-* packages, but then X11 will likely not start at all (for now)
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#5 2023-03-08 22:13:58

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

Re: xrandr: Gamma size is 0.

I uninstalled all of the drivers and rebooted, heres my system journal:

http://0x0.st/Hiqz.txt

Offline

#6 2023-03-08 22:24:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,113

Re: xrandr: Gamma size is 0.

The GPU isn't captured by radeon or amdgpu, can you

modprobe -v amdgpu

?
Since you're booting 6.1.11-arch1-1

pacman -Qs linux

Offline

#7 2023-03-08 22:56:39

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

Re: xrandr: Gamma size is 0.

$ modprobe -v amdgpu
insmod /lib/modules/6.1.11-arch1-1/kernel/drivers/gpu/drm/drm_buddy.ko.zst
insmod /lib/modules/6.1.11-arch1-1/kernel/drivers/gpu/drm/scheduler/gpu-sched.ko.zst
insmod /lib/modules/6.1.11-arch1-1/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.zst

Ran:

$ pacman -Qs linux
local/alsa-lib 1.2.8-1
    An alternative implementation of Linux sound support
local/alsa-utils 1.2.8-1
    Advanced Linux Sound Architecture - Utilities
local/arch-install-scripts 28-1
    Scripts to aid in installing Arch Linux
local/archlinux-keyring 20230130-1 (base-devel)
    Arch Linux PGP keyring
local/avahi 0.8+22+gfd482a7-3
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/base 3-1
    Minimal package set to define a basic Arch Linux installation
local/ddcutil 1.3.0-1
    Query and change Linux monitor settings using DDC/CI and USB.
local/devtools 20230105-1
    Tools for Arch Linux package maintainers
local/efibootmgr 18-1
    Linux user-space application to modify the EFI Boot Manager
local/filesystem 2023.01.31-1
    Base Arch Linux files
local/flatpak 1:1.15.2-1
    Linux application sandboxing and distribution framework (formerly xdg-app)
local/fuse3 3.13.0-1
    Interface for userspace programs to export a filesystem to the Linux kernel
local/i2c-tools 4.3-3
    Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors
local/iptables 1:1.8.9-1
    Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.3-1
    Linux Key Management Utilities
local/kmod 30-3
    Linux kernel module management tools and library
local/libcamera 0.0.4-1
    A complex camera support library for Linux, Android, and ChromeOS
local/libcap-ng 0.8.3-1
    A library for Linux that makes using posix capabilities easy
local/libiec61883 1.2.0-7
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libraw1394 2.1.2-3
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/liburing 2.3-1
    Linux-native io_uring I/O access library
local/libva 2.17.0-1
    Video Acceleration (VA) API for Linux
local/libxshmfence 1.3.2-1
    a library that exposes a event API on top of Linux futexes
local/linux 6.1.11.arch1-1
    The Linux kernel and modules
local/linux-api-headers 6.1.9-1
    Kernel headers sanitized for use in userspace
local/linux-firmware 20230117.7e4f0ed-1
    Firmware files for Linux
local/linux-firmware-whence 20230117.7e4f0ed-1
    Firmware files for Linux - contains the WHENCE license file which documents the vendor license details
local/pacman-mirrorlist 20221204-1
    Arch Linux mirror list for use by pacman
local/util-linux 2.38.1-1
    Miscellaneous system utilities for Linux
local/util-linux-libs 2.38.1-1
    util-linux runtime libraries
local/v4l-utils 1.22.1-1
    Userspace tools and conversion library for Video 4 Linux

Offline

#8 2023-03-09 07:19:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,113

Re: xrandr: Gamma size is 0.

The kernels align and amdgpu loads.

What's the output of "lspci -k | grep -A5 VGA" after loading the module?

Offline

#9 2023-03-09 12:20:22

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

Re: xrandr: Gamma size is 0.

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] (rev da)
        Subsystem: ASUSTeK Computer Inc. Device 1fe0
        Kernel modules: amdgpu
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15b3
        Subsystem: ASUSTeK Computer Inc. Device 1fe0
        Kernel driver in use: snd_hda_intel

Thats the output.

Would you happen to know what Xorg drivers I should be using?

My card is a APU [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] as per above;

Offline

#10 2023-03-09 13:10:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,113

Re: xrandr: Gamma size is 0.

You want the amdgpu module to be in use for the GPU - which it is not, despite being loaded (explicitly)
Is there a parallel windows installation?

Offline

#11 2023-03-09 14:27:06

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

Re: xrandr: Gamma size is 0.

No, this is a laptop with purely arch linux installed.

Although at one time it did have windows installed before I wiped it -- And the brightness was able to be changed.

Offline

#12 2023-03-09 15:33:45

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

Re: xrandr: Gamma size is 0.

I just read more of https://wiki.archlinux.org/title/AMDGPU

And tried to add the configuration file

/etc/X11/xorg.conf.d/20-amdgpu.conf
Section "Device"
        Identifier "AMD"
        Driver "amdgpu"
        Option "EnablePageFlip" "off"
        Option "TearFree" "false"
EndSection

When I try to specify amdgpu as the driver; now I'm getting a even more... strange error:

X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux detach 6.1.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 09 Feb 2023 20:06:08 +0000 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=84081068-42ea-4ad2-ae18-57e57d969208 rw quiet splash loglevel=3 quiet

Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar  9 10:27:46 2023
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) AMDGPU(0): [KMS] Kernel modesetting enabled.
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Offline

#13 2023-03-09 15:56:05

91aaebb1dd
Member
Registered: 2023-03-08
Posts: 8

Re: xrandr: Gamma size is 0.

I'm not sure how it's even finding my display, I have no /etc/X11/xorg.conf.d/xorg.conf file.

Xorg is fully functional and it can even render firefox, I have also tried

redshift

in controlling the brightness; but to no avail.
Also whenever I try to Add a custom configuration file for monitors, it always has the same "No screens found" much like the above.

My /dev/dri/card0 is nonexistent and /dev/drm/card0 is also not existent

Last edited by 91aaebb1dd (2023-03-09 16:04:22)

Offline

#14 2023-03-09 18:06:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,113

Re: xrandr: Gamma size is 0.

You can forget about everything wrt X11 until you get the amdgpu module to drive the GPU.
It's not a particularly new chip, so that should not be the problem.
Run a full system upgrade and also install the LTS kernel and see whether that allows to drive the GPU.

Xorg is fully functional and it can even render firefox

I guess w/ the fbdev or VESA driver, but neither will allow you to actually do sth. w/ the GPU.

Offline

Board footer

Powered by FluxBB