Am 30.03.2018 um 18:46 schrieb Carlos E. R.:
On 2018-03-30 15:43, Daniel Bauer wrote:
Am 30.03.2018 um 14:35 schrieb Carlos E. R.:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday, 2018-03-30 at 13:04 +0200, Daniel Bauer wrote:
Looking at prime-select, it is using nvidia-xonfig only to determine PCI ID of nVidia card, so you ma actual hardcode them for debugging to see if it works otherwise.
I see, but I have no idea how to get that PCI-ID Hwinfo tells me so many things that I have no idea what to use :-)
23: PCI 100.0: 0302 3D controller [Created at pci.378] Unique ID: VCu0.hDjcjYACgT6 Parent ID: vSkL.fWlq6741dtC SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0 SysFS BusID: 0000:01:00.0 Hardware Class: graphics card Model: "nVidia GM107M [GeForce GTX 960M]" Vendor: pci 0x10de "nVidia Corporation" Device: pci 0x139b "GM107M [GeForce GTX 960M]" SubVendor: pci 0x1043 "ASUSTeK Computer Inc." SubDevice: pci 0x1c5d Revision: 0xa2 Memory Range: 0xde000000-0xdeffffff (rw,non-prefetchable) Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable) Memory Range: 0xd0000000-0xd1ffffff (ro,non-prefetchable) I/O Ports: 0xe000-0xefff (rw) Memory Range: 0xdf000000-0xdf07ffff (ro,non-prefetchable,disabled) IRQ: 255 (no events) Module Alias: "pci:v000010DEd0000139Bsv00001043sd00001C5Dbc03sc02i00" Driver Info #0: Driver Status: nouveau is not active Driver Activation Cmd: "modprobe nouveau" Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #8 (PCI bridge)
Primary display adapter: #9
Well, the info is there, but like you I don't know which of the "pci" strings there is the one.
My guess would be "0000:01:00.0"
So I tried to replace nvidia_busid=`echo "$gpu_info" |grep -i "PCI BusID"|sed 's/PCI BusID ://'|sed 's/ //g'` by nvidia_busid='0000:01:00.0' in the script, saved it with another name and run it. Then I couldn't log out anymore, I had to shutdown via konsole. After reboot the screen flickered heavily, and I had to boot into level 3 and run the script to put intel again. So, either that was not the bus-id, or I wrote it wrong, or... Problem is that I have no idea about these grep and sed things and if I used the correct kind of quote sign... What else can I try? -- Daniel Bauer photographer Basel Barcelona https://www.patreon.com/danielbauer http://www.daniel-bauer.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org