Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Optimus Settings
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ngahy
n00b
n00b


Joined: 12 Aug 2021
Posts: 31

PostPosted: Tue Aug 17, 2021 10:06 pm    Post subject: [SOLVED] Optimus Settings Reply with quote

Hello everyone.

I tried to install set up Optimus following the following guide: https://wiki.gentoo.org/wiki/NVIDIA/Optimus
I was following this link: http://us.download.nvidia.com/XFree86/Linux-x86_64/460.91.03/README/randr14.html
When I did xrandr --setprovideroutputsource modesetting NVIDIA-0, I got the following error:
Code:
Could not find provider with name modesetting   


With tabs, bash suggested the following command
Code:
xrandr --setprovideroutputsource Intel NVIDIA-G0   


but now, I have the following error:
Code:
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x248
  Serial number of failed request:  16
  Current serial number in output stream:  17   


Information:
* xrandr --listproviders
Code:
Providers: number : 2
Provider 0: id: 0x48 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 5 outputs: 4 associated providers: 0 name:Intel
Provider 1: id: 0x248 cap: 0x2, Sink Output crtcs: 4 outputs: 7 associated providers: 0 name:NVIDIA-G0



* lspci | grep VGA
Code:
00:02.0 VGA compatible controller: Intel Corporation Device 9a60 (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 25b8 (rev a1)   


* cat /etc/X11/xorg.conf
Code:
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection


I tried to reboot by adding xrandr --setprovideroutputsource modesetting NVIDIA-0 and xrandr --auto in xinitrc and the other command same command but I still have a blackscreen
To get my graphical interface back, I removed /etc/X11/xorg.conf.

Can you help me to fix this issue?
Thank you


Last edited by ngahy on Tue Sep 07, 2021 8:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Aug 19, 2021 5:56 pm    Post subject: Reply with quote

nvidia proprietary drivers are very annoying, try to use nouveau open source driver instead, i had similar problem as yours, after installing the open source driver, i got the gui back. nvidia manages to stop supporting the older devices by time, therefore no longer providing updates. the open source driver is not the same
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Aug 19, 2021 5:59 pm    Post subject: Reply with quote

for the optimus technology the alternative open source option is bumblebee and here is the link to its wiki for gentoo
https://wiki.gentoo.org/wiki/NVIDIA/Bumblebee
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
ngahy
n00b
n00b


Joined: 12 Aug 2021
Posts: 31

PostPosted: Tue Sep 07, 2021 8:04 pm    Post subject: Reply with quote

Due to an issue with my wifi+bleutooth card, I moved temporarily to sys-kernel/gentoo-kernel-bin:5.10.12.
While solving the issue with this card, I looked carefully at BIOS menus and I found that I could disable
Hybrid Graphic Cards and work entirely with the "Discrete GPU". I did disable the option and everything
seems to work fine for now after the installation of nvidia drivers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum