Giter Site home page Giter Site logo

Comments (6)

Askannz avatar Askannz commented on July 17, 2024

first after booting up with nvidia resolution changed everything get bigger.

Not sure if I understand your problem correctly, but try removing /etc/X11/xorg.conf if it exists. It is autogenerated by nvidia-xconfig but filled with outdated stuff and can cause the X server to start in low resolution.

For your second problem, I'm aware of the issue, but haven't found a proper fix for it yet. In the meantime, you can try setting the power management method to bbswitch or disabling modesetting in Intel mode.

from optimus-manager.

Askannz avatar Askannz commented on July 17, 2024

Do you still have the issue ?

from optimus-manager.

Ahuri3 avatar Ahuri3 commented on July 17, 2024

I am having issues switching back. It seems a bit random but I can give some info. I'm not sure I have the same issue @Meshikhah is having but the ticket is so aptly named and he hasn't given much information.

Description of the issue :

When I boot I am in Intel mode and all works well. Here is the xorg log file :
no-problem-intel.xorg.log

I can try to switch to nvidia and it works (not every single time but usually). Here is the xorg log file of :
no-problem-nvidia.xorg.log

Once I am in nvidia mode and I try to switch back I get an issue : GDM load fine but after I try to login Xorg crashes and I am sent back to the login screen on GDM.

Here is the Xorg log file :
problem-intel-xorg.log

An excerp from the log file :

[   221.869] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   221.869] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   221.869] (EE) open /dev/dri/card0: Permission denied
[   221.869] (WW) Falling back to old probe method for modesetting
[   221.869] (EE) open /dev/dri/card0: Permission denied
[   221.869] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   221.869] (EE) Screen 0 deleted because of no matching config section.
[   221.869] (II) UnloadModule: "modesetting"
[   221.869] (EE) Device(s) detected, but none match those in the config file.
[   221.869] (EE) 
Fatal server error:
[   221.870] (EE) no screens found(EE) 
[   221.870] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[   221.870] (EE) Please also check the log file at "/home/lferlin/.local/share/xorg/Xorg.1.log" for additional information.
[   221.870] (EE) 
[   222.378] (EE) Server terminated with error (1). Closing log file.

No the interesting part : If I switch tty and connect via terminal I can fix the situation by running optimus-manager --switch intel a second time. After the second switching attempt it seems to work flawlessly. Here are the last Xorg log file :
again-no-problem.log

General informations :

First of all here is my optimus configuration :
optimus-manager.conf.txt

I have a laptop with an Intel Core i7-8750H and a GTX 1070 Max-Q
The drivers I use for nvidia are :

pacman -Q | grep nvidia 
lib32-nvidia-utils 415.27-1
nvidia 415.27-7
nvidia-settings 415.27-1
nvidia-utils 415.27-1

And for Intel :

vulkan-intel 18.3.3-2
xf86-video-intel 1:2.99.917+859+g33ee0c3b-1
lib32-mesa 18.3.3-1
mesa 18.3.3-2

My xorg version is xorg-server 1.20.3-1
I use gnome and GDM :

gdm 3.30.2-2
libgdm 3.30.2-2

I am on the aur package of optimus-manager (v 0.7) :

optimus-manager 0.7.1-1

I had to forbid GDM from using Wayland to get the switching to work.

I also set the intel driver mode to intel instead of modeseting because it was causing a lot of errors in the Xorg.X.log files (flip queue failed: Invalid argument).

Finally I used to use bumblebee and it worked fine. I disable the service and remove the package before trying to use optimus-manager.

Regards,

Leo

from optimus-manager.

Askannz avatar Askannz commented on July 17, 2024

Could you test the latest Git version and see if the problem persists ?
This version introduces some major changes to the way optimus-manager works, so you need to reboot after upgrading to make sure everything is reloaded up properly.

from optimus-manager.

Ahuri3 avatar Ahuri3 commented on July 17, 2024

I hadn't tried it since I made the comment, but I just tried and it worked !

Thank you so much !

from optimus-manager.

Askannz avatar Askannz commented on July 17, 2024

Great ! :)

from optimus-manager.

Related Issues (20)

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.