Giter Site home page Giter Site logo

mate-optimus's People

Contributors

blechta avatar clefebvre avatar eeickmeyer avatar flexiondotorg avatar fossfreedom avatar marsch84 avatar mcdonc avatar sunweaver avatar tim77 avatar volnes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mate-optimus's Issues

Mate optimus not working on Macbook pro 9.1

Hello there,

After a fresh install of ubuntu 20.04 on the cited machine, mate-optimus is not working, my specs are the following:

alma@MacBookPro:~$ neofetch
.-/+oossssoo+/-. alma@MacBookPro
:+ssssssssssssssssss+: ---------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 20.04 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: MacBookPro9,1 1.0
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.4.0-26-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 2 hours, 29 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 2311 (dpkg), 10 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.0.16
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1440x900, 1920x1080, 1440x900
ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: MATE
ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Metacity (Marco)
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Ambiant-MATE
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Ambiant-MATE [GTK2/3]
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Ambiant-MATE [GTK2/3]
+sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: tilda
/ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: Intel i7-3720QM (8) @ 3.600GHz
.ossssssssssssssssssdMMMNysssso. GPU: Intel 3rd Gen Core processor Graphics Controller
-+sssssssssssssssssyyyssss+- GPU: NVIDIA GeForce GT 650M Mac Edition @ 440.64 Driver (NO CUDA)
:+ssssssssssssssssss+: Memory: 2137MiB / 15951MiB
.-/+oossssoo+/-.

any one could help me to configure optimus?

in advance thanks.

Does not appear in Zorin OS 15

So I saw that this applet supports Gnome, which is what Zorin basically uses, and it uses Ubuntu as its base. I tried installing it using sudo apt install mate-optimus, but after I switched to nvidia graphics card (proprietary), I don't get any sort of indicator. I also don't know if I can manually start or use it through CLI, etc. Is it possible to be able to somehow be able to run this at start up on this distro? Thanks.

support for deepin GNU/ linux

please support for deepin GNU/Linux... I have Nvidia 940mx and intel 520 please make support to software which can be used by different desktop environment

Support for KDE

Hey,

I am running KDE on Ubuntu & I installed mate-optimus, is there any way i can select modes other than from the applet like CLI, or a compatible applet for KDE?

Wrong xrandr pattern match?

The applet doesn't appear to work correctly for me. It shows the Prime Profile I currently have selected, but does not offer any others for me to switch to.

If I select On-demand mode in the NVidia X Server Settings, reboot, and then try offload-glx, it says xrandr: NVIDIA GPU screen not detected.

I have an NVidia Quadro M3000M. It shows in xrandr --listproviders like this:

Providers: number : 2
Provider 0: id: 0x2b5 cap: 0x1, Source Output crtcs: 4 outputs: 6 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x49 cap: 0x6, Sink Output, Source Offload crtcs: 3 outputs: 7 associated providers: 1 name:modesetting

The problem seems to be that mate-optimus is expecting to find NVIDIA-G where I have NVIDIA-0.

If I change the pattern match to NVIDIA-0, then both scripts function as expected (although I can't see any performance difference between on-demand and performance mode, but I don't think that's your fault as I still can't if I reboot into performance mode only.)

Cannot switch to nvidia via the applet

Just running the 19.10 deb on Ubuntu Budgie 18.04 (yeah I know...!)

image

If I switch via nvidia-xsettings to nvidia (and logout/login) the icon of the applet is nvidia. I can switch to intel ok. Just the other way around.

I'll take a closer look at the code to find out what is going on


$ /usr/lib/mate-optimus/mate-optimus-applet 
nvidia-settings and prime-select detected.
Prime supported.
intel loaded: True
intel prime-supported: True
intel prime-select: True
intel: True
nvidia loaded: False
nvidia prime-supported: False
nvidia nvidia detected: False
nvidia prime-select: False
nvidia: False
on-demand loaded: True
on-demand prime-supported: True
on-demand nvidia detected: True
on-demand prime-select: False
on-demand: False
nvidia-settings and prime-select detected.

ValueError: Namespace AppIndicator3 not available on Ubuntu 20.04

I just installed mate-optimus via apt and I get the following error when trying to run it

$ mate-optimus-applet 
Traceback (most recent call last):
  File "/usr/bin/mate-optimus-applet", line 20, in <module>
    gi.require_version('AppIndicator3', '0.1')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

But I can't find any listing for AppIndicator3 on pip.

Any advice would be appreciated.

Nvidia hardware no longer detected when on Intel (Power-Saving) and on 460 Driver

Title pretty much explains it. For the Kubuntu Focus machines, we have a script to completely power-off the Nvidia hardware if the Intel driver is selected. This wasn't a problem with nvidia-driver-455 and lower, but with 460 for some reason the menu no longer displays the Nvidia selections.

Granted, the system would have to be rebooted to get the Nvidia hardware back in this scenario (and we have a script injection in SDDM that does this exactly), but there's a pretty nasty inconvenience to our customers if they don't have the selection to begin with.

In order to take a sledgehammer approach to this, I had to remove line #115 from mate-optimus-applet:
nvidia_detected(capability) and \

This produces the desired result. However, I'm sure there's a more graceful approach to this. In the meantime, unfortunately, I am in a position where I have to downstream patch this, but I'm reluctant to downstream patch in in Ubuntu (which I can) since this is a very quick and dirty approach.

Possibility to switch between AMD and Nvidia

There are a very few laptops out there with an integrated AMD and a dedicated Nvidia (like the ASUS Zephyrus G14).

Since the official Nvidia driver does not offer to switch between them it would be nice to have an option at least here for Ubuntu.
The setup is pretty straight forward and like with intel (also the xorg configurations). It would just be a matter of adjusting some strings here and there.

What do you think?

Fedora does not work

Hi,

You have to port prime-select to Fedora to work it as this package is not maintained from 5-6 years more less, maybe not added to the main repositories...

Cheers

Option of Launch using dedicated Graphics Card in the Ubuntu MATE

Hi everyone, everything fine? (if this topic is in the wrong place, please move to the correct place).

I'm using Ubuntu MATE 20.04.1 (version 1.24.0-2 of MATE), and the configuration of my Dell 7559 laptop is: Intel Core i5 (6th Gen) 6300HQ / 2.3 GHz; 16 GB DDR3L SDRAM 1600 MHz in dual channel; HD 1TB and 240GB SSD and NVIDIA GeForce GTX 960M 4GB GDDR5 SDRAM. Before I was using Ubuntu 20.04.1 with GNOME (3.36), but I felt that the system did not flow properly on my laptop. So far I am enjoying the performance I am having, except for two "problems". The first is in relation to the icons for the Portuguese language (Brazil), but it is not the object of the post.

What I miss about Ubuntu MATE, is the option to be able to right-click the app and open it with the dedicated GPU, just like in GNOME, with the "Launch using dedicated Graphics Card" option. So I would like to know if this functionality is on the "radar" to be implemented.

I'm available for testing if you need

Att

Ricardo.

Applet not showing on Ubuntu Budgie 19.10

The applet does not show and produces a filenotfound error:

mate-optimus-applet: launched.
  - nvidia-settings and prime-select detected.
  - prime-supported: Yes
mate-optimus-applet: NVIDIA Optimus supported.
Checking: intel
  - intel loaded: No
  - intel: is not supported
Checking: nvidia
  - nvidia loaded: n/a
  - prime-supported: Yes
Traceback (most recent call last):
  File "./mate-optimus-applet", line 327, in <module>
    Indicator()
  File "./mate-optimus-applet", line 188, in __init__
    self.nvidia_available = check_capability('nvidia')
  File "./mate-optimus-applet", line 121, in check_capability
    nvidia_detected(capability) and \
  File "./mate-optimus-applet", line 60, in nvidia_detected
    nvidia_detector = subprocess.Popen(['nvidia-detector'], stdout=PIPE, stderr=DEVNULL)
  File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'nvidia-detector': 'nvidia-detector'

gir1.2-appindicator3-0.1 is an undocumented requirement under Ubuntu 19.10

using a clean install of Ubuntu 19.10 with working nvidia 435 drivers, i ran sudo apt install mate-optimus as usual. the applet didn't start automatically after a reboot, so i ran the applet manually and got an error:

➜ mate-optimus-applet 
Traceback (most recent call last):
  File "/usr/bin/mate-optimus-applet", line 20, in <module>
    gi.require_version('AppIndicator3', '0.1')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

googled around for the package and installed it, applet did the thing after:

➜ sudo apt install -y gir1.2-appindicator3
...
Setting up gir1.2-appindicator3-0.1 (12.10.1+18.04.20180322.1-0ubuntu4) ...

➜ mate-optimus-applet 
mate-optimus-applet: launched.
  - nvidia-settings and prime-select detected.
  - prime-supported: Yes
mate-optimus-applet: NVIDIA Optimus supported.
...

mate-optimus-applet crashed with FileNotFoundError in _execute_child(): [Errno 2] No such file or directory: 'prime-supported': 'prime-supported'

Apologies if you are already aware -

https://bugs.launchpad.net/ubuntu/+source/mate-optimus/+bug/1843341

So on 19.10 in a VM (i.e. no prime/nvidia etc) there is crash report for every login.

Happy to throw a PR - just shout if you want me to - suggest a try except around Popen type statements. Also maybe use the full path for Popen executables otherwise will open exe's from the path rather than from the system (potential security issue?)

Power saving mode not as low as with bbswitch

I don't know if there is a better forum for this, so I'm opening an issue.

My laptop is running Ubuntu 19.10 and this is the card detected:
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev ff)

I have Intel (Power Saving) selected. But unless I also use bbswitch and set it to OFF, the fan continues to run at a low level.

I'm not measuring the actual power consumption, but that seems to be what is going on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.