Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUS IDs ... wtf #116

Closed
luukatyuo opened this issue May 9, 2019 · 9 comments
Closed

BUS IDs ... wtf #116

luukatyuo opened this issue May 9, 2019 · 9 comments

Comments

@luukatyuo
Copy link

luukatyuo commented May 9, 2019

nvidia-xrun 0.3-0 working with no problems. But the git version... boooiiii, makes me wtf

i get errors "no file or directory" for loading unloading my nv card/pm state.

in /etc/default/nvidia-xrun i can find:

.# Bus ID of the PCI express controller
CONTROLLER_BUS_ID=0000:00:01.0

.# Bus ID of the graphic card
DEVICE_BUS_ID=0000:01:00.0

Guess wrong values for my case is what causes da trouble.
I put /etc/X11/nvidia-xorg.conf.d/30-nvidia.conf with "BusID "PCI:3:0:0".
lspci -tv made me even more confused.
how to get correct values for this vars? can we ve this in readme plz? Boooiii, i feel like a big noob ;)

@michelesr
Copy link
Contributor

@luukatyuo it's on the readme:

In order to make power management features work properly, you need to make sure
that bus ids in /etc/default/nvidia-xrun are correctly set for both the
NVIDIA graphic card and the PCI express controller that hosts it. You should be
able to find both the ids in the output of lshw: the PCIe controller is
usually displayed right before the graphic card.

You should be able to see something like this:

        *-pci:0
             description: PCI bridge
             product: Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 07
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:122 ioport:3000(size=4096) memory:ec000000-ed0fffff ioport:c0000000(size=301989888)
           *-display UNCLAIMED
                description: 3D controller
                product: GP107M [GeForce GTX 1050 Ti Mobile]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                version: a1
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list
                configuration: latency=0
                resources: memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff

Good luck... if you experience problems you might try to set REMOVE_DEVICE=0 that seems to work better with older graphic cards

@luukatyuo
Copy link
Author

luukatyuo commented May 9, 2019

>     description: Notebook
>     product: UX303LB (ASUS-NotebookSKU)
>     vendor: ASUSTeK COMPUTER INC.
>     version: 1.0
>     serial: F4N0CJ134210188
>     width: 4294967295 bits
>     capabilities: smbios-2.8 dmi-2.8 smp vsyscall32
>     configuration: boot=normal chassis=notebook family=UX sku=ASUS-NotebookSKU uuid=2DFEFD46-9C7D-444D-A278-0D4F36F2AEF0
>   *-core
>        description: Motherboard
>        product: UX303LB
>        vendor: ASUSTeK COMPUTER INC.
>        physical id: 0
>        version: 1.0
>        serial: BSN12345678901234567
>        slot: MIDDLE
>      *-firmware
>           description: BIOS
>           vendor: American Megatrends Inc.
>           physical id: 0
>           version: UX303LB.206
>           date: 08/24/2015
>           size: 64KiB
>           capacity: 6400KiB
>           capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification uefi
>      *-cache:0
>           description: L1 cache
>           physical id: d
>           slot: L1 Cache
>           size: 32KiB
>           capacity: 32KiB
>           capabilities: synchronous internal write-back data
>           configuration: level=1
>      *-cache:1
>           description: L1 cache
>           physical id: e
>           slot: L1 Cache
>           size: 32KiB
>           capacity: 32KiB
>           capabilities: synchronous internal write-back instruction
>           configuration: level=1
>      *-cache:2
>           description: L2 cache
>           physical id: f
>           slot: L2 Cache
>           size: 256KiB
>           capacity: 256KiB
>           capabilities: synchronous internal write-back unified
>           configuration: level=2
>      *-cache:3
>           description: L3 cache
>           physical id: 10
>           slot: L3 Cache
>           size: 3MiB
>           capacity: 3MiB
>           capabilities: synchronous internal write-back unified
>           configuration: level=3
>      *-cpu
>           description: CPU
>           product: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
>           vendor: Intel Corp.
>           physical id: 11
>           bus info: cpu@0
>           version: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
>           serial: NULL
>           slot: SOCKET 0
>           size: 2661MHz
>           capacity: 2700MHz
>           width: 64 bits
>           clock: 100MHz
>           capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap intel_pt xsaveopt dtherm ida arat pln pts flush_l1d cpufreq
>           configuration: cores=2 enabledcores=2 threads=4
>      *-memory
>           description: System Memory
>           physical id: 13
>           slot: System board or motherboard
>           size: 8GiB
>         *-bank:0
>              description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
>              product: HMT451S6BFR8A-PB
>              vendor: Hynix/Hyundai
>              physical id: 0
>              serial: 00000000
>              slot: ChannelA-DIMM0
>              size: 4GiB
>              width: 64 bits
>              clock: 1600MHz (0.6ns)
>         *-bank:1
>              description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
>              product: HMT451S6BFR8A-PB
>              vendor: Hynix/Hyundai
>              physical id: 1
>              serial: 275C32EA
>              slot: ChannelB-DIMM0
>              size: 4GiB
>              width: 64 bits
>              clock: 1600MHz (0.6ns)
>      *-pci
>           description: Host bridge
>           product: Broadwell-U Host Bridge -OPI
>           vendor: Intel Corporation
>           physical id: 100
>           bus info: pci@0000:00:00.0
>           version: 09
>           width: 32 bits
>           clock: 33MHz
>           configuration: driver=bdw_uncore
>           resources: irq:0
>         *-display
>              description: VGA compatible controller
>              product: HD Graphics 5500
>              vendor: Intel Corporation
>              physical id: 2
>              bus info: pci@0000:00:02.0
>              version: 09
>              width: 64 bits
>              clock: 33MHz
>              capabilities: msi pm vga_controller bus_master cap_list rom
>              configuration: driver=i915 latency=0
>              resources: irq:50 memory:a1000000-a1ffffff memory:b0000000-bfffffff ioport:4000(size=64) memory:c0000-dffff
>         *-multimedia:0
>              description: Audio device
>              product: Broadwell-U Audio Controller
>              vendor: Intel Corporation
>              physical id: 3
>              bus info: pci@0000:00:03.0
>              version: 09
>              width: 64 bits
>              clock: 33MHz
>              capabilities: pm msi pciexpress bus_master cap_list
>              configuration: driver=snd_hda_intel latency=0
>              resources: irq:51 memory:a321c000-a321ffff
>         *-generic:0
>              description: Signal processing controller
>              product: Broadwell-U Processor Thermal Subsystem
>              vendor: Intel Corporation
>              physical id: 4
>              bus info: pci@0000:00:04.0
>              version: 09
>              width: 64 bits
>              clock: 33MHz
>              capabilities: msi pm bus_master cap_list
>              configuration: driver=proc_thermal latency=0
>              resources: irq:16 memory:a3210000-a3217fff
>         *-usb
>              description: USB controller
>              product: Wildcat Point-LP USB xHCI Controller
>              vendor: Intel Corporation
>              physical id: 14
>              bus info: pci@0000:00:14.0
>              version: 03
>              width: 64 bits
>              clock: 33MHz
>              capabilities: pm msi xhci bus_master cap_list
>              configuration: driver=xhci_hcd latency=0
>              resources: irq:45 memory:a3200000-a320ffff
>            *-usbhost:0
>                 product: xHCI Host Controller
>                 vendor: Linux 5.0.9-2-MANJARO xhci-hcd
>                 physical id: 0
>                 bus info: usb@1
>                 logical name: usb1
>                 version: 5.00
>                 capabilities: usb-2.00
>                 configuration: driver=hub slots=11 speed=480Mbit/s
>               *-usb:0
>                    description: Mass storage device
>                    product: Cruzer Fit
>                    vendor: SanDisk
>                    physical id: 2
>                    bus info: usb@1:2
>                    version: 1.00
>                    serial: 4C531001341010112100
>                    capabilities: usb-2.10 scsi
>                    configuration: driver=usb-storage maxpower=224mA speed=480Mbit/s
>               *-usb:1
>                    description: Video
>                    product: USB2.0 UVC HD Webcam
>                    vendor: SuYin
>                    physical id: 5
>                    bus info: usb@1:5
>                    version: 1.01
>                    serial: HF1019-T838-SN03-Rev0101
>                    capabilities: usb-2.00
>                    configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
>               *-usb:2
>                    description: Bluetooth wireless interface
>                    vendor: Intel Corp.
>                    physical id: 8
>                    bus info: usb@1:8
>                    version: 0.01
>                    capabilities: bluetooth usb-2.01
>                    configuration: driver=btusb maxpower=100mA speed=12Mbit/s
>            *-usbhost:1
>                 product: xHCI Host Controller
>                 vendor: Linux 5.0.9-2-MANJARO xhci-hcd
>                 physical id: 1
>                 bus info: usb@2
>                 logical name: usb2
>                 version: 5.00
>                 capabilities: usb-3.00
>                 configuration: driver=hub slots=4 speed=5000Mbit/s
>         *-communication
>              description: Communication controller
>              product: Wildcat Point-LP MEI Controller #1
>              vendor: Intel Corporation
>              physical id: 16
>              bus info: pci@0000:00:16.0
>              version: 03
>              width: 64 bits
>              clock: 33MHz
>              capabilities: pm msi bus_master cap_list
>              configuration: driver=mei_me latency=0
>              resources: irq:47 memory:a3224000-a322401f
>         *-multimedia:1
>              description: Audio device
>              product: Wildcat Point-LP High Definition Audio Controller
>              vendor: Intel Corporation
>              physical id: 1b
>              bus info: pci@0000:00:1b.0
>              version: 03
>              width: 64 bits
>              clock: 33MHz
>              capabilities: pm msi bus_master cap_list
>              configuration: driver=snd_hda_intel latency=32
>              resources: irq:48 memory:a3218000-a321bfff
>         *-pci:0
>              description: PCI bridge
>              product: Wildcat Point-LP PCI Express Root Port #1
>              vendor: Intel Corporation
>              physical id: 1c
>              bus info: pci@0000:00:1c.0
>              version: e3
>              width: 32 bits
>              clock: 33MHz
>              capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
>              configuration: driver=pcieport
>              resources: irq:42
>         *-pci:1
>              description: PCI bridge
>              product: Wildcat Point-LP PCI Express Root Port #4
>              vendor: Intel Corporation
>              physical id: 1c.3
>              bus info: pci@0000:00:1c.3
>              version: e3
>              width: 32 bits
>              clock: 33MHz
>              capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
>              configuration: driver=pcieport
>              resources: irq:43 memory:a3100000-a31fffff
>            *-network
>                 description: Wireless interface
>                 product: Wireless 7265
>                 vendor: Intel Corporation
>                 physical id: 0
>                 bus info: pci@0000:02:00.0
>                 logical name: wlp2s0
>                 version: 59
>                 serial: 60:57:18:f4:4d:a9
>                 width: 64 bits
>                 clock: 33MHz
>                 capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
>                 configuration: broadcast=yes driver=iwlwifi driverversion=5.0.9-2-MANJARO firmware=29.1044073957.0 ip=192.168.178.22 latency=0 link=yes multicast=yes wireless=IEEE 802.11
>                 resources: irq:49 memory:a3100000-a3101fff
>         *-pci:2
>              description: PCI bridge
>              product: Wildcat Point-LP PCI Express Root Port #5
>              vendor: Intel Corporation
>              physical id: 1c.4
>              bus info: pci@0000:00:1c.4
>              version: e3
>              width: 32 bits
>              clock: 33MHz
>              capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
>              configuration: driver=pcieport
>              resources: irq:44 ioport:3000(size=4096) memory:a2000000-a30fffff ioport:c0000000(size=301989888)
>            *-generic UNCLAIMED
>                 description: Unassigned class
>                 product: Illegal Vendor ID
>                 vendor: Illegal Vendor ID
>                 physical id: 0
>                 bus info: pci@0000:03:00.0
>                 version: ff
>                 width: 32 bits
>                 clock: 66MHz
>                 capabilities: bus_master vga_palette cap_list
>                 configuration: latency=255 maxlatency=255 mingnt=255
>                 resources: memory:a2000000-a2ffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:a3000000-a307ffff
>         *-isa
>              description: ISA bridge
>              product: Wildcat Point-LP LPC Controller
>              vendor: Intel Corporation
>              physical id: 1f
>              bus info: pci@0000:00:1f.0
>              version: 03
>              width: 32 bits
>              clock: 33MHz
>              capabilities: isa bus_master cap_list
>              configuration: driver=lpc_ich latency=0
>              resources: irq:0
>         *-storage
>              description: SATA controller
>              product: Wildcat Point-LP SATA Controller [AHCI Mode]
>              vendor: Intel Corporation
>              physical id: 1f.2
>              bus info: pci@0000:00:1f.2
>              version: 03
>              width: 32 bits
>              clock: 66MHz
>              capabilities: storage msi pm ahci_1.0 bus_master cap_list
>              configuration: driver=ahci latency=0
>              resources: irq:46 ioport:40b0(size=8) ioport:40a0(size=4) ioport:4090(size=8) ioport:4080(size=4) ioport:4060(size=32) memory:a3222000-a32227ff
>         *-serial
>              description: SMBus
>              product: Wildcat Point-LP SMBus Controller
>              vendor: Intel Corporation
>              physical id: 1f.3
>              bus info: pci@0000:00:1f.3
>              version: 03
>              width: 64 bits
>              clock: 33MHz
>              configuration: driver=i801_smbus latency=0
>              resources: irq:22 memory:a3221000-a32210ff ioport:4040(size=32)
>         *-generic:1
>              description: Signal processing controller
>              product: Wildcat Point-LP Thermal Management Controller
>              vendor: Intel Corporation
>              physical id: 1f.6
>              bus info: pci@0000:00:1f.6
>              version: 03
>              width: 64 bits
>              clock: 33MHz
>              capabilities: pm msi bus_master cap_list
>              configuration: driver=intel_pch_thermal latency=0
>              resources: irq:22 memory:a3220000-a3220fff
>   *-scsi
>        physical id: 1
>        bus info: scsi@4
>        logical name: scsi4
>        capabilities: scsi-host
>        configuration: driver=usb-storage
> 

cant solve my mystery

@michelesr
Copy link
Contributor

michelesr commented May 9, 2019

I think it might be this:

# Bus ID of the PCI express controller
CONTROLLER_BUS_ID=0000:00:1c.4

# Bus ID of the graphic card
DEVICE_BUS_ID=0000:03:00.0

@luukatyuo
Copy link
Author

That's what lspci -vt gave me at first - didnt work. Will try again tomorrow. Thanks for the help!

@michelesr
Copy link
Contributor

No problem. It would be cool in the future to find a deterministic way to discover those bus ids so that they don't need to be set manually, but for now it's like this. When you try again please post the output of nvidia-xrun, so that we can try to debug it.

@luukatyuo
Copy link
Author

luukatyuo commented May 9, 2019

damn i should sleep ^^
tested again, errors gone... only thing thats strange now is, nvidia-xrun openbox or nvidia-xrun openbox-session works but pure "nvidia-xrun" wont start openbox, but ~/.nvidia-xinitrc exists with "openbox" (also tested openbox-session).

no error msg in tty, no different lines in tty compared to running nvidia-xrun openbox

Shall i reopen a new issue on that one or is this connected? dunno

@michelesr
Copy link
Contributor

michelesr commented May 9, 2019

I think #102 changed the path for the configuration file, now it's $XDG_CONFIG_HOME/X11/nvidia-xinitrc or ~/.config/nvidia-xinitrc if the envvar is not defined in your system (in most cases they are the same thing anyway).

You can either move it or create a symlink:

mkdir -p ~/.config/X11
ln -s ~/.nvidia-xinitrc ~/.config/X11/nvidia-xinitrc

@luukatyuo
Copy link
Author

thanks so much!!! u r awesome!

@Witko
Copy link
Owner

Witko commented May 14, 2019

Hi @luukatyuo,
sorry for the problems, indeed i've merged few branches including the pm and the config location change. Glad you made it work:)

@michelesr Thanks a lot for helping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants