Skip to content

Instantly share code, notes, and snippets.

@RichardBarrell
Created August 10, 2014 14:51
Show Gist options
  • Select an option

  • Save RichardBarrell/a33a5dcaa022ba784cf7 to your computer and use it in GitHub Desktop.

Select an option

Save RichardBarrell/a33a5dcaa022ba784cf7 to your computer and use it in GitHub Desktop.
Watching the PCI registers in /sys/ while switching my 3d card on and off ๐Ÿ˜ธ
RichardB@narcissus ~$ od -t x1 /sys/bus/pci/devices/0000:01:00.0/config
0000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
0000100
RichardB@narcissus ~$ optirun glxgears >/dev/null &
[1] 3758
RichardB@narcissus ~$ sleep 1
RichardB@narcissus ~$ od -t x1 /sys/bus/pci/devices/0000:01:00.0/config
0000000 de 10 92 13 07 00 10 00 a2 00 02 03 00 00 00 00
0000020 00 00 00 f6 0c 00 00 e0 00 00 00 00 0c 00 00 f0
0000040 00 00 00 00 01 e0 00 00 00 00 00 00 58 15 00 23
0000060 00 00 00 00 60 00 00 00 00 00 00 00 0b 01 00 00
0000100
RichardB@narcissus ~$ kill %1
[ 1067.856039] [WARN]Received Terminated signal.
RichardB@narcissus ~$ sleep 1
[1]+ Exit 143 optirun glxgears > /dev/null
RichardB@narcissus ~$ od -t x1 /sys/bus/pci/devices/0000:01:00.0/config
0000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
0000100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment