Friendica
  • Sign in
rkk
rkk

rkk

rkk@lemmy.world

rkk

rkk@lemmy.world
lemmy
2023-06-30 14:44:33 2023-06-28 10:39:33 2023-06-28 08:16:52 14124803

rkk
rkk
lemmy - Link to source

rkk

2 years ago • •

rkk

2 years ago • •


[Question] How can I dim screen after 20s inactivity when running on battery? tlp/sway/arch/chromebook


I think this could save me some battery time.
I checked tlp but could not find anything related.
In Sway config with swayidle maybe?
All help appreciated.
  •  Detected languages
  •  Raw content
  •  Share via ...

like this

Ann Onymous, eldrichhydralisk, Ichimander and Richardisaguy like this.

corsicanguppy doesn't like this.

in reply to rkk

Justine Smithies
lemmy - Link to source

Justine Smithies

in reply to rkk • 2 years ago • •
You could use swayidle and add a line to use either light or brightnessctl to dim and restore the brightness. Or just as I do turn off display after a certain time. This link should give you an idea.
wiki.archlinux.org/title/Sway#…
  •  Detected languages
  •  Raw content
  •  Share via ...

Ann Onymous likes this.

in reply to Justine Smithies

rkk
lemmy - Link to source

rkk

in reply to Justine Smithies • 2 years ago • •
Brightnessctl is installed and works just need a way to read whether is on ac or battery.
  •  Detected languages
  •  Raw content
  •  Share via ...
in reply to rkk

eshep
friendica (DFRN) - Link to source

eshep

in reply to rkk • 2 years ago •
Should be able to read it from /sys/devices/ or with upower.
  •  Detected languages
  •  Raw content
  •  Share via ...

Linux reshared this.

in reply to rkk

Ann Onymous
lemmy - Link to source

Ann Onymous

in reply to rkk • 2 years ago • •
Are you running arch on the metal or through crostini/crouton? The second option probably will only respect chromeos' power management settings, but you may be able to flash a full uefi payload and get rid of chromeos completely with mrchromebox.tech/#fwscript
  •  Detected languages
  •  Raw content
  •  Share via ...
in reply to Ann Onymous

rkk
lemmy - Link to source

rkk

in reply to Ann Onymous • 2 years ago • •
Yeah, i got all that (coreboot+arch)
  •  Detected languages
  •  Raw content
  •  Share via ...
⇧