Monday, March 13, 2017

My computer is haunted

After my computer sleeps, in certain GTK+ 3 applications, specific colors will not appear:

(Note the blank spaces)

After causing enough unique colors to be drawn, the problem goes away.

Some googling around suggests that this may be related to the i915 driver for Intel graphics cards, at which point it became apparent that this was the kind of problem that will literally never be fixed.

It was suggested either to add the following incantation to /etc/X11/xorg.conf.d/50-device.conf:

Section "Device"
  Identifier "Default Device"
  Driver "intel"
  Option "AccelMethod" "UXA"

or the following in /etc/environment:


neither of which, of course, made any difference.

Or, instead of waiting for the impossible to happen I can just run this bit of code:

for i in $(seq 0 255) ; do
    bash -c 'echo -n $'"'"'\033[38;5;'"$i"'mhi\033[0m'" '"

and then everything is good.

1 comment:

  1. Primarily, metallic stamping is a cheap selection for production runs with mid-to-high volumes. Complex products with some customizations are attainable with precision stamping. While the level of management isn't as intensive as with Ceramic Teapots fabrication via CNC cutters. Custom sheet metallic fabrication is helpful to your production and manufacturing operations. Although you could consider it costlier than stock products, customization is important if your focus is on top quality, longevity, and adaptableness. The course of efficiency and effectiveness will enhance with an optimized sheet metallic design.