[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New question in = dpkg-reconfigure xserver-xfree86



Gruessle wrote:

I had this done before but wasn't ask this question
Might have something to do with the new kernel.

Here it goes:
BusID of the Video Card in the format:
PCI:nn:nn:nn

where each nn is a decimal number.

I ran the lspci and got the hexadecimal numbers:

01:05.0 AGP
Now what is that in decimal?

If you had X running, you could run Kcalc which has a converter. But the first 16 numbers are easy to convert between binary/hex/decimal. Here's the chart:

binary   hex   decimal
0000      0      0
0001      1      1
0010      2      2
0011      3      3
0100      4      4
0101      5      5
0110      6      6
0111      7      7
1000      8      8
1001      9      9
1010      A    10
1011      B    11
1100      C    12
1101      D    13
1110      E    14
1111      F    15


Think of the binary columns as wheels on a car's mechanical odometer with just the two digits 0 and 1 on them instead of 0 - 9. Each mile/kilometer you drive turns the right-most wheel one turn, which after a full revolution then turns the wheel to the left of it, and so on.

You can then think of the hex numbers in the same way, only instead of having wheels with just two digits or ten digits, it has 16 digits, 0 - F. So the hex odometer, on the sixteenth mile/kilometer, would read 10, and the binary odometer would read 10000.

So as you can see, 01 in hex is 01 in binary is 01 in decimal. So that's the first triplet in your number. The next triplet is hex 05 (0x05), which in decimal is also 05 (or more normally, just 5). (In binary it's 0101, or just 101). And 0 = 0 = 0.

So, your XF86Config-4 version would be:
   Bus ID  "PCI:0:5:0"
(or "PCI:00:05:00").

--
Kent





Reply to: