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

Can I help test it on my vega card? #1

Open
Adelaide-b opened this issue Oct 13, 2019 · 37 comments
Open

Can I help test it on my vega card? #1

Adelaide-b opened this issue Oct 13, 2019 · 37 comments

Comments

@Adelaide-b
Copy link

Hi, I would like to help with testing this on my ROG Strix Vega 56. How do I install it to see it to see if the card is supported?

@twifty
Copy link
Owner

twifty commented Oct 13, 2019

Thanks for the offer to test. Before we do anything, I need to know the product ID of the vega 64 card, please paste the output of:

lspci -vnn | grep VGA -A 12

I then need to add the ID to the source (I'll add a build parameter for this at a later date). In the meantime, please make sure you have installed make gcc git and linux-headers.

It would also help to know which kernel, distro and desktop environment you are using.

When I push an update, you should be able to download build and install. If you need help with the build process, just ask.

@Adelaide-b
Copy link
Author

Adelaide-b commented Oct 15, 2019

Here's my output of that command:

	Subsystem: ASUSTeK Computer Inc. Vega 10 XL/XT [Radeon RX Vega 56/64] [1043:0555]
	Flags: bus master, fast devsel, latency 0, IRQ 78
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at e000 [size=256]
	Memory at fca00000 (32-bit, non-prefetchable) [size=512K]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

1e:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 HDMI Audio [Radeon Vega 56/64] [1002:aaf8]

And I do have make, gcc and git installed. I can't find linux-headers, I do have linux-api-headers installed though.

@twifty
Copy link
Owner

twifty commented Oct 15, 2019

What is your linux version?

uname -r

@Adelaide-b
Copy link
Author

The output of that command is: 4.19.69-1-MANJARO

@twifty
Copy link
Owner

twifty commented Oct 15, 2019

The latest manjaro kernel is 4.19.72, your system is a little outdated. The manjaro repos don't contain the headers for older versions. If you want to build the sources you'll need to first update your system then install the headers

sudo pacman -Syuu
sudo pacman -S linux419-headers

Give me a few minutes, and I'll push an update with support for the vega card. Then I'll help you through the install.

@Adelaide-b
Copy link
Author

I am a bit scared to perform the update, because last time I tried it I couldn't boot. Luckily I had a backup so that I could restore my system to a working state. I hope it works this time.

@twifty
Copy link
Owner

twifty commented Oct 15, 2019

Trust me I know exactly how you feel. I always had update problems with Gnome, ended up switching to KDE.

To install this package, open a terminal (your home directory will be fine).

mkdir github
cd github
git clone https://github.com/twifty/lights.git
cd lights
make install

The above will create a directory in your home folder ~/github/lights/build/ containing two kernel modules. The modules will be temporarily installed. They will be removed when you reboot.
Please post the output of make install.

@Adelaide-b
Copy link
Author

Ok, so the updating took quite a while (I didn't reboot yet), but I ran all the commands and here is the output of make install:
mkdir -p build
make -C adapter all
make[1]: Entering directory '/home/prash/github/lights/adapter'
make -C /lib/modules/4.19.69-1-MANJARO/build M=/home/prash/github/lights/adapter modules EXTRA_CFLAGS="-g -DDEBUG"
make[2]: Entering directory '/usr/lib/modules/4.19.69-1-MANJARO/build'
make[2]: *** No rule to make target 'modules'. Stop.
make[2]: Leaving directory '/usr/lib/modules/4.19.69-1-MANJARO/build'
make[1]: *** [Makefile:13: all] Error 2
make[1]: Leaving directory '/home/prash/github/lights/adapter'
make: *** [Makefile:10: adapter] Error 2
I have no idea how to put the code in such a nice block like you did above...

@twifty
Copy link
Owner

twifty commented Oct 15, 2019

You need to reboot. The makefile looks at the version of the kernel you are running then tries to find the headers for that kernel. It failed because it cannot find the 4.19.69 headers.

To format your code use 3 backtick '`' characters before and after.

@Adelaide-b
Copy link
Author

Hmm ok. Sadly my PC doesn't boot into the login screen; I think I will make a post on the manjaro forums.

@twifty
Copy link
Owner

twifty commented Oct 15, 2019

OK. Let's fix that issue first. Make a new post on the forums, I'll follow over there.

@Adelaide-b
Copy link
Author

Here is the link to the thread: https://forum.manjaro.org/t/pc-wont-boot-after-updating/107438

@Adelaide-b
Copy link
Author

Trust me I know exactly how you feel. I always had update problems with Gnome, ended up switching to KDE.

To install this package, open a terminal (your home directory will be fine).

mkdir github
cd github
git clone https://github.com/twifty/lights.git
cd lights
make install

The above will create a directory in your home folder ~/github/lights/build/ containing two kernel modules. The modules will be temporarily installed. They will be removed when you reboot.
Please post the output of make install.

So I did this again and the output of make install is now the following:

[prash@Nuru lights]$ make install
for module in aura; do \
	sudo rmmod $module.ko || true; \
done
[sudo] password for prash: 
rmmod: ERROR: Module aura is not currently loaded
sudo rmmod build/lights.ko || true;
rmmod: ERROR: Module build/lights is not currently loaded
if [[ ! -d build ]]; \
	then make build; \
fi
make[1]: Entering directory '/home/prash/github/lights'
mkdir -p build
make -C adapter all
make[2]: Entering directory '/home/prash/github/lights/adapter'
make -C /lib/modules/5.4.0-1-MANJARO/build M=/home/prash/github/lights/adapter modules EXTRA_CFLAGS="-g -DDEBUG"
make[3]: Entering directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
make[3]: *** No rule to make target 'modules'.  Stop.
make[3]: Leaving directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
make[2]: *** [Makefile:13: all] Error 2
make[2]: Leaving directory '/home/prash/github/lights/adapter'
make[1]: *** [Makefile:10: adapter] Error 2
make[1]: Leaving directory '/home/prash/github/lights'
make: *** [Makefile:27: install] Error 2

@twifty
Copy link
Owner

twifty commented Oct 22, 2019

Did you install the linux headers for the 5.4 kernel?

sudo pacman -S linux54-headers

@Adelaide-b
Copy link
Author

So I just did that and now I get a different output for make install, which is like this:

[prash@Nuru lights]$ make install
for module in aura; do \
	sudo rmmod $module.ko || true; \
done
[sudo] password for prash: 
rmmod: ERROR: Module aura is not currently loaded
sudo rmmod build/lights.ko || true;
rmmod: ERROR: Module build/lights is not currently loaded
if [[ ! -d build ]]; \
	then make build; \
fi
make[1]: Entering directory '/home/prash/github/lights'
mkdir -p build
make -C adapter all
make[2]: Entering directory '/home/prash/github/lights/adapter'
make -C /lib/modules/5.4.0-1-MANJARO/build M=/home/prash/github/lights/adapter modules EXTRA_CFLAGS="-g -DDEBUG"
make[3]: Entering directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
  CC [M]  /home/prash/github/lights/adapter/lights-adapter.o
  LD [M]  /home/prash/github/lights/adapter/lights.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: module lights uses symbol module_layout from namespace /adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol cdev_del from namespace ights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol kmalloc_caches from namespace adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __kmalloc from namespace ghts/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol cdev_init from namespace ghts/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol _raw_spin_unlock from namespace apter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol strlen from namespace /lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __warn_printk from namespace /adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __dynamic_pr_debug from namespace ter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol device_destroy from namespace adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol mutex_unlock from namespace s/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol unregister_chrdev_region from namespace ghts-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __get_user_1 from namespace s/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol sprintf from namespace lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol strcmp from namespace /lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol _copy_to_user from namespace /adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol param_ops_charp from namespace dapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol device_register from namespace dapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol current_task from namespace s/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol printk from namespace /lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol strncpy from namespace lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol strncmp from namespace lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol mutex_lock from namespace hts/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol device_create from namespace /adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol find_first_zero_bit from namespace er/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol cdev_add from namespace ights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __x86_indirect_thunk_rdx from namespace ghts-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __stack_chk_fail from namespace apter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __x86_indirect_thunk_rax from namespace ghts-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __fentry__ from namespace hts/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol kmem_cache_alloc_trace from namespace lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol _raw_spin_lock from namespace adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol kfree from namespace b/lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol memcpy from namespace /lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol class_destroy from namespace /adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol device_unregister from namespace pter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol snprintf from namespace ights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol dev_set_name from namespace s/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol strim from namespace b/lights/adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __x86_indirect_thunk_rbp from namespace ghts-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol _copy_from_user from namespace dapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __class_create from namespace adapter/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol __check_object_size from namespace er/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
WARNING: module lights uses symbol alloc_chrdev_region from namespace er/lights-adapter.o: $(deps_/home/prash/github/lights/adapter/lights-adapter.o), but does not import it.
  CC [M]  /home/prash/github/lights/adapter/lights.mod.o
  LD [M]  /home/prash/github/lights/adapter/lights.ko
make[3]: Leaving directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
rm -rf *.o *~ core .depend .*.cmd *.mod.c .tmp_versions *.order
make[2]: Leaving directory '/home/prash/github/lights/adapter'
mv adapter/lights.ko build/lights.ko
make -C aura all
make[2]: Entering directory '/home/prash/github/lights/aura'
make -C /lib/modules/5.4.0-1-MANJARO/build M=/home/prash/github/lights/aura modules EXTRA_CFLAGS="-g -DDEBUG"
make[3]: Entering directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
  CC [M]  /home/prash/github/lights/aura/aura-module.o
  CC [M]  /home/prash/github/lights/aura/trait/aura-controller.o
  CC [M]  /home/prash/github/lights/aura/trait/async.o
  CC [M]  /home/prash/github/lights/aura/memory/aura-memory.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-smbus-piix4.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-smbus-nuvoton.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-motherboard.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-polaris.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-vega.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-navi.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu-reg.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu-i2c.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu.o
  CC [M]  /home/prash/github/lights/aura/header/usb-transfer.o
  CC [M]  /home/prash/github/lights/aura/header/usb-driver.o
  CC [M]  /home/prash/github/lights/aura/header/aura-header.o
/home/prash/github/lights/aura/header/aura-header.c:1074:16: warning: ‘aura_header_speed_update’ defined but not used [-Wunused-function]
 1074 | static error_t aura_header_speed_update (
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
/home/prash/github/lights/aura/header/aura-header.c:117:34: warning: ‘get_lights_mode’ defined but not used [-Wunused-function]
  117 | static const struct lights_mode *get_lights_mode (
      |                                  ^~~~~~~~~~~~~~~
  LD [M]  /home/prash/github/lights/aura/aura.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: module aura uses symbol module_layout from namespace /aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __request_region from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol kmalloc_caches from namespace aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __kmalloc from namespace ghts/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol msleep from namespace /lights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _raw_spin_unlock from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_smbus_read_byte_data from namespace r/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol autoremove_wake_function from namespace r/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_smbus_write_word_data from namespace /aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol pci_match_id from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_smbus_write_byte_data from namespace /aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol acpi_check_region from namespace a/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_transfer from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_kill_urb from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_deregister_dev from namespace /header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __dynamic_pr_debug from namespace /header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_for_each_dev from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __const_udelay from namespace aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol mutex_unlock from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __preempt_count from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol ex_handler_refcount from namespace header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol pv_ops from namespace /lights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_add_adapter from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __init_waitqueue_head from namespace ader/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_smbus_read_word_data from namespace r/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol param_ops_charp from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol misc_register from namespace /aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _dev_warn from namespace ghts/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol ioport_resource from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol param_ops_short from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _raw_spin_unlock_irqrestore from namespace ura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol current_task from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_deregister from namespace aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol mutex_lock_interruptible from namespace r/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol lights_read_mode from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __mutex_init from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol printk from namespace /lights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_register_dev from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _raw_spin_unlock_irq from namespace eader/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol lights_read_speed from namespace a/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol mutex_lock from namespace hts/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol destroy_workqueue from namespace a/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol lights_device_register from namespace der/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol lights_get_state from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _dev_err from namespace ights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol lights_read_color from namespace a/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol init_wait_entry from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol find_first_zero_bit from namespace header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_adapter_type from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol print_hex_dump from namespace aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_del_adapter from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _dev_info from namespace ghts/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_submit_urb from namespace aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_smbus_write_block_data from namespace aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol i2c_smbus_read_block_data from namespace /aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol ioremap_nocache from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usleep_range from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __stack_chk_fail from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol schedule from namespace ights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol schedule_timeout from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol kmalloc_order_trace from namespace header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _raw_spin_lock_irq from namespace /header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __x86_indirect_thunk_rax from namespace r/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_find_common_endpoints from namespace /aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __fentry__ from namespace hts/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __release_region from namespace ra/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol kmem_cache_alloc_trace from namespace der/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _raw_spin_lock from namespace aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __dynamic_dev_dbg from namespace a/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol _raw_spin_lock_irqsave from namespace der/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __wake_up from namespace ghts/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol prepare_to_wait_event from namespace ader/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol kfree from namespace b/lights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol prepare_to_wait from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol param_array_ops from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol iounmap from namespace lights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol lights_create_file from namespace /header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_register_driver from namespace header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol pci_get_device from namespace aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol finish_wait from namespace ts/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol queue_work_on from namespace /aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol snprintf from namespace ights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol lights_device_unregister from namespace r/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_free_urb from namespace s/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol alloc_workqueue from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol misc_deregister from namespace ura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol __udelay from namespace ights/aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
WARNING: module aura uses symbol usb_alloc_urb from namespace /aura/header/aura-header.o: $(deps_/home/prash/github/lights/aura/header/aura-header.o), but does not import it.
  CC [M]  /home/prash/github/lights/aura/aura.mod.o
  LD [M]  /home/prash/github/lights/aura/aura.ko
make[3]: Leaving directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
rm -rf *.o *~ core .depend .*.cmd *.mod.c .tmp_versions
make[2]: Leaving directory '/home/prash/github/lights/aura'
mv aura/aura.ko build/aura.ko
make[1]: Leaving directory '/home/prash/github/lights'
sudo insmod build/lights.ko;
for module in aura; do \
	sudo insmod build/$module.ko; \
done

I hope it is useful..

@twifty
Copy link
Owner

twifty commented Oct 23, 2019

Hmm, I have never seen those warnings before. A quick google search tells me that the format of Module.symvers has changed. This was introduced with kernel 5.4.

I don't know yet if this is something I can fix within my code or if its a problem within make itself.

Give me some time to look into it. I'll post an update as soon as I find anything.

@twifty
Copy link
Owner

twifty commented Oct 23, 2019

There are some serious problems with the 5.4.rc2 kernel at the moment. Everything I've read online tells me the warnings are false positives, but I don't think they are accounting for out of tree sources. Everything I've tried results in insmod returning an "invalid module format" error.

For 5.4 builds, we'll need to wait for at least rc3 to be released.

@Prash-bit If you still have your 4.19 headers installed, I've configured the makefile to accept a kernel version. It should work, since it was originally built on the 4.19 kernel.

sudo pacman -S linux419-headers
cd ~/github/lights
make clean
git pull         # this will download new version without downloading everything
make install KERNEL=4.19

@twifty
Copy link
Owner

twifty commented Oct 23, 2019

Just tested on the 5.4.rc4 kernel, which is available in Manjaro's testing branch, and can confirm everything works as expected. However, I don't recommend using the testing branch. Either compile against the 4.19 headers, or wait for a kernel update in the stable branch.

@Adelaide-b
Copy link
Author

So it seems an update has rolled out, I have been a bit careful and decided to wait for a couple of days to make sure they worked out all the issues. Than I ran the commands cd github/lights and make install, here is the output:

[prash@Nuru github]$ cd lights
[prash@Nuru lights]$ make install
for module in aura; do \
	sudo rmmod $module.ko || true; \
done
[sudo] password for prash: 
rmmod: ERROR: Module aura is not currently loaded
sudo rmmod build/lights.ko || true;
rmmod: ERROR: Module lights is not currently loaded
if [[ ! -d build ]]; \
	then make build; \
fi
sudo insmod build/lights.ko;
insmod: ERROR: could not insert module build/lights.ko: Invalid parameters
make: *** [Makefile:28: install] Error 1```

@Adelaide-b
Copy link
Author

There are some serious problems with the 5.4.rc2 kernel at the moment. Everything I've read online tells me the warnings are false positives, but I don't think they are accounting for out of tree sources. Everything I've tried results in insmod returning an "invalid module format" error.

For 5.4 builds, we'll need to wait for at least rc3 to be released.

@Prash-bit If you still have your 4.19 headers installed, I've configured the makefile to accept a kernel version. It should work, since it was originally built on the 4.19 kernel.

sudo pacman -S linux419-headers
cd ~/github/lights
make clean
git pull         # this will download new version without downloading everything
make install KERNEL=4.19

I also tried this, and here is the output:

for module in aura; do \
	sudo rmmod $module.ko || true; \
done
rmmod: ERROR: Module aura is not currently loaded
sudo rmmod build/lights.ko || true;
rmmod: ERROR: Module build/lights is not currently loaded
if [[ ! -d build ]]; \
	then make build; \
fi
make[1]: Entering directory '/home/prash/github/lights'
mkdir -p build
make -C adapter all
make[2]: Entering directory '/home/prash/github/lights/adapter'
make -C /lib/modules/4.19.80-1-MANJARO/build M=/home/prash/github/lights/adapter modules EXTRA_CFLAGS="-g -DDEBUG"
make[3]: Entering directory '/usr/lib/modules/4.19.80-1-MANJARO/build'
  CC [M]  /home/prash/github/lights/adapter/lights-adapter.o
  LD [M]  /home/prash/github/lights/adapter/lights.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/prash/github/lights/adapter/lights.mod.o
  LD [M]  /home/prash/github/lights/adapter/lights.ko
make[3]: Leaving directory '/usr/lib/modules/4.19.80-1-MANJARO/build'
# rm -rf *.o .*.o.d *~ core .depend .*.cmd *.mod *.mod.c .tmp_versions *.order
make[2]: Leaving directory '/home/prash/github/lights/adapter'
mv adapter/lights.ko build/lights.ko
make -C aura all
make[2]: Entering directory '/home/prash/github/lights/aura'
make -C /lib/modules/4.19.80-1-MANJARO/build M=/home/prash/github/lights/aura modules EXTRA_CFLAGS="-g -DDEBUG"
make[3]: Entering directory '/usr/lib/modules/4.19.80-1-MANJARO/build'
  CC [M]  /home/prash/github/lights/aura/aura-module.o
  CC [M]  /home/prash/github/lights/aura/trait/aura-controller.o
  CC [M]  /home/prash/github/lights/aura/trait/async.o
  CC [M]  /home/prash/github/lights/aura/memory/aura-memory.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-smbus-piix4.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-smbus-nuvoton.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-motherboard.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-polaris.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-vega.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-navi.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu-reg.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu-i2c.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu.o
  CC [M]  /home/prash/github/lights/aura/header/usb-transfer.o
  CC [M]  /home/prash/github/lights/aura/header/usb-driver.o
  CC [M]  /home/prash/github/lights/aura/header/aura-header.o
/home/prash/github/lights/aura/header/aura-header.c:1074:16: warning: ‘aura_header_speed_update’ defined but not used [-Wunused-function]
 1074 | static error_t aura_header_speed_update (
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
/home/prash/github/lights/aura/header/aura-header.c:117:34: warning: ‘get_lights_mode’ defined but not used [-Wunused-function]
  117 | static const struct lights_mode *get_lights_mode (
      |                                  ^~~~~~~~~~~~~~~
  LD [M]  /home/prash/github/lights/aura/aura.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/prash/github/lights/aura/aura.mod.o
  LD [M]  /home/prash/github/lights/aura/aura.ko
make[3]: Leaving directory '/usr/lib/modules/4.19.80-1-MANJARO/build'
# rm -rf *.o *~ core .depend .*.cmd *.mod *.mod.c .tmp_versions
make[2]: Leaving directory '/home/prash/github/lights/aura'
mv aura/aura.ko build/aura.ko
make[1]: Leaving directory '/home/prash/github/lights'
sudo insmod build/lights.ko;
insmod: ERROR: could not insert module build/lights.ko: Invalid module format
make: *** [Makefile:34: install] Error 1```

@twifty
Copy link
Owner

twifty commented Nov 5, 2019

I'm a bit tied up with work at the moment.

Your first attempt (with your 5.4 kernel) failed to build anything. It's possible you have a dirty directory (files left over from the previous attempt). Run make clean then make install. If that fails (If "error" is on the last output line, don't worry about rmmod errors) then try deleting the lights directory and cloning it again.

The second attempt (with the 4.19 kernel) built successfully, but failed when trying to add the module to the kernel. You need to force load it, but I advise not to unless you really know what you are doing. (For others reading this thread, the source contains macros for different kernel versions tested with 4.19 and later). For now, don't bother with the 4.19 kernel headers.

BTW, I do appreciate you taking the time, and jumping these hurdles, to help test.

@Adelaide-b
Copy link
Author

Adelaide-b commented Nov 6, 2019

I can understand, I am also quite busy.
I ran make clean and then make install, here is the output, looks like it worked:

[prash@Nuru lights]$ make clean
make -C adapter clean;
make[1]: Entering directory '/home/prash/github/lights/adapter'
make -C /lib/modules/5.4.0-1-MANJARO/build M=/home/prash/github/lights/adapter clean
make[2]: Entering directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
  CLEAN   /home/prash/github/lights/adapter/Module.symvers
make[2]: Leaving directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
make[1]: Leaving directory '/home/prash/github/lights/adapter'
for dir in aura; do \
	make -C $dir clean; \
done
make[1]: Entering directory '/home/prash/github/lights/aura'
make -C /lib/modules/5.4.0-1-MANJARO/build M=/home/prash/github/lights/aura clean
make[2]: Entering directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
  CLEAN   /home/prash/github/lights/aura/Module.symvers
make[2]: Leaving directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
make[1]: Leaving directory '/home/prash/github/lights/aura'
rm -rf build


[prash@Nuru lights]$ make install
for module in aura; do \
	sudo rmmod $module.ko || true; \
done
[sudo] password for prash: 
rmmod: ERROR: Module aura is not currently loaded
sudo rmmod build/lights.ko || true;
rmmod: ERROR: Module build/lights is not currently loaded
if [[ ! -d build ]]; \
	then make build; \
fi
make[1]: Entering directory '/home/prash/github/lights'
mkdir -p build
make -C adapter all
make[2]: Entering directory '/home/prash/github/lights/adapter'
make -C /lib/modules/5.4.0-1-MANJARO/build M=/home/prash/github/lights/adapter modules EXTRA_CFLAGS="-g -DDEBUG"
make[3]: Entering directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
  CC [M]  /home/prash/github/lights/adapter/lights-adapter.o
  LD [M]  /home/prash/github/lights/adapter/lights.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC [M]  /home/prash/github/lights/adapter/lights.mod.o
  LD [M]  /home/prash/github/lights/adapter/lights.ko
make[3]: Leaving directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
# rm -rf *.o .*.o.d *~ core .depend .*.cmd *.mod *.mod.c .tmp_versions *.order
make[2]: Leaving directory '/home/prash/github/lights/adapter'
mv adapter/lights.ko build/lights.ko
make -C aura all
make[2]: Entering directory '/home/prash/github/lights/aura'
make -C /lib/modules/5.4.0-1-MANJARO/build M=/home/prash/github/lights/aura modules EXTRA_CFLAGS="-g -DDEBUG"
make[3]: Entering directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
  CC [M]  /home/prash/github/lights/aura/aura-module.o
  CC [M]  /home/prash/github/lights/aura/trait/aura-controller.o
  CC [M]  /home/prash/github/lights/aura/trait/async.o
  CC [M]  /home/prash/github/lights/aura/memory/aura-memory.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-smbus-piix4.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-smbus-nuvoton.o
  CC [M]  /home/prash/github/lights/aura/motherboard/aura-motherboard.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-polaris.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-vega.o
  CC [M]  /home/prash/github/lights/aura/gpu/asic/asic-navi.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu-reg.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu-i2c.o
  CC [M]  /home/prash/github/lights/aura/gpu/aura-gpu.o
  CC [M]  /home/prash/github/lights/aura/header/usb-transfer.o
  CC [M]  /home/prash/github/lights/aura/header/usb-driver.o
  CC [M]  /home/prash/github/lights/aura/header/aura-header.o
/home/prash/github/lights/aura/header/aura-header.c:1074:16: warning: ‘aura_header_speed_update’ defined but not used [-Wunused-function]
 1074 | static error_t aura_header_speed_update (
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
/home/prash/github/lights/aura/header/aura-header.c:117:34: warning: ‘get_lights_mode’ defined but not used [-Wunused-function]
  117 | static const struct lights_mode *get_lights_mode (
      |                                  ^~~~~~~~~~~~~~~
  LD [M]  /home/prash/github/lights/aura/aura.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC [M]  /home/prash/github/lights/aura/aura.mod.o
  LD [M]  /home/prash/github/lights/aura/aura.ko
make[3]: Leaving directory '/usr/lib/modules/5.4.0-1-MANJARO/build'
# rm -rf *.o *~ core .depend .*.cmd *.mod *.mod.c .tmp_versions
make[2]: Leaving directory '/home/prash/github/lights/aura'
mv aura/aura.ko build/aura.ko
make[1]: Leaving directory '/home/prash/github/lights'
sudo insmod build/lights.ko;
for module in aura; do \
	sudo insmod build/$module.ko; \
done

@twifty
Copy link
Owner

twifty commented Nov 7, 2019

Congratulations. Now you can start on the fun part.

The modules, will be removed each time you restart your system, so you'll need to run make install each time (but it'll be faster now that they're built).

If you look inside your /dev/lights directory you should see a folder called 'gpu'. The two main files you want are 'mode' and 'color'.

To make changes, you need to be root.

sudo su

The aura gpu has 5 effects:

off
static
breathing
flashing
cycle

To change between them:

echo "cycle" > /dev/lights/gpu/mode

To change colors, you need to use an RGB hex code:

echo 0x00FF00 > /dev/lights/gpu/color

@Adelaide-b
Copy link
Author

[prash@Nuru ~]$ cd ~/github/lights
[prash@Nuru lights]$ make install
for module in aura; do \
	sudo rmmod $module.ko || true; \
done
[sudo] password for prash: 
rmmod: ERROR: Module aura is not currently loaded
sudo rmmod build/lights.ko || true;
rmmod: ERROR: Module lights is not currently loaded
if [[ ! -d build ]]; \
	then make build; \
fi
sudo insmod build/lights.ko;
for module in aura; do \
	sudo insmod build/$module.ko; \
done
[prash@Nuru lights]$ sudo su
[Nuru lights]# off
bash: off: command not found
[Nuru lights]# echo "cycle" > /dev/lights/gpu/mode
bash: /dev/lights/gpu/mode: No such file or directory
[Nuru lights]# echo 0x00FF00 > /dev/lights/gpu/color
bash: /dev/lights/gpu/color: No such file or directory
[Nuru lights]# echo "cycle" > /dev/lights/all/mode
bash: echo: write error: No such file or directory
[Nuru lights]# echo 0x00FF00 > /dev/lights/all/color

As you can see in the screenshot below I couldn't find a folder named gpu in /dev/lights, the three files in /dev/lights/all are empty (color mode and speed):
Screenshot from 2019-11-07 18-06-36
Screenshot from 2019-11-07 18-09-23

@twifty
Copy link
Owner

twifty commented Nov 7, 2019

Hmm, Your card hasn't been detected. Is there anything in your logs?

sudo dmesg | tail -n 200

@Adelaide-b
Copy link
Author

Here's what is outputted:

[prash@Nuru ~]$ sudo dmesg | tail -n 200
[sudo] password for prash: 
[  133.260434] audit: type=1006 audit(1573127636.686:45): pid=1216 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=2 res=1
[  133.271963] audit: type=1130 audit(1573127636.699:46): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  133.275349] audit: type=1006 audit(1573127636.702:47): pid=1224 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=3 res=1
[  133.308706] audit: type=1130 audit(1573127636.736:48): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  133.320271] audit: type=1112 audit(1573127636.746:49): pid=1216 uid=0 auid=1000 ses=2 msg='uid=1000 exe="/usr/lib/gdm-session-worker" hostname=? addr=? terminal=? res=success'
[  134.913525] audit: type=1130 audit(1573127638.339:50): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=geoclue comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  135.001698] audit: type=1130 audit(1573127638.429:51): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=udisks2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  135.807860] audit: type=1130 audit(1573127639.236:52): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-localed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  135.815941] audit: type=1130 audit(1573127639.242:53): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  158.065115] audit: type=1131 audit(1573127661.496:54): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  165.862401] audit: type=1131 audit(1573127669.292:55): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-localed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  165.865235] audit: type=1131 audit(1573127669.292:56): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  195.068065] audit: type=1131 audit(1573127698.496:57): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=geoclue comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  610.478174] audit: type=1130 audit(1573128113.906:58): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  640.505133] audit: type=1131 audit(1573128143.932:59): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  902.218118] audit: type=1130 audit(1573128405.646:60): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  902.218122] audit: type=1131 audit(1573128405.646:61): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 4908.914797] audit: type=1130 audit(1573132412.343:62): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 4941.100974] audit: type=1131 audit(1573132444.529:63): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7823.884832] audit: type=1130 audit(1573135327.313:64): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 7854.064677] audit: type=1131 audit(1573135357.493:65): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 9320.090815] audit: type=1130 audit(1573136823.519:66): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 9350.082884] audit: type=1131 audit(1573136853.513:67): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[11317.150966] audit: type=1130 audit(1573138820.579:68): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[11351.745874] audit: type=1131 audit(1573138855.176:69): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[12281.368758] audit: type=1130 audit(1573139784.800:70): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[12299.980501] audit: type=1130 audit(1573139803.410:71): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=pamac-mirrorlist comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[12299.980504] audit: type=1131 audit(1573139803.410:72): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=pamac-mirrorlist comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[15458.838516] audit: type=1130 audit(1573142962.270:73): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[15532.856875] audit: type=1131 audit(1573143036.286:74): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18207.430409] audit: type=1130 audit(1573145710.860:75): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18238.079847] audit: type=1131 audit(1573145741.510:76): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18429.555434] audit: type=1130 audit(1573145932.986:77): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18459.602185] audit: type=1131 audit(1573145963.033:78): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18564.640474] audit: type=1130 audit(1573146068.070:79): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18595.089026] audit: type=1131 audit(1573146098.520:80): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18664.033719] audit: type=1130 audit(1573146167.463:81): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18669.483734] lights: loading out-of-tree module taints kernel.
[18669.483765] lights: module verification failed: signature and/or required key missing - tainting kernel
[18669.484163] lights: created interface 'all'
[18669.484200] lights: created device '/dev/lights/all/color'
[18669.484222] lights: created device '/dev/lights/all/mode'
[18669.484243] lights: created device '/dev/lights/all/speed'
[18669.617216] misc aura: Auxiliary SMBus Host Controller at 0xb20
[18669.617584] i2c i2c-9: Error: no response!
[18669.617918] i2c i2c-9: Error: no response!
[18669.618000] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x50
[18669.619177] misc aura: Failed to read SPD type
[18669.619178] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x51
[18669.620355] misc aura: Failed to read SPD type
[18669.620355] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x52
[18669.622129] misc aura: Calculating size from type=0x0c size=0x23
[18669.622130] misc aura: Detected DIMM slot=2 addr=0x52 type=0x0c size=0x0200
[18669.622131] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x53
[18669.623903] misc aura: Calculating size from type=0x0c size=0x23
[18669.623904] misc aura: Detected DIMM slot=3 addr=0x53 type=0x0c size=0x0200
[18669.623905] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x54
[18669.625084] misc aura: Failed to read SPD type
[18669.625085] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x55
[18669.626261] misc aura: Failed to read SPD type
[18669.626262] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x56
[18669.627826] misc aura: Failed to read SPD type
[18669.627827] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x57
[18669.629003] misc aura: Failed to read SPD type
[18669.629004] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x58
[18669.630180] misc aura: Failed to read SPD type
[18669.630181] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x59
[18669.631238] misc aura: Failed to read SPD type
[18669.631239] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x5a
[18669.632415] misc aura: Failed to read SPD type
[18669.632416] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x5b
[18669.633592] misc aura: Failed to read SPD type
[18669.633592] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x5c
[18669.635078] misc aura: Failed to read SPD type
[18669.635079] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x5d
[18669.636256] misc aura: Failed to read SPD type
[18669.636257] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x5e
[18669.637825] misc aura: Failed to read SPD type
[18669.637826] misc aura: Pinging SMBus PIIX4 adapter port 0 at 0b00 address 0x5f
[18669.639002] misc aura: Failed to read SPD type
[18669.639003] misc aura: Selecting page 1 for all DIMMs
[18669.641754] misc aura: Found RGB triplet: 0x00 0x00 0x00
[18669.641755] misc aura: Selecting page 0 for all DIMMs
[18669.642346] misc aura: Selecting page 1 for all DIMMs
[18669.645088] misc aura: Found RGB triplet: 0x00 0x00 0x00
[18669.645089] misc aura: Selecting page 0 for all DIMMs
[18669.645680] misc aura: Pinging SMBus PIIX4 adapter port 2 at 0b00 address 0x50
[18669.646276] misc aura: Pinging AMDGPU DM i2c hw bus 0 address 0x50
[18669.667255] misc aura: Pinging dmdc address 0x50
[18669.667618] misc aura: Failed to read SPD type
[18669.667618] misc aura: Pinging dmdc address 0x51
[18669.667987] misc aura: Failed to read SPD type
[18669.667988] misc aura: Pinging dmdc address 0x52
[18669.668357] misc aura: Failed to read SPD type
[18669.668358] misc aura: Pinging dmdc address 0x53
[18669.668726] misc aura: Failed to read SPD type
[18669.668727] misc aura: Pinging dmdc address 0x54
[18669.669096] misc aura: Failed to read SPD type
[18669.669097] misc aura: Pinging dmdc address 0x55
[18669.669466] misc aura: Failed to read SPD type
[18669.669466] misc aura: Pinging dmdc address 0x56
[18669.669835] misc aura: Failed to read SPD type
[18669.669836] misc aura: Pinging dmdc address 0x57
[18669.670205] misc aura: Failed to read SPD type
[18669.670205] misc aura: Pinging dmdc address 0x58
[18669.670574] misc aura: Failed to read SPD type
[18669.670575] misc aura: Pinging dmdc address 0x59
[18669.670947] misc aura: Failed to read SPD type
[18669.670948] misc aura: Pinging dmdc address 0x5a
[18669.671318] misc aura: Failed to read SPD type
[18669.671319] misc aura: Pinging dmdc address 0x5b
[18669.671688] misc aura: Failed to read SPD type
[18669.671689] misc aura: Pinging dmdc address 0x5c
[18669.672059] misc aura: Failed to read SPD type
[18669.672060] misc aura: Pinging dmdc address 0x5d
[18669.672430] misc aura: Failed to read SPD type
[18669.672431] misc aura: Pinging dmdc address 0x5e
[18669.672801] misc aura: Failed to read SPD type
[18669.672801] misc aura: Pinging dmdc address 0x5f
[18669.673170] misc aura: Failed to read SPD type
[18669.673171] misc aura: Pinging AMDGPU DM i2c hw bus 1 address 0x50
[18669.693581] misc aura: Pinging dmdc address 0x50
[18669.693954] misc aura: Failed to read SPD type
[18669.693954] misc aura: Pinging dmdc address 0x51
[18669.694325] misc aura: Failed to read SPD type
[18669.694325] misc aura: Pinging dmdc address 0x52
[18669.694695] misc aura: Failed to read SPD type
[18669.694695] misc aura: Pinging dmdc address 0x53
[18669.695065] misc aura: Failed to read SPD type
[18669.695065] misc aura: Pinging dmdc address 0x54
[18669.695434] misc aura: Failed to read SPD type
[18669.695435] misc aura: Pinging dmdc address 0x55
[18669.695804] misc aura: Failed to read SPD type
[18669.695805] misc aura: Pinging dmdc address 0x56
[18669.696173] misc aura: Failed to read SPD type
[18669.696174] misc aura: Pinging dmdc address 0x57
[18669.696531] misc aura: Failed to read SPD type
[18669.696532] misc aura: Pinging dmdc address 0x58
[18669.696901] misc aura: Failed to read SPD type
[18669.696901] misc aura: Pinging dmdc address 0x59
[18669.697271] misc aura: Failed to read SPD type
[18669.697271] misc aura: Pinging dmdc address 0x5a
[18669.697646] misc aura: Failed to read SPD type
[18669.697646] misc aura: Pinging dmdc address 0x5b
[18669.698017] misc aura: Failed to read SPD type
[18669.698017] misc aura: Pinging dmdc address 0x5c
[18669.698388] misc aura: Failed to read SPD type
[18669.698388] misc aura: Pinging dmdc address 0x5d
[18669.698759] misc aura: Failed to read SPD type
[18669.698760] misc aura: Pinging dmdc address 0x5e
[18669.699130] misc aura: Failed to read SPD type
[18669.699130] misc aura: Pinging dmdc address 0x5f
[18669.699499] misc aura: Failed to read SPD type
[18669.699500] misc aura: Pinging AMDGPU DM i2c hw bus 2 address 0x50
[18669.699675] misc aura: Pinging AMDGPU DM i2c hw bus 3 address 0x50
[18669.699850] misc aura: Pinging AMDGPU DM i2c hw bus 4 address 0x50
[18669.700023] misc aura: Failed to read offset 0x20 on address 0x29: -95
[18669.700024] misc aura: Failed to read offset 0x20 on address 0x2a: -95
[18669.700025] misc aura: Failed to read offset 0x20 on address 0x60: -95
[18669.700026] misc aura: Failed to read offset 0x20 on address 0x29: -95
[18669.700026] misc aura: Failed to read offset 0x20 on address 0x2a: -95
[18669.700027] misc aura: Failed to read offset 0x20 on address 0x60: -95
[18669.722626] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.745222] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.767257] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.767447] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.767658] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.767858] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.790456] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.813049] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.835642] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.835854] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.836065] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.836276] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.836455] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.836634] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.836813] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.836992] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.837170] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.837349] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.837528] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.837704] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.837883] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.837891] misc aura: Creating adapter for GPU 1043:555
[18669.837909] misc aura: Mapped ports at base=0x        fca00000, size=0x           80000 to 000000002ed0726a
[18669.848975] misc aura: Failed to read offset 0x20 on address 0x29: -5
[18669.860001] misc aura: Failed to read offset 0x20 on address 0x2a: -5
[18669.871027] misc aura: Failed to read offset 0x20 on address 0x60: -5
[18669.871042] misc aura: Unmapping mm data
[18669.871062] usbcore: registered new interface driver aura-mb-headers
[18669.871064] misc aura: Expected exactly 1 USB controller, got: 0
[18669.871064] usbcore: deregistering interface driver aura-mb-headers
[18694.064364] audit: type=1131 audit(1573146197.496:82): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18893.825789] audit: type=1130 audit(1573146397.256:83): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18923.872109] audit: type=1131 audit(1573146427.303:84): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18925.120739] audit: type=1130 audit(1573146428.553:85): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[18955.168697] audit: type=1131 audit(1573146458.600:86): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[19060.274806] audit: type=1130 audit(1573146563.706:87): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[19090.322119] audit: type=1131 audit(1573146593.753:88): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[20092.332803] audit: type=1130 audit(1573147595.763:89): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

@twifty
Copy link
Owner

twifty commented Nov 7, 2019

OK. The driver was created and loaded for the GPU, but it failed to read the I2C bus.

This isn't something I can fix without the card. Everything is undocumented. I managed to get it working on the RX580 after months of trial and error.

Do you dual boot with Windows?

@Adelaide-b
Copy link
Author

Hmm I see. I don't dual boot with windows, but I can try if you want, I have an m.2 from my school laptop that has windows 10 installed on it, that I can try with my PC.

@twifty
Copy link
Owner

twifty commented Nov 7, 2019

Before you go installing Windows, I'll ask on the Manjaro forums if anybody has this card with a windows install. It won't give a quick solution, but it may help me find an answer. I need to know which channel the control is on. A tool called AIDA64 can print this.

https://www.youtube.com/watch?v=lVlV0u2QpNI

@Adelaide-b
Copy link
Author

It seems like no one reacted yet, should I try putting the m.2 from my school laptop in my pc? I don't know if you can shift windows 10 ssd's from one set of hardware to another... Worth a try?

@twifty
Copy link
Owner

twifty commented Nov 11, 2019

I don't know too much about windows, but I think you can move a windows installation from system to another. However, you don't really need to do that.

Before I do anything I need to fully test and integrate the changes I've made in my staging branch.

Then, when I get the time, I'll create a standalone kernel module for probing these GPU's. I'm still having problems with my own Navi card. Ideally, I need to sit down and reverse engineer the windows Radeon driver, or at least find a way of hooking its memory read/writes.

As a last resort, and only when I have a partially working product, I'll try contacting the amdgpu developers (they have the unpublished chipset documentation) for a little help.

@twifty
Copy link
Owner

twifty commented Nov 18, 2019

Hi @Prash-bit

I've created a new repo https://github.com/twifty/aura-gpu as a standalone module for your Vega card. When you get the time would you install and test. Please open a new issue over there so that we can continue testing.

@Adelaide-b
Copy link
Author

Ok, I will try it when I have time.

@PrashBricks
Copy link

Ok, so I finally got around to getting the i2c-dump from my card. I am really sorry that it took this long (more than a month even), but I finally got around to doing it. Here is what I got:

------[ Versions ]------

Program Version : AIDA64 Extreme v6.20.5300
BenchDLL Version: 4.5.816.8-x64
Windows Version : Microsoft Windows 10 Education 10.0.18363.535 (64-bit)

------[ Motherboard Info ]------

Motherboard ID      : 63-0100-000001-00101111-022718-Chipset$0AAAA000_BIOS DATE: 03/06/19 14:29:51 VER: V1.70
Motherboard Model   : MSI B450 Tomahawk (MS-7C02)
Motherboard Chipset : AMD B450, AMD Taishan, AMD K17 IMC

