Git Product home page Git Product logo

clevo-indicator's People

Contributors

dogelabshokyu avatar jiping-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clevo-indicator's Issues

No GPU temperature and just one fan working

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

Indicator image invisble in i3bar

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.

Update dependencies for Ubuntu 22.04

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.

Works on Wayland but not Xorg

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.

Keyboard issue

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?

Possibility for fan speed under 60%??

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.

big security risk

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.

Git access error :(

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$

for’ loop initial declarations are only allowed in C99 mode for (int i = 0; error

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 !

not launch

omer@OBG:~$ clevo-indicator Simple fan control utility for Clevo laptops unable to control EC: Operation not permitted omer@OBG:~$

changing auto fan-on threshold

Currently my fan comes on too easily (at around 50 degrees) on AUTO mode.

Is there a way to change these speed thresholds?

Remove spinning icon

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.

Dependencies missing on Ubuntu 15.10 amd64

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

Fatal error: can't create obj/clevo-indicator.o: No such file or directory

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.

Match system temperature

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.

Introduce configuration file

I think it would be good to make the following configurable via a configuration file that would not require a recompile of the project:

  1. min/max fan speeds
  2. fan speed profile (duty steps vs temperature)
  3. menu entries
  4. format string for the indicator icon

High system load

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?

worker on parent dead

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

Indicator only controls one fan

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?

no support for Debian Bullyseye

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?

Couldn't install

Ekran görüntüsü 2020-08-15 11-22-44
when i command make install it gives this error. i'm new on linux and i don't now what to do. i'll be very happy if someone helps me.

(clevo-indicator:21544): Gdk-CRITICAL

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

Multiple running instances message

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.

Wrong fan duty to write: 30

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.

how can I install this on debian9

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.