1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 11:29:42 +01:00
Commit graph

352 commits

Author SHA1 Message Date
Domen Kožar
305bbc2442 tinkpad t14s amd: enable deep sleep 2022-09-13 12:16:46 +01:00
Guekka
1f9058d65d
add lenovo ideapad 5 15arh05 2022-09-12 13:50:33 +02:00
Jörg Thalheim
7866333317
Merge pull request #447 from aciceri/thinkpad-x1-g7
Removed unnecesary quirks and added `throttled` service
2022-09-02 05:22:28 +01:00
Jörg Thalheim
57164fc634
Merge pull request #452 from marijanp/z-series
lenovo/z: add Lenovo Thinkpad Z(13)
2022-09-02 05:22:11 +01:00
Marijan Petričević
fb635bfba0
lenovo/z: add Lenovo Thinkpad Z(13)
Co-authored-by: toastal <toastal@posteo.net>
2022-09-01 12:04:22 +02:00
Philippe Schaaf
7ffa41766a added lenovo thinkpad T590
Copied from T550 and T490 config.
Omit the pulseaudio profile from T490 config for now.

Signed-off-by: Philippe Schaaf <philippe.schaaf@secunet.com>
2022-08-18 08:54:15 +02:00
Andrea Ciceri
adbeb1a5d6
Enable throttled for Thinkpad X1 gen 7 too
Even if this device is currently not mentioned upstream between the
devices that need this I stressed my machine (using `s-tui`) with and
without and I can confirm that it incremented the average CPU frequency
during the stress test (from 1.8/2GHz to around 3GHz).
2022-08-17 16:41:12 +02:00
Andrea Ciceri
2284621815
Quirks no more needed 2022-08-17 14:45:50 +02:00
Mark K Gardner
b19015a0ba
Adds support for Thinkpad T460p 2022-07-19 09:06:58 -04:00
Ryan Horiguchi
e3259b25eb
Fix legion 7 slim 15ach6 2022-07-19 09:06:57 -04:00
Chris McDonough
0e7decc220 fix merge conflicts from p52-to-master merge 2022-07-13 17:48:44 -04:00
Chris McDonough
6aafb9960b comment about silencing ACPI errors 2022-07-13 01:15:35 -04:00
Chris McDonough
66f8f007d0 add comment about normalizing dpi between sync and offload mode 2022-07-12 23:02:05 -04:00
Chris McDonough
a3f3326899 add comment about normalizing dpi between sync and offload mode 2022-07-12 23:01:26 -04:00
Chris McDonough
e8e0e7dc37 conditionally turn on power management and modesetting when we are in sync mode 2022-07-12 20:02:44 -04:00
Chris McDonough
6261a28429 conditionally turn on power management and modesetting when we are in sync mode 2022-07-12 20:01:42 -04:00
Chris McDonough
fd08b05aed comment about acpi errors 2022-07-12 17:11:02 -04:00
Chris McDonough
116ae977ab throttled consistency 2022-07-11 17:44:39 -04:00
Chris McDonough
47cb2be872 mkDefault consistency 2022-07-10 19:13:48 -04:00
Chris McDonough
c2295916b3 mkDefault consistency 2022-07-10 19:10:49 -04:00
Chris McDonough
bd873a9807 cannot replicate sleep problem without external monitor or any usb device plugged in 2022-07-09 04:36:30 -04:00
Chris McDonough
f5d9dd114f cannot replicate findings for sleep not working when system has no usb or external video plugged in to it, make wireless work 2022-07-08 23:11:43 -04:00
Chris McDonough
22cdffc925 turns out hardware.enableAllFirmware is also required for p51 wireless 2022-07-07 10:00:40 -04:00
Chris McDonough
005e19d6f0 required to make wireless work 2022-07-07 09:31:42 -04:00
Chris McDonough
ac75bbc476 transform sleep comment into optionally includable expression 2022-07-05 17:45:16 -04:00
Chris McDonough
e36b0c4022 add p52 2022-07-05 14:39:22 -04:00
Chris McDonough
f90db4cb9e add p50 and p51 2022-07-04 23:24:35 -04:00
Jörg Thalheim
c530838143
Merge pull request #429 from xfix/lenovo-gen4
thinkpad/x1-extreme/gen4: add module
2022-07-01 21:04:22 +02:00
Konrad Borowski
c3aa1fae79 lenovo/thinkpad/x1-extreme/gen4: add module 2022-07-01 20:54:40 +02:00
Samuel Hierholzer
3d9b6a6215 Fix Wifi for Lenovo Thinkpad T14s Gen1 2022-06-28 08:28:04 +02:00
Ulrik Strid
9ec5f52ea2 Add lenovo legion 7 16ITHg6 2022-06-23 09:30:05 +02:00
Simon Bruder
07e5049f8f
p14s: ensure rtw89 driver is available 2022-05-31 13:38:23 +02:00
koalp
b750b56a20
feat: add acpi_call and ssd for thinkpad x270
acpi_call is required to use tlp on lenovo thinkpad x270 and some x270
have an ssd.

Therefor, acpi_call and ssd have been added to the lenovo thinkpad x270
hardware config.
2022-04-24 12:47:42 +02:00
Thomas Woolford
08cf55e7b6
Remove intel_iommu=on by default for all X1 models.
IOMMU still breaks suspend/resume on multiple Lenovo models including X1.
Currently broken on at least Gen4 which I'm testing on. Hard locks the system during suspend.

This thread claims it works on Gen4 with kernel 5.16.1 but it doesn't work on my hardware, firmware fully updated.
https://bugzilla.kernel.org/show_bug.cgi?id=197029

This should probably be turned on individually for models known to work until it can be more thoroughly tested.
2022-04-01 23:06:12 +10:30
Guilherme Ananias
8c6b773900
add laptop/ssd module to thinkpad-t14 2022-03-24 13:43:32 -03:00
Jörg Thalheim
c326257692
Merge pull request #392 from rhoriguchi/master
Add lenovo legion 7 slim 15ach6
2022-03-23 13:54:24 +00:00
Ryan Horiguchi
27e7087af5
Add lenovo legion 7 slim 15ach6 2022-03-23 13:44:38 +01:00
Markus Schneider
83c1cd4a5a add support for lenovo X1 yoga 2022-03-16 18:25:14 +01:00
Nicholas Sielicki
72d4903998 add lenovo legion 5 15ARH05H 2022-03-06 20:40:20 +00:00
Jörg Thalheim
ac307defda
Merge pull request #370 from esterlus/este/t14gen2
added thinkpad t14 gen2 and copied t14s files where applicable
2022-02-14 20:14:05 +00:00
Jörg Thalheim
6b6f4f8dd6
thinkpad/x1/6th-gen/QHD: drop gtk hidpi env variables
Those actually break Gnome/wayland. They might work on x11.
2022-02-12 19:42:06 +01:00
Ronny Esterluss
6e9617a733 readded t14 amd gen1 to new folder structure 2022-02-04 15:10:46 +01:00
Ronny Esterluss
2e4ee9d5e8 removed empty newline 2022-02-02 10:54:59 +01:00
Ronny Esterluss
ce38b7abb1 added thinkpad t14 gen2 and copied t14s files where applicable 2022-02-02 10:54:31 +01:00
Jörg Thalheim
7dd944da98 p14s: starting with 5.16 we have this kernel module upstream 2022-02-01 22:12:04 +01:00
Brandon Weeks
6bdf6d3cda thinkpad/x1: enable Intel IOMMU 2022-01-10 00:47:30 -08:00
Jörg Thalheim
2a76e1204f
Merge pull request #351 from Mic92/x13
x13: fix loading psmouse
2021-12-26 10:18:00 +00:00
Jörg Thalheim
b166aab83e x13: fix loading psmouse 2021-12-26 10:15:40 +01:00
ilian
5bc7087038 thinkpad/x1: import ssd config for relevant models 2021-12-19 12:06:09 +01:00
Mark Karpov
0492dd8216
Add a config for the 9th generation of Lenovo Thinkpad X1
This solves lagging noticeable on high-resolution screens.

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-11-18 10:55:46 +01:00
Jörg Thalheim
63adb4a0c0
Merge pull request #324 from yvan-sraka/patch-1
Update X230 config using available common settings
2021-10-28 20:48:13 +02:00
P. R. d. O
fdf8fa5d20
lenovo.thinkpad.t430: fix boot.kernelParams 2021-10-26 19:50:38 -06:00
Yvan Sraka
36d75fdcdc
Update X230 config using available common settings 2021-10-21 10:11:37 +02:00
Gaute Ravndal
3c474df279 Add basic support for the thinkpad t550 2021-10-09 16:49:21 +02:00
Jörg Thalheim
3cc8c47af3
Merge pull request #315 from ebbertd/e14-amd
Update E14 AMD
2021-09-22 00:39:40 +01:00
Naïm Favier
95ce025962
lenovo/thinkpad/t420: add tp-smapi
The T420 seems to have partial (readonly) support for the tp-smapi module, which TLP can make use of:

> Install tp-smapi kernel modules for extended battery info (e.g. the cycle count)
2021-09-16 12:41:30 +02:00
Daniel Ebbert
48b7c1c782
Update E14 AMD 2021-09-01 09:34:21 +02:00
Julian Stecklina
03eba5720a lenovo/thinkpad/l14/amd: drop workaround for old kernels
... because the latest supported NixOS runs on Linux 5.10 by
default.
2021-08-25 23:33:11 +02:00
Julian Stecklina
2c549a1bfb lenovo/thinkpad/l14: enable SSD config 2021-08-25 23:33:11 +02:00
Julian Stecklina
9ff8606e7e lenovo/thinkpad/l14/amd: switch to soft iommu mode to prevent mmcblk kernel panic 2021-08-25 23:33:11 +02:00
Julian Stecklina
49f1d1e1f8 lenovo/thinkpad/l14/amd: enable AMD GPU config 2021-08-25 23:23:35 +02:00
Daniel Ebbert
6f10c889c0
Init Lenovo ThinkPad E14 2021-08-19 12:15:46 +02:00
Daniel Ebbert
eb385fad1e
lenovo/thinkpad/e495: use native acpi backlight 2021-08-18 11:58:49 +02:00
Domen Kožar
8296b88560 Add Thinkpad P14s 2021-08-04 13:54:40 +02:00
Naïm Favier
acc32e590b
lenovo/thinkpad/t420: use cpu/intel/sandy-bridge 2021-07-25 12:11:47 +02:00
Your Name
19071fde4f lenovo/thinkpad/x13-yoga: Use relative symlink 2021-07-03 09:17:31 +02:00
Your Name
723e8f796c lenovo/thinkpad: Added x13-yoga for backwards-compability 2021-07-01 23:14:45 +02:00
Your Name
f08cf2d7f7 lenovo/thinkpad: #283 Use directory instead of file 2021-07-01 14:03:59 +02:00
Your Name
c076216644 lenovo/thinkpad: Refactor of yogas 2021-07-01 13:52:08 +02:00
Your Name
6a77d708e7 leovo/thinkpad/l13-yoga: Use L13's definition 2021-07-01 11:42:08 +02:00
Your Name
020310e5a3 Merge branch 'master' of github.com:NixOS/nixos-hardware 2021-07-01 11:18:55 +02:00
Jörg Thalheim
03085184c9
thinkpad-l13: add ssd 2021-07-01 07:32:25 +02:00
Your Name
49cb5fb3d3 Add L13 Yoga 2021-06-30 16:18:18 +02:00
Jörg Thalheim
a4a9796b73
p1: remove nvidia module again 2021-06-26 15:11:18 +02:00
Cyryl Płotnicki
a67ed0c3a2 Add Lenovo Thinkpad T480 2021-06-12 10:38:34 +01:00
cwyc
fccbee72df
thinkpad t14s amd: add amd gpu module (#271) 2021-06-08 10:09:01 +01:00
Pavel Nazarov
b2186d6c3c
Add lenovo-thinkpad-p1 (#266)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-06-01 05:30:09 +01:00
Jörg Thalheim
da67c36853
add lenovo-thinkpad-x13 2021-05-01 08:29:22 +02:00
James Earl Douglas
00b40b766f
Add a profile for the Thinkpad X200s 2021-04-20 19:50:55 -07:00
James Earl Douglas
dbbd0d4093
Add a profile for the Thinkpad T460 2021-04-20 05:27:36 -07:00
Peng Mei Yu
cca70642e8 ThinkPad X270: Disable Panel Self Refresh. 2021-03-09 13:41:09 +08:00
Jacek Galowicz
f59106598e Add Lenovo X13 Yoga Gen 1 2021-02-06 18:33:03 +01:00
Julian Stecklina
dc5fa221b2 lenovo/thinkpad/l14/amd: update iommu comment 2020-12-05 14:02:07 +01:00
Ivan Kovnatsky
8b04c30d8b
lenovo/thinkpad/t14: created symlink to t14s/ 2020-11-04 13:16:12 +02:00
Jörg Thalheim
26e9c94511
Merge pull request #204 from oxzi/x260-i915
lenovo/thinkpad/x260: i915.enable_psr=0 parameter
2020-11-03 08:53:36 +01:00
Alvar Penning
fd644de340 lenovo/thinkpad/x260: i915.enable_psr=0 parameter
The video driver causes short freezes from time to time, especially if
an external monitor is attached. Adding the i915.enable_psr=0 kernel
parameter mitigates those freezes.

This is a known problem for the X260, as mentioned in the Arch Wiki. It
occurred mainly after switching to kernel version five.
2020-10-31 16:11:04 +01:00
Alvar Penning
de6811f14d lenovo/thinkpad/x260: use services.tlp.settings
With switching from NixOS 20.03 to 20.09, the services.tlp.extraConfig
option became deprecated and was replaced by services.tlp.settings.

The ThinkPad X260 is only device within nixos-hardware which makes use
of this configuration.
2020-10-31 15:59:40 +01:00
dadada
04c79afe1c
t14s: add AMD Gen1 model
t14s: fix minimum required kernel version
2020-10-26 09:13:38 +01:00
dadada
81b5488961
t14s: add comment
Add commend about suspending to RAM and fingerprint sensor.
2020-10-26 01:07:23 +01:00
dadada
42ec21a27c
t14s: init
Copied from t495.
2020-10-25 19:50:39 +01:00
Jörg Thalheim
770dbcdb49
Merge pull request #195 from candeira/thinkpad_x220_sandy-bridge 2020-10-20 06:35:01 +02:00
Julian Stecklina
ccf7985cb3 lenovo/thinkpad/l14: init
Add support for the Lenovo Thinkpad L14 Gen 1 Intel and AMD variants.
2020-10-15 00:37:49 +02:00
Javier Candeira
7234b11dff Thinkpad x220 has Sandy Bridge CPU 2020-10-13 22:12:23 +11:00
hoppla20
9d36eb67f2
Update default.nix 2020-10-01 07:54:29 +02:00
Vincent Cui
b175484c5a fix lenovo thinkpad e470 2020-09-23 20:08:23 +02:00
Vincent Cui
9bc1f316a6 add lenovo thinkpad e470 2020-09-23 08:06:47 +02:00
Vincent Cui
338792821a add e470 configuration 2020-09-23 08:01:20 +02:00
Jörg Thalheim
741b3ba508 lenovo/thinkpad/x1/7th-gen: fix evaluation 2020-08-13 15:01:48 +02:00
Hoang Xuan Phu
8c320bbc8a lenovo/thinkpad/x1/7th-gen: init 2020-05-17 09:22:51 -04:00
Jörg Thalheim
41d2c3322b
Revert "Change TLP charge thresholds"
This reverts commit 76f681355c.

This setting is opinionated and should be left to the user.
See: https://github.com/NixOS/nixos-hardware/pull/154#issuecomment-617181517
2020-04-21 21:10:18 +01:00
j0hax
76f681355c Change TLP charge thresholds 2020-04-21 03:47:11 +02:00
Damien Cassou
157ae443af
lenovo/thinkpad/t460s: Add missing acpi_call module
This is required by tlp for battery management.
2020-04-14 22:54:52 +02:00
Damien Cassou
0ef7d22b6c
lenovo/thinkpad/t460s: Remove problematic options
See there links for details:

https://github.com/NixOS/nixos-hardware/pull/134#pullrequestreview-336181593
https://github.com/NixOS/nixos-hardware/pull/134#discussion_r361146814
2020-04-14 22:54:31 +02:00
David Anderson
03dedf4cfd thinkpad/t495: fix backlight save/load and and battery conditioning.
Saving/loading the backlight state requires the acpi_backlight=native
kernel parameter.

acpi_call is required by TLP to get access to battery conditioning
information from the firmware.

Signed-off-by: David Anderson <dave@natulte.net>
2020-03-14 20:57:22 -07:00
David Anderson
3d983701f9 lenovo/thinkpad/t495: init from e495.
The E495 and T495 are based on the same core Ryzen platform, so the
E495 tweaks apply similarly to the T495.

Tested on my own T495, works well.
2020-03-11 09:34:12 -07:00
Jörg Thalheim
f5a4954ca3
thinkpad/e495: fix evaluation
fixes #145
2020-02-12 10:57:40 +00:00
Luis Hebendanz
f6e2381344
Update lenovo/thinkpad/e495/default.nix
Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-02-12 10:52:49 +01:00
Luis Hebendanz
d75b12a962 Added profile for issues 69289 2020-02-11 19:42:02 +01:00
*Kim Zick (rummik)
6081bfd6d5 Add Lenovo ThinkPad L13 profile 2020-01-02 11:35:56 -05:00
mishudark
1d746f2298 Add Lenovo ThinkPad X280 profile 2019-12-31 15:38:59 +01:00
Oleksii Filonenko
5575153e2d Add Lenovo ThinkPad T420 profile 2019-11-02 14:35:47 +01:00
Michael Peyton Jones
2bf94227c1
Replace ad hoc throttling fix with throttled
`throttled` is a service designed to fix the same CPU throttling bug,
but it's an actively maintainted upstream project that we can use.
2019-10-16 22:31:05 +01:00
*Kim Zick
ed0d3cc198 Initial p53 hardware configuration (#125) 2019-10-16 19:25:20 +01:00
Jörg Thalheim
f08177ef66
Merge pull request #123 from rycee/thinkpad-x1-extreme-gen2
thinkpad/x1-extreme/gen2: add module
2019-10-09 15:10:11 +01:00
Robin Gloster
91eba96d66
Merge pull request #124 from exi/master
match specifically on the sound chip
2019-10-06 15:13:58 +02:00
Reno Reckling
b60ea643a4 match specifically on the sound chip 2019-10-04 19:27:28 +02:00
Robert Helgesson
de600352bc
thinkpad/x1-extreme/gen2: add module 2019-09-29 00:17:13 +02:00
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
3743ae21f5
treewide: only ever set unmergable options via lib.mkDefault
Also extract documentation from raspberry-pi/2/ profile.
2017-12-24 15:13:25 +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
Maximilian Bosch
ed46b99315
Use libinput as touchpad driver
The recommended driver is libinput, furthermore
the packaging of synaptics is officially deprecated in NixOS:
9d2777a5a5
2017-09-03 23:31:08 +02:00
Maximilian Bosch
a2e55b93ad
services.tlp.enable = true; for power management 2017-09-03 23:28:34 +02:00
Maximilian Bosch
7d130c0061
hardware.enableAllFirmware = true; for intel iwlwifi 2017-09-03 23:27:33 +02:00
Maximilian Bosch
ae18b6af0f
Initialize general.nix; merge defaults into all ThinkPad configurations 2017-09-03 23:25:33 +02:00
Jörg Thalheim
68e007ae77 x250: enable wheel emulation 2017-05-11 09:19:17 -05:00
Jörg Thalheim
3e5b9169ce add recommend xorg driver for lenovo x250 2017-05-11 09:19:17 -05:00
Данило Глинський (Danylo Hlynskyi)
cfd63d3b3e add Lenovo IdeaPad Z510 with suspend fix (#18) 2016-09-21 11:33:54 +02:00
Stephen Whitmore
bc241aeec7 Add Lenovo x140e laptop. (#17) 2016-08-05 11:48:33 +02:00
Damien Cassou
5b3c112a91 lenovo/t460s: add middle button config + comments (#14) 2016-08-05 11:47:24 +02:00
Damien Cassou
123b0a9846 lenovo/t460s.nix (#13) 2016-07-09 11:36:19 +02:00
Hannu Hartikainen
0d7971f57f Thinkpad X220i: configure more hardware
Here's a patch that shows how to add support for

 - TrackPoint
 - (alternatively) better touchpad support
 - volume/mute buttons
 - active hard-drive protection
 - fingerprint reader

I've been using these options for a couple of days on a non-tablet X220i. See https://github.com/dancek/dotfiles/blob/master/nixos/thinkpad-x220i/configuration.nix
2016-04-21 14:38:40 +03:00
Emery
771087ca88 lenovo/x220i-tablet
Fixes https://github.com/NixOS/nixpkgs/issues/13173
Fixes https://github.com/NixOS/nixpkgs/issues/13174
2016-02-24 19:58:56 +01:00
Emery Hemingway
6fe0bd9d01 Merge pull request #6 from peti/master
Add power-saving configuration for Lenovo T410.
2016-02-11 00:26:06 +01:00