DMI MB Manufacturer : Micro-Star International Co., Ltd
DMI MB Product      : B450 TOMAHAWK (MS-7C02)
DMI MB Version      : 1.0
DMI MB Serial       : IC16373710
DMI SYS Manufacturer: Micro-Star International Co., Ltd
DMI SYS Product     : MS-7C02
DMI SYS Version     : 1.0
DMI SYS Serial      : To be filled by O.E.M.
DMI BIOS Version    : 1.70

------[ 1 SMBus detected ]------

------[ SMBus #0 ]------

SMBus Type  : Intel / VIA / ServerWorks / SMSC / ATI
SMBus Port  : 0B00
Can Have SPD: Yes
Scan Type   : Full

------[ SMBus Device B00-D1C ]------

  0000  3F 00 00 FF 00 00 00 24 00 3B FF FF FF FF FF FF  ?......$.;......
  0010  03 02 00 01 00 3F 00 3F FF FF FF FF FF FF FF FF  .....?.?........
  0020  95 92 00 FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  0030  FF FF 00 FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  0040  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  0050  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  0060  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  0070  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  0080  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  0090  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00A0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00B0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00C0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00D0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00E0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00F0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................

------[ SMBus Device B00-D1C ]------

  0000  FF3F FF00 FF00 FFFF FF00 FF00 FF00 FF00 FF00 FF3B FFFF FFFF FFFF FFFF FFFF FFFF 
  0010  FF03 FF02 FF00 FF01 FF00 FF3F FF00 FF00 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0020  FF95 FF92 FF00 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0030  FFFF FFFF FF00 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0040  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0050  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0060  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0070  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0080  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0090  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00A0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00B0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00C0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00D0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00E0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00F0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 

------[ SMBus Device B00-D20 ]------

  0000  32 01 00 00 24 00 2A 00 2A 3C 00 18 03 23 00 44  2...$.*.*<...#.D
  0010  44 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00  D..$............
  0020  31 01 00 00 29 00 2A 00 2A 10 00 18 03 23 00 44  1...).*.*....#.D
  0030  00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00  ..@.............
  0040  0A 25 92 A1 00 05 01 03 05 00 00 00 00 00 00 00  .%..............
  0050  0F 07 55 FF 00 00 00 00 00 00 00 00 00 00 00 00  ..U.............
  0060  36 24 1B 00 00 00 00 00 00 00 00 00 00 00 00 00  6$..............
  0070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

