Return to site

Ubuntu Thinkpad X1 Fan Regulator

broken image

Ubuntu Thinkpad X1 Fan Regulator

h>#include<fcntl h>#include<errno h>char levels[] = {0x03,0x43,0x83};staticvoidusage (char **argv){g_print ('%s [level]n', argv[0]);g_print ('Where level is between 1 and 3n');}intmain (int argc, char **argv){int fd;int level;if (argc < 2) {usage (argv);return1; } level = atoi(argv[1]);if (level < 0 || level > 3) {usage (argv);return1; } fd = open ('/sys/kernel/debug/ec/ec0/io', O_RDWR);if (fd < 0) {g_print ('open: %sn', g_strerror (errno));return1; }if (lseek (fd, 0xd, SEEK_CUR) < 0) {g_print ('seek: %sn', g_strerror (errno));return1; }if (write (fd, &levels[level], 1) < 0) {g_print ('write: %sn', g_strerror (errno));return1; }return0;} commented Dec 29, 2013.. I don't own a ThinkPad laptop for years now, and I don't plan to continue development on this. https://www.kingstonnh.org/sites/g/files/vyhlif741/f/file/file/exemption_information.pdf

c /* gcc -o tmp `pkg-config --libs --cflags glib-2 0` tmp c * * # modprobe ec_sys * * # watch -n 0. http://www.dosio.net/doc/sites/default/files/webform/----112--.pdf

G | * * # /tmp 0 * # /tmp 1 * # /tmp 2 **/#include&lt;glib h&gt;#include&lt;sys/stat.. I have still problem with fan on my ThinkPad T440s I spent lot of time with googling and trying diferent configurations but my problem is still persit.. Apr 19, 2016 ThinkPad Fan Control Unfortunately this project is NOT in the active development.. Feel free to check forks fine people made or issue a Hack to control the keyboard backlight level on a Thinkpad Lenovo X1 Carbon Touch tmp.. G | * 00000000 a7 05 a0 e2 00 86 05 00 00 00 47 00 00 43 00 10 | G C | * 00000000 a7 05 a0 e2 00 86 05 00 00 00 47 00 00 83 00 10 |. Click

1 hexdump -C /sys/kernel/debug/ec/ec0/io * * 00000000 a7 05 a0 e2 00 86 05 00 00 00 47 00 00 03 00 10 |.. My assumption was wrong, unfortunately cea114251b 4

5