-
Notifications
You must be signed in to change notification settings - Fork 45
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
MSI GF65 Thin 10UE #7
Comments
I got a bit adventurous and tried the cooler_boost. It works! The fan started humming. $ echo "on" | sudo tee /sys/devices/platform/msi-ec/cooler_boost
on
$ echo "off" | sudo tee /sys/devices/platform/msi-ec/cooler_boost
off |
I would like to explore some of unknown values here:
Has your laptop these buttons? If so, what values are you getting for them (on/off for webcam, switch win/fn key)? Also, a |
There is a toggle for webcame on Fn+F5 and in Dragon Center. It disables the webcam. There is a Windows key and Fn key. There is some sort of option in Dragon Center for them. I never use it, but I assume it does what all MSI laptop does.
Dmidecode attachment
I am testing many different OS today, and this was generated from a Ubuntu 22.04 LTS USB live boot, if that matters at all. My previous comment was on a properly installed Ubuntu 22.04 LTS. |
Ok, I need know the decimal value given when:
For example, in your first post, /sys/devices/platform/msi-ec/webcam returns 9 when is enabled, right? |
Camera off: $ cat /sys/devices/platform/msi-ec/webcam
unknown (9) Camera on: $ cat /sys/devices/platform/msi-ec/webcam
unknown (75) I am actually not sure what the win/fn key switch is doing. It seems right now all the keys on my keyboard is doing what it is labelled to do, so whatever the "default" is. The bottom row of my key board is: $ cat /sys/devices/platform/msi-ec/win_key
unknown (40)
$ cat /sys/devices/platform/msi-ec/fn_key
unknown (40) Is there anyway I can toggle this function in Linux? For the camera I could do Fn+F6. |
Change the constants for the webcam to:
Compile it and try it:
Win and Fn key should be swappable from Dragon Center/Bios settings. But if you don't find this option, maybe it won't be available for laptop model. |
Normal default behavior, Windows on the left, Fn on the right:
In Windows Dragon Center, swap Win and FN keys (Fn on left side of spacebar, Win on right side), reboot into Ubuntu.
Then reboot into Windows, keeping the swap, disable Win key, which I am quite sure took effect in Windows (couldn't open the start menu). Then reboot into Ubuntu, the Win key still works in Ubuntu,
Finally, reboot into Windows, removing the swap (back to original), disable Win key, which again took effect in Windows. Then reboot into Ubuntu, the Win key still works in Ubuntu:
So it looks like decimal 40 is default behavior. Decimal 56 for both means swap. No way to disable Win key in Linux (why does anyone want this anyways...)? I didn't find anything relevant in BIOS. |
I did: #define MSI_EC_WEBCAM_ON 0x09 // 0x4a
#define MSI_EC_WEBCAM_OFF 0x4b // 0x48 then Webcam disabled:
Webcam enabled:
I changed it to #define MSI_EC_WEBCAM_ON 0x0a // 0x4a
#define MSI_EC_WEBCAM_OFF 0x08 // 0x48 and then During |
The module seems the previous one. Uninstall it and clear the staging folder before repeating the steps. |
OK I ran #define MSI_EC_WEBCAM_ON 0x0a // 0x4a
#define MSI_EC_WEBCAM_OFF 0x08 // 0x48 $ cat /sys/devices/platform/msi-ec/webcam
off
$ cat /sys/devices/platform/msi-ec/webcam
on I wonder maybe only the last byte matters though. Do you think it is just a coincidence that my |
In both cases, the address is correct, but the value is slightly different. It seems that the same address is shared and only a bit of the value is needed.
I must refactor the code to support bitwise operations because I have already seen the same problem with other laptop models. Thanks for your help! Any other wrong value pending to review? |
Yes bitwise (instead of byte) was what I was thinking of. Again I have no idea how these kernel/drivers work, but that was my thought. I think I am happy with the web cam value. It sounds like maybe my model has a different set of fn and win key options available in Dragon Center, but honestly selfishly speaking I don't really care about that option. If you wish to clean the repo up a bit I think this issue can be closed. Again thank you for your generous contribution. Sorry for the delay in replying. |
Hello everyone, I have same model of laptop with Fedora on it. Try to do same thing and getting this error. I just starting to use linux, try to disable Secure Boot and still not worked. Tried to sign module msi-ec.ko, but still dont work. |
Hi I just want to open this thank you for all of your efforts, including the summary at: YoyPa/isw#263 (comment)
I am not familiar with Linux kernels. I
make install
ed your repo and it was surprisingly effortless in just a few seconds. Model: GF65 Thin 10UEHere are my results:
I have not dare writing to them yet. Again I have a bit of experience with Linux, but to double check: If I want to set a setting do I just "write" to the file (
echo > ...
or using a Python script), right?Anything else I can help?
The text was updated successfully, but these errors were encountered: