Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yoga 900 #1

Open
mrquincle opened this issue Apr 19, 2016 · 5 comments
Open

Yoga 900 #1

mrquincle opened this issue Apr 19, 2016 · 5 comments

Comments

@mrquincle
Copy link

Hi!

I'm not gonna ask you to support the yoga 900, although that would be great. :)

I'm curious how you discovered that it is this embedded controller from http://wiki.laptop.org/go/Ec_specification. How would I know if it's the same controller in my yoga 900?

Apr 19 16:58:50 V Lenovo yoga fan control[20410]: Open ports
Apr 19 16:59:00 V Lenovo yoga fan control[20421]: IOperm error. Can't get access to ports 0x62 to 0x66

Cheers,

Anne

@senior-sigan
Copy link
Owner

Hello @mrquincle.
I can't remember all details, it was two years ago. But, as we usually do, I was searching for info about fan controlling and faced with a good project nbfc. I guess that nbfc's author has access to specifications, but I haven't. When I'd started this project, nbfc was closed source and working only on windows, but I extracted port numbers from xml configs.
About your error. Did you run it with super user privileges? Because you should have access to this ports, but you may not know of register numbers to set.

@mrquincle
Copy link
Author

mrquincle commented May 4, 2016

Shoot! I didn't realize that I also had run it without sudo. Apparently, I did both in succession.

The fan however doesn't seem to be controlled. Printing the buffer:

May  4 11:01:39 V Lenovo yoga fan control[4647]: Buffer: 0 1 0 0 0 0 56 83 53 66 49 48 72 53 53 50
May  4 11:01:40 V Lenovo yoga fan control[4647]: Buffer: 50 52 76 49 78 74 53 66 0 90 49 65 89 0 0 0
May  4 11:01:41 V Lenovo yoga fan control[4647]: Buffer: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
May  4 11:01:41 V Lenovo yoga fan control[4647]: Buffer: 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0
May  4 11:01:42 V Lenovo yoga fan control[4647]: Buffer: 4 5 0 145 2 0 0 0 0 32 8 0 0 0 2 3
May  4 11:01:43 V Lenovo yoga fan control[4647]: Buffer: 35 35 35 35 35 36 0 35 0 0 0 0 0 0 0 0
May  4 11:01:43 V Lenovo yoga fan control[4647]: Buffer: 19 17 199 11 152 30 20 253 62 0 230 16 22 27 252 18
May  4 11:01:44 V Lenovo yoga fan control[4647]: Buffer: 252 33 192 0 0 0 200 25 176 29 155 1 255 255 57 253
May  4 11:01:45 V Lenovo yoga fan control[4647]: Buffer: 76 71 67 0 49 49 0 0 76 49 52 76 52 80 50 52
May  4 11:01:45 V Lenovo yoga fan control[4647]: Buffer: 76 105 0 0 0 0 0 0 48 224 0 0 94 5 0 0
May  4 11:01:46 V Lenovo yoga fan control[4647]: Buffer: 106 71 0 0 27 0 0 0 1 0 19 4 62 0 62 0
May  4 11:01:47 V Lenovo yoga fan control[4647]: Buffer: 240 4 16 0 36 0 0 0 0 0 255 255 0 0 0 0
May  4 11:01:47 V Lenovo yoga fan control[4647]: Buffer: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
May  4 11:01:48 V Lenovo yoga fan control[4647]: Buffer: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
May  4 11:01:49 V Lenovo yoga fan control[4647]: Buffer: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0
May  4 11:01:49 V Lenovo yoga fan control[4647]: Buffer: 24 0 255 255 0 0 0 0 0 0 0 0 0 0 3

It doesn't make a difference if I write 0xff or 0x01 to the fans.

You see the 255 255 pair at 0xf2, 0xf3 on the last line. The printout for them being 1 and 1 I'll spare you, but I can read them back after writing them (they stick).

@alexiskattan
Copy link

I'm trying to do the same thing. Were you able to control the fan on the Yoga 900? with Fan Control?

@spgarbet
Copy link

If I get some time I'm motivated to solve this as I just got a 940 with an SSD. It doesn't spin the fans up fast enough under file I/O load and does a thermal shutdown. This looks like a great solution if it can be made to work on the 900's.

@senior-sigan
Copy link
Owner

@spgarbet Hello, It would be great. Please, make a pull request once you got it and I merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants