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

Artix Nvidia Optimus packages, available at Universe repo

Artix Nvidia Optimus packages, are available in Universe Repository, for all DEs and init systems, for these video cards.

Note: The PKGKBUILDs used for built, are also available at our newly createdUniverse repository.



Installation guide:

Add Universe repository to your /etc/pacman.conf, as below:

Code: [Select]
[universe]

Server = https://universe.artixlinux.org/$arch

  • optimus-manager-git is the main dependency.
  • optimus-manager-<init> and <DM>-optimus-<init> are the init services.
  • Available values for <DM>: gdm, lightdm, lxdm, sddm, xdm
  • Available values for <init>:  openrc, runit, s6

Code: [Select]
sudo pacman -S optimus-manager-<init> <DM>-optimus-<init> optimus-manager-git

Installation of optimus for lightdm + openrc example:
Code: [Select]
sudo pacman -S optimus-manager-openrc lightdm-optimus-openrc optimus-manager-git

Depending on your init system, enable the relative services, as described at https://wiki.artixlinux.org/ and reboot.

Note: the service names are as below, so are the same with the non optimus ones, except the last one:
  • gdm
  • lightdm
  • lxdm
  • sddm
  • xdm
  • optimus-manager

Commands for switching are:

  • sudo prime-switch and logout
  • optimus-manager --switch nvidia, i.e. to switch to the Nvidia GPU, after login
  • optimus-manager --switch integrated, i.e. to switch to the integrated GPU and power the Nvidia GPU off[, after login
  • optimus-manager --switch hybrid, i.e. to switch to the iGPU but leave the Nvidia GPU available for on-demand offloading, after login, similar to how Optimus works on Windows. See the Optimus Manager Wiki below for more details.

This Wiki, is also available and can be handy.

Some relevant troubleshooting, if you drop into such case.

Optimus Manager site and wiki can assist too, and if you find any issues, please report them here.

Optimus Manager Qt, is also available, in Universe repo.



We offer two packages:

  • optimus-manager-qt-git for all desktops, except plasma
  • optimus-manager-qt-plasma-git for plasma desktop

Code: [Select]
sudo pacman -S optimus-manager-qt-git
or
Code: [Select]
sudo pacman -S optimus-manager-qt-plasma-git

 

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #1
@linuxer, just to clarify, are these installation steps correct?

sudo pacman -S optimus-manager-git optimus-manager-openrc sddm-optimus-openrc

* the installation of sddm-optimus-openrc force the remove of sddm-openrc

sudo rc-update add optimus-manager default

sudo rc-update add sddm-optimus default

reboot of the system.

Thank you. Francesco


Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #2
@linuxer, just to clarify, are these installation steps correct?

sudo pacman -S optimus-manager-git optimus-manager-openrc sddm-optimus-openrc

* the installation of sddm-optimus-openrc force the remove of sddm-openrc

sudo rc-update add optimus-manager default

sudo rc-update add sddm-optimus default

reboot of the system.


Yes, the init script of the DE, is being replaced with the DE-optimus one, and one more, the optimus-manager init service, is added.

So, you have to enable both

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #3
thank's for the answer, later in the afternoon I'll try and I'll post the feedback

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #4
[Added today to the above announcement]

Optimus Manager Qt, was added to Universe repo.



We offer two packages:

  • optimus-manager-qt for all desktops, except plasma
  • optimus-manager-qt-plasma for plasma desktop

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #5
@linuxer, forgive me for the delay, but I was traveling for work. Below the result of the installation.
Quote
$ sudo pacman -S optimus-manager-qt-plasma optimus-manager-openrc sddm-optimus-openrc  
risoluzione delle dipendenze in corso...
ricerca dei pacchetti in conflitto in corso...
:: sddm-optimus-openrc e sddm-openrc vanno in conflitto (init-displaymanager). Vuoi rimuovere sddm-openrc? [s/N] s
attenzione: è stato individuato un ciclo di dipendenza:
attenzione: sddm-optimus-openrc sarà installato prima della sua dipendenza optimus-manager-openrc

Pacchetti (5) optimus-manager-git-1.4.r1.gbb22f9c-1  sddm-openrc-20210207-1 [rimozione]
              optimus-manager-openrc-20210227-1  optimus-manager-qt-plasma-1.6.0-3
              sddm-optimus-openrc-20210207-1

Dimensione totale dei pacchetti da scaricare:   0,23 MiB
Dimensione totale dei pacchetti da installare:  1,02 MiB
Dimensione netta dell'aggiornamento:            1,02 MiB

:: Vuoi procedere con l'installazione? [S/n]
:: Download dei pacchetti in corso...
 optimus-manager-git-1.4.r1.gbb22...    64,5 KiB   322 KiB/s 00:00 [####################################] 100%
 optimus-manager-qt-plasma-1.6.0-...   170,9 KiB   589 KiB/s 00:00 [####################################] 100%
(4/4) verifica delle chiavi presenti nel portachiavi               [####################################] 100%
(4/4) verifica dell'integrità dei pacchetti                        [####################################] 100%
(4/4) caricamento dei file dei pacchetti                           [####################################] 100%
(4/4) controllo dei conflitti in corso                             [####################################] 100%
(5/5) controllo dello spazio disponibile sul disco                 [####################################] 100%
:: Elaborazione delle modifiche al pacchetto...
(1/1) rimozione in corso di sddm-openrc                            [####################################] 100%
(1/4) installazione in corso di optimus-manager-git                [####################################] 100%
Dipendenze opzionali di optimus-manager-git
    bbswitch: alternative power switching method
    acpi_call: alternative power switching method
    xf86-video-intel: provides the Xorg intel driver
(2/4) installazione in corso di optimus-manager-qt-plasma          [####################################] 100%
(3/4) installazione in corso di sddm-optimus-openrc                [####################################] 100%
(4/4) installazione in corso di optimus-manager-openrc             [####################################] 100%
:: Esecuzione degli hook di post-transazione...
(1/3) Updating icon theme caches...
(2/3) Displaying openrc service help ...
        ==> Add a service to runlevel:
        rc-update add <service> <runlevel>
        ==> Start/stop/restart a service:
        rc-service <service> <start/stop/restart>
(3/3) Updating the desktop file MIME type cache...
frank@supernova:~
$ sudo rc-update add optimus-manager default
 * service optimus-manager added to runlevel default
frank@supernova:~
$ sudo rc-update add sddm-optimus default
 * rc-update: service `sddm-optimus' does not exist

It look like if sddm-optimus don't exist but is simply redirected the command at sddm. Now I reboot...

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #6
@linuxer: the final result is a disaster!

To try to recover the situation I had to chroot and remove the installed packages. Not sufficient!
The system no longer recognize the password. Another chroot and redefined the root password.
It seems all become normal but... not true: the GUI don't start, but I can login in the character environment.
I did a check and I discover that I forget to remove the optimus-manager-openrc, I did and... the password of my standard user is no longer recognized!

These packages are a drama! Now Plasma don't start and I cannot login with my standard user. I must find a way to redefine the password for my standard user. Any idea?

Were these packages tested before?


Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #7
@linuxer: the final result is a disaster!

To try to recover the situation I had to chroot and remove the installed packages. Not sufficient!
The system no longer recognize the password. Another chroot and redefined the root password.
It seems all become normal but... not true: the GUI don't start, but I can login in the character environment.
I did a check and I discover that I forget to remove the optimus-manager-openrc, I did and... the password of my standard user is no longer recognized!

These packages are a drama! Now Plasma don't start and I cannot login with my standard user. I must find a way to redefine the password for my standard user. Any idea?

Were these packages tested before?



Which cards do you have?

The packages are on Universe for testing.

Unfortunately, I have no h/w available to test optimus, so being gentle, would be nice

Up to now, your case, is the first one.

Plus "The system no longer recognize the password. Another chroot and redefined the root password" has nothing to do with optimus

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #8
@linuxer: no problem, I've just reinstalled and reactivated all. I thought it was urgent to report the problem!

It appear VERY strange to me too, the modification of the password, but believe me: it happen after the installation.

The first time I redefine the root password (when in chroot) and all restarted, reappear also the pwd of my standard user.

The second time I logged in my system, the DE don't start, and I remember that I haven't removed from the default the optimus-manager-openrc. As I wrote you in the previous post, I did it (usual rc-update del...), reboot, and my user password was no longer available.

I know that its VERY strange, but this is exactly what happen and I didn't do anything else: no other commands of every kind, also a simple ls. Remove, reboot and password... pufff :-)

Below the info of the CPU and the GPU:
Quote
CPU:       Info: 10-Core model: Intel Core i9-10900K bits: 64 type: MT MCP arch: Comet Lake rev: 5
           L2 cache: 20 MiB bogomips: 148040
           Speed: 800 MHz min/max: 800/5300 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800
           6: 800 7: 800 8: 800 9: 800 10: 800 11: 1188 12: 828 13: 1938 14: 999 15: 800 16: 800 17: 800
           18: 800 19: 800 20: 800
           Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_capabilities arch_perfmon art
           avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de
           ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase
           fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ibrs_enhanced ida intel_pt invpcid
           invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx
           ospke pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdrand
           rdseed rdtscp rep_good sdbg sep sgx sgx_lc smap smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3
           stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
           xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
Graphics:  Device-1: NVIDIA TU106BM [GeForce RTX 2070 Mobile] vendor: CLEVO/KAPOK driver: nvidia v: 460.56
           bus ID: 01:00.0 chip ID: 10de:1f54 class ID: 0300
           Device-2: Chicony Chicony USB2.0 Camera type: USB driver: uvcvideo bus ID: 1-8:5
           chip ID: 04f2:b685 class ID: 0e02
           Display: server: X.org 1.20.10 compositor: kwin_x11 driver: loaded: nvidia


Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #10
@francesco use please
Code: [Select]
lspci
or
Code: [Select]
sudo lspci -v (for more details about HW and drivers)


if you really have only one graphic card, you really not need install optimus . ;-)

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #11
@linuxer, alium, I know that I've only one card, no discrete situation, but I didn't imagine that installing and removing a software can crash user password and to be so dangerous. Maybe cause its thought for a 2-GPU system, but is anyway a dangerous situation, usable to crack system, just discovering what the optimus software do.

Anyway, no problem, I'll look around if I'll find a PC with a double CPU :-)

Ciao. Francesco

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #12
@linuxer, alium, I know that I've only one card, no discrete situation, but I didn't imagine that installing and removing a software can crash user password and to be so dangerous. Maybe cause its thought for a 2-GPU system, but is anyway a dangerous situation, usable to crack system, just discovering what the optimus software do.

Anyway, no problem, I'll look around if I'll find a PC with a double CPU :-)

Ciao. Francesco

No, it cannot crash  any user password.

Their must have been something else.

Optimus packages, have been reported, as working OK.


Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #13
@francesco, hard to say, what happened... anyway, it's very strange . I can not check it, because i have/has no nvidia card and i will never buy any nvidia card in future.

Re: Artix Nvidia Optimus packages, available on Universe repo

Reply #14
Nothing happened.

What really happened, was that he got his system locked and stuck on boot, a normal situation, because his system hardware is not equipped with optimus GPU (is not hybrid).

The code is open, free and available to all.

Below, is one of the two confirmed cases, of optimus running.