Commit graph

119 commits

Author SHA1 Message Date
Robert Helgesson 83ca0c4e6b
thinkpad/x250: add acpi_call
This kernel module is needed to, for example, support tlp's

  - `START_CHARGE_THRESH_BAT?` and
  - `STOP_CHARGE_THRESH_BAT?`

options.
2019-09-04 22:46:49 +02:00
Robin Gloster 4ffa2ed198
Merge pull request #117 from Ma27/thinkpad-trackpoint-fixes
thinkpad: minor trackpoint fixes
2019-09-03 20:31:44 +02:00
Reno Reckling 9e7fffdd5b Add better pulseaudio support for thinkpad t490 2019-09-02 19:11:30 +02:00
Maximilian Bosch abca8d0180
thinkpad/x1/6th-gen: fix trackpoint name
Newer ThinkPads have a new name for the Trackpoint - "TPPS/2 Elan TrackPoint".

Having the "[...] IBM Trackpoint" as default caused some weird
side-effects on my machine (e.g. stopped the trackpoint working after a
suspend) with the wrong name. Although this is mentioned in the option's
description[1], I think that this should be declared explicitly here.

As soon, as we supported newer models as well[2], we should probably
move this into its own common profile.

[1] https://nixos.org/nixos/options.html#hardware.trackpoint.device
[2] https://certification.ubuntu.com/catalog/component/input/5313/input%3ATPPS/2ElanTrackPoint/
2019-09-01 18:00:21 +02:00
Maximilian Bosch 4c8b4cf54f
thinkpad: emulate wheel for a trackpoint by default
Most trackpoint users I know use the middle-button to have some
scrolling functionality. So I think that for ThinkPads at least we
should have this enabled by default if the trackpoint shall be used.
2019-09-01 17:59:17 +02:00
Jörg Thalheim 59c97be4d0
Merge pull request #106 from jnetod/master
t430: add acpi_call module
2019-05-13 06:31:08 +01:00
Joris Engbers a5db2c9eaf Add basic support for the thinkpad t470s 2019-05-08 23:52:27 +02:00
José Neto a8ea967866 t430: add acpi_call module 2019-05-04 15:04:05 -03:00
eyjhbb@gmail.com 3dac9eae9a lenovo-x1: removed battery TLP threshholds 2019-02-19 09:56:32 +01:00
Benjamin Hipple bd1ef85b98 lenovo x1 carbon gen6: update S3 suspend
With UEFI >= 1.30, there's an explicit option to enable S3 power management.
Once this is selected, S3 is enabled and "deep" is selected as the default
/sys/power/mem_sleep value without requiring any kernel boot parameters.
2018-12-27 18:40:08 -05:00
Trolli Schmittlauch 1e2c130d38 add basic support for Lenovo Thinkpad T440s (#83)
This adds basic support for the Thinkpad T440s, based on the work done for the T440p. The expression enables:

- microcode updates
- trackpoint support
- kernel module for battery level management
2018-12-02 23:25:43 +00:00
André-Patrick Bubel 941fbef86f
move acpi_call.nix and cpu-throttling-bug.nix to common folder 2018-10-23 09:28:07 +01:00
Lorenzo Manacorda 78ea74365a lenovo/thinkpad/t450s: init 2018-10-19 14:55:47 +02:00
Justin Humm d5b0b9349f
thinkpad: introduce t430
Copied everything from t440p, added a fix for the brightness keys
2018-09-04 20:42:09 +02:00
Roman Volosatovs 6ed4feade2
lenovo/thinkpad/x260: Use med_power_with_dipm in TLP 2018-09-02 20:06:41 +02:00
Roman Volosatovs f37c5dfb9a
lenovo/thinkpad/x260: Remove opinionated TLP config 2018-09-02 20:06:41 +02:00
Roman Volosatovs 6c55033883
lenovo/thinkpad/x260: Init 2018-09-02 20:06:30 +02:00
Alberto Berti 9939e5b3a4 Fix acpi override load
As proposed by @garbas in #60
2018-09-01 15:34:06 +02:00
Alberto Berti 7f17d649cc Fix cpu-throttling service file reference 2018-09-01 15:33:27 +02:00
Michael Peyton Jones a633fa6f68
T480s: use CPU throttling fix too 2018-08-15 18:34:44 +01:00
Jörg Thalheim b4303dc68b
Merge pull request #60 from azazel75/master
Add basic support for 6th-gen X1
2018-07-30 11:09:41 +01:00
Alberto Berti 4428c70b17 Enable powersave features when on battery (taken from #60) 2018-07-21 21:20:25 +02:00
Alberto Berti b84f46f208 Add missing pkgs parameter 2018-07-17 18:55:21 +02:00
Alberto Berti a3210f1d6b Fix typo 2018-07-17 17:53:53 +02:00
Alberto Berti 7a640afbb2 Add optional console font configuration to make it readable on QHD displays 2018-07-17 17:44:31 +02:00
Yegor Timoshenko 585a13d8b9 Add ThinkPad X270 profile 2018-06-21 16:20:57 +03:00
Michael Peyton Jones c354d591a7 Add basic t480s profile 2018-06-08 23:54:34 +01:00
Michael Peyton Jones cbdcc55f37 Add acpi_call module 2018-06-08 23:54:25 +01:00
Alberto Berti 32a7893b8c Set a default to fix GTK/GNOME ui elements appareance 2018-06-03 01:55:59 +02:00
Alberto Berti b132065a43 Cosmetic 2018-06-03 01:33:37 +02:00
Alberto Berti b42212f6f0 Add a bit of documentation 2018-06-03 01:33:21 +02:00
Alberto Berti 179bcde845 Add stub for the S3 suspend state issue
See https://delta-xi.net/#056
2018-06-03 01:32:16 +02:00
Alberto Berti 654262071f Add the temporary fix for the cpu-throttling issue
See https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues
2018-06-03 01:31:17 +02:00
Alberto Berti 5dd535392d Move battery settings to the configuration for all the 6th gen models 2018-06-03 01:28:40 +02:00
Alberto Berti e0a8e01073 Give TLP more control over the battery and enable battery life saver parameters 2018-05-31 18:04:02 +02:00
Alberto Berti d0a8097eec Add basic support for 6th-gen X1 2018-05-31 15:56:43 +02:00
Yegor Timoshenko 30fdd53a0a lenovo/thinkpad/x230: resolve tearing 2018-01-29 13:30:43 +00:00
Yegor Timoshenko b1304963c8
common/cpu/intel: add vaapi/vdpau drivers
I've tested this to work on MacBookAir4,1 and I'm going to deploy it
to MacBookAir6,2 today and Lenovo ThinkPad X230 in a week from now.
Also, cleaned up Lenovo ThinkPad X230 profile.
2017-12-27 07:31:18 +00:00
makefu 1cb3a1c2d7
thinkpad/x230: init 2017-12-27 07:03:39 +01:00
Yegor Timoshenko d1d99eb158
treewide: mark things that have to be done 2017-12-25 22:07:47 +00:00
Yegor Timoshenko 554629a957
thinkpad: do not enable thinkfan by default 2017-12-25 20:36:30 +00:00
Yegor Timoshenko 571bea15a4
CODEWONERS: init 2017-12-25 14:39:59 +00:00
Jörg Thalheim a2c6590c3d add lenovo x250 (#38)
Basically a meta profile that combines thinkpad + intel.
2017-12-25 13:15:16 +00:00
Yegor Timoshenko 5407ba7a52
treewide: abstract away common configs into common/ 2017-12-24 23:21:05 +00:00
Yegor Timoshenko 08e080ae11
thinkpad: only enable tp_smapi on compatible ThinkPads, closes #36 2017-12-24 15:26:31 +00:00
Yegor Timoshenko 721741b0c7
lenovo/thinkpad/t460s: fix evaluation, drop old kernel notes 2017-12-24 12:37:08 +00:00
Yegor Timoshenko 2951a4f4b0
thinkpad: move fprintd comment from X220 to parent profile 2017-12-24 11:17:39 +00:00
Yegor Timoshenko e4639aa028
thinkpad: add missing config 2017-12-24 11:10:07 +00:00
Yegor Timoshenko 0c51ed4b80
x140e: drop options generated with nixos-generate-config 2017-12-24 01:28:22 +00:00
Yegor Timoshenko 7810833d2d
t410: drop POWERTOP-like script in favor of services.tlp.enable
tlp does the same thing, but dynamically, depending on whether power
adapter is connected. It is also much more portable than this script.
Direct replacement would be `powerManagement.powertop.enable`.
2017-12-24 01:25:18 +00:00
Yegor Timoshenko fcb9d76ead
thinkpad: use lib.mkDefault on all unmergable options 2017-12-24 01:20:36 +00:00
Yegor Timoshenko 67cd7af6be
thinkpad: common.nix -> default.nix + fixup after intel.nix drop 2017-12-24 01:13:40 +00:00
Yegor Timoshenko 0c17d72838
thinkpad: drop intel.nix, explicit services.xserver.videoDrivers
Kernel modules are already generated with nixos-generate-config.
2017-12-24 01:05:12 +00:00
Yegor Timoshenko 1bb5593772
t410: drop i915 warning 2017-12-24 00:59:37 +00:00
Yegor Timoshenko ee47d31478
thinkpad: enable tp_smapi on all ThinkPads 2017-12-24 00:57:35 +00:00
Yegor Timoshenko 1133ce7d83
x220: drop security.rngd.enable = true, it's by default 2017-12-24 00:55:12 +00:00
Yegor Timoshenko b8ab6ab37f
thinkpad/intel: drop mkDefault, fixes #33 2017-12-24 00:46:26 +00:00
Yegor Timoshenko 3c9f432a71 treewide: modules -> profiles, separate dirs, list in README (#29)
Enforce proper naming: all paths are lowercase and hyphen-separated,
if there's a line of models (aspire, macbook-pro, thinkpad) it becomes
a subdirectory. Documentation for profiles is moved to README files in
respective directories.

Add an Org mode table that lists all available profiles and their paths.

Instead of fetching repo locally, use a Nix channel. Making hardware
profiles read-only should improve quality and amount of participation
long-term.
2017-12-22 17:17:00 +00:00
zimbatm 3f2fbacb21
Merge pull request #27 from yegortimoshenko/20171222.023336/cleanup-thinkpad
thinkpad: cleanup
2017-12-22 10:35:57 +00:00
Yegor Timoshenko d4688911b7 treewide: drop hardware-configuration.nix boilerplate (#28)
hardware-configuration.nix is still relied upon for hard drive
configuration, and it handles variations of hardware (custom
configurations, subrevisions).
2017-12-22 10:33:54 +00:00
Yegor Timoshenko a6f8e4bbc0
thinkpad: remove various assumptions
* hardware.trackpoint.emulateWheel = true; is very biased, this module
  is only for ThinkPads anyway, so default value should be used
* All options that should be overridable (e.g. services.tlp.enable)
* Hardware profile should not pull in stuff into system environment
  unless it's hardware-specific (pkgs.acpi is not)
* sound.mediaKeys clashes with DE, e.g. Xfce handling sound keys
* Drop redundant synaptics.enable = false;
2017-12-22 03:10:09 +00:00
Yegor Timoshenko 440088677b
lenovo: minor cosmetic changes 2017-12-22 02:56:28 +00:00
Maximilian Bosch a0e35e5306
Use mkDefault to avoid make override easier 2017-10-20 08:01:20 +02:00
Maximilian Bosch 12f5a724ce
sound.enableMediaKeys can be used on all ThinkPads 2017-09-21 00:11:34 +02:00
Maximilian Bosch 348f0466b5
x250 can be configured using all defaults 2017-09-21 00:09:48 +02:00
Maximilian Bosch 356ebeaaf7
Introduce general-intel.nix for defaults with Intel CPU
The x1xx series relies on a AMD CPU, but all other (currently supported)
ThinkPads use an Intel CPU, so `general-intel.nix` is responsible
for all Intel defaults.
2017-09-06 10:01:01 +02:00
Maximilian Bosch 0116223524
Add pkgs.acpi to gather battery status information 2017-09-06 09:49:11 +02:00
Maximilian Bosch 5340bd39d1
Don't enable non-dedistributable firmware by default 2017-09-06 09:47:37 +02:00
Maximilian Bosch d977cf26de
Segregate lenovo/ subdir into thinkpad and ideapad directories
There are several significant differences between ThinkPads and the
other Lenovo models, so this structure must be more precise
2017-09-03 23:34:57 +02:00