------[ SMBus Device B00-D20 ]------

  0000  0232 0001 0000 4800 0024 5400 002A 5400 782A 003C 3000 0618 4603 0023 8800 8844 
  0010  0044 0000 4800 0024 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 6200 
  0020  0231 0001 0000 5200 0029 5400 002A 5400 202A 0010 3000 0618 4603 0023 8800 0044 
  0030  0000 8000 0040 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1600 
  0040  480A 2424 4492 00A1 0A00 0205 0601 0A03 0005 0000 0000 0000 0000 0000 0000 1E00 
  0050  0E0F AA07 FE55 00FF 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 6C00 
  0060  4836 3624 001B 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0070  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0080  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0090  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  00A0  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  00B0  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  00C0  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  00D0  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  00E0  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  00F0  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 6400 

------[ SMBus Device B00-D4A ]------

  0000  EA B7 A7 6B 00 00 00 00 00 00 00 00 00 00 00 00  ...k............
  0010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0020  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0040  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0080  00 00 FF 00 00 2F 05 12 08 FF FF FF FF FF FF FF  ...../..........
  0090  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00A0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00B0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00C0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00D0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00E0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
  00F0  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................

------[ SMBus Device B00-D4A ]------

  0000  B7EA A7B7 6BA7 006B 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0010  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0020  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0030  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0040  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0050  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0060  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0070  0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
  0080  0000 0000 FFFF 0000 0000 2F2F 0505 1212 0808 FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  0090  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00A0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00B0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00C0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00D0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00E0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 
  00F0  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 

------[ SMBus Device B00-D52 ]------

  0000  23 10 0C 02 85 21 00 08 00 00 00 03 01 03 00 00  #....!..........
  0010  00 00 08 0C FF FF 03 00 6C 6C 6C 11 08 74 F0 0A  ........lll..t..
  0020  20 08 00 05 00 A8 1E 2B 2B 00 00 00 00 00 00 00   ......++.......
  0030  00 00 00 00 00 00 00 00 00 00 00 00 16 36 16 36  .............6.6
  0040  16 36 16 36 00 00 2B 0C 2B 0C 2B 0C 2B 0C 00 00  .6.6..+.+.+.+...
  0050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0070  00 00 00 00 00 ED B5 CE 00 00 00 00 00 C2 B6 0D  ................
  0080  11 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 B6 58  ...............X
  0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0130  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0140  02 9E 00 00 00 00 00 00 00 43 4D 4B 31 36 47 58  .........CMK16GX
  0150  34 4D 32 44 33 30 30 30 43 31 36 20 20 00 80 AD  4M2D3000C16  ...
  0160  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0170  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0180  0C 4A 01 20 00 00 00 00 00 A3 00 00 06 FF FF 03  .J. ............
  0190  00 56 6B 6B 10 CA 36 F0 0A 20 08 00 05 00 B0 21  .Vkk..6.. .....!
  01A0  2B 00 00 00 00 00 00 00 00 D9 85 C0 DD DD B2 AD  +...............
  01B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

------[ SMBus Device B00-D53 ]------

  0000  23 10 0C 02 85 21 00 08 00 00 00 03 01 03 00 00  #....!..........
  0010  00 00 08 0C FF FF 03 00 6C 6C 6C 11 08 74 F0 0A  ........lll..t..
  0020  20 08 00 05 00 A8 1E 2B 2B 00 00 00 00 00 00 00   ......++.......
  0030  00 00 00 00 00 00 00 00 00 00 00 00 16 36 16 36  .............6.6
  0040  16 36 16 36 00 00 2B 0C 2B 0C 2B 0C 2B 0C 00 00  .6.6..+.+.+.+...
  0050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0070  00 00 00 00 00 ED B5 CE 00 00 00 00 00 C2 B6 0D  ................
  0080  11 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  00F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 B6 58  ...............X
  0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0110  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0120  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0130  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0140  02 9E 00 00 00 00 00 00 00 43 4D 4B 31 36 47 58  .........CMK16GX
  0150  34 4D 32 44 33 30 30 30 43 31 36 20 20 00 80 AD  4M2D3000C16  ...
  0160  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0170  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  0180  0C 4A 01 20 00 00 00 00 00 A3 00 00 06 FF FF 03  .J. ............
  0190  00 56 6B 6B 10 CA 36 F0 0A 20 08 00 05 00 B0 21  .Vkk..6.. .....!
  01A0  2B 00 00 00 00 00 00 00 00 D9 85 C0 DD DD B2 AD  +...............
  01B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  01F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

