Hi,
On 05/30/2016 04:36 PM, Cyril LEVIS wrote:
> Hi,
>
> Do you have news about this subject?
Unfortunately I didn't have time to do thorough tests as I originally
planned to.
> I used to use TLP on my T450s, i have instal it in dom0 but i think there
> is more thing to do with qubes?
I did the following:
1- VMs: installed the tlp package.
2- dom0: since the tlp package is pulling too many unneeded dependencies
on fedora, I reviewed the scripts and installed them from source. Here's
a list below.
Note: some of the scripts are probably never called (eg. wifi, wwan,
...) since there's no network adapter in dom0, and they wouldn't work
anyway since some packages/functionality are missing (eg. rfkill).
The scripts are quite straightforward, with a little bit of time I could
probably filter out everything that is not needed.
/usr/local/bin/bluetooth
/usr/local/bin/run-on-ac
/usr/local/bin/run-on-bat
/usr/local/bin/tlp-stat
/usr/local/bin/tlp-usblist
/usr/local/bin/tlp-pcilist
/usr/local/bin/wifi
/usr/local/bin/wwan
/usr/local/sbin/tlp
/usr/local/lib/pm-utils/sleep.d/49tlp
/usr/local/share/tlp-pm
/usr/local/share/tlp-pm/tlp-rf-func
/usr/local/share/tlp-pm/tlp-functions
/usr/local/share/tlp-pm/tlp-nop
/etc/systemd/system/tlp-sleep.service
/etc/systemd/system/tlp.service
/etc/udev/rules.d/85-tlp.rules
Configuration is in:
/etc/default/tlp
3- On AC/BAT change I exec tlp in dom0 and in VMs and I set a few xenpm
parameters. For instance see:
https://github.com/taradiddles/qubes-os/blob/master/tlp.sh
Notes:
- since I haven't done any real measurement I can't say how much the
xenpm changes help. For instance I've picked a migration delay of 1000,
but that could be totally wrong.
- there's definitively an effect of all those changes though, the power
consumption drops by a few watts, which is great. But the min
consumption is still quite higher than a default fedora install, which
is to be expected given the overhead of running VMs, but also because
Qubes' kernel lack newer graphic power saving features like PSR & co.
That's it basically, so it's quite rough...
>
> For lenovo T4x owner, I plan to install kernel-devel and install kmod
> acpi_call from rpmfusion to be able to set battery thresholds, very usefull
> for his life.
Yep, the missing acpi_call module is a problem for me too.
I didn't go the kmod/rpmfusion route as I didn't want to install that
kind of stuff in dom0. Instead I have a minimal fedora install on a
memory stick, and I run it in single user mode when I need to reset
thresholds - that is, when the battery runs down completely and the
thinkpad's EC looses its settings - so very rarely.
Security wise, running another distro is not a good idea at all, but I
haven't found a better way.
I was thinking of opening an issue about including the acpi_call module,
but IIRC it wasn't included in fedora because of a license
incompatibility. Or maybe it was just that the module is too dangerous
when not used properly.
An alternate way would be to have a passthrough mechanism between a VM
with acpi-call installed, and the thinkpad's EC in dom0. Security-wise,
only the required acpi calls could be allowed, but who knows what kind
of exploits this would open the door to.
>
> I'm interested, If I can help, doing some test, say me :)
Well, doing measurements would be nice. But it's difficult to get right,
as you have to repeat the same workload over and over, over long periods
of time in order to obtain decent values, and you have to tweak one
parameter at a time.
Hope this helps,
Ivan