Skip to content

Instantly share code, notes, and snippets.

@dirtycold
dirtycold / i915_driver_fix.md
Created November 4, 2024 03:56
Intel i7-8650U failure on openSUSE Tumbleweed

Symptoms

  • Freshly installed system hangs/freezes randomly, after login. The time span before the failure can be a few seconds or up to a few minutes.
  • Keyboard not working.
  • No kernel logs.
  • Running on Windows has no issue.

System

Dell latitude 7390 with i7-8650U / Intel UHD graphics 620.

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <termios.h>
#include <stdio.h>
#include <fcntl.h>
// Read more
// https://forums.raspberrypi.com/viewtopic.php?t=142867
// https://www.kernel.org/doc/Documentation/input/input-programming.txt
@dirtycold
dirtycold / test_heater.cpp
Last active January 23, 2017 02:49
test_heater with thread
#include <iostream>
#include <chrono>
#include <thread>
#include <vector>
using namespace std;
bool timeout = false;
int main(int argc, char *argv[])