Skip to content

Commit 3f9ea41

Browse files
authored
Merge pull request #250 from dmitry-s93/prepare-new-release
Prepare new release
2 parents 8443a9a + 0d45773 commit 3f9ea41

16 files changed

Lines changed: 789 additions & 468 deletions

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ set(TS_FILES
3131
MControlCenter_en.ts
3232
MControlCenter_es.ts
3333
MControlCenter_eu.ts
34+
MControlCenter_fi_FI.ts
3435
MControlCenter_fr.ts
3536
MControlCenter_hu.ts
3637
MControlCenter_it.ts

README.md

Lines changed: 23 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -23,40 +23,49 @@ MControlCenter is a Free and Open Source GNU/Linux application that allows you t
2323
## TODO
2424

2525
- Saving multiple fan speed profiles
26+
- Automatically change performance mode on charger connect/disconnect
2627

2728
## Supported devices
2829

2930
With version 0.5.0 the app uses the msi-ec driver that comes with the linux kernel (you might need to reinstall the driver), so device support depends on whether the kernel driver supports your device or not.
3031

31-
[List of tested devices by msi-ec](https://github.com/BeardOverflow/msi-ec/blob/main/docs/supported_devices.md)
32+
[**List of tested devices by msi-ec**](https://github.com/BeardOverflow/msi-ec/discussions/277)
3233

33-
If your device is not on the list, follow the steps on the `msi-ec` github page to add support for your device.
34+
If your device is not on the list, follow the steps on the `msi-ec` github page and open an issue there to add support for your device.
3435

3536
## Installation
3637

37-
This is a Qt6 application. You need to install `libqt6widgets6` or its equivalent on your distribution (```qt6-base``` for example). **the application will fail to open without it!**
38+
### Pre-Installation
3839

39-
Check the output of ```cat /sys/devices/platform/msi-ec/shift_mode``` in your terminal, if it says ```No such file or directory``` it means that you need to install or reinstall (uninstall first then install) the [msi-ec driver](https://github.com/BeardOverflow/msi-ec?tab=readme-ov-file#installation). or the application will open **but it wont have any effect!**
40+
- Check the output of ```cat /sys/devices/platform/msi-ec/shift_mode``` in your terminal, if it says ```No such file or directory``` it means that you need to install or reinstall (uninstall first then install) the [msi-ec driver](https://github.com/BeardOverflow/msi-ec?tab=readme-ov-file#installation). or the application will open **but will have limited functionality!**
4041

41-
Also, McontrolCenter requires the `ec_sys` module with option `write_support=1` to run.
42+
- If you're not installing from the packages, You'll need to install `libqt6widgets6` or its equivalent on your distribution (```qt6-base``` for example). **the application will fail to open without it!**
4243

43-
If the `ec_sys` kernel module is not included in your distribution's kernel, you can use the `acpi_ec` kernel module.
4444

4545

46-
### Installation from the archive
46+
- to get temperature and fan curve support, you'll need to install `ec_sys`, which comes installed on most distributions, or `acpi_sys` (fedora) with `write_support=1`. the app can still work with only `msi-ec` installed.
4747

48-
1. Download `MControlCenter-x.x.x.tar.gz` from the releases page
48+
### Installation from packages
49+
50+
1. Download the correct package for your distribution from the [releases page](https://github.com/dmitry-s93/MControlCenter/releases/)
51+
2. Double click to open it in the software manager (ex. Discover or GNOME software)
52+
3. Install
53+
54+
### If your distribution is not listed, use the generic installer:
55+
56+
1. Download MControlCenter-x.x.x.tar.gz from the [releases page](https://github.com/dmitry-s93/MControlCenter/releases/)
4957
2. Unpack the archive with the program
50-
3. Open terminal in unpacked directory
58+
3. Open a terminal in the unpacked directory
5159
4. Run the script `sudo ./install`
60+
5. (Optional) `sudo ./uninstall` to uninstall
5261

53-
**Note:** if your distribution ships old versions of Qt (older than 6.8) like ubuntu/Linux mint (Qt 6.4), you might need to build from source, continue reading.
62+
**Note:** Below are the steps for compiling, usually needed if your distrobution ships old versions of Qt6
5463

5564
## Building from source
5665
After installing the main package (```qt6-base``` or ```libqt6widgets6```), you'll need to install other packages to build the app.
5766

5867
For ubuntru/Linux mint:
59-
```qt6-base-dev``` and/or ```qt6-tools-dev```
68+
```qt6-base-dev``` and/or ```qt6-tools-dev``` also ```build-essential```
6069

6170
For Arch ```qt6-tools``` And for fedora ```qt6-qttools```
6271

@@ -82,33 +91,8 @@ If things went well, you should see a compressed file,
8291
8. Check your apps, McontrolCenter should be there.
8392

8493
If the installation was successful but the app fails to run, open a terminal and type ```mcontrolcenter```, copy the output and open an issue (**IF** there isn't one already).
85-
### Installation from the repository
86-
87-
#### openSUSE Tumbleweed:
88-
89-
```sh
90-
zypper addrepo https://download.opensuse.org/repositories/home:dmitry-s/openSUSE_Tumbleweed/home:dmitry-s.repo
91-
zypper refresh
92-
zypper install mcontrolcenter
93-
```
94-
95-
#### openSUSE Leap 15.5
96-
97-
```sh
98-
zypper addrepo https://download.opensuse.org/repositories/home:dmitry-s/openSUSE_Leap_15.5/home:dmitry-s.repo
99-
zypper refresh
100-
zypper install mcontrolcenter
101-
```
102-
103-
#### openSUSE Leap 15.4:
104-
105-
```sh
106-
zypper addrepo https://download.opensuse.org/repositories/home:dmitry-s/15.4/home:dmitry-s.repo
107-
zypper refresh
108-
zypper install mcontrolcenter
109-
```
11094

111-
### Launch MControlCenter on session startup
95+
## Launch MControlCenter on session startup
11296

11397
To restore settings after a reboot, add MControlCenter to startup.
11498

@@ -122,6 +106,6 @@ You can help translate the MControlCenter app into your native language
122106

123107
1. Copy `/src/i18n/MControlCenter_en.ts` to `src/i18n/MControlCenter_xx.ts` where xx is language code into which the translation is being made.
124108
2. Open `MControlCenter_xx.ts` in text editor and change `language="en_US"` to your language code.
125-
3. Translate strings into your language directly in a text editor or use the QT Linguist app.
109+
3. Translate strings into your language directly in a text editor or use the QT Linguist app or Lokalize.
126110
4. Translate `GenericName` in app shortcut `resources/mcontrolcenter.desktop`. To do this, add the line `GenericName[xx]=translated generic name`.
127-
5. Send pull request on github.
111+
5. Open a pull request on github.

src/i18n/MControlCenter_en.ts

Lines changed: 57 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
<source>Best for Mobility</source>
4040
<translation type="unfinished"></translation>
4141
</message>
42-
<message>
43-
<source>Charge the battery to 100% all the time</source>
44-
<translation type="unfinished"></translation>
45-
</message>
4642
<message>
4743
<source>Balanced</source>
4844
<translation type="unfinished"></translation>
@@ -63,10 +59,6 @@
6359
<source>Custom</source>
6460
<translation type="unfinished"></translation>
6561
</message>
66-
<message>
67-
<source>Keyboard Backlit</source>
68-
<translation type="unfinished"></translation>
69-
</message>
7062
<message>
7163
<source>Always on</source>
7264
<translation type="unfinished"></translation>
@@ -119,10 +111,6 @@
119111
<source>Fully charged</source>
120112
<translation type="unfinished"></translation>
121113
</message>
122-
<message>
123-
<source>Fully charged (Discharging)</source>
124-
<translation type="unfinished"></translation>
125-
</message>
126114
<message>
127115
<source>rpm</source>
128116
<translation type="unfinished"></translation>
@@ -139,10 +127,6 @@
139127
<source>Super Battery</source>
140128
<translation type="unfinished"></translation>
141129
</message>
142-
<message>
143-
<source>Failed to load the ec_sys kernel module</source>
144-
<translation type="unfinished"></translation>
145-
</message>
146130
<message>
147131
<source>Apply</source>
148132
<translation type="unfinished"></translation>
@@ -199,14 +183,6 @@
199183
<source>Overview</source>
200184
<translation type="unfinished"></translation>
201185
</message>
202-
<message>
203-
<source>&amp;High Performance</source>
204-
<translation type="unfinished"></translation>
205-
</message>
206-
<message>
207-
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Maximum performance at the cost of heat and increased power consumption&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
208-
<translation type="unfinished"></translation>
209-
</message>
210186
<message>
211187
<source>The middle spot between fan noise and power usage</source>
212188
<translation type="unfinished"></translation>
@@ -239,10 +215,6 @@
239215
<source>Current fan Mode:</source>
240216
<translation type="unfinished"></translation>
241217
</message>
242-
<message>
243-
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If you mainly use your laptop with the charger plugged most of the time, it is recommended to set the charge capacity at a lower percentage (60% or 80%) to prolong your battery lifecycle.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
244-
<translation type="unfinished"></translation>
245-
</message>
246218
<message>
247219
<source>Keyboard</source>
248220
<translation type="unfinished"></translation>
@@ -256,19 +228,72 @@
256228
<translation type="unfinished"></translation>
257229
</message>
258230
<message>
259-
<source>MCC Bug tracker:</source>
231+
<source>MSI-EC GitHub:</source>
260232
<translation type="unfinished"></translation>
261233
</message>
262234
<message>
263-
<source>MSI-EC GitHub:</source>
235+
<source>This mode unlocks Advanced fan mode</source>
236+
<translation type="unfinished"></translation>
237+
</message>
238+
<message>
239+
<source>High Performance</source>
240+
<translation type="unfinished"></translation>
241+
</message>
242+
<message>
243+
<source>Maximum performance at the cost of heat and increased power consumption</source>
244+
<translation type="unfinished"></translation>
245+
</message>
246+
<message>
247+
<source>If you mainly use your laptop with the charger plugged most of the time, it is recommended to set the charge capacity at a lower percentage (60% or 80%) to prolong your battery lifecycle.</source>
248+
<translation type="unfinished"></translation>
249+
</message>
250+
<message>
251+
<source>Charge the battery when under 90%, stop at 100%</source>
252+
<translation type="unfinished"></translation>
253+
</message>
254+
<message>
255+
<source>Keyboard Backlight</source>
256+
<translation type="unfinished"></translation>
257+
</message>
258+
<message>
259+
<source>-</source>
260+
<translation type="unfinished"></translation>
261+
</message>
262+
<message>
263+
<source>MCC Bug Tracker:</source>
264+
<translation type="unfinished"></translation>
265+
</message>
266+
<message>
267+
<source>Qt version:</source>
268+
<translation type="unfinished"></translation>
269+
</message>
270+
<message>
271+
<source>MSI-EC Status:</source>
272+
<translation type="unfinished"></translation>
273+
</message>
274+
<message>
275+
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Warning&lt;/span&gt;: Writing the wrong values to the wrong addresses &lt;span style=&quot; font-weight:700;&quot;&gt;WILL BRICK YOUR DEVICE!&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Never&lt;/span&gt; write to EC memory without knowing how to do a proper &lt;span style=&quot; font-weight:700;&quot;&gt;BIOS/EC&lt;/span&gt; reset, keep in mind that a reset &lt;span style=&quot; font-weight:700;&quot;&gt;might not&lt;/span&gt; fix the device if the device got bricked/broken. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
276+
<translation type="unfinished"></translation>
277+
</message>
278+
<message>
279+
<source>The msi-ec module is not loaded/installed.
280+
Check the &lt;About&gt; page for more info.</source>
281+
<translation type="unfinished"></translation>
282+
</message>
283+
<message>
284+
<source>The ec_sys module couldn&apos;t be detected, it might be required to control the fans.</source>
285+
<translation type="unfinished"></translation>
286+
</message>
287+
<message>
288+
<source>Loaded</source>
264289
<translation type="unfinished"></translation>
265290
</message>
266291
<message>
267-
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/BeardOverflow/msi-ec&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#1ec974;&quot;&gt;https://github.com/BeardOverflow/msi-ec&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
292+
<source>Fallback: Only ec_sys is loaded</source>
268293
<translation type="unfinished"></translation>
269294
</message>
270295
<message>
271-
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Warning&lt;/span&gt;: Writing the wrong values to the wrong addresses &lt;span style=&quot; font-weight:700;&quot;&gt;WILL BRICK YOUR DEVICE!&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;Never write to EC memory without knowing how to do a proper BIOS/EC reset, keep in mind that a reset &lt;span style=&quot; font-weight:700;&quot;&gt;might not&lt;/span&gt; fix the device if the device got bricked/broken. &lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
296+
<source>Failed to load both msi-ec/ec_sys</source>
272297
<translation type="unfinished"></translation>
273298
</message>
274299
</context>

0 commit comments

Comments
 (0)