Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using setpci to set the clockspeed of my Intel 945GME like so:

setpci -s 00:02.0 f0.b=00,60
setpci -s 00:02.0 f0.b=33,05

However I'm stuck on how to read the information back, I tried:

setpci -s 00:02.0 f0.b

as the setpci man page says to simply omit the value to read the register, but it returns '03' regardless of what I've set. How can I read the value of the register so that a small script might check the current value?

share|improve this question
add comment

1 Answer

I solved this with a thorough rtfm-ing of man setpci:

...you should append a width specifier .B, .W, or .L to choose how many bytes (1, 2, or 4) should be transferred.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.