*** SMBus Semaphore Disabled = 0

------[ Chips Found ]------

B00-D20: Asus ASP1106D

Dump took 3.7 sec
```

I hope this helps you somehow, also (a bit late maybe), merry christmas and a happy new year.

@twifty
Copy link
Owner

twifty commented Dec 27, 2019

Thanks for going through the effort. The dump you have provided is for your motherboard and not for the GPU. If you still have access to AIDA64, watch this youtube video, it will show you how to get a dump of the GPU.

https://www.youtube.com/watch?v=lVlV0u2QpNI

You need to right click the bottom status bar in the window, select "video debug" the select "ATI SMBus".

If the bottom status bar is not there, you might have to enable it in the "view" settings.

Don't worry about the time. This is a project I do in my free time, so rushing to get things done is not really possible.

@ink-ru
Copy link

ink-ru commented Jan 1, 2020

Trust me I know exactly how you feel. I always had update problems with Gnome, ended up switching to KDE.

To install this package, open a terminal (your home directory will be fine).

mkdir github
cd github
git clone https://github.com/twifty/lights.git
cd lights
make install

The above will create a directory in your home folder ~/github/lights/build/ containing two kernel modules. The modules will be temporarily installed. They will be removed when you reboot.
Please post the output of make install.

Please put information about common installation process into README

@PrashBricks
Copy link

I tried the Ati smbus dump, but I don't think it worked. Here is the output, I will try it again later.

------[ Versions ]------

Program Version : AIDA64 Extreme v6.20.5300
BenchDLL Version: 4.5.816.8-x64
Windows Version : Microsoft Windows 10 Education 10.0.18363.535 (64-bit)

------[ Video Adapters ]------

Asus ROG-Strix-RXVega56-O8G-Gaming [1002-687F / 1043-0555 / Rev C3]

------[ Video Driver ]------



Total   :    0.0 sec

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

4 participants