[Prime]Does not work on Debian Sid


On Debian Sid, i have actually :

  • Linux kernel 3.11
  • Xrandr 1.4.1
  • X server 1.14.3
  • Nvidia 331.20 driver

There are no problems with Bumblebee, all works so i would like to try the method to use only the Nvidia card but i have a big problem.

At this moment, i use only the Intel card, nouveau is blacklisted and Nvidia driver not installed.
Even if the Nvidia driver 331.20 is installed or not, “xrandr --listproviders” show me only the Intel cards.

So, when i tried the method explain in the Readme from Nvidia driver, i have always a f*cking black screen.

I don’t know why i don’t find the nvidia card with xrandr.

Ok, i found something.

When i launch the laptop, i must to launch manually “startx”. When i launch this command, i have a black screen and i saw on internet that it’s normal.

1- So, i open a second tty and i launch “xrandr -d :0 --lisproviders”

Providers: number : 2
Provider 0: id: 0x2bf cap: 0x0 crtcs: 4 outputs: 3 associated providers: 0 name:NVIDIA-0
Provider 1: id: 0x46 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:Intel

I must to add “-d :0” else i have the message “Can’t open display”

2- I check which monitor is active by “xrandr -d :0”

Screen 0: minimum 8 x 8, current 640 x 480, maximum 16384 x 16384
HDMI-0 disconnected primary (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

3- When i want to launch “xrandr --setprovideroutputsource Intel NVIDIA-a”, i have this error :

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  35 ()
  Value in failed request:  0x2bf
  Serial number of failed request:  16
  Current serial number in output stream:  17

I think i have this error because Screen 0 is set to 640x480 pixels but my laptop monitor is 1920x1080 pixels. Even if i set :

Subsection "Display"
    Depth 24
    Modes "1920x1080"

into my xorg.conf, xrandr give 640x480…

Thanks for your help.
My laptop monitor is 1920x1080 pixels, why i have only 640x480pixels.

I found solution in Gentoo forums. This is a regression of 331.xx. Try 331.38 version or downgrade to 325.15. I made downgrade and Optimus is working with Debian Testing.