Linux: control the PC (lock, sleep, screen off, brightness)

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
56/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
linux, python

Research direction

Start with alice/home/pc.py to trace the Windows-only controls, then read the lock and sleep handlers in alice/app/remote.py. Check how the project tests subprocess calls and mock them while covering available and missing Linux commands. Done means Linux controls use detected equivalents, unsupported commands return a clear error, and Windows behavior remains unchanged.

Written by the indexing model from the issue text.

Description

core good first issue help wanted

alice/home/pc.py is Windows-only: lock, monitor off, suspend/hibernate, power plans, and brightness return "yalnız Windows'ta" elsewhere, and the phone app's lock/sleep buttons (alice/app/remote.py) fail too.

Linux equivalents: loginctl lock-session, systemctl suspend/hibernate, xset dpms force off (X11) or the compositor's DPMS command, powerprofilesctl for power plans, brightnessctl for brightness. Detect what is installed and return a clear error otherwise. Keep Windows behavior unchanged; mock subprocess in tests.

Dominant language
Python
Stars
1
Forks
2
Avg merge
2h 41m
Merged PRs (30d)
112

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Viox-Development/Artificial-Logic-and-Intelligence-Computation-Engine

All issues in Viox-Development/Artificial-Logic-and-Intelligence-Computation-Engine

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.