Artix Linux Forum

Artix Linux => System => Topic started by: tkor on 14 March 2021, 11:01:22

Title: [Solved] New laptop Nvidia/AMD GPU problem weekly iso
Post by: tkor on 14 March 2021, 11:01:22
Hi to all I just bought  Hp Gaming laptop 15 with amd ryzen 7 4800h with Radeon Graphics cpu and Nvidia GTX 1660 ti .
I download the weekly iso of Kde and runit for init system. I didn't have a problem with the installation except that  the touchpad  didn't work  after the first reboot.@linuxer advised me to put the flag " iommu=pt " and everything was ok .
After that I  try to install Nvidia drivers (world/nvidia-dkms)and xorg crush.
I start again with a fresh install but  this time with the  normal kde-runit iso not the weekly .
Everything  seems to work ok this time  and the touchpad.
I install the same drivers and nvidia settings and everything seems to work .

2.png3.png
Screenshot_20210314_132954.png

dmseg show me this

4.png
First I have an error with the amdgpu profile
 And i don't understand or see  anywhere when the os switches to nvidia card  if it does.
Any help???
Title: Re: New laptop Nvidia problem weekly iso
Post by: linuxer on 14 March 2021, 12:17:58
@tkor iommu=pt is a needed spec on UEFI systems so to have proper operation of ports, i.e. USB 3.0

Nevertheless you can try optimus as announced here (https://forum.artixlinux.org/index.php/topic,2356.0.html) for switching/setting the used GPU

After optimus packages installation, relative services enabling and rebooting, run one of the following commands:

Title: Re: New laptop Nvidia problem weekly iso
Post by: alium on 14 March 2021, 12:27:50
you can install from AUR optimus-manager-qt too. A Qt interface for Optimus Manager that allows to configure and switch GPUs on Optimus laptops using the tray menu.

@linuxer can add it to our universe repo too
Title: Re: New laptop Nvidia problem weekly iso
Post by: linuxer on 14 March 2021, 12:32:59
you can install from AUR optimus-manager-qt too. A Qt interface for Optimus Manager that allows to configure and switch GPUs on Optimus laptops using the tray menu.

@linuxer can add it to our universe repo too
That one depends heavily on systemd @alium

Code: [Select]
grep -rnw 'src/' -e 'systemctl'                                
src/optimusmanager.cpp:211:                                   .arg("sudo systemctl enable optimus-manager", "sudo systemctl start optimus-manager"));
src/optimusmanager.cpp:312:                                   .arg(QStringLiteral("sudo systemctl disable bumblebeed.service")));

I will try to write a new one for our init systems, but first I am trying to get it working with our inits.

Actually I am on my way, hoping to get it done soon.
Title: Re: New laptop Nvidia problem weekly iso
Post by: tkor on 14 March 2021, 13:01:51
i just installed this :
Code: [Select]
sudo pacman -S optimus-manager-runit sddm-optimus-runit optimus-manager-git 
after that nvidia settings won’t start and optimus manager the same .
i install  this :
Code: [Select]
 yay -S optimus-manager-qt 
and i had the same results .
If i give to the terminal :
Code: [Select]
optimus-manager --switch nvidia
i have this error
Spoiler (click to show/hide)
inxi :
Spoiler (click to show/hide)
dmesg nvidia
Spoiler (click to show/hide)

dmesg amd
[Spoiler (click to show/hide)

nvidia settings terminal
Spoiler (click to show/hide)

xrandr --listproviders
Spoiler (click to show/hide)

sudo rsm
Spoiler (click to show/hide)
Title: Re: New laptop Nvidia problem weekly iso
Post by: alium on 14 March 2021, 14:07:33
Quote
grep -rnw 'src/' -e 'systemctl'                              
src/optimusmanager.cpp:211:                                   .arg("sudo systemctl enable optimus-manager", "sudo systemctl start optimus-manager"));
src/optimusmanager.cpp:312:                                   .arg(QStringLiteral("sudo systemctl disable bumblebeed.service")));

this is no systemd hard linked code, @linuxer, that is only a part of information text  (not hard dependency on systemd) - as i saw in the code
Title: Re: New laptop Nvidia problem weekly iso
Post by: linuxer on 14 March 2021, 14:11:28
this is no systemd hard linked code, @linuxer, that is only a part of information text  (not hard dependency on systemd) - as i saw in the code
I know, but the app's daemon controls for systemd stuff too.

I wished that it would be only the qstring messages...

check the Qt/cpp sources
Title: Re: New laptop Nvidia problem weekly iso
Post by: linuxer on 15 March 2021, 21:19:58
After success of the following package, I will prepare a PKGBUILD on Universe

https://github.com/OlivierV78/switch_amd_nvidia

I will prepare one for optimus-manager-qt, with a patch for Artix Linux, too
Title: Re: New laptop Nvidia problem weekly iso
Post by: tkor on 15 March 2021, 21:21:39
thanks man for the help
Title: Re: New laptop Nvidia problem weekly iso
Post by: linuxer on 15 March 2021, 22:08:31
https://gitea.artixlinux.org/Universe/switch_amd_nvidia created to enter Universe

https://gitea.artixlinux.org/Universe/optimus-manager-qt and https://gitea.artixlinux.org/Universe/optimus-manager-qt-plasma created to enter Universe