skylandtw / clevo-indicator Goto Github PK
View Code? Open in Web Editor NEWUbuntu fan control indicator for Clevo laptops
License: The Unlicense
Ubuntu fan control indicator for Clevo laptops
License: The Unlicense
i installed apt-get install libappindicator3-dev libgtk-3-dev
but error:
abujj@abujj-W230ST /media/abujj/get/dev/clevo-indicator $ make install
compiling src/clevo-indicator.c
src/clevo-indicator.c: In function ‘main_ui_worker’:
src/clevo-indicator.c:354:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < menuitem_count; i++)
^
src/clevo-indicator.c:354:2: note: use option -std=c99 or -std=gnu99 to compile your code
src/clevo-indicator.c: In function ‘ui_toggle_menuitems’:
src/clevo-indicator.c:461:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < menuitem_count; i++)
^
make: *** [obj/clevo-indicator.o] Error 1
abujj@abujj-W230ST /media/abujj/get/dev/clevo-indicator $
os: linux mint 17.3 xfce
how to solve this error ?
thank you !
ok so i decided to install mint 19 tara all was fine i think up until i installed the last of the updates i think pertaining to the gui enhancements/revisions of some sort
and then i got this error and cannot now seem to control the fan from the gui which does not wish to appear at all now just the readout in the command line
:~$ clevo-indicator
Simple fan control utility for Clevo laptops
Indicator...
(clevo-indicator:21544): Gdk-CRITICAL **: 16:20:05.267: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
06/22 16:20:05 CPU=66°C, GPU=0°C, auto fan duty to 80%
06/22 16:21:32 CPU=75°C, GPU=0°C, auto fan duty to 90%
06/22 16:21:37 CPU=64°C, GPU=0°C, auto fan duty to 80%
not sure how much of this info is required if any, if more info is needed use the email provided
Kernel: 4.15.0-23-generic x86_64 bits: 64 Desktop: Xfce 4.12.3
Distro: Linux Mint 19 Tara
Machine: Device: laptop System: Novatech product: P65_67HSHP serial: N/A
Mobo: Novatech model: P65_67HSHP serial: N/A
UEFI [Legacy]: American Megatrends v: 1.05.05 02/23/2017 date: 02/23/2017
CPU: Quad core Intel Core i7-7820HK (-MT-MCP-) cache: 8192 KB
clock speeds: max: 3900 MHz 1: 2430 MHz 2: 2466 MHz 3: 2495 MHz 4: 2486 MHz 5: 2496 MHz 6: 2495 MHz
7: 2460 MHz 8: 2495 MHz
Graphics: Card-1: Intel Device 591b
Card-2: NVIDIA GP104M [GeForce GTX 1070 Mobile]
Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting,nouveau (unloaded: fbdev,vesa)
Resolution: [email protected]
OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) version: 4.5 Mesa 18.0.0-rc5
Sensors: System Temperatures: cpu: 52.0C mobo: N/A
Fan Speeds (in rpm): cpu: N/A
hope this helps somehow
It still works from CLI, but no Tray icon. I installed gnome shell extension for Tray, and got Slack and Nextcloud incons there, but not this one
Hi,
i try install it but I have problem with #9 and after them i try run it ($ sudo bin/clevo-indicator) but returns:
worker on parent death
worker quit
On my P7xxDM2(-G)
(according to dmidecode -t baseboard
) there are two fans.
I am only able to control the one on the left.
Is there another hardware register than can be manipulated to control the other fan? How did you manage to find the address?
Changing rpm to some percentage works fine. But when switch it back to AUTO, it does not change at all. It remains at the most recent rate.
when I run make on debian9, the error is "modprobe:FATAL:Module ec_sys not found in directory". How can this program adjust to install on debian. As far as I see, debian and ubuntu have much in common.
When trying to run the get command (copy/paste from website):
vincen@portable-ubuntu:~/Bureau$ git clone [email protected]:AqD/clevo-indicator.git
Clonage dans 'clevo-indicator'...
Warning: Permanently added the RSA host key for IP address '192.30.252.121' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
vincen@portable-ubuntu:~/Bureau$
Hi,
Does anyone know how to remove the spinning icon? I rather just have the temperature.
I find it a bit annoying seen the spinning icon all the time.
Any debs?
Hi, first I though I found the right tool for my Clevo PC50 laptop, but then the awake:
compiling src/clevo-indicator.c
Package appindicator3-0.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `appindicator3-0.1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'appindicator3-0.1', required by 'virtual:world', not found
src/clevo-indicator.c:50:10: fatal error: libappindicator/app-indicator.h: No such file or directory
50 | #include <libappindicator/app-indicator.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:41: obj/clevo-indicator.o] Error 1
I've tried to install your recommended lib: libappindicator3-dev
but Debian Bullyseye didn't know that lib and installed another one which will not work with your prog:
Note, selecting 'libayatana-appindicator3-dev' instead of 'libappindicator3-dev'
libayatana-appindicator3-dev is already the newest version (0.5.91-1).
Any chance to get it running on Debian 11?
This doesn't belong into userspace, never ever. You don't want to run a suid binary in userspace talking with the EC, the proper way to implement this is as a kernel module and user the proper subdev classes and hwmon.
You really should think about what you do here, because that's an unneccessary security risk with no benefit. This belongs into the kernel as a module, period, no discussions about that, doing anything else is... stupid. The phrasing seems harsh, but it is the way it is.
Hi. First of all, thank you for this small program, it is really useful for my Clevo N150RD, in which the fan can be a little noisy if even under no heavy load.
Under your wiki you state we can set the fan speed to 40%. I reviewed your code and you have a condition:
if (duty_percentage < 60 || duty_percentage > 100)
{
printf("Wrong fan duty to write: %d\n", duty_percentage);
return EXIT_FAILURE;
}
My question is if we can indeed use 40% and 50% safely. Is there a reason you declared 60% as minimum in your code? If it is safe I can change the code to suit my needs. Thank you.
Thanks for creating this tool, I've been looking everywhere for my Clevo W55xEU to control fan speed.
When trying to run 'make install' it gave me the following error:
Fatal error: can't create obj/clevo-indicator.o: No such file or directory
All I had to do to fix was to create the 'obj' folder and then run again and it worked.
After MAKE INSTALLing and execute the program for the first time i got a "Multiple instances running' error message. I checked the output of ps and nothing clevo-indicator related is there. Even with 'sudo clevo-indicator' it didn't work.
I use Linux Mint 17.3 Rosa on a Clevo W350ST.
omer@OBG:~$ clevo-indicator Simple fan control utility for Clevo laptops unable to control EC: Operation not permitted omer@OBG:~$
Clevo W230ST - Ubuntu 16.04 - Some keys aren't detected while typing. It occurs especially when AUTO mode is enabled. More the CPU load, more the trouble. Maybe reading temps interfers with keyboard interrupts?
It is not possible to control the gpu fan, any ideas?
on my system the EC GPU temperature value is always the real GPU temperature +6
verified with nvidia and nouveau.
Normally my laptop sits around 0.00-0.10 at idle. When I use clevo-indicator ìt sits above 1.00. Any idea what my causing this?
Firstly - thanks for your fantastic work. My laptop no longer sounds like it's about to take off.
I've been using this for a while on 18.04 (Wayland). But I had to turn off Wayland because one of my displayports wasn't working and now I'm running Xorg on 18.04. Worked fine on Wayland when running from cli (indicator shows), but on Xorg, there's no indicator and only shows the info in the console.
Any ideas?
FYI - I added WaylandEnable=false in /etc/gdm3/custom.conf to disable Wayland.
Thanks.
Right now the icon only shows Celcius. Ideally it should match the system's format (Celcius vs Farenheit). Or add the option to switch within the indicator.
Using i3, the indicator is invisble. I'm not sure why, but I'll probably look into it since I'm guessing no one here is running i3.
Hello,
as title clevo-indicator can't read my gpu temperature and just one of the two fans i have is working on my Clevo P640RE.
Here my io's,
000000 00 00 00 c1 5d 63 64 2e 34 00 00 00 00 00 00 00 000010 05 00 00 00 00 00 e4 0f 00 00 58 0f 00 00 00 00 000020 00 00 5c 2b 00 00 02 00 00 00 9f 09 00 00 3e 0b 000030 00 00 aa 2f 00 00 00 00 4a 00 96 01 00 00 00 00 000040 00 00 00 00 00 00 00 00 00 00 50 36 34 30 52 45 000050 00 00 53 4d 50 2d 43 4f 53 34 78 0b 00 00 4c 49 000060 4f 4e 00 00 00 00 18 0c 02 00 00 00 00 00 00 00 000070 00 00 00 00 00 00 00 00 30 0a 01 a5 00 1b 00 00 000080 c2 01 00 00 00 00 01 00 00 00 00 00 00 00 00 00 000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * 0000c0 00 00 00 00 00 00 00 00 02 03 3d 00 c9 00 99 7f 0000d0 03 10 04 a7 00 00 00 0f 63 80 05 09 00 07 87 00 0000e0 00 00 90 00 01 80 00 00 00 00 00 00 00 00 00 00 0000f0 68 81 c2 81 dd 00 00 00 00 40 00 04 00 00 00 00 000100
i'm trying to figure this out my c and low level programming is not my field,
Anyway good job for the indicator, still pretty usefull to me.
Thak you
Currently my fan comes on too easily (at around 50 degrees) on AUTO mode.
Is there a way to change these speed thresholds?
Ubuntu 22.04 no longer uses libappindicator3-dev. It has been replaced with libayatana-appindicator-dev, and removing it will remove other Ubuntu desktop dependencies.
Hi,
make install fails with the following:
make install
compiling src/clevo-indicator.c
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gtk+-3.0', required by 'appindicator3-0.1', not found
src/clevo-indicator.c:48:43: fatal error: libappindicator/app-indicator.h: No such file or directory
compilation terminated.
Makefile:39: recipe for target 'obj/clevo-indicator.o' failed
make: *** [obj/clevo-indicator.o] Error 1
it is required to install
sudo apt-get install libgtk-3-dev
first, maybe add that to the readme. great tool!
regards
It would be good to have a list of models that are known to be supported to help people find this project
I think it would be good to make the following configurable via a configuration file that would not require a recompile of the project:
With this particular Laptop http://www.clevo.com/clevo_prodetail.asp?id=927&lang=en I got the problem that somehow the auto fan duty cannot write determined values:
***r:/usr/local/bin$ ./clevo-indicator
Simple fan control utility for Clevo laptops
Indicator...
02/02 16:02:24 CPU=12°C, GPU=0°C, auto fan duty to 30%
Wrong fan duty to write: 30
clicked on fan duty: 80
clicked on fan duty: 60
clicked on fan duty auto
02/02 16:02:52 CPU=12°C, GPU=0°C, auto fan duty to 30%
Wrong fan duty to write: 30
Could I somehow use or implement some workaround, or is a fix to the software needed? Help much appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.