Commit graph

33 commits

Author SHA1 Message Date
Sertonix 100a927a4f
rotate-screen: fix typo in README 2024-02-13 14:57:27 +00:00
boutell da465f2cd1 a huge help on the laptop go gen 1 as well 2023-12-01 21:10:30 -05:00
Maximilian Luz 790fb398cb
contrib/thermald: Misc markdown style fixes 2023-08-12 15:18:06 +02:00
Ruslan Bay dce592dc9b
Update README.md 2023-08-10 12:54:21 +03:00
Ruslan Bay f1d10e3d89
contrib/thermald: add surface pro 7 thermald configuration
Source:
https://github.com/linux-surface/linux-surface/issues/221
62482dd6d4
2023-08-06 17:05:10 +03:00
Maximilian Luz 20ca44dc7f
contrib/fedora-default-kernel: Make more robust and add rEFInd support
Add a script to explicitly handle multiple Surface kernel versions being
installed in parallel, sorting kernels by timestamp and choosing the
latest one.

Further, add support for rEFInd by updating the vmlinuz file timestamp
to ensure it's always seen as the last modified file (which will be
picked by rEFInd as the "default" kernel in that directory).

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
2023-06-02 21:55:09 +02:00
Kevin MacMartin bb71d73226 contrib/thermald: Add config for the Surface Laptop Go 2 2023-03-25 21:45:03 -04:00
Nicola Fiori 8c93b68f66 Change back to suggesting systemctl, note down quirk 2022-10-20 19:14:49 +01:00
Nicola Fiori aedbc17ecc
Replace suggestion of using systemctl edit
Editing `ExecStart=` with `systemctl edit` did
not work for me. Running
`systemctl restart thermald.service` afterwards
was giving errors every time with reason "Unit
thermald.service has a bad unit file setting".

By running `systemctl status thermald.service`,
I was reading this error:

    redis.service has more than one ExecStart=
    setting, which is only allowed for
    Type=oneshot services. Refusing.

By looking through the Internet for answers,
I found a suggestion from a user saying that
"The `ExecStart=` line cannot be modified with
`systemctl edit`"
(https://unix.stackexchange.com/questions/409354).

What worked was replacing the thermald.service file
directly to `/etc/systemd/system/` and
`/usr/lib/systemd/system` worked, as suggested
in the README.md present in the folder containing
example configurations for Surface Pro 5 from
this repository.
2022-10-20 18:19:24 +01:00
sphh de626ee326
Adds MIT license to the rotate-screen script. 2021-11-28 13:05:49 +00:00
astejko 598327240d
Add Thermald Conf FIle for AMD Surface Laptop 4 (#572)
Merge pull-request #572.

A new thermald configuration file for the AMD version of the Surface
Laptop 4. It includes the ability to turn the CPU's Turbo Boost on and
off as a cooling measure.
2021-09-25 14:38:24 +02:00
Yatao Li 8ced0e1155 update readme 2021-09-03 00:27:25 +08:00
Yatao Li 90479a6841 add sysctl startup settings 2021-09-03 00:26:01 +08:00
Yatao Li d2e82ef57b update readme 2021-09-03 00:20:44 +08:00
Yatao Li 103c6c96b7 add pci and cpu power control 2021-08-29 19:39:51 +08:00
Yatao Li 122d84623f contrib: thermald: merge power adapter udev rules 2021-08-29 01:35:21 +08:00
Yatao Li 5a5faddde4 Merge branch 'master' of https://github.com/linux-surface/linux-surface 2021-08-26 01:44:06 +08:00
Yatao Li eb4d23129e contrib: surface pro 5 thermal: fix boot deadlock 2021-08-26 01:32:08 +08:00
Maximilian Luz dd0c84f0f1
contrib/thermald: Be consistent about formatting 2021-08-25 14:02:30 +02:00
Maximilian Luz cdd9778b2a
contrib/thermald: Use a coherent structure 2021-08-25 13:50:48 +02:00
Yatao Li 914cc11a39 contrib: add surface pro 5 thermald configuration 2021-08-25 18:45:47 +08:00
ceckertz 3bc3da1c9a
Update example_config_SL1.xml
After some testing I explicitly specified which cooling devices in /sys/class should be used. 
I found this config to be more reliable and predictable.
2021-08-02 11:53:54 +02:00
ceckertz 5a95ba752d
Update fix the formatting 2021-07-03 22:53:23 +02:00
ceckertz b9e33d7b4b
New example_config for SL1
The surface Laptop 1 immediately throttles to 400MHz if the GEN1 sensors reaches 52°C. Every time my Surface Laptop was under heavy load for more than a few minutes my performance hit a brick wall. 
This config fixes this, it caps the CPU temp at 90°C and more importantly keeps GEN1 cooler than 50°C. 
I have stress tested this config extensively and have had no thermal throttling and stable temps. 
If you have any questions or concerns feel free to contact me. 

Kind regards,
jo
2021-07-03 22:50:34 +02:00
sphh 3ed56ea599
New command line options and functionality.
- Orientation can be get from the accelerometer or the current screen orientation (`rotate-screen` or `rotate-screen screen`).
- Orientation can be switched to the next orientation (`rotate-screen next`: normal->left->inverted->right->normal or `rotate-screen previous`).
- Orientation can be specified at the command line (`rotate-screen normal|left|inverted|right`).

I hope this covers most use cases!
2021-05-19 10:19:29 +00:00
sphh 9621155f9c
Return error message and exit. 2021-05-18 18:27:37 +00:00
sphh 80f490ea71
Use modern "$()" instead of "``". 2021-05-18 18:24:01 +00:00
sphh 7ff59553af
Correct a wrong check for the 'xrandr' executable. 2021-05-18 15:11:33 +00:00
Maximilian Luz 29a897878b
Merge pull request #423 from sphh/rotate-script
Initial commit of contrib/rotate-screen/ directory.
2021-04-20 23:09:23 +02:00
Dorian Stoll 9db0374050
contrib: Add Fedora default-kernel scripts
Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
2021-04-20 18:37:47 +02:00
Stephan Helma 57d8a66a5f Initial commit of contrib/rotate-screen/ directory. 2021-04-20 17:25:23 +02:00
Maximilian Luz 941b924f0a
Add example thermald configuration 2021-04-20 15:48:57 +02:00
Maximilian Luz a2360515c5
Add contrib directory 2021-04-20 15:48:26 +02:00