Skip to main content
Topic: Artix Nvidia Optimus packages, available at Universe repo (Read 11427 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #30
I tried with AUR optimus-manager-openrc-git 1.3.1.r64.g28bdc14-1 it outputs some errors, but it works
Different forked release, behind ours and the original, does not cooperate with the rest (optimus-manager-qt needs optimus-manager>1.4)


Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #31
sudo prime-switch
[7] INFO: # Xorg pre-start hook
[7] INFO: Previous state was: {'type': 'done', 'switch_id': '20210427T162408', 'current_mode': 'integrated'}
[7] INFO: Requested mode is: integrated
[1387] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[1388] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20210427T162408', 'requested_mode': 'integrated'}
[1388] INFO: Xorg pre-start hook completed successfully.

Tell me more about how to switch, I have this output and all?
Just restart your Xorg (logout/login) right after this message, must work for switching cards.

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #32
Switch after entering
optimus-manager --switch nvidia

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #33
Switch after entering
optimus-manager --switch nvidia

Thanks for your feedback.

Did you logout/login, or not, before that?

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #34
Yes, I went out and then I went in.



Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #36
How should it be?

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #37
Hi all, I use runit, I've installed optimus-manager-(git, plasma-qt, runit) and sddm-optimus-runit.
I started optimus service but I have this problem:
Code: [Select]
artix-runit:[root]:/home/zar_marco# optimus-manager
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20210610T091033.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #38
Hi all! I'm trying to switch from integrated mode to hybrid, but to no avail.

I use runit edition of Artix with no login system at all. That's why I manually edited my xinitrc according to the optimus-manager wiki and it looks like this:
Code: [Select]
/usr/bin/prime-offload
ssh-agent dwm
sudo /usr/bin/prime-switch # this script is in %wheels ALL=(ALL) PASSWORD: ... list in /etc/sudoers
Since I use no login manager (and optimus-manager-runit package requires some init-displaymanager-runit package), I manually copied from git run and finish scripts to /etc/runit/sv/optomus-manager/[run, finish] and enabled it (sv status optimus-manager says that it's ok). But optimus-manager --switch hybrid says that optimus-manager service is not enabled and prime-switch says that it's ok but it prints INFO: Requested mode is: integrated and after re-login optimus-manager --print-mode still saying Current GPU mode : integrated.

Any help would be very appreciated!

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #39
Hi there I am using Runit, KDE Plasma Artix.
I have installed Nvidia Ootimus packages acvording to this guide (and another guide)
Everything is 100%:



except for when I want to change via the GUI App:



I know the runit uses sv command, I am new to runit (ex Mint user).

Also I had to add the conf file to /etc/optimus-manager/

I need to know what to do?
Do I add a script/link in the runit sv service?
Or how do I go about this?
Also, how does one check with sv which servixes are currently running?

Thank you.


Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #41
I've followed this guide to get optimus-manager so that I can switch between GPUs but it doesn't work

Code: [Select]
sudo optimus-manager --switch nvidia
The optimus-manager service is not running. Please enable and start it as described at Artix Linux Wiki, and reboot

GUI also doesn't work
Code: [Select]
Please enable and start it as per Artix Linux Wiki:
'openrc init commands'
'runit init commands'
's6 init commands

I use OpenRC
Code: [Select]
rc-status default
 optimus-manager                                                                                                                        [  started  ]

Code: [Select]
kamey-x541nc:[kamey]:~$ glxinfo|egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 500 (APL 2)
kamey-x541nc:[kamey]:~$ lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 500 [8086:5a85] (rev 0b) (prog-if 00 [VGA controller])


Xrandr doesn't even show nvidia

Code: [Select]
kamey-x541nc:[kamey]:~$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:modesetting

I've installed nvidia like this, follow this thread for more info:
https://forum.artixlinux.org/index.php/topic,3361.new.html

Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #42
Hi all, I use runit, I've installed optimus-manager-(git, plasma-qt, runit) and sddm-optimus-runit.
I started optimus service but I have this problem:
Code: [Select]
artix-runit:[root]:/home/zar_marco# optimus-manager
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20210610T091033.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.
i also had the same exact problem while also using runit, almost giving up on artix as no solution has been shown to this problem. I hope the maintaner shows us a way or something.
I'm using dwm, nvidia gtx1650, intel 10500h, dell g15 laptop, SDDM.
I hope that someone can help me as i don't want to go back to systemd.


Re: Artix Nvidia Optimus packages, available at Universe repo

Reply #44
Hi all, I installed optimus manager today and after the command
Code: [Select]
$ sudo prime-switch
I got an error:
Spoiler (click to show/hide)

As I understand it, it is related to the Python 3.10 update. And the recommended command to rebuild the package did not help in this case.
I also found out that the Optimus Manager developer updated pkgrel on the 14th of last month.

I am inexperienced in Linux and wanted to know if there is something I need to do on my end or if this package needs to be updated in the Universe repository.