WORK IN PROGRESS, INSTALL NOT WORKING YET
This is a fork/rewrite of @cemkaya-mpi Dell-G15-Controller.
Daemon and tray application to control power modes (with G button support) for the Dell G15 5525 laptops. Might work on other models but I have not tested.
USE AT YOUR OWN RISK.
- Change power modes
- G button for toggling Gameshift mode.
- Daemon (can run as a systemd unit)
- Tray application
- CLI application
- Manual fan control
- Lights
- Polkit (for raising shell privileges)
- Python3
- evdev (for gbutton support)
- pexpect (to run the acpi calls)
- pygobject (for tray application)
- setuptools (installation)
Make sure the user is part of the plugdev group, this is needed for accessing the socket.
/etc/udev/rules.d/00-aw-elc.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="187c", ATTRS{idProduct}=="0550", MODE="0660", GROUP="plugdev", SYMLINK+="awelc"
NOT DONE YET
options:
-h, --help show this help message and exit
-s , --set-power-mode Set the active powermode, available modes are: [
'MANUAL', 'USTT_BALANCED', 'USTT_PERFORMANCE', 'USTT_QUIET',
'USTT_FULLSPEED', 'USTT_BATTERYSAVER', 'G_MODE'
]
-g, --get-power-mode Returns the active powermode
-l, --get-laptop-model
Returns laptop model
-gg, --get-g-mode Returns gameshift state
-t, --toggle-g-mode Toggles gameshift
-d, --daemon Starts daemon
--tray Starts tray application
Systemd service PROVIDED UNIT NOT WORKING YET, I NEED TO FIX THE INSTALL FIRST TO ADD THE CORRECT EXEC
Install and run the provided unit
Just pass --daemon
as argument. The daemon needs root access, it will run polkit to elevate the shell if run by a normal user, but will work just fine by running as root.
DON'T RUN THE TRAY APPLICATION AS ROOT
Just pass --tray
as argument. Will create an indicator that can toggle Gameshift and change power modes.
This is basically a rewrite of @cemkaya-mpi Dell-G15-Controller, I used all the core functions for changing power modes and toggling G mode.