Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch screen power saving #14

Open
luispabon opened this issue May 23, 2018 · 3 comments
Open

Touch screen power saving #14

luispabon opened this issue May 23, 2018 · 3 comments

Comments

@luispabon
Copy link

Another power top tunable that could be set on boot:

echo 'auto' > '/sys/bus/usb/devices/1-9/power/control';
@luispabon
Copy link
Author

/lib/systemd/system/touchscren-powersave.service

[Unit]
Description=Enable touch screen powersave

[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 'auto' > '/sys/bus/usb/devices/1-9/power/control';"

[Install]
WantedBy=default.target
sudo systemctl enable touchscren-powersave

@luispabon
Copy link
Author

The reason I have these as services is because powertop autotune messes up with certain devices I have sometimes connected on boot. For instance my external keyboard or mouse become unresponsive on first interaction if they're idle for more than a few seconds, which is infuriating.

@ryanshow
Copy link

For some reason this script was working for me when invoking it manually, but not on boot. I think that there is some other process setting the autosuspend setting to "on" after the touchscreen-powersave service runs.

Regardless, I managed to make it work by changing the Type line to:

Type=idle

This delays the execution of the service to later in the boot to ensure that it won't be overridden by whatever was forcing autosuspend off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants