cemkaya-mpi / dell-g15-controller Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I have a WIP setup here: https://github.com/JL2210/Dell-G15-Controller/tree/cli
But it's been ages since I've used python and even longer since I used argparse for anything
It would be helpful if a 'Don't ask' option was added to the unsupported models dialog instead of warning on every launch.
Hello! I have a Dell G15 5520, and would want to add it as compatible, to add at least G button function and put the fans to the max. How can I intercept AWCC ACPI commands from windows? I tried extracting DSDT, and reading ACPI tables, but couldn't compile it to even try to locate some functions.
App launches fine from a terminal, but not without a terminal. Until this is solved, the desktop entry has Terminal=true
Please add the dep needed for the tool:
sudo apt install libxcb-cursor0
and:
pip3 install pyside6
I would like to try it on an M17R3 with the same spec. But I have no idea how to use it I would like to turn off the light when not typing.
I went through the past Issue and tried to export my computer's SSDT table, in which I found the WMAX method.
ssdt2.txt
I also tried the scripts in #12 after changing AMW3
to AMWW
.
#!/bin/bash
c(){ echo "$1" | sudo tee /proc/acpi/call >/dev/null && sudo cat /proc/acpi/call;echo;}
for mode in 0xa{0..9} 0xa{a..b}
do
echo "Trying mode ${mode}"
echo "\_SB.AMWW.WMAX 0 0x15 {0x01, ${mode}, 0x00, 0x00}"
c "\_SB.AMWW.WMAX 0 0x15 {0x01, ${mode}, 0x00, 0x00}"
done
echo "Reverting to balanced."
c "\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa0, 0x00, 0x00}"
The results are as follows:
Trying mode 0xa0
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa0, 0x00, 0x00}
0x0
Trying mode 0xa1
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa1, 0x00, 0x00}
0x0
Trying mode 0xa2
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa2, 0x00, 0x00}
0x0
Trying mode 0xa3
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa3, 0x00, 0x00}
0x0
Trying mode 0xa4
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa4, 0x00, 0x00}
0xffffffff
Trying mode 0xa5
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa5, 0x00, 0x00}
0xffffffff
Trying mode 0xa6
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa6, 0x00, 0x00}
0xffffffff
Trying mode 0xa7
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa7, 0x00, 0x00}
0xffffffff
Trying mode 0xa8
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa8, 0x00, 0x00}
0xffffffff
Trying mode 0xa9
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xa9, 0x00, 0x00}
0xffffffff
Trying mode 0xaa
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xaa, 0x00, 0x00}
0xffffffff
Trying mode 0xab
\_SB.AMWW.WMAX 0 0x15 {0x01, 0xab, 0x00, 0x00}
0x0
Reverting to balanced.
0x0
Not too surprising, these devices are very similar. I think they even use the same BIOS.
Recommend replacing GROUP="plugdev"
with TAG+="uaccess"
. This is best practice on Arch Linux. Then you can just check whether or not you can access the file rather than if you're in the group.
Keyboard backlight does not work with Secure Boot in Audit mode. Don't ask me how long I took to figure this out.
Also keybinds from fn+f7 and fn+f9 to toggle keyboard lights and G mode respectively would be nice-to-have
Self explanatory. Root user bash_history gets flushed with ACPI commands.
Dell G15 5515 Fan Control Works, Keyboard Light Does Not. Profiles for the fan control dont work either, only manual mode does. Running on POP_OS 22.04 LTS
Does this project support the Dell G15 5530?
I have a Dell G15 5515. When i try to launch the program, it fails.
QApplication: invalid style override 'kvantum' passed, ignoring it.
Available styles: Windows, Fusion
Traceback (most recent call last):
File "/home/weiss/Dell-G15-Controller/./main.py", line 449, in <module>
window = MainWindow()
^^^^^^^^^^^^
File "/home/weiss/Dell-G15-Controller/./main.py", line 26, in __init__
self.init_acpi_call()
File "/home/weiss/Dell-G15-Controller/./main.py", line 97, in init_acpi_call
if self.is_dell_g15:
^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'is_dell_g15'
After trying many things, I wasn't able to fix my Windows AWCC after using this script. So, I decided to read the code and try to modify some things. After making those modifications, I successfully reset the keyboard light. The solution involved removing all animations from the keyboard using elc.remove_animation. However, there was an animation that was not listed for some reason. But in the end I managed to obtain the animation ID using the get_animation_count
command.
Later I can create a Pull Request to create a script that resets all the animations. This could help people who encounter similar problems like mine.
If the bash prompt does not end with '$' or '#', the app waits for the child bash process to print these values to stdout until timeout, and fan and power related functions do not work as a result. The current workaround is to have an unmodified bash prompt, but this is not optimal. It would be better to detect the current bash prompt and wait for it instead.
Selam kardesim umutsuzca internette dolasirken programina rastladim acpi_call modulunu yukleyince laptopumda platform profillerini degistirebiliyorum. Klavye isiklarini kontrol etmeyi denemedim daha cok da onemli degiller zaten. Ne guzel insanlar var dunyada, cok tesekkurler.
Reference: https://wiki.archlinux.org/title/Dell_G15_5525
According to AlexIII/tcc-g15#4 (comment),
Game Shift Mode enables not only a thermal control mode, but a power disturbution setting
Have the Dell G15 5515 Amd edition, commented on something on this repo a while back and someone asked me to create an issue & post my dsdt table here, so here i am and here it is:
dsdt.txt
hopefully this is the right file and format.
Bus 002 Device 002: ID 0bda:0328 Realtek Semiconductor Corp. USB3.0-CRW
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:565a Realtek Semiconductor Corp. Integrated_Webcam_HD
Bus 001 Device 003: ID 187c:0550 Alienware Corporation LED controller
Bus 001 Device 002: ID 1ea7:0064 SHARKOON Technologies GmbH 2.4GHz Wireless rechargeable vertical mouse [More&Better]
Bus 001 Device 006: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 001 Device 005: ID 0d62:3740 Darfon Electronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub```
For more information see #13
I had to downgrade my kernel from 6.9.9.arch1-1 to 6.0.10-arch2-1 to be able to use an old nvidia driver (520.56.06) because the latest is causing games to freeze due to the xid 109 problem: https://forums.developer.nvidia.com/t/multiple-cuda-rtx-vulkan-application-crashing-with-xid-13-109-errors/235459/399.
After that Dell G15 Controller stopped working for me. It says my laptop model is not supported.
Do I need to downgrade Dell G15 Controller as well?
My specs:
OS: Arch Linux x86_64
Host: Dell G15 5525 (1.16.1)
Kernel: Linux 6.0.10-arch2-1
CPU: AMD Ryzen 7 6800H (16) @ 3.20 GHz
GPU 1: AMD Radeon 680M [Integrated]
GPU 2: NVIDIA GeForce RTX 3060 Mobile / Max-Q [Discrete]
This is, for the further support of different model or even different laptop
make this GUI front-end a good template